Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Rename A Movieclip, How To?



Hi,

Can I rename a mc that was dynamically generate via attachmovie?

I tried the following but that doesn't seem to work(?)

this[OldName]._name = NewName;


thx.



FlashKit > Flash Help > Flash ActionScript
Posted on: 03-03-2004, 04:22 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8] Dynamically Rename A Movieclip
Hello I’m wondering is there a way to change a movie clips name through actionscript?? I have a movieclip on the stage called "player" which is for a multi player game so I need the movie clip to be renames when someone logs in to "player" + UserId. This way it is unique. Anybody got any ideas how to do this or ways around it??

Cheers

How Do You Rename Scenes?
I'm new to flash, but I've gotten used to it already. But, I don't know how to rename the scenes. Flash MX gives Scene 1, Scene 2, etc. But, I want to name it something else. Can someone let me know how I can do this? And one more thing. Can you let me know how I can flip the scenes around. Like putting Scene 2 ahead of Scene 1. So, the order can be Scene 2, Scene 1. Thanks.

Rename Scene
is there any way i can rename my scenes?

Quick Rename?
if i have say 50 files, and i want them all to be named an increasing number 1-50 .html, is there any program that can do this? Or will i have to go through each one and change the name to a number?

[CS3] [AS2] File Rename
Just a silly question.... How to rename a external file during a flash (screen form) application?

.... mack

Rename Application.log
hi,

is it possible to configure the log-files-name?

for example the application01.log exists for every application in it´s specific folder. the applications is called example. is it possible that the logfile is named example01.log?

thanks for your answers in advance.

tobi

Rename _definst_
Hi all..

I am sending live video streams over Flash Media Server 3.0. I am using following code.

camCon = new NetConnection();
camCon.connect("rtmp://localhost/higherup/_definst_");
myCam = Camera.get();
myCam.setMode( 300, 230, 100);
myCam.setQuality(0, 100);
camStream = new NetStream(camCon);
camStream.attachVideo(myCam);
camStream.publish("_definst_", "live");
myPlayer.load("rtmp://localhost/higherup/_definst_", true);

It all works fine. This code connects my webcam to flash movie and stream it through FMS. In the last line of code, I am catching the stream and attaching to FlvPlayback control.

Now the problem is, I want to change the name of stream from "_definst_" to something else, lets say "_raheel_". This renaming of default instance doesnt work..... I cant see my webcam playing....

camStream.publish("_raheel_", "live");
OR
myPlayer.load("rtmp://localhost/higherup/_raheel_", true);

These above 2 lines are example of what I want to do.


Please help. Thanks in advance.

Raheel

Can I Rename A Variable Name From A Button?
Hi,
I am tring to make a notepad by flash. Unluckily, I met many questions in it. For the most important thing, I want to change the variable name as following:

I made a text field and named its name as "a" in variable.
In frame 1, I wrote that:
i = 1;
a1 = hello;
a2 = good morning;

In a button, I wrote that:

On (press){
var a="a" add "i"
}

My target aimed that when mouse clicked the button, the variable rename to "a1" from "a" and rename to "a2" from "a1".

Does anyone know how to correct it?
Thank you for reading this post!

Can't Rename Movie Clip
Hi,

This problem is driving me crazy.
I've got 19 mc's with instancenames work1 to work 19. I copied 10 of them and placed them in the same position as the first ten but on frame 2. I've renamed the the clips in frame 2 to worka1 to worka10. The names display correcty in properties pannel but when I test the movie they are listed as work1 to work10!!!!!!!!!!!!!!!

There is more: To test I dragged a work mc somewhere onto the stage, named it test and this worked, also when tested. Then I placed the new mc in the row with the worka group, named it worka10 and ... it showed up as work10.

This is driving me inseane, please help.

Danielle.

Rename Instances With Script
lets say i have a MC that has been put on the stage with attachMovie and given it a name "name1". through using scirpt, is there code that can rename that to be "name2" or anything else?

Rename Uploaded Images
I have a flash upload system which allows the user to upload images to an image folder on the server. I want this image folder to display their photos automatically in the gallery.

However everyones photos are named differently. Is there anyway I can get the gallery to display the photos without knowing what each individual photo is called?

Is It Possible To Rename A Movie Clip?
Hi I was just wondering if anyone knows if it is possible to rename a movie clip. I need to be able to create a duplicate movie clip after that with the original name so it can use the original's event listener.

So is this possible and if not are there any alternatives. Hope this makes sense.

Thanks

Rename Uploaded Files
i use filereference to upload and downlod images. how can i simply rename the file name in the server?
can it be done in the swf (using fileReference)?
if not - i need to rename the file in my php file. can i get simple rename script which
1) will rename file randomally.
2) will enable download (inform the local of the new name).
thanks
udi

Is It Possible To Dynamically Rename A Variable?
I need to dynamically rename a variable.

For example, I have declared this variable:

var BName = 1;

But I want to change the name of the variable BName to BName01 at runtime. Not the value, I need the value to remain the same.

Is this possible?

Is It Possible To Dynamically Rename A Variable?
I need to dynamically rename a variable.

For example, I have declared this variable:

var BName = 1;

But I want to change the name of the variable BName to BName01 at runtime. Not the value, I need the value to remain the same.

Is this possible?

How Do You Rename Sequential Instances?
Okay, I am aware of how to change a single instance name. For example, this changes an instance name from blue to green.


ActionScript Code:
blue._name="green";


I'm sure this is a common question, but how do you dynamically rename a sequence of instances? You have to use some kind of loop, but I don't quite understand how you access these new instance names. It goes something like this..?


ActionScript Code:
for (i=0; i<3; i++) {
blue._name=green+i;
?????????
}

Duplicate And Rename A Clip, Old Name Remains
Ok I grabbed a menu from here and was going about making some adjustments. This menu that a dragable window. The menu currently has an Under Construction window that opens. The current action to open the window is this:

on (release) {
setProperty ("/UC", _visible, "-1");
}

The dragable window was named UC.

I duplicated this clip(UC)and renamed them all like New, New1,New2, changed the action to reflect what I named the duplicated clips like this:

on (release) {
setProperty ("/New", _visible, "-1");
}


Now when I publish this and click the link in the new swf, nothing happens. If I replace the "New" with "UC" it works even though there isnt even a UC in the library anymore, it was renamed "New". I cannot figure out where it is still grabbing the old name from, can anyone point me in the right direction?

Using Code To Duplicate And Rename Symbols
In Flash MX, can you use codes to duplicate an existing symbol and create and rename a batch of new symbols rather than having to manually create them one by one? Say in an external txt file, you have all the symbol names stored there. You want to take an existing symbol in a library and duplicate it, using the names stored in that txt file. Can you use codes to automate the duplication process or do you have to manually do it?

I hope I made myself clear.

Any tips would be appreciated.

Huaiwudong

How Do You Rename A Scene In Flash MX 2004?
I've tried right clicking, finding properties, everything I know how to do -- is it possible to rename scenes in Flash MX 2004 so they aren't "Scene 1", "Scene 2", etc?

I'm wanting to build a preloader and wanted to name the scene appropriately.

TIA!

Edited: I figured it out by fumbling around in 2004 a bit... I had to open the Scenes panel to get it renamed. Just thought i'd post the answer if anyone else didn't know how to rename scenes in 2004.

How Cant I Rename A Button Component With Actionscript 2.0
Hello

I am trying to find a way to change the label name of a button component with actionscript 2.0?

Thank you

Anyone Know How To Bulk Rename Library Items?
is there a jsfl out there or some other way I can rename a few hundred mcs in my library and take out the last four characters?

I have thousands of buttons with " - C" as the last four characters that due to another code I'm using now, I need to do away with

I've found various .mpx files and some jsfl that enable me to completely rename library items and add the prefix/suffix of my choice - but what I need is a find/replace type of renaming tool that will let me just take off the last four characters so that when I run my other jsfl file - the one that creates instance names - the instance names won't all have " - C" at the end - rendering an otherwise brilliant piece of code by Mooska completely useless.

Dynamically Rename Instance Names
point of depature:
i have three embedded video, called myVideo0, myVideo1, myVideo2;

i have a function which loads a new movie, when the cursor moves over the video (i.d. if(_root._xmouse > myVideo0._x && _root.ymouse > myVideo0 a.s.o)

i have switch cases which video shall be loaded when you move over, which means:
case1:
myVideo0.attachVideo(stream_ns0);
case2:
myVideo0.attachVideo(stream_ns9);
a.s.o.

then I have a function so that when you click on the Video, the next myVideo1 will be the one where the mouse will work.

as a result i have 3 switch cases, 3 mouse functions for every video because of _x and _y.

How can I do it dynamially, like myVideo+number1

Please help me!

/Pukki

Recorded A Stream, But Can't Rename The Resulting Flv
I have a simple server-side app that creates a Stream, creates a NetConnection, and then plays a live stream from that NetConnection. I record the resulting stream into a file, say "recordstream.flv"

When I get an UnpublishNotify, I stop recording. When I see NetStream.Record.Stop, I create a File object that points to recordstream.flv, and try to rename it to a different filename with File.renameTo().

This worked in FMS2, but not in FMS3. In FMS3, I get an error that the renameTo() failed. Interestingly, copyTo() the same new filename works, so it is not a directory protection issue or something like that. It appears that FMS3 is forbidding me from fiddling with the file; File.canRead returns false on the file. Is there any way to get FMS3 to release the file? Or should I give up and just use copyTo()?

Rename Button In Magnetic Menu (how To)
magnetic menu names
Hi,

Just starting Flash actionscripting.
I was wondering how to change the names of the buttons from
the magnetic menu that can be downloaded from this site in the
'cool' .FLA section. :
http://www.ultrashock.com/cgi-bin/flas/jump2.cgi?ID=116

It will be something with var-names and array. But i just can't figure it out.
Can someone help? PLZ. HELP

Greetz & THNX

Possible To Rename Movie Clips Created Using AttachMovie ?
Basically i'm setting up a psuedo shopping cart and each time a user adds something to the cart a new MC is attached from the library and then the data is filled in.

That's fine.

The tough part is when they are removing the items. Everything works perfect if they only remove 1, after that I run into trouble and here is why:

The dynamically loaded MCs have a name like item1, item2, item3, etc. When the delete function is called it checks what itemID was called and it finds the itemIDs that are after that one until it reaches the total like this:

code:
while(itemNumber <= totalItems){
cartHolder["item_mc"+itemNumber]._y = cartHolder["item_mc"+itemNumber]._y - itemDemo_mc._height;
cartHolder["item_mc"+itemNumber].itemNumber_txt.text = itemNumber-1;
set(cartHolder["item_mc"+itemNumber], cartHolder["item_mc"+(itemNumber-1)]);
nextY = nextY - itemDemo_mc._height;
itemNumber++;
}


So once that happens everything is fine, but the problem is those MCs that moved up still have the same instance name and they need to be renamed to that a) new cart items goto the bottom b) if they decided to delete something else the instance names wouldn't line up anymore. For example if I had 4 items and deleted the second one I would have 3 left in the right spots but the instance names would be item1, item3, item4. I would want to rename item3, item4 to item2, item3 so that the script can continue to work.

It can't be impossible I just don't know how to do it LOL.

Thanks in advance for your help, this one is a doozy!

Library Conflict / Automatic Symbol Rename?
Hello,

I have a movie ,o and wanted to copy a frame from another movie to the first one.
So , i get the usual library conflict, which asks me if:i want to replace the symbos or not.
This is dueto the fact that the sysmbols have the same name.

Now , i was wondering if there is a possibilty to rename those symbols automaticaly when this duplicate message arrives?

Is there a plug-in or something which could auto-rename symbols.
Too avoid renaming 300 symbols 1 by 1

Thak you

Batch Rename Of Flash Library Items?
Is there a method, technique or third party item that will allow you to batch rename items in a Flash library?

So, "mcHappy" becomes "mcHappy10-2".


Thanks,

Loren

Open File From Flash, Rename And Save
I'm working on a flash application, not web based. I would like to be able to open a JPG file from flash by browsing a users computer; then rename the file and save it to a different directory.


Thanx in adavnce!!

Local File Locked Cannot Update, Rename, Change
I have 2 swf files... the main.swf loads the secondary.swf

main.swf is and will run on my local computer in the standalone flash player.

When main.swf loads secondary.swf all is well except secondary.swf is locked on my local file system, I cannot rename, delete, or overwrite it as long as main.swf is running.

I would like main.swf to load secondary.swf and then close the file, seems simple!! however I have had no luck in succeeding....

I am using the standard methods for loading URLRequest and Loader.

Any ideas!?

Rename And Place Icon On Title Bar Of Flash Exe File Problem
How to rename the title bar on Flash project file (.exe) and replace the flash icon with my own icon file?
Thank you very much!

On HitTest To A Movieclip(a) By Movieclip(b)i Want To Attach Another Movieclip(c) To
on hitTest to a movieclip(a) by movieclip(b)i want to attach another movieclip(c) to movieclip(b)which is in the stage,so how to do it??
can anybody help on this???

? Resize Stage To Dynamically Match External Movieclip Loaded Into Empty Movieclip
Hi all,
Does anyone know how I can resize the stage to match the size of an external graphic/movieclip which is loaded into an empty movieclip,
thanks

? Resize Stage To Dynamically Match External Movieclip Loaded Into Empty Movieclip
Hi all,
Does anyone know how I can resize the stage to match the size of an external graphic/movieclip which is loaded into an empty movieclip,
thanks

? Resize Stage To Dynamically Match External Movieclip Loaded Into Empty Movieclip
Hi all,
Does anyone know how I can resize the stage to match the size of an external graphic/movieclip which is loaded into an empty movieclip,
thanks

#1009 Error Movieclip Inside Movieclip Changing The Alpha Property
Problem:
I'm getting this "TypeError: Error #1009: Cannot access a property or method of a null object reference."
What's happening in the flash file is that I've got a movieclip inside a movieclip and when you roll over one of the movieclips the alpha setting for the movieclip inside the initial movieclip is set to 1, then it transitions out back to 0 over a period of time.

var myTween:Tween = new Tween(event.target.parent.ripple_mc, "alpha", Strong.easeOut, 0, 100, 24, false);

It seems to be random but eventually after rolling over the several movieclips on the stage the error comes up. Sometimes the alpha setting stops working and will continue to be visible even though it should have stopped and be invisible after 24 frames.

Would love some help on this.

Cheers

#1009 Error Movieclip Inside Movieclip Changing The Alpha Property
Problem:
I'm getting this "TypeError: Error #1009: Cannot access a property or method of a null object reference."
What's happening in the flash file is that I've got a movieclip inside a movieclip and when you roll over one of the movieclips the alpha setting for the movieclip inside the initial movieclip is set to 1, then it transitions out back to 0 over a period of time.

var myTween:Tween = new Tween(event.target.parent.ripple_mc, "alpha", Strong.easeOut, 0, 100, 24, false);

It seems to be random but eventually after rolling over the several movieclips on the stage the error comes up. Sometimes the alpha setting stops working and will continue to be visible even though it should have stopped and be invisible after 24 frames.

Would love some help on this.

Cheers,

Sarge

Control A Nested MovieClip From A Button Component Inside A Seperate MovieClip.
I am a beginner in using Flash and Action Scripting.

This is the Scenerio:

I want to control a movieclip that is inside of another movie clip.
I control it from a button component that is inside of a seperate movie clip.

test = button component instance name
test1 = function
test2 = Movieclip instance name
test3 = Movieclip instance name
testbutton = movieclip name where button component is located

I am able to control a movieclip on the main timeline with the following AS 3.0:

test.addEventListener (MouseEvent.CLICK, test1);
function test1(event:MouseEvent):void
{
event.target.root.test2.gotoAndPlay(2);
}

I want to control a movieclip inside MovieClip1.

I tried this:

test.addEventListener (MouseEvent.CLICK, test1);
function test1(event:MouseEvent):void
{
event.target.root.test2.test3.gotoAndPlay(2);
}

The movie loaded fine when I tested but got this error when I pressed the button:

TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_fla::testbutton_26/test1().

Please help!!!!!!!!!

MovieClip.onRelease = MovieCLip.Protoype Function Fails To Execute Properly
Dear all,

I created a simpe function:

MovieClip.prototype.hiMe = function(me, theRest)
{
//declare the format colors white and grey
formatMe = new TextFormat();
formatMe.color = Colors[0];
formatMe.font = "Adventure Subtitles";

formatTheRest = new TextFormat();
formatTheRest.color = Colors[1];
formatTheRest.font = "Adventure Subtitles";

// assign grey to theRest
for (i =0 ; i < theRest.length; i++)
{
theRest[i].tfield.setTextFormat(formatTheRest);
}
// make the me white
me.tfield.setTextFormat(formatMe);

}

when I call it (bar[0] is an array of objects)
bar[0].invar.onRelease = hiMe(bar[0],bar);

it executes on load regardless of the onRelease eventHandler and the ownards it does not execute when exciting the event.

does somebody know why this may be?

Cheers

DDT

MovieClip.onRelease = MovieCLip.Protoype Function Fails To Execute Properly
Dear all,

I created a simpe function:

MovieClip.prototype.hiMe = function(me, theRest)
{
//declare the format colors white and grey
formatMe = new TextFormat();
formatMe.color = Colors[0];
formatMe.font = "Adventure Subtitles";

formatTheRest = new TextFormat();
formatTheRest.color = Colors[1];
formatTheRest.font = "Adventure Subtitles";

// assign grey to theRest
for (i =0 ; i < theRest.length; i++)
{
theRest[i].tfield.setTextFormat(formatTheRest);
}
// make the me white
me.tfield.setTextFormat(formatMe);

}

when I call it (bar[0] is an array of objects)
bar[0].invar.onRelease = hiMe(bar[0],bar);

it executes on load regardless of the onRelease eventHandler and the ownards it does not execute when exciting the event.

does somebody know why this may be?

Cheers

DDT

#1009 Error Movieclip Inside Movieclip Changing The Alpha Property
Problem:
I'm getting this "TypeError: Error #1009: Cannot access a property or method of a null object reference."
What's happening in the flash file is that I've got a movieclip inside a movieclip and when you roll over one of the movieclips the alpha setting for the movieclip inside the initial movieclip is set to 1, then it transitions out back to 0 over a period of time.

var myTween:Tween = new Tween(event.target.parent.ripple_mc, "alpha", Strong.easeOut, 0, 100, 24, false);

It seems to be random but eventually after rolling over the several movieclips on the stage the error comes up. Sometimes the alpha setting stops working and will continue to be visible even though it should have stopped and be invisible after 24 frames.

Would love some help on this.

Cheers,

User Input Creates MovieClip Made Of MovieClip Symbols
Hello. I need some help either with my situation or with the search terms I'm using to try to find an answer.

I am using Flash MX Pro 2004.
I have drawn letters A-Z in Flash in two different styles (for example one that is furry and another that looks like metal). I would like users to select a text style (furry or metal) and enter text via text input field. When they have pressed an Enter button I would like the word to appear made up of the drawn symbols that I created.

I don't want to make an actual font. Any ideas on search terms to find the sort of thing I am looking for? Here's some that I've tried already:

convert text to symbols -- I get tons of results talking about putting textfields in symbols.

user input to symbols -- almost same results as above

custom fonts using symbols -- I get results talking about how to embed fonts and making text bold, italic, etc. Also not what I'm after.

All help is appreciated. Thanks in advance.

Scott

Receive Full Path To A MovieClip, Return A MovieClip Reference.
Hi, I got this function...

Code:
Function getMCPath(path:String)
{
var MC:MovieClip;
MC = eval(path)
return MC;
}

If I send "_level0" this will return _level0, but if I send "_level0.myMC" this will return undefined.

what should I do in order to get full path to _level0.myMC

Thanks in Advance,
DMZ

How To Hide My Current Movieclip And Display 2nd Dynamically Created Movieclip?
I have a movieclip in which there is an image create this movieclip dynamically by reading the oath of the image from file and play an effect. its working fine, now i want to hide this MC after its effect is ended and then dynamically want to create the other MC and similarly so on. how to do that. my code is as below:

var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);

lv.load("data.txt");
var my_lv:LoadVars = new LoadVars();
my_lv.load("data.txt");
my_lv.onLoad = function(success)
{
if (success)
{
if(this.pic1!=undefined)
{
var ImgMc:MovieClip = createEmptyMovieClip("ImgMc", getNextHighestDepth());
_root.mcLoader.loadClip(this.pic1,_root.ImgMc);
//Some effect on ImgMc

//how to hide the ImgMc whe nits effect is played and then load another image in a movieclip and so on
}
}
}

Load Movieclip From Libary Into Another Blank Movieclip On Stage (URGENT PLEASE)
hi all i just need to know how to load a movieclip into a blank movie clip all in the same movie?! please help many regards peter thanks in advance!

Movieclip Rollover Effect Disables Internal Movieclip Buttons
Is it possible to have a movieclip rollover effect with another movieclip inside of it that is able to be clicked and do what it's scripted to do?

Let me try to get specific...


Movieclip 1 -- Has www.kirupa.com/developer/mx2004/button_effect.htm applied

Inside of Movieclip 1 --> Buttons that appear visible when you rollover the menu (it comes out of eases into view)

These buttons inside are not being allowed to be pushed because from what I can gather, the complex rollover is not allowing anything to be activated except the rollover effect.

So here's a diagram:

Rollover Movieclip 1 --> Eases it's bottom part up revealing 4 buttons --> These buttons when clicked are supposed to do an action --> Buttons cannot be activated for some unknown reason.

Can anyone help me out? I'm out of ideas after working on this for the past hour or so. If you need any extra info or materials, let me know; I'm sitting right here working on this problem haha.

-Indecisive

Problem With OnRelease For MovieClip Inside Draggable MovieClip [Flash Pro 8]
I have a movie clip, circle_mc, and in it is embed another movie clip, point_mc. I made the circle draggable with this:


Code:
circle_mc.onPress = function() {
startDrag(this);
};
circle_mc.onRelease = function() {
stopDrag();
};
and that part works fine.

I also want to be able to click on point_mc which is within the circle_mc movie clip. So, I added this:


Code:
circle_mc.point_mc.onRelease = function() {
trace("click was successful");
}
This does not work, and I'm pretty sure it is BECAUSE its parent clip is draggable and therefore has its own onRelease function. (If I comment-out the drag code, then the other code works as intended.)

Is there any way to do this or am I out of luck?

How To Load Image Into Movieclip Inside Movieclip That Is Dynamically Created?
Hello Kirupa Cats!

I am building a menu from an XML file, and I'm cool with cyclying thru the xml data to create menu items.

For every menu item in my XML file, I'm using attachMovie to insert a movie clip called menuitem from my library into a movieclip called menuholder. This works no problem, my menuholder movieclip is poplulated with as many menuitem movieclips from the library as designated by the xml data.

However, inside the library movieclip called menuitem, I have another movieclip on its stage, called mc_menuImage. I want to load an image into that movieclip, and I'm taking the URL for the image from the XML data.

My problem is I can't seem to figure out how to fully identify the movieclip mc_menuImage to load the image. It may have something to do with the fact that the library movieclip is being loaded dynamically, but the movieclip inside the library movieclip exisits pysically on the stage. I don't know...here's the code I'm working with:

THE CODE:

var xmlMenu:String = "menu.xml";
menuholder = createEmptyMovieClip("menuholder", -1);

var xmlMenuData:XML = new XML();
xmlMenuData.ignoreWhite = true;
xmlMenuData.load( xmlMenu );
xmlMenuData.onLoad = function(loaded) {
if (loaded) {
var mImage:Array = new Array();
var mRootNode = this.firstChild.childNodes;
totalMenuItems = mRootNode.length;

// fill array
for (var i = 0; i<totalMenuItems; i++) {
mImage.push(mRootNode[i].attributes.menuImage);
}
}

//make the menu
for (var i = 0; i<totalMenuItems; i++) {
var menuitem = menuholder.attachMovie("menuitem", "menu"+i, i);
menuitem.id = i;

/* now here I thought I could just do this: */
menuitem.mc_menuImage.loadMovie(mImage[i]);
/* but that doesn't work... */

};


When I trace menuitem I get this: _level0.menuholder.menu0, _level0.menuholder.menu1, etc, so I figured the syntax menuitem.mc_menuImage would identify the movieclip inside menuitem, but to no avail. Maybe it has something to do with levels, I'm not sure...

So I don't know, any suggestions? Thanks so much!!!

How To Scale The Movieclip Without Transform The Text Inside That Movieclip Uisng As
hi
how to scale the movieclip without transform the text inside that movieclip uisng actionscript


thanks in Advance

Wait Till Movieclip Gets To Particular Frame Then Play Another Section Of Movieclip
Hi,

I'm trying to reconstruct http://www.kswissfreerunning.com/AU/ with movies of my own.

Basically I have an array that contains the letters the user enters and I have the movie in a separate moviecilps with labels representing the letters.

I have a (what I think) logical set of code here to run through each letter in the user enters:

Code:
for(var k=0; k < letterArray.length; k++){
movie_mc.gotoAndPlay(letterArray[k]);
}
The problem is that it will only play the last letter the user enters. How am I able to make my flash wait till it gets to the end of a section of the movieclip, then play the next one, without it rushing to go straight to the last letter.

My pseudocode looks like this:

For the length of the array
play the next letter
when that letter movie gets to the end
play the next letter

Thanks in advance.

Copyright © 2005-08 www.BigResource.com, All rights reserved