donaldleegraham
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by donaldleegraham
-
-
OK... I found out the issue! I had my index.html pointing to my flash file in swf/VignetteFramework.swf and all of my other files where in here as well.
SO... I moved all the SWFs to the same folder as the index.html file, and poof... magically it works. Not organized the way I really would like it in neat separate folder, but at least it works.
Hope this helps others that run into the same issue.
Lee
-
Hi All,
I'm having an issue with loading the SWFs with LoaderMax once I upload them to my HTTP server and try to view it via the HTML file.
WORKS:
- When I Test compile shell.fla in the Flash CS5
- Works when I directly access the shell via
DOESN't WORK:
- When I try to access the index.html file that loads VignetteFramework.swf
I setup a debug textbox to capture an errors thrown by the loader when on the server, and it comes up with this:
ERROR: SWFLoader 'loader21' (v21.swf): SWFLoader 'loader21' (v21.swf) > Error #2032That is the last file that is appended to the loader. So I tried just removing it, recompiling, then uploading to the server. It through the error again, but with the new last file:
ERROR: SWFLoader 'loader20' (v20.swf): SWFLoader 'loader20' (v21.swf) > Error #2032It seems be having issues loading all the files when I try to view it via the HTML file.
I've even tried prependURLs with a direct HTTP link on my server. No luck. Then I was thinking, perhaps a security issue, so I changed my Local Playback Security. No Luck.
Any thoughts would be appreciated.
Thanks,
Lee
-
Hi All,
I was curious if there was some sort of stop command within LoaderMax? I'm building a mobile MP3 player and it loads fine every time the player launches, but the issue is caused when I hit the Play/Pause button. It works right the first time... playing & pausing. Next time I load it, and hit the Play/Pause button I get, "ArgumentError: Error #2068: Invalid sound."
I have unload and dispose being called during my closeFunction, but I don't think it is working.
When I click the menu item it autoPlays just fine. When I close it stops. Then I click on a different menu item, it loads and plays fine. I'm just having issues with the silly Play/Pause button.
//This is the data for my scrollable menu as well as the associated audio. draggableList.dataProvider = [ {id: "1", title: "Introduction", audio: "http://mydomain.com/00.mp3", description: "Introduction"}, {id: "2", title: "Chapter 1", audio: "http://mydomain.com/01qa.mp3", description: "Chapter 1"}, {id: "3", title: "Chapter 1", audio: "http://mydomain.com/01.mp3", description: "Practice"}, ]; var o:Object = draggableList.selectedItem; var sound:MP3Loader = new MP3Loader(o.audio, {name:"audio", autoPlay:true}); sound.load(); playPauseBtn.addEventListener(MouseEvent.CLICK, playPauseFunction); closeBtn.addEventListener(MouseEvent.CLICK, closeFunction); function playPauseFunction(event:MouseEvent):void { sound.soundPaused = !sound.soundPaused; } function closeFunction(event:MouseEvent):void { sound.dispose(true); sound.unload(); trace("CLOSE"); }
-
No worries. You are the man Jack! Thanks for the opportunity to beta test this new product!
-
K. FYI... I do have a very generous crossdomain.xml file setup.
<?xml version="1.0" encoding="utf-8"?>
-
No worries! Its beta software Works like a champ locally (within the same folder)!
I'm still getting a Security Sandbox error when I load the SWF from my localhost or remote server. The SWF loads now, BUT when I click on the it to scroll, its throws this error:
[sWF] loaderAIR.swf - 38908 bytes after decompression
LoaderMax 'mainQueue' is complete!
LoaderMax 'mainQueue' is complete!
[sWF] /assets/myContent.swf - 48204 bytes after decompression
*** Security Sandbox Violation ***
SecurityDomain 'http://localhost/assets/myContent.swf' tried to access incompatible context 'app:/loaderAIR.swf'
SecurityError: Error #2070: Security sandbox violation: caller http://localhost/assets/myContent.swf cannot access Stage owned by app:/loaderAIR.swf.
at flash.display::Stage/requireOwnerPermissions()
at flash.display::Stage/addEventListener()
at com.shinedraw.controls::IPhoneScroll/on_mouse_down()
Perhaps this is a limitation of AIR???
-
Downloaded the latest build. Now I'm getting a new error: 1120: Access of undefined property AVM1Movie.
LINE 260 of SWFLoader.as
if (!_scriptAccessDenied && _loader.content is AVM1Movie) {
My content is a simple AS3 SWF. I've attached my sample files.
-
Sure thing...
-
Downloaded today @ 11:10AM (EST)
-
Hi All,
Has anyone tried to use the LoaderMax Beta to load a SWF from localhost or a remote server using LoaderMax Beta & AIR 1.5?
It works great in Flash Player 10, but there is a security error when I compile with AIR.
I'm getting this security error:
[sWF] loaderAIR.swf - 38638 bytes after decompression
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. app:/loaderAIR.swf was attempting to load http://localhost/assets/myContent.swf.
at flash.display::Loader/_load()
at flash.display::Loader/load()
at com.greensock.loading.core::CommonLoader/_load()[C]
at com.greensock.loading::SWFLoader/_load()[C]
at com.greensock.loading.core::LoaderCore/load()[C]
at loaderAIR_fla::MainTimeline/frame1()[loaderAIR_fla.MainTimeline::frame1:15]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at global/runtime::ADLEntry()
I'm just using the code from the sample:
//IMPORTS import com.greensock.*; import com.greensock.loading.*; import flash.events.*; //LOADER var loader:SWFLoader = new SWFLoader("http://localhost/assets/myContent.swf", { name:"mainSWF", container:this, x:0, y:0, onInit:initHandler, estimatedBytes:36000 }); loader.load(); //fade the swf in as soon as it inits function initHandler(event:Event):void { TweenLite.from(event.target.content, 1, {alpha:0}); } //Or you could put the SWFLoader into a LoaderMax. Create one first... var queue:LoaderMax = new LoaderMax({ name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler }); //start loading queue.load(); //pause loading queue.pause(); //resume loading queue.resume(); function progressHandler(event:ProgressEvent):void { trace("progress: "); } function completeHandler(event:Event):void { trace(event.target + " is complete!"); } function errorHandler(event:ErrorEvent):void { trace("error: " + event.text); }
I also have a crossdomain.xml file:
<?xml version="1.0" encoding="utf-8"?>
Any thoughts, comments or smart remarks are welcomed! Thanks!
LoaderMax Error #2032
in Loading (Flash)
Posted
Son of a gun... thanks boss!