Re: [Flashcoders] Transitions between Movies AS3

2008-01-12 Thread Glen Pike
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

Re: [Flashcoders] Transitions between Movies AS3

2008-01-12 Thread Steven Sacks
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

[Flashcoders] Preloading and Dispatching Events

2008-01-12 Thread Helmut Granda
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

Re: [Flashcoders] Transitions between Movies AS3

2008-01-12 Thread Helmut Granda
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

Re: [Flashcoders] Preloading and Dispatching Events

2008-01-12 Thread Bob Leisle
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

Re: [Flashcoders] Preloading and Dispatching Events

2008-01-12 Thread Helmut Granda
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

Re: [Flashcoders] Preloading and Dispatching Events

2008-01-12 Thread Helmut Granda
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,

[Flashcoders] mdash in htmlText

2008-01-12 Thread Andrew Sinning
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

Re: [Flashcoders] Preloading and Dispatching Events

2008-01-12 Thread Steven Sacks
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

RE: [Flashcoders] mdash in htmlText

2008-01-12 Thread Rob Emenecker
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

Re: [Flashcoders] Preloading and Dispatching Events

2008-01-12 Thread Helmut Granda
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:

[Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread macromedia flash
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

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Marc Hoffman
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

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Bob Leisle
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 =

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Helmut Granda
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

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread macromedia flash
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 =

Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Marc Hoffman
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(){