Re: [Flashcoders] Transitions between Movies AS3
Hi, I would suggest loading movie A then do 2 things when it has loaded: play movie A preload movie B If Movie A is long enough you can load in all of Movie B before A finishes and then transition as you like. - by Movie I mean MovieClip / SWF not FLV. There maybe ways to preload FLV's, but I am not familiar with this. There are some good sequential preloaders out there: Ralf Bokelberg has a preloader that looks okay. I have never used it because I had written my own already, but it looks very solid. http://www.helpqlodhelp.com/stuff/loaderclass/LoaderClass.doc.html http://www.helpqlodhelp.com/scripts/com.qlod.app.loader.MovieClipLoader.as There is also a useful article here linking to lots of preloaders / examples: http://www.actionscripthero.org/blog/2003/07/the-quest-for-preloading-powers.html HTH Glen Helmut Granda wrote: Hello All, I need to make some transitions between movies, basically after movie A finishes playing movie B starts after B loaded to cache. With video people are more acceptable to see the video overlap or not aligning properly when animations switch rather fast. In this case the animation from Movie A has elements that will be used in Movie B and to make it more entertaining elements from A and B have transparency (such as PNGs). ATM I am making the switch frame based but sometimes the movies overlap or they have a slight glitch to them... what are you all doing for these kind of transitions? (besides avoiding them?) I was thinking of making it time base... such as after Movie B loaded wait 300ms or similar and then make the switch but I am looking at best practices and best performance and most of all best user experience. TIA ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01736 759321 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Transitions between Movies AS3
Preloading FLVs is easy peasy. var progressTimer:Timer = new Timer(10); progressTimer.addEventListener(TimerEvent.TIMER, updateProgress); var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); progressTimer.start(); // PLAY IT THEN PAUSE IT ns.play(path); ns.pause(true); private function updateProgress($event:TimerEvent):void { dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, ns.bytesLoaded, ns.bytesTotal)); } private function onNetStreamStatus($event:NetStatusEvent):void { if ($event.info.code == NetStream.Buffer.Flush) { progressTimer.stop(); dispatchEvent(new Event(Event.COMPLETE)); } } Steven Sacks Flash Maestro Los Angeles, CA -- blog: http://www.stevensacks.net gaia: http://www.gaiaflashframework.com Glen Pike wrote: Hi, I would suggest loading movie A then do 2 things when it has loaded: play movie A preload movie B If Movie A is long enough you can load in all of Movie B before A finishes and then transition as you like. - by Movie I mean MovieClip / SWF not FLV. There maybe ways to preload FLV's, but I am not familiar with this. There are some good sequential preloaders out there: Ralf Bokelberg has a preloader that looks okay. I have never used it because I had written my own already, but it looks very solid. http://www.helpqlodhelp.com/stuff/loaderclass/LoaderClass.doc.html http://www.helpqlodhelp.com/scripts/com.qlod.app.loader.MovieClipLoader.as There is also a useful article here linking to lots of preloaders / examples: http://www.actionscripthero.org/blog/2003/07/the-quest-for-preloading-powers.html HTH Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Preloading and Dispatching Events
Hi All, While creating a custom class I am trying to figure out a way to add the preloaded images at the same time as to dispatch an event to a different class when the images have loaded. of course I know that I cant extend a class to an EventDispatcher and to a MovieClip at the same time so I have to choose one, If I extend to an EventDispatcher then I cant add the clip when the images are preloaded. If I extend to a MovieClip then I cant Dispatch custom events to other listeners.. I was thinking of creating an Interface for the Event Dispatcher and then for the MovieClip once that is done then I could implement both interfaces but I dont think this is the right approach Any suggestions are welcome, Helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Transitions between Movies AS3
Hi Guys, Thanks so much for your suggestions and new tips. I in fact are able to create everything within my movie with no issues but the thing that I am having a little bit of issue is making the switch from Movie A to B. I can do the preloading and all but once it comes to making the swap I am trying to figure out what is the best way to make the swap seemless... Of course this is possible if all of the objects are solid colors or solid images, but once we start playing with PNGs and opacity the swap can be a little bit more tricky, specially when the swap is done frame based. So my suggestion was to do it timely based... say after movie B has been loaded completely wait 300ms and then make the swap (Another way is also to avoid these situations :-) )... For now that is the best solution that I have found but I was wondering if there were other tricks out there that some of you are using.. On 1/12/08, Steven Sacks [EMAIL PROTECTED] wrote: Preloading FLVs is easy peasy. var progressTimer:Timer = new Timer(10); progressTimer.addEventListener(TimerEvent.TIMER, updateProgress); var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); progressTimer.start(); // PLAY IT THEN PAUSE IT ns.play(path); ns.pause(true); private function updateProgress($event:TimerEvent):void { dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, ns.bytesLoaded, ns.bytesTotal)); } private function onNetStreamStatus($event:NetStatusEvent):void { if ($event.info.code == NetStream.Buffer.Flush) { progressTimer.stop(); dispatchEvent(new Event(Event.COMPLETE)); } } Steven Sacks Flash Maestro Los Angeles, CA -- blog: http://www.stevensacks.net gaia: http://www.gaiaflashframework.com Glen Pike wrote: Hi, I would suggest loading movie A then do 2 things when it has loaded: play movie A preload movie B If Movie A is long enough you can load in all of Movie B before A finishes and then transition as you like. - by Movie I mean MovieClip / SWF not FLV. There maybe ways to preload FLV's, but I am not familiar with this. There are some good sequential preloaders out there: Ralf Bokelberg has a preloader that looks okay. I have never used it because I had written my own already, but it looks very solid. http://www.helpqlodhelp.com/stuff/loaderclass/LoaderClass.doc.html http://www.helpqlodhelp.com/scripts/com.qlod.app.loader.MovieClipLoader.as There is also a useful article here linking to lots of preloaders / examples: http://www.actionscripthero.org/blog/2003/07/the-quest-for-preloading-powers.html HTH Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Preloading and Dispatching Events
Hi Helmut, The MovieClip inheritance chain looks like this: MovieClip - Sprite ../../flash/display/Sprite.html - DisplayObjectContainer ../../flash/display/DisplayObjectContainer.html - InteractiveObject ../../flash/display/InteractiveObject.html - DisplayObject ../../flash/display/DisplayObject.html - EventDispatcher ../../flash/events/EventDispatcher.html - Object. ../../Object.html Any class you write that extends MovieClip also inherits the ability to dispatch events. hth, Bob Helmut Granda wrote: Hi All, While creating a custom class I am trying to figure out a way to add the preloaded images at the same time as to dispatch an event to a different class when the images have loaded. of course I know that I cant extend a class to an EventDispatcher and to a MovieClip at the same time so I have to choose one, If I extend to an EventDispatcher then I cant add the clip when the images are preloaded. If I extend to a MovieClip then I cant Dispatch custom events to other listeners.. I was thinking of creating an Interface for the Event Dispatcher and then for the MovieClip once that is done then I could implement both interfaces but I dont think this is the right approach Any suggestions are welcome, Helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Thanks, ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Preloading and Dispatching Events
Thanks bob for the suggestion I guess I still having a little bit of issue tyeing both of the classes together... For example I have this... ClassA = DocumentClass ClassB = CustomXMLLoaderClass extends EventDispatcher ClassC = CustomIMGLoaderClass extends MovieClip ClassA.addDispatcher(ClassB) which then fires when the XML items I need are completed, Following your suggestion then I did a simple addEventListener on the document class ClassA.addEventListener(ClassC) but for some reason ClassB never hears Class C when images are done loading I can of course extend ClassC from the EventDispatcher and I will get the same results as I am doing with ClassB but then I am not able to add the newly loaded Images to the stage with addChild since the compiler whines that its not a DisplayObject which makes sense since it is inherited from the EventDispatcher Thanks again Helmut On 1/12/08, Bob Leisle [EMAIL PROTECTED] wrote: Hi Helmut, The MovieClip inheritance chain looks like this: MovieClip - Sprite ../../flash/display/Sprite.html - DisplayObjectContainer ../../flash/display/DisplayObjectContainer.html - InteractiveObject ../../flash/display/InteractiveObject.html - DisplayObject ../../flash/display/DisplayObject.html - EventDispatcher ../../flash/events/EventDispatcher.html - Object. ../../Object.html Any class you write that extends MovieClip also inherits the ability to dispatch events. hth, Bob Helmut Granda wrote: Hi All, While creating a custom class I am trying to figure out a way to add the preloaded images at the same time as to dispatch an event to a different class when the images have loaded. of course I know that I cant extend a class to an EventDispatcher and to a MovieClip at the same time so I have to choose one, If I extend to an EventDispatcher then I cant add the clip when the images are preloaded. If I extend to a MovieClip then I cant Dispatch custom events to other listeners.. I was thinking of creating an Interface for the Event Dispatcher and then for the MovieClip once that is done then I could implement both interfaces but I dont think this is the right approach Any suggestions are welcome, Helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Thanks, ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Preloading and Dispatching Events
So I found out the answer here: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/EventDispatcher.html#includeExamplesSummary Thanks again Bob for pointing me in the right direction. Knowing the order of inheritance allowed me to target the problem properly. On 1/12/08, Helmut Granda [EMAIL PROTECTED] wrote: Thanks bob for the suggestion I guess I still having a little bit of issue tyeing both of the classes together... For example I have this... ClassA = DocumentClass ClassB = CustomXMLLoaderClass extends EventDispatcher ClassC = CustomIMGLoaderClass extends MovieClip ClassA.addDispatcher(ClassB) which then fires when the XML items I need are completed, Following your suggestion then I did a simple addEventListener on the document class ClassA.addEventListener(ClassC) but for some reason ClassB never hears Class C when images are done loading I can of course extend ClassC from the EventDispatcher and I will get the same results as I am doing with ClassB but then I am not able to add the newly loaded Images to the stage with addChild since the compiler whines that its not a DisplayObject which makes sense since it is inherited from the EventDispatcher Thanks again Helmut On 1/12/08, Bob Leisle [EMAIL PROTECTED] wrote: Hi Helmut, The MovieClip inheritance chain looks like this: MovieClip - Sprite ../../flash/display/Sprite.html - DisplayObjectContainer ../../flash/display/DisplayObjectContainer.html - InteractiveObject ../../flash/display/InteractiveObject.html - DisplayObject ../../flash/display/DisplayObject.html - EventDispatcher ../../flash/events/EventDispatcher.html - Object. ../../Object.html Any class you write that extends MovieClip also inherits the ability to dispatch events. hth, Bob Helmut Granda wrote: Hi All, While creating a custom class I am trying to figure out a way to add the preloaded images at the same time as to dispatch an event to a different class when the images have loaded. of course I know that I cant extend a class to an EventDispatcher and to a MovieClip at the same time so I have to choose one, If I extend to an EventDispatcher then I cant add the clip when the images are preloaded. If I extend to a MovieClip then I cant Dispatch custom events to other listeners.. I was thinking of creating an Interface for the Event Dispatcher and then for the MovieClip once that is done then I could implement both interfaces but I dont think this is the right approach Any suggestions are welcome, Helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Thanks, ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] mdash in htmlText
I'm running CS3 with AS2. I'm loading in some html text into a TextField with html set to true. It looks like nbsp; is working correctly, but other chars such as mdash; are just being rendered literally, as mdash;. This is even with the entire character set embedded. Do I have to scrub all this stuff out? Is there a class to do this? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Preloading and Dispatching Events
This might seem like a dumb question, but are you calling super() in the constructor of the class that extends MovieClip? Is the class public? Steven Sacks Flash Maestro Los Angeles, CA -- blog: http://www.stevensacks.net gaia: http://www.gaiaflashframework.com Helmut Granda wrote: Thanks bob for the suggestion I guess I still having a little bit of issue tyeing both of the classes together... For example I have this... ClassA = DocumentClass ClassB = CustomXMLLoaderClass extends EventDispatcher ClassC = CustomIMGLoaderClass extends MovieClip ClassA.addDispatcher(ClassB) which then fires when the XML items I need are completed, Following your suggestion then I did a simple addEventListener on the document class ClassA.addEventListener(ClassC) but for some reason ClassB never hears Class C when images are done loading I can of course extend ClassC from the EventDispatcher and I will get the same results as I am doing with ClassB but then I am not able to add the newly loaded Images to the stage with addChild since the compiler whines that its not a DisplayObject which makes sense since it is inherited from the EventDispatcher Thanks again Helmut On 1/12/08, Bob Leisle [EMAIL PROTECTED] wrote: Hi Helmut, The MovieClip inheritance chain looks like this: MovieClip - Sprite ../../flash/display/Sprite.html - DisplayObjectContainer ../../flash/display/DisplayObjectContainer.html - InteractiveObject ../../flash/display/InteractiveObject.html - DisplayObject ../../flash/display/DisplayObject.html - EventDispatcher ../../flash/events/EventDispatcher.html - Object. ../../Object.html Any class you write that extends MovieClip also inherits the ability to dispatch events. hth, Bob Helmut Granda wrote: Hi All, While creating a custom class I am trying to figure out a way to add the preloaded images at the same time as to dispatch an event to a different class when the images have loaded. of course I know that I cant extend a class to an EventDispatcher and to a MovieClip at the same time so I have to choose one, If I extend to an EventDispatcher then I cant add the clip when the images are preloaded. If I extend to a MovieClip then I cant Dispatch custom events to other listeners.. I was thinking of creating an Interface for the Event Dispatcher and then for the MovieClip once that is done then I could implement both interfaces but I dont think this is the right approach Any suggestions are welcome, Helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Thanks, ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] mdash in htmlText
Hi Andrew, I don't know of a class that will help with this. Extended characters need to be Unicode encoded in the HTML stream for Flash to properly display them. I've had to do exactly what you probably don't want to do... that is, scrub them out. I had a project that wrapped up late summer last year, where I had to contend with a fairly simple set of characters: single and double opening/closing quotes, em-dash, en-dash, copyright, registered trademark, etc. When I get back to the office on Monday, I'll check to see what we did for handling them in HTML text. IIRC, we ran regular expressions on the HTML text swapping mnemonic style character entities for Flash Unicode, e.g., \u000a. ...Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sinning Sent: Saturday, January 12, 2008 10:39 PM To: Flash Coders Subject: [Flashcoders] mdash in htmlText I'm running CS3 with AS2. I'm loading in some html text into a TextField with html set to true. It looks like nbsp; is working correctly, but other chars such as mdash; are just being rendered literally, as mdash;. This is even with the entire character set embedded. Do I have to scrub all this stuff out? Is there a class to do this? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Preloading and Dispatching Events
No, I'm not calling super... On 1/12/08, Steven Sacks [EMAIL PROTECTED] wrote: This might seem like a dumb question, but are you calling super() in the constructor of the class that extends MovieClip? Is the class public? Steven Sacks Flash Maestro Los Angeles, CA -- blog: http://www.stevensacks.net gaia: http://www.gaiaflashframework.com Helmut Granda wrote: Thanks bob for the suggestion I guess I still having a little bit of issue tyeing both of the classes together... For example I have this... ClassA = DocumentClass ClassB = CustomXMLLoaderClass extends EventDispatcher ClassC = CustomIMGLoaderClass extends MovieClip ClassA.addDispatcher(ClassB) which then fires when the XML items I need are completed, Following your suggestion then I did a simple addEventListener on the document class ClassA.addEventListener(ClassC) but for some reason ClassB never hears Class C when images are done loading I can of course extend ClassC from the EventDispatcher and I will get the same results as I am doing with ClassB but then I am not able to add the newly loaded Images to the stage with addChild since the compiler whines that its not a DisplayObject which makes sense since it is inherited from the EventDispatcher Thanks again Helmut On 1/12/08, Bob Leisle [EMAIL PROTECTED] wrote: Hi Helmut, The MovieClip inheritance chain looks like this: MovieClip - Sprite ../../flash/display/Sprite.html - DisplayObjectContainer ../../flash/display/DisplayObjectContainer.html - InteractiveObject ../../flash/display/InteractiveObject.html - DisplayObject ../../flash/display/DisplayObject.html - EventDispatcher ../../flash/events/EventDispatcher.html - Object. ../../Object.html Any class you write that extends MovieClip also inherits the ability to dispatch events. hth, Bob Helmut Granda wrote: Hi All, While creating a custom class I am trying to figure out a way to add the preloaded images at the same time as to dispatch an event to a different class when the images have loaded. of course I know that I cant extend a class to an EventDispatcher and to a MovieClip at the same time so I have to choose one, If I extend to an EventDispatcher then I cant add the clip when the images are preloaded. If I extend to a MovieClip then I cant Dispatch custom events to other listeners.. I was thinking of creating an Interface for the Event Dispatcher and then for the MovieClip once that is done then I could implement both interfaces but I dont think this is the right approach Any suggestions are welcome, Helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Thanks, ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Simple quesiton for createEmptyMovieClip in AS2
hi there, I am having problem to create empty Movie clicp by using the code below, I can't create 5 movie clips vertically. Would you please help me take a look this. Thank you so much :) playListHolder is an MC Instance name and placed on Stage. for (var i:Number = 0; i 5; i++) { var vidThumb:MovieClip = _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); vidThumb = eval(vThumb+i) //theVideo.width = thumbWidth //theVideo.height = thumbHeight; vidThumb._y = i*thumbHorizontalGap+thumbY; vidThumb.loadMovie( http://www.google.com/ http://img0.gmodules.com/ig/images//weather_welcome_image.jpg;) } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2
At least one problem: _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); should be (note quotes): _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); Also, you don't need the line: var vidThumb:MovieClip = You can just tell _root.playListHolder to create the clips based on the incremental naming scheme you describe. - Marc At 09:05 PM 1/12/2008, you wrote: hi there, I am having problem to create empty Movie clicp by using the code below, I can't create 5 movie clips vertically. Would you please help me take a look this. Thank you so much :) playListHolder is an MC Instance name and placed on Stage. for (var i:Number = 0; i 5; i++) { var vidThumb:MovieClip = _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); vidThumb = eval(vThumb+i) //theVideo.width = thumbWidth //theVideo.height = thumbHeight; vidThumb._y = i*thumbHorizontalGap+thumbY; vidThumb.loadMovie( http://www.google.com/ http://img0.gmodules.com/ig/images//weather_welcome_image.jpg;) } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2
Try this instead: for (var i:Number = 0; i 5; i++) { _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); var vidThumb = __root.playListHolder[vThumb+i]; //theVideo.width = thumbWidth; //theVideo.height = thumbHeight; vidThumb._y = i*thumbHorizontalGap+thumbY; vidThumb.loadMovie( http://www.google.com/http://img0.gmodules.com/ig/images//weather_welcome_image.jpg;); } Assuming your thumbHorizontalGap and thumbY vars are right, this should display 5 clips vertically; hth, Bob macromedia flash wrote: hi there, I am having problem to create empty Movie clicp by using the code below, I can't create 5 movie clips vertically. Would you please help me take a look this. Thank you so much :) playListHolder is an MC Instance name and placed on Stage. for (var i:Number = 0; i 5; i++) { var vidThumb:MovieClip = _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); vidThumb = eval(vThumb+i) //theVideo.width = thumbWidth //theVideo.height = thumbHeight; vidThumb._y = i*thumbHorizontalGap+thumbY; vidThumb.loadMovie( http://www.google.com/ http://img0.gmodules.com/ig/images//weather_welcome_image.jpg;) } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Thanks, ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2
There are various issues with your code.. here you have an updated smaller version: var thumbHorizontalGap = 75; var url: String = http://img0.gmodules.com/ig/images//weather_welcome_image.jpg; for (var i:Number = 0; i 5; i++) { var vidThumb:MovieClip =_root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); vidThumb._y = i* thumbHorizontalGap; vidThumb.loadMovie(url) } On 1/12/08, macromedia flash [EMAIL PROTECTED] wrote: hi there, I am having problem to create empty Movie clicp by using the code below, I can't create 5 movie clips vertically. Would you please help me take a look this. Thank you so much :) playListHolder is an MC Instance name and placed on Stage. for (var i:Number = 0; i 5; i++) { var vidThumb:MovieClip = _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); vidThumb = eval(vThumb+i) //theVideo.width = thumbWidth //theVideo.height = thumbHeight; vidThumb._y = i*thumbHorizontalGap+thumbY; vidThumb.loadMovie( http://www.google.com/ http://img0.gmodules.com/ig/images//weather_welcome_image.jpg;) } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2
AWESOME! thanks all :) One more question here... how can I assign URL link to each movieClip? I would like to add URL for each of movieClip which created by looping, the code like this Thank you var thumbHorizontalGap = 75; var url: String = http://img0.gmodules.com/ig/images//weather_welcome_image.jpg; for (var i:Number = 0; i 5; i++) { _root.createEmptyMovieClip(vThumb+i, i+1000); vidThumb = eval(vThumb+i); vidThumb._y = i* thumbHorizontalGap; vidThumb.loadMovie(url) vidThumb.onRelease = function(){ openURL(url) } } function openURL(url){ getURL(url); } = On 1/13/08, Helmut Granda [EMAIL PROTECTED] wrote: There are various issues with your code.. here you have an updated smaller version: var thumbHorizontalGap = 75; var url: String = http://img0.gmodules.com/ig/images//weather_welcome_image.jpg; for (var i:Number = 0; i 5; i++) { var vidThumb:MovieClip =_root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); vidThumb._y = i* thumbHorizontalGap; vidThumb.loadMovie(url) } On 1/12/08, macromedia flash [EMAIL PROTECTED] wrote: hi there, I am having problem to create empty Movie clicp by using the code below, I can't create 5 movie clips vertically. Would you please help me take a look this. Thank you so much :) playListHolder is an MC Instance name and placed on Stage. for (var i:Number = 0; i 5; i++) { var vidThumb:MovieClip = _root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000); vidThumb = eval(vThumb+i) //theVideo.width = thumbWidth //theVideo.height = thumbHeight; vidThumb._y = i*thumbHorizontalGap+thumbY; vidThumb.loadMovie( http://www.google.com/ http://img0.gmodules.com/ig/images//weather_welcome_image.jpg;) } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2
Put the URLs in an array: myURLS = new Array(www.domain1.com, www.anotherDomain.com, www.anotherDomain.com, www.anotherDomain.com, www.anotherDomain.com); then for the URL specified as the target of each clip you create, just reference the URL this way: vidThumb.onRelease = function(){ openURL(myURLS[i]); } - Marc At 10:20 PM 1/12/2008, you wrote: AWESOME! thanks all :) One more question here... how can I assign URL link to each movieClip? I would like to add URL for each of movieClip which created by looping, the code like this Thank you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders