Jump to content
GreenSock

donaldleegraham

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by donaldleegraham

  1. 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
  2. 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 http://mydomain.com/VignetteFramework.swf 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: That 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: It 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
  3. 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"); }
  4. No worries. You are the man Jack! Thanks for the opportunity to beta test this new product!
  5. K. FYI... I do have a very generous crossdomain.xml file setup. <?xml version="1.0" encoding="utf-8"?>
  6. 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: Perhaps this is a limitation of AIR???
  7. 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.
  8. 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: 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!
×