Re: RE : [Flashcoders] External Imaging Nightmares
Here is the working example, without gotoAndStop etc. DO NOT USE onLoadComplete, use onLoadInit System.security.allowDomain (google.com); function onLoadStart( target:MovieClip ):Void { trace ( load start) } function onLoadError( target:MovieClip, errorCode:String ):Void { trace( 'loadError '+ errorCode ); } function onLoadProgress( target:MovieClip, loadedBytes:Number, totalBytes:Number ):Void { trace ( progress + Math.round ( loadedBytes/totalBytes*100) ); } function onLoadInit( target:MovieClip ):Void { target._width = 500; target._height = 300; } var mcl:MovieClipLoader = new MovieClipLoader(); mcl.addListener(this); mcl.loadClip( http://www.google.com/logos/olympics06_luge.gif;, this.createEmptyMovieClip( contHolder, 0 )); best wishes, Oleg ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: RE : [Flashcoders] External Imaging Nightmares
Ok, well apparantly all it takes is finally giving in and asking for help to get me to figure it out. Always seems to happen that way. O well, the way I fixed it was by adding a gotoAndPlay(1); into the onLoadComplete event. It seems as though even though it was loaded, it hadnt started playing yet and I guess it couldnt get the correct width until it was actually in a frame. On 2/15/06, Jamie Alpers [EMAIL PROTECTED] wrote: Unfortunately, security policies on the network I work on prevent me from loading extensions without going through at least a month long process. Is there any chance you could send me the code that is in the extension so I can take a look at how it is working? On 2/15/06, Éric Thibault [EMAIL PROTECTED] wrote: I've made a small extention that loads JPG or SWF... and is working well in my test environment. Here it is if you want to try it. A+ -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] External Imaging Nightmares
Hi Jamie, you have to use MovieClipLoader.onLoadInit(). The onLoadComplete event only tell you that external content had been finished loading, but not yet initialised. Oleg ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com