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




Passing Variables From Movie To Movie



Hi Guys

This may seem a realy silly question but how can I pass variables from one flash movie to another?

I am working on a site which requires a shopping trolley. As a visitor views the site they can add information to a basket. This is one flash movie. Then there is an enquirey form. This is a second flash movie. The variables from the first needs to be passed to the second.

These two movies are controlled via a flash menu (third flash movie).

all movies are on a framed site which has a top frome (top) and a bottom frame (info) the menu is always visible in top and I need to control flash movies one and two in the bottom frame (info).

Thanks in advance fro any help with this.

rangerover



DevShed > Flash Help
Posted on: May 1st, 2003, 05:12 AM


View Complete Forum Thread with Replies

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

Passing Variables From Loader Movie To Loaded Movie, Flash Satay Method
I like the Flash Satay method for its clean integration and standards-compliance, however there are still some things I can't manage the way I want to... I'm trying to implement a working method to pass variables from the loader movie to the loaded movie. As you may know, the Flash Satay method uses a small SWF file which uses a bit of code to load the desired movie, all in order to allow IE browsers to retain streaming capabilities when rendering Flash content through the <object> tag. Basically it's just a small file with the following AS2 code in the first frame:

loadMovieNum(path, 0);

This means the c.swf file is ENTIRELY replaced at level0 with the desired movie, and any variables that were passed to the loader movie turn to smoke.

I'm trying to generate a querystring using all other variables the loader movie receives, and pass that along with the filename for loadMovieNum. This seems to be working very well in most cases, but whenever there's a URL in the querystring (even URLEncoded), BAM, everything turns to lowercase... EVERYTHING... here's an example:

c.swf?path=banner.swf&myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER

this successfully loads banner.swf in place of c.swf, with the following correct querystring appended

banner.swf?myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER

If I try:

c.swf?path=banner.swf&clickTag=http://www.myurl.com/&ANOTHER=variable

this successfully loads banner.swf in place of c.swf, but I end up with lower-cased querystring (all of it!!):

banner.swf?clicktag=http://www.myurl.com&another=variable

what happens to my capital letters?? I need these to remain case-sensitive as there is no saying how the loaded movies are programmed. The generally accepted convention for "clicktag-enabled" banners is to use _root.clickTag as the link button's URL...

Even URL-encoding the URL doesn't change this

For reference, here's the HTML snippet and ActionScript 2 code I use:
---- html ----

<object type="application/x-shockwave-flash" data="c.swf?path=banner.swf" width="728" height="90">
<param name="movie" value="c.swf?path=banner.swf" />
<param name="FlashVars" value="clickTag=http://www.google.com/" />
</object>








Attach Code

----c.swf----

var queryString:String = "";

for (var i in _root){
if (i != "path" && i != "queryString" && i != "$version"){
if (queryString) { queryString += "&"; }
queryString += i + "=" + _root[i];
}
}

if (queryString != "") {
loadMovieNum(_root.path + "?" + queryString,0);
} else {
loadMovieNum(_root.path,0);
}

























Edited: 10/01/2008 at 10:40:48 AM by Inzoum

Passing Variables From Movie Clip To Loaded Movie
I've got a movie clip which contains a button in it. This movie clip contains a few dynamic text fields and is duplicated 20 times. When clicked the button loads a movie into a specified target. Is there a way to send the movie clip's variables to the loaded movie?
Thanks very much.
-Mike

Passing Variables From Movie To Movie
I have a page which send a Variable to a flash page. This flash page gets the varialbe fine and this page is used to determine if the user has flash or not.

Im going to use the following line to determine the flash the only problem is I can not get Variable Jackpot to hold its numeric value to the page called alert.

getURL ("Alert.asp?Name=Jackpot", "_self");

If I send varialbe using get then the Var "Name" is equal to "Name=10" all I want it to be is "10" Is this possible

Passing Variables From Movie To Movie
Hi,

I have a game with three separate parts. What I need is put variables in the first part for name and score, and passing them as I go from part to part. At the end I have to make a "HALL OF FAME" with the name and score writen on a page.

How do I put and pass a variables from one .swf to another?

Thanks

Passing On Variables From One Movie To The Other
Hi there,

I would like to load a movie into
my main.swf (no problem here)

I need to enter stuff into a variable
based in the loaded movie

loaded movie unloads and we return to main.swf

At the end of the main.swf I would like to display
the value of the variable in the loaded movie


Thanks

Passing Url Variables To A Movie
hi,
was wondering if it was possible to pass variables to a movie by attaching them to the page url?
i have a main movie that loads smaller clips and its these clip names i want to pass on

Passing Variables From One Movie To Another
If I have a main movie (movie1) that calls other movies (movie2, movie3) within it, how do I send a variable from one to another embeded movie?

For example send a variable from movie2 to movie3. Should I store the variable into the main movie first then movie3 can call thre variable from there?

like this?
movie2
------
_root.id = "10";

main movie
----------
loadMovie("movie3", 1); // loads movie3 directly onto same level as movie2 was.

movie3
------
id = _root.id;

This doesn't seem to work? Am I close to the answer?

Passing Variables To Another Movie
Hi Gang,

I need to send the variables from the flash form in my movie form.swf (in form.html )and then pass that to another movie which is called end.swf a (in end.html)

... basically how do you do that?

Cheers

Planet House

Passing Variables To A Movie
This is probably something really simple, but I can't seem to get it to work. At the end of a presentation, i am having the user enter their name in a text field on the main timeline where var=name. Then hitting a print button that has the action to print a movie with an instance name of 'cert'. The movie contains a certificate of completion. I have it in a movie because i would rather not have teh viewer see it (it is off the stage and prints fine).

I am trying to get the name from the main time line to show up in the certificate. I've tried just about everything I can think of. For the var in the 'cert' movie, I'v tried '_level0.name' and I've tried '_root.name' and a million other combinations, but I just can't get the name to show up in the movie. Any suggestions?

Passing Variables Within A Movie
Hi,

I have a few questions regarding to the passing of variables in a flash movie.

Currently my flash movie calls a MYSQL server using PHP. I was wondering if the data returned from that PHP when stored (I use $userid in the group of frames) can be called later on in another group of frames (on the same layer in the same file).

If it isn't able to be called, how would i go about passing the variable from the frame with the variable to another frame which I need the variable for?

Another question is when MYSQL returns to PHP an array of results (representing all the rows from a column (lets say user_id's)), can we pass this entire array to the flash movie? If so, how is this done?

Lets assume the array of results in php is called $row = mysql_fetch_array(etc etc), am I able to use 'print "results = $row" to return it to flash?

Also if it is able to be done, how (in flash) can I call each of the elements (in C it's array[0] and so on)?

Help would be greatly appreciated

Passing Variables Within The Same Movie
Hi,

I have a few questions regarding to the passing of variables in a flash movie.

Currently my flash movie calls a MYSQL server using PHP. I was wondering if the data returned from that PHP when stored (I use $userid in the group of frames) can be called later on in another group of frames (on the same layer in the same file).

If it isn't able to be called, how would i go about passing the variable from the frame with the variable to another frame which I need the variable for?

Another question is when MYSQL returns to PHP an array of results (representing all the rows from a column (lets say user_id's)), can we pass this entire array to the flash movie? If so, how is this done?

Lets assume the array of results in php is called $row = mysql_fetch_array(etc etc), am I able to use 'print "results = $row" to return it to flash?

Also if it is able to be done, how (in flash) can I call each of the elements (in C it's array[0] and so on)?

Help would be greatly appreciated

Passing Variables From On Movie To Another
I have 6 text boxes in one movie that I need to send those variables to another movie. How would I do this? I am using flash 8.

Thanks in advance for any and all help!

Passing 2 Variables To Movie Via ASP...
Alright....here goes.

I am passing two variables (buttonTitle and buttonLink) to my flash movie via query in the flash movie's EMBED and OBJECT tags on my ASP page.

So the query will return the 2 variables to the movie and I have a dynamic text box named "buttonText" that gets populated with the buttonText variable passed in.

The problem I have is that I can't figure out how to make the "link" variable attach to the button and actually work like it's supposed to!!

I know they are both getting into the movie properly, I just don't know how to get the link to work??

Any help is SOOOOOO greatly appreciated!

Thnx.

Passing Variables From One Movie To Another
Hi, is there a way of passing variables from a loaded movie into a new loaded movie??

e.g.

I have the base movie, and in that is loaded news.swf.

Is there anyway of passing variables from news.swf into the new news_detail.swf movie??

I did think of the global var but don't see how to use it.

Any ideas??

Regards,

Martin

Computing Help And Info:
http://www.webrevolt.biz

Passing Variables From Parent Movie
I have a parent movie in which I load sequentially a number of other movies.
On my parent movie I have a variable (language).
I want my child movies to "read" the value of that variable when loaded.
Can anyone help me do it?

Thanx...

xxx/X.

Passing Variables From One Flash Movie To Another.
I'm sorry if this question has been asked before - I need to send 5 variables set in one flash movie, to another flash movie that will be viewed after it. Could someone point me to a tutorial or start me in the right direction to get this done?

Thanks much!
adam
http://www.thebadlans.net

Passing Variables Form One Movie To An Other
I have a Flash-movie with a variable. I want to load this variable into another movie. How can i do this in Flash 4?

Passing Variables Between Movie Clips
I have tried and tried and can't get it right. Could someone please show me some code on how I can pass a variable from one movie clip to another, or maybe call for the variable from another movie clip. Bascally I am have a movie clip with several stops on the timeline. I put an "if" statement on each of the stops checking to see if the variable "pause" is a 1 or 0. If pause = 1, then stop. Now I need to set the variable from a button, off the root, buried several movie clips deep.

If anyone can help me, I would greatly appreciate it.

Thanks

Passing Variables To Loaded Movie
I have Movie1 & Movie2 which contains a MC inside it buttons coded with:

on (release) {
_parent.loadMovie("Moviea.swf");
}

till the last button coded with:

on (release) {
_parent.loadMovie("Movied.swf");
}

so i want to pass a variable with this trigger as i want to put in the Movies from Movie a to Movie z a back button to go back to Movie1 or Movie2, depends on from where they loaded Movie1 or Movie2.

i wish you understand what i mean,
ask me if you didn't.

Thanks

Passing Variables To A Loaded Movie
I'm loading a movie using loadMovie() method. How can I pass variables to it from the movie that is loading it?

Thanks.

Passing PHP Variables Into Flash Movie?
I created a mysql database which stores page content.
Then created a php page for a user to change that page content.

My next step is to get that page content from the database into a textarea of a Flash movie (page)

So I have a php page that reads the database and takes an array passing the data into a variable.

I need to pass the variable into my flash movie now and have the textarea display its string content.

Any help would be greatly appriciated.

Patrick

Passing Variables Between Movie Clips
ActionScript 3.0 question...

The answer should be pretty easy to find, but I'm kinda stumped. I'm creating an asteroids clone for a practice project, and I'm instantiating all the objects dynamically from the library. I need a way to tell one movie clip (the ship) to pass a couple of variables (x and y rotation) to another movie clip (the shot), so that the shot can know the rotation of the ship which is needed to calculate the shot direction. I was under the impression you could just do:

myClip.var1 = var2;

but that doesn't seem to work.

Thanks in advance for any help.

Passing Variables To A Loaded Movie
I have a navigation bar that I have loaded into level3 of my main movie. When the user clicks one of the navigation buttons they should be taken to a specific point on the timeline of a movie that I have loaded into level2 of my main movie. Currently it will only go to the specified frame if the button is pressed a second time.

Here is the action I have for the buttons...

on (release) {
frame = "af"; // this value is different for each button
unloadMovieNum (2);
loadMovieNum ("globes.swf", 2, "GET");
}

On the first frame of my level2 movie (globes.swf), I have the following action to check for the value of "frame" and then take the appropriate action

if (frame != "") {
gotoAndPlay(frame);
} else {
gotoAndPlay("rotate");
}

I am really puzzled on how to accomplish this.
Any help is greatly appreciated.

Passing Variables To Child Movie
I'm passing variables into my main movie through the query string and I need to know how to reference them from the child movies I'm calling in. Currently these variables are comming undefined in the child movies. I know that the query string method is the only one that will work in this situation. Other methods do not suit my situation e.g external text file or xml document. Please help!!<

Passing Variables To Flash Movie
i discussed this in another forum that went dead and off topic, i still haven't solved my issue.

i have a movie with is loaded with a preloader, an animation, and last frame is the final layout with a menu. what i'm trying to do is on the index page i want the movie to play from start to finish. on pages after that other links of the website, i want it to go straight to the last frame, WITHOUT reloading the movie into cache again.

So far i've done this with a variable passed to the movie, (movie.swf?isIndex=1), the movie checks if this is set to value 1, if so gotoAndPlay(lastFrame);

and this works, because on index it plays the whole movie when, on pages i've given it that isIndex value, it goes to the lastFrame frame label, BUT it reloads the entire movie again. (because it detects another variable value and things it needs to reload the whole movie)

my problem: how do i tell it different? how can i make this movie load once, and on different pages, make it play from last page.

PS: anchor doesn't work.

Passing Variables From A Flash Movie
I was wondering if any one knew how to pass variables from a Flash movie to an HTML page or PHP page. I am looking for that code.

Passing Variables From A Flash Movie
I was wondering if any one knew how to pass variables from a Flash movie to an HTML page or PHP page. I am looking for that code.

Passing Variables To A Duplicated Movie
just wondering if theres a way to pass variables to a duplicated movie.
Ill be creating duplicate movies very fast (about 20 per second)
and want them each to have differrent variables to work with.

duplicating with that , and i want to pass 3 variables to the new movie clip

dot.duplicateMovieClip("dot"+currdot, this.getNextHighestDepth(), {_x: xpos, _y:ypos});

Passing Variables Between Movie Scripts
Hi guys.

This might be a silly question but as i'm new to flash and have searched the internet with no avail I was wondering if anyone can help please.

I am using a dataGrid with an XML connector to simulate a mobile phone inbox. I need to add a clickPress() to the dataGrid so that when the user clicks a row, a new movie script appears with the data from that row added to text boxes etc (to simulate the reading of a message)

Is there anyway to pass the values from the row to the other movie script to be displayed in text boxes.

I have retrieved the correct values and stored them in variables (checked by tracing to the output screen) but do not know how to pass these to another movie script

Any help would be much appreciated
Thanks
Stew

Passing Variables To A Duplicated Movie
just wondering if theres a way to pass variables to a duplicated movie.
Ill be creating duplicate movies very fast (about 20 per second)
and want them each to have differrent variables to work with.

duplicating with that , and i want to pass 3 variables to the new movie clip

dot.duplicateMovieClip("dot"+currdot, this.getNextHighestDepth(), {_x: xpos, _y:ypos});

Passing Variables To A Loaded Movie
I have a navigation bar that I have loaded into level3 of my main movie. When the user clicks one of the navigation buttons they should be taken to a specific point on the timeline of a movie that I have loaded into level2 of my main movie. Currently it will only go to the specified frame if the button is pressed a second time.

Here is the action I have for the buttons...

on (release) {
    frame = "af"; // this value is different for each button
    unloadMovieNum (2);
    loadMovieNum ("globes.swf", 2, "GET");
}

On the first frame of my level2 movie (globes.swf), I have the following action to check for the value of "frame" and then take the appropriate action

if (frame != "") {
    gotoAndPlay(frame);
}  else {
    gotoAndPlay("rotate");
}

I am really puzzled on how to accomplish this.
Any help is greatly appreciated.

Passing Variables To A Loaded Movie
I want to know if it's possible to send the variables in a _root file to a loaded swf in a movieclip (where the loaded movie takes action according to the variables that has been sent it).

Setup:
1. blank.swf - has the frame action (see below) and contains the navigation movieclip (which is just a place holder)
2. dynamic.swf


FRAME ACTION:
//variables
frame = "Services";
frame = "Products";
//loads dynamic.swf into navigation movieclip
loadMovie ("dynamic.swf", "navigation");
stop ();

============================

I already figured out that I can add ActionScript to the navigation movieclip that uses the variables (set in the frame action) and have it affect the dynamic.swf.

============================

I WOULD PREFER to keep the ActionScript (telling it which frame label to go to) in the dynamic.swf but use the variables from blank.swf to make the choice.

So again, if someone has an idea on how i can pass the variables which are set in the blank.swf to the dynamic.swf PLEASE let me know.

Thanks in advance.

Passing Variables To A Loaded Movie
Hi!

Given two SWFs A & B, where A uses loadMovie to load B, is it possible to for SWF B to recognize global variables set by SWF A?

I'd like SWF A to specify at which frame number SWF B should play when it loads.

Thanks in advance for the assist! :)

Passing Variables To A Loaded Movie
Hello,

I'd like some help..

I need to pass some variables to a loaded movie in my main movie.. I have "mc.loadMovie(url, "GET")".. I've tried the GET and the POST, but I don't know how to read the variables, that are in "mc", on the other side (the loaded movie side..)

Thank you.

[[]]

Passing Variables From One Flash Movie To Another..?
Hi there,

I have two flash movies, both are timelines one is the full version of the timeline and the other is a small timeline movie that only has a few dates on it.

I want to be able to allow a user to click on a date from the small timeline and be taken directly to the information for that particular date in the main timeline.

Is this possible? Can I use variables or something along those lines.

before you ask, NO the two movies cannot be combined into one movie because of the need to embed html and static content around the mini timeline!

Any help would be appreciated!

Thanks everyone!

Passing Variables To A Flash Movie - Possible ?
HI

this is prob. a stupid question but here it is:

is it possible to pass variables to a flash (5.0) movie ?

the task is to have a flash movie that does a fade-in of some kind of sub-head for a web-site. for 50 pages, i dont want to make 50 flash movies - only one wich takes the text to display as a variable , and displays it fading in.

thx in advc, red.z

Passing Variables From A Php Script To A Flash Movie ?
Hi all,

I am trying to pass a variable from a php script to a flash movie without success. Can anyone help ?

the php script retrieves the variable from a database. When I 'echo' the contents of that script the variable has been successfully retrieved from the database.

At the end of the php script I have the line:-
print "text=$text";
this outputs:-
text= whatever the content is

In the flash movie I have the following action attached to the first frame:-

loadVariables ("http://www.whatever/Anthony/received.php", "_root.text", "GET");
stop();

I have a dynamic textfield called text.

WHY WILL IT NOT LOAD THE VARIABLE TEXT INTO THAT FIELD????
When I use a textfile the variable passes accross no problem.

Any help would be greatly appreciated. thanks.

Passing Variables From Html To Flash Movie
Hi,

When I load my game I want certain variables to be automatically passed to it. The movie is embedded into a html page created by asp, so the variables will be passed into the html easily. I just don't know how to get them from the html to the Flash.

I realise that once loaded I could use loadVariables to make an asp call, but in this case the asp has created the html page containing the variables to start with and I just want to read them in.

Hope this makes sense and somebody out there can help!

Thanks

Andy B

Passing Variables From One Movie To Another When They're On Seperate Pages
Is there any way I can set a variable in one flash movie then pass it to another one when they're on different HTML pages?

Any help for this is greatly appriciated

-Fireborn

Trouble With Passing Variables Into Movie Clips
Hi there,

I know there's a wealth of information about loading variables on Flashkit, but I'm still stumped here. Ok from the top :

I'm using Flash 5. I'm loading some variables from a text file into the root of my movie. The user then fills out a form which processes the external variables, hence creating a new set. There is also a separate one-field form on the same page, which the user may fill in if he wishes to email the results to himself, with a button to send to an external ASP file.

The problem lies here - I want the email form to be a separate movie clip, as it behaves on a different timeline from the initial form. However, I'm having a nightmare trying to pass the processed variables into this Movie Clip. I could, of course, adapt the root timeline and have all operations at the root; but that's wimping out. And, of course, you never learn anything unless you persevere.

And I imagine the answer is simple, and I'll take no pleasure in kicking myself when it is presented. Oh well.

Love Osca xxx

Passing Variables To A Duplicated Movie Clip?
Ok, let's say that I make a movie clip on the stage that has actionscript on frame 10 that moves the clip across the screen from left to right. Inside the clip is a little bit of actionscript that also tells the clip how fast to move depending on the variable 'speed'.

Now, in the main timeline I make 5 more copies of that clip with duplicateMovieClip. Let's say they are called move1, move2, move3, and so forth. To move which clips I want in actionscript on the main timeline, I just put in something like move3.gotoAndPlay (10);. To set the speed for ALL movie clips I just type in a global variable for speed like _global.speed = 5;

Ok, that all works fine and dandy, but what if I want to send a different speed to each movie clip. Making a global speed variable would change the speed for all of them, and since I am using duplicatedMovieClip to make the extra clips, they will all use the same variable (speed) to control how fast they move across the screen. Is there a way I can pass a different variable that speed might equal for each seperate instance?

Passing Variables Array To A Child Movie
I'm trying to pass a variable defined by an array to a movieclip loaded externally. The array I used in the parent movie is:


Code:
var s = ",some,string,";
// array to hold to splited string
var ax = new Array();
ax = s.split(","); // split the string
var n = ax.length; // number of elements in the array
for (var i = 1; i < n - 1; i++)



of course now I get:
ax[1] = some
ax[2] = string

but when I try to trace the string of ax[1] from the child movie I get an error.
The code I used to trace the value of ax[1] is:


Code:
trace(MovieClip(this.parent.parent).ax[1]);


This code works fine with variables defined using var but not with arrays.

Any ideas?

Passing Variables To Loaded External Movie
Ok, this problem has beaten me for the last 2 days. It seems to be extremely simple, I am on main movie and I am using MovieClipLoader class to load external movie callMe.swf into movie holder called holder_MC, then from main using onLoadInit or onLoadProgress listeners I can target dynamic text inside callMe.swf as holder_MC.myTXT.text = "blablabla" or I can change frames in callMe.swf by holder_MC.gotoAndStop(5). But HOW TO PASS VARIABLE myVar to callMe.swf so it executes something there? Using holder_MC.myVar DOESN'T WORK!!!!!!!!!!!!!!
Thanks for any help,
Zbynek

Passing Variables To A Flash Movie, Without Embed Tag.
Can someone help me? I would like to pass a variable to a flash movie. Back in the day using the embed tag you could pass a variable to a movie easily (relativily) eg:

<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=""http://macromedia.com/cabs/swflash.cab#version=6,0,0,0""
WIDTH="250" HEIGHT="250" id="flaMovie1" ALIGN="CENTER">
<PARAM NAME=movie VALUE="flaMovie1.swf">
<PARAM NAME=FlashVars VALUE="imageFilename=image.jpg">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<embed src="flaMovie1.swf" FlashVars="imageFilename=image.jpg"
quality="high" bgcolor="#FFFFFF" WIDTH="600" HEIGHT="800"
NAME="flaMovie1" ALIGN TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</OBJECT>

Unfortuantly i can't use that any more because IE will block it as "Dangerous Active X content --- Danger Will Robinson DANGER!"

Fortunatly Kirupa, and his wonderfull web site were able to lend a hand (http://www.kirupa.com/developer/flash8/flash_fix.htm)

producing the following code:

<script type="text/javascript" src="flashobject.js"></script>
<div id="flashcontent" style="width: 800px; height: 600px"></div>
<script type="text/javascript">
var fo = new FlashObject("/flash/ImageHolder.swf", "animationName", "800", "600", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>

How in the name of chunky cheese am i meant to pass a variable to a move clip in that? can anyone help me?

Passing Variables Via POST From A Flash 9 Movie
How would I do this? ANY tips or explanations appreciated.

Passing Variables To Flash Movie Without Reload?
Hi All,

Is it possible to pass variables into a Flash movie, and have the movie recognize this passing and do something, without reloading the page?

Specific example:

Let's say I have a simple Flash movie that displays a static logo, and then next to the logo there's a dynamic text field that displays some text - for simplicity let's say a city name.

So when you first load the HTML page, there's the Flash logo and a default value in the dynamic text field.

Then somewhere in the HTML portion of the page there's a link/Javascript/AJAX bit which, when clicked, passes a new value for that text field - in our example, a new city name.

Is there a fairly straightforward way to do this? Any help/guidance would be awesome!

Thanks.

Passing Variables To A Duplicated Movie Clip?
Ok, let's say that I make a movie clip on the stage that has actionscript on frame 10 that moves the clip across the screen from left to right. Inside the clip is a little bit of actionscript that also tells the clip how fast to move depending on the variable 'speed'.

Now, in the main timeline I make 5 more copies of that clip with duplicateMovieClip. Let's say they are called move1, move2, move3, and so forth. To move which clips I want in actionscript on the main timeline, I just put in something like move3.gotoAndPlay (10);. To set the speed for ALL movie clips I just type in a global variable for speed like _global.speed = 5;

Ok, that all works fine and dandy, but what if I want to send a different speed to each movie clip. Making a global speed variable would change the speed for all of them, and since I am using duplicatedMovieClip to make the extra clips, they will all use the same variable (speed) to control how fast they move across the screen. Is there a way I can pass a different variable that speed might equal for each seperate instance?

Passing Variables From The Main Timeline To A Movie Clip.
Hi. I have (successfully) taken variables from a txt file and had them display in some dynamic text boxes on the main timeline of my movie, BUT, I would like them to show in a movie clip (within that movie) instead of showing on the main timeline/movie. The movie is here (the variables aren't shown there) and what I wanna have done is have the variables load up in the main timeline, but when the user presses the launch shoutbox button, I want the variables to be shown in there, get me? So how would I go about passing the variables from the timeline to that movie clip?
Thanks in advance, Chris.

Passing Variables From Loaded Movies To The Loader Movie
I am loading a swf file into an empty movie clip in the main Flash program (mainApp). I am trying to pass variables by value from the loaded movie to mainApp.

This function is in mainApp:

function read_1_vars(band,qual, lang){
trace("--------------------");
blnBandwidth=band;
blnQuality=qual;
language=lang;
}


This is the code used in the loaded movie to contact mainAPP:

_root.read_1_vars(blnBandwidth, blnQuality, language);


All this code worked just fine when contained in one one single file.

Any ideas? What am I missing? Thanks.

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