Check the size of the swfPreview on complete and check the
I checked swfPreview on loadComplete and the size ( I assume you are talking about the bytes loaded) is 80280 and bytesTotal is the same number.
swfPreview.content is a flash.display.AVM1movie with the correct url in the content.loaderInfo.url property.
Everything seems to be loaded but I cannot preview it, am I missing something ?
Amazingly while debugging I left the debugger running, I got a Security error :
securitydomain "url" tried to access incompatible context "local swf (flex application) file path".
So I tried setting a Loader context for the SWFLoader
var context:LoaderContext = new LoaderContext();
context.securityDomain = SecurityDomain.currentDomain;
context.applicationDomain = ApplicationDomain.currentDomain;
swfPreview.loaderContext = context;
After this another error popped up.
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
I uploaded the swf (flex application) to a domain and was able to load the remote swf file. Hurray !!
But my joy was not long lasting I saw the loaded swf was blinking (some of the images in the loaded swf were blinking and no text was visible).
Is this related to different frame rates ??
I meant check its width and height.
But if it is an AVM1Movie, there is a chance that it won't run because it
depends on stage access or something like that.
AVM1Movies are in sandboxes and don't have security privileges.
I am not sure but I think that AVM1Movie do not have security priveleges but when we load them in a SWFLoader in a flex project that runs locally, they have to access the swf of the flex project and this gives gives an error. I am still not able to see anything locally but when I upload my project then I see a part of the swf (although it keeps blinking)
ANy suggestion to stop this blinking or is it not possible.
1 person found this helpful
It probably depends on the SWF, not all AVM1Movies are going to play
correctly. You can make your own AVM1Movie and test it to see if it works.