Nicole Henningsen's Blog
Posted At : August 1, 2008 10:51 AM | Posted By : Nicole Henningsen

Error #2044: Unhandled skinError:. text=Error #2121: Security sandbox violation

Error #2044: Unhandled skinError:. text=Error #2121: Security sandbox violation: Loader.content: http://domain1.com/video1.SWF cannot access http://domain2.com/SkinUnderAllNoVolNoCaptionNoFull.SWF. This may be worked around by calling Security.allowDomain.

I was working on a video for a client recently and ran into a Security sandbox violation. What I was trying to do was allow the skin itself to be loaded with the FLV no matter where the client placed it. In this instance they were wanting to post it on an internal page. The problem was the skin would not load on any other domain other than where it was located.

I searched all over the place trying to figure this issue out. There were a lot of forum posts on the issue but there where not any fixes that I could find. I tried several different ways of attempting to fix the issue and nothing seemed to be working. I started thinking about the CS3 default skins and how they access the FLV Playback Component. I noticed a lot of posts using the following code in the SWF containing the FLV Playback Component

Security.allowDomain("http://www.domain1.com");


Sure that allows access to objects and variables within that SWF itself but it still wouldn't allow my skin to come through. I had moved on to something else when I started thinking about the skin SWF. If I allowed the security.allowDomain to access it from the actual skin it should work. I added the code and poof there it was no sandbox violation.

So here is how I did it.

[More]

Posted At : May 22, 2008 11:05 AM | Posted By : Nicole Henningsen

Trimming video start and end time in Flash CS3

To trim a video in Adobe CS3 first go to import --> Import Video. You will select the video that you wish to import. Once you have selected your Deployment to your video click next (I typically do Progressive download from a web server). Now we can start trimming. To trim the video you can trim the start time or the end time or both. To do this you will simply grab the bottom arrow and beginning dragging it in. You will do the same for the end arrow. You should see your video display as you drag the arrows in. This will allow you to set the exact portion of the movie that you want to play.



If you click on Crop and size under trim you should now see your new In point and Out point times. When your finished editing go ahead and click next. At this point you can add a skin if you wish. Click next again and then finish. You now have a video that has been trimmed to your exact play time. Enjoy!

Posted At : May 22, 2008 10:43 AM | Posted By : Nicole Henningsen

Linking a movie clip in AS 3.0

I was working on a project early this morning trying to get a movie clip to link onClick to a URL. Out of habit I just starting using getURL and of course it was erroring because I was compiling using AS 3.0 ;). There is a little more to it in AS 3.0 as I found out.

myClip.addEventListener(MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("http://www.cfwebtools.com.com/");
navigateToURL(request, '_self');
}

The navigateToURL of course will determine how you want to open your link. Example in a new window or to open in the same window. Here is an example of opening in a new window.

navigateToURL(request, '_blank');

Posted At : December 11, 2007 11:27 AM | Posted By : Nicole Henningsen

Flash - AC_FL_RunContent is not defined

Today I was having some troubles embedding my flash file in Dreamweaver. I have done this so many times never having a problem before. It would play just fine in Dreamweaver CS3 but as soon as I would open my browser to view it, it wouldn't play. I used Firebug which can be downloaded for firefox as an add on to help me troubleshoot the error. The error that was being generated was AC_FL_RunContent is not defined. Dreamweaver automatically creates a Scripts directory with a JS file inside called AC_RunActiveContent.js when you save your file with the embedded flash.

[More]

Posted At : December 3, 2007 10:39 AM | Posted By : Nicole Henningsen

Skinning Flash CS3 Actionscript 3.0 Playback Component

Skinning Flash CS3 Actionscript 3.0 Playback Component

I was looking at the playback components in flash CS3 and I was starting to wonder how to customize my own player. Although the skins that are already created are nice I like to spice mine up a bit. When I am creating a new skin for the playback component I typically like to open an existing playback component built into flash CS3. If you browse to C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\FLVPlayback Skins\ActionScript 3.0 you will find all the .fla documents. For this example I am going to open SkinUnderPlayStopSeekMuteVol.fla in flash CS3 professional.


Full Screen



The first thing I do once I have the file open is save it as a different file name. I am going to name mine nicolesnewskin.fla (Save it to the C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\FLVPlayback Skins\ActionScript 3.0 directory).

If you look in the layers you will notice a controls folder. In that folder is all of your control buttons like stop, seek etc...No need to modify any of the code here. I just use this as a reference for what areas I am editing by using the show/hide found above the upper left area of the timeline above the layers.
Find Out More...

[More]




Blog provided and hosted by CF Webtools. Blog Sofware by Ray Camden.