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
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-27-2001, 04:31 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Passing Variables From A Loaded Movie Clip To Main?
All,
Not sure why this is beating me up, but it is...
I can't seem to load a movie clip, and then pass some variables from that loaded movie clip back to through stage_mc it is loading into - to the SubClip.
The structure is as follows:
Main
>SubClip
>>Stage_mc
Where the new movie clip is loading into stage.
I need to pass two variables from the loaded clip into the SubClip.
Simple vars to fill some dynamic text in SubClip.
Any help or a push in the right direction would be appraciated.
I've done the whole _root.myvar thing, _parent, and _global.
without luck..
Thanks!
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 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 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 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 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 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.
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 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 Into A Movie Clip On Another Frame With JavaScript? <<<HELP
Hello,
Can anyone tell me how to pass a varaible into a flash movie with javascript. I have the code to take the movie clip to a frame label, but in this case that code does not help.
thanks
-----------TAKE A MOVIE CLIP TO A FRAME WITH JAVA Script___
<SCRIPT LANGUAGE=JavaScript>
function blank() {
javavar = "blank"
document.nav.TGotoLabel("/",javavar);
}
Flash8: Passing Variables When A Movie Clip Loads
I have a function set up on the main timeline of a movie. As the user passes through the various movie clips in the Flash piece, I am passing variables to the function which forwards them to an external web page. This functionality has worked in previous situations where the function was "triggered" by a mouse event (i.e onRelease). I am trying to get this same functionality to work when a movie clip(s) are loaded.
The code I am using at the (movie clip level) is:
onload=function () {
_root.sendVars("variablename","variablevalue");
}
I have tried various iterations with this code both within the move clip itself, and attached to the clip but no luck...
Any clues??
TIA
- Shawn
Passing Multiple Variables To A Movie Clip And Then Back Again To The Right Location
Howdy,
Another tuff one thats killing my brain. I am working on a touch screen interface. I have a heap of variable on the main movie (level0). I also have a keyboard MC that I want to use to edit the variables on the base movie. To edit a variable I click an edit button (lets say of variable "name1") that loads the varibles content(I want to change - ie:"name1") into another varible called "data" on the main MC, and loads the Keyboard MC on to level1. The keyboard MC loads the "data" variable (from the base movie)into a variabile called "nameedit" with in the keyboard MC.
I edit the "nameedit" variable with the keyboard MC and when done I hit an "ok" button which sends the new info inside the "nameedit" variable back to the "data". But it wont go any further... I dont know how to tell the keyboard MC that the info came from "name1" to send it back.
I can make the action of the OK button to send it to the "name1" variable but I would then not be able to use that keyboard MC to edit any other "name" variables
I played around with sending a location as well. so when u hit the edit button for "name3" it send the "3" to another variable that the keyboard MC would pick up as lets say "n". then when i finished editing I can hit "OK" which will send the information back to _level0.name'n' but I cant get this working either..
I can send FLA's if this helps... I'll have to get home first.
THANKS
Chris
Passing Variables To Control Motion In Embedded Movie Clip
Hello,
I have this problem: I have embedded a movie clip and I use a lot of its instances in a single movie. I want to pass some variables to the movie clip so to control the movement (beginning and ending of a Motion Tween) of a dynamic text input inside it. I don't know how to do that.
Please help me!!!
Thanks in Advance,
Stratos Filalithis
Passing A Variables Values From A Movie Clip To The Main Stage
Hi all,
Newbie here. I have been studying up a storm but the learning curve is steep.
I'm perplexed by passing variables from a movie clip to the main stage.
I have a movie clip with an instance name mc1 on the main stage. In that movie clip I declared a variable
c = 5;
on the first frame inside the mc1 movie clip.
I thought I could access that variable inside mc1 from the main stage by placing this on the first frame of the main stage:
x = _root.mc1.c;
Obviously I don't understand what is going on in terms of scope of variables because I keep getting an undefined statement in my variable x.
Some insight would be appreciated.
__________________
Thanks,
Greg
Variables In Loaded Movie Clip
Is there a way to access the variables defined in a loaded, duplicated, or attached moive from the timeline that contains it? If so how?
Thanks.
Passing Movie Clip To New Movie Clip Via Function
Ok here is the situation, I have my main scene and inside the scene I have a movie clip called "display_area". I already have a movie clip loaded into my main scene named "test".
The display_area clip has a function exactly like the one below:
this.LoadClipForDisplay= function(nClip:MovieClip):Void
{
// NEED HELP HERE
};
I am calling this function like this:
display_area.LoadClipForDisplay(test);
Now I can access everything I need to know via the nClip variable (such as size, position, etc...) but what I need to do is in this function is add the movieclip that is being passed in nClip into this "display_area" movieclip. So basically when I call display_area.LoadClipForDisplay(test); I will end up with the test movieclip being displayed at 1,1 of the display_area clip.
Xml Variables' Paths In A Loaded Movie Via Movie Cliip Loader
Okay, I found 3 different .fla files:
1] an XML photogallery [including image, thumbnails and title & description]
2] a Navigational type file [when a button is pressed, the screen moves to that section, set by x & y coordinates, with friction]
3] a file featuring loading multiple external .swf's into specific movie clips [movie clip loader, instead of loadMovieNum]
All the files work fine independently.
I put the actions of the movie clip loader into "navigation-1.swf".
The movie clip loader calls "gallery4.swf" and places it in a movie clip deep navigation-1.swf.
Gallery4.swf loads almost loads fine in navigation-1.swf; the images and thumbnails show, but the title and descriptions do not.
a] It might be the paths in gallery4.swf. I read the tutorials in paths/advanced paths from actionscript.org. I tried applying it in the code. Still I'm not sure if this is it. So, I went to investigate the movie clip loader script and thge navigation-1.swf file.
b] I was thinking the problem was the navigation-1.swf. I tried something to test that out. I called the gallery4.swf using loadMovieNum into level1. Everything in the gallery showed up, images and text. So now, I'm thinking it's not the navigation-1.swf that's giving me a problem. I think it's the movie clip loader script that might be playing games with me.
The only reason why I'm set on using the movie clip loader to load gallery4.swf into navigation-1.swf is because I like the effect of everything on the stage moving; this is accomplished when gallery4.swf is loaded in a particular movie clip in navigation-1.swf.
Can anyone help me out with this one? I'm okay with flash [that's stretching it], but you guys/gals are the gurus!!!!
Here's a link to view navigation-1.html, the file that calls gallery4.swf
Here's a link to just view gallery4.swf
Here's the .zip of the files involved.
Mind you the visuals aren't done yet, I'm still trying to figure the functional part, hopefully!!! AAAAA
Hope your brains' are sharp tonight because I think mine has worn as my eyes tonight!!!
Thanks,
upp'ed to motrin5xaday for tonight...
Xml Variables' Paths In A Loaded Movie Via Movie Cliip Loader
Okay, I found 3 different .fla files:
1] an XML photogallery [including image, thumbnails and title & description]
2] a Navigational type file [when a button is pressed, the screen moves to that section, set by x & y coordinates, with friction]
3] a file featuring loading multiple external .swf's into specific movie clips [movie clip loader, instead of loadMovieNum]
All the files work fine independently.
I put the actions of the movie clip loader into "navigation-1.swf".
The movie clip loader calls "gallery4.swf" and places it in a movie clip deep navigation-1.swf.
Gallery4.swf loads almost loads fine in navigation-1.swf; the images and thumbnails show, but the title and descriptions do not.
a] It might be the paths in gallery4.swf. I read the tutorials in paths/advanced paths from actionscript.org. I tried applying it in the code. Still I'm not sure if this is it. So, I went to investigate the movie clip loader script and thge navigation-1.swf file.
b] I was thinking the problem was the navigation-1.swf. I tried something to test that out. I called the gallery4.swf using loadMovieNum into level1. Everything in the gallery showed up, images and text. So now, I'm thinking it's not the navigation-1.swf that's giving me a problem. I think it's the movie clip loader script that might be playing games with me.
The only reason why I'm set on using the movie clip loader to load gallery4.swf into navigation-1.swf is because I like the effect of everything on the stage moving; this is accomplished when gallery4.swf is loaded in a particular movie clip in navigation-1.swf.
Can anyone help me out with this one? I'm okay with flash [that's stretching it], but you guys/gals are the gurus!!!!
Here's a link to view navigation-1.html, the file that calls gallery4.swf
Here's a link to just view gallery4.swf
Here's the .zip of the files involved.
Mind you the visuals aren't done yet, I'm still trying to figure the functional part, hopefully!!! AAAAA
Hope your brains' are sharp tonight because I think mine has worn as my eyes tonight!!!
Thanks,
upp'ed to motrin5xaday for tonight...
Target Host Movie Clip From Loaded Movie Clip.
Hi all.
I have a movie clip loaded into my main movie. This movie clip is the INTRO of the website. What want is that when this INTRO ends it should tell the main movie to go to the next scene of the movie. I tried _parent.nextScene() but it is not working. Please help me as I need it badly and urgently.
Thanks.
Zee
P.S: Btw this is my first ever post on FlashKit so I hope to have a great time here!
Transfering Variables From One Movie Clip To An External Movie Clip.
i have two movie clips. one is supposed to recieve the value for the variable and pass it on to the other movie clip, which is called into the 1st one via the loadMovieNum() command.
I was trying to use global variables but i'm not able to get this to work because the 2nd one is tracing undefined when i use
trace(variable);
any suggestions?
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 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
Loading Movie That Has Variables Loaded Into MovieClip Of That Movie
hi, I have a problem with loading movies that contain loaded variables ,
here is what I'm trying to do:
Main Movie (loadMovie ("reset.swf", _level0.MC))
reset.swf (loadVariables ("crimea.txt", _level0.text))
and the problem is that the text (=crimea) isn't displayed
Have you any ideas of what is wrong?
-thanks-
Why Variables Of Loaded Movie Reset Within Main Movie
why variables of loaded movie reset within main movie!!!! mean when i load movie into level 1 or else (not level0)
variables like text etc of loaded movie dont display...
//
i have movie "Text" with text loaded into it:
loadVariables ("crimea.txt", _root);
in main movie when i load "Text.swf" to level0 everything is fine, but when i load it to level 1 or else text of "Text" movie doesnt display...
//
where i have a mistake or
is there a way to make it different???
your help is appreciated, thanks
Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Calling A _root. Variable Of A Movie Clip That Is Loaded Into Another Movie...
My problem is I have two movie clips that i'm working with. The child-clip has a variable and a movie at _level10 (the base of it) that I would like to call when the child-clip is loaded into the parent-clip. I tried _level10.variable but that did not work. And commonly _root brought me to the _root of parent.
How can I get around this?
P.S.
I know there was a way in Flash 4 that you could call instances backwards (//instance) or something like that. But I haven't used Flash 4 in a LONG while.
Plz Help
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
Movie Clip To Low Opacity When External Movie Is Loaded
Hi all,
I have a movie clip with a button that loads an external flash movie when clicked. Once the external movie is loaded I would like the movie clip (that will remain as a background) to low its opacity. How can I do that ??? I'm using AS2 and the way that I'm loading the external movie is:
Code:
on (release) {
loadMovieNum("new.swf", 1);
}
Thanks a lot in advance!
|