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




Avoid Reloading Of Flash Movies When Passing Them Variables From Html



Hi all.
I've created a two-levels flash menu (mainsections each with subsections) which I am using as navigation in a html page. When I go to a different page, the html sends the movie a variable telling it to what section it should be automatically opened. Everything works fine except that when the movie receives a new variable it reloads from zero. Is there any way to avoid this without the use of frames?
Thank you very much.



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 03-22-2004, 05:28 AM


View Complete Forum Thread with Replies

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

Avoid Reloading Flash Movie
Hello,

I've created a Flash movie with animation as a header for my website. This movie is embedded into my "header.html" file which is called by every page on the site (by way of PHP).

Is there a way that I can have this movie only load on the first page the user visits, and then have the movie stay at its last frame whenever the user goes to another page (as opposed to reloading every time a new page is loaded?

I hope I made this clear, and that I'm in the most appropriate forum. Thank you for any help!

Elie

How To Avoid Reloading Large Header Flash Movie For Each Web Page In Dreamweaver
Thanks for reading this. I have a 2.3mb flash movie that appears in the header for every page in my web site. It's a design that I've already compressed by 20% and I am sort of stuck at this size. How can I tell flash to look to see if it's already loaded and just begin to play/loop it at the end. I am a relative newb and think that "gotoandplay' or 'gotoandstop" could work but I'm lost on coding in Flash or Dreamweaver itself?

The final frame of my file is 185.

My Dreamweaver code is attached.

Thank you in advance for your help!!







Attach Code

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24','width','971','height','51','movie','flash/header1_v8?button=2','quality','high','menu','false' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
width="971" height="51">
<param name="movie" value="flash/header1_v8.swf?button=2" />
<param name="quality" value="high" />
<param name="menu" value="false" />
</object></noscript>
</div>
<div class="row_2">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24','width','980','height','320','movie','flash/header4_v8','quality','high','menu','false' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
width="980" height="320">
<param name="movie" value="flash/header4_v8.swf" />
<param name="quality" value="high" />
<param name="menu" value="false" />
</object></noscript>

Passing Variables Between Flash Movies
Okay, after trying to sort through the hodge-podge of "tutorials" online, I stil can't find an easy way to pass variables between two different flash movies. Is there an easy way to do this without using PHP or ASP or anything like that?

Passing Variables Between Two Flash Movies.
Problem:
I have 2 flash movies in seperate frames and I want to be able to pass a string variable from one movie to the other? Any suggestion would be greatly appreciated. Thanks

Passing Variables Between Two Flash Movies
I have three flash movies.  Systems.swf, productDetails.swf, placeorder.swf

The first one (systems.swf) loads variables from an ASP page and loads nine records into the movie and displays everything I wan beautifully.  for each record there is a button on the movie that says "more info"  this button calls the second movie (productDetails.swf) it uses     

loadMovieNum ("proddetails.swf", 0, "GET");

this page calls an ASP to get more details from the table on the selected system.  It succesfully passes variables about the selected system to the second movie which in turn, passes it to the second ASP page and displays the the details of the system. On this move there is a button, to purchase the item.  It uses the same

loadMovieNum ("placeorder.swf", 0, "GET");

to call the third movie. this is where the problem happens.  the second movie doenst work.  The screen goes blank, through troubleshooting Ive figured out that it doesnt get to the first frame of the third movie. its as if passing the variables the second time seems to kill the movie and it sits dead in the water.

Im using Flash 5 if it makes a difference.  If anyone has any idea of whats going on please let me know.

Reloading Flash Clip Without Reloading HTML Page
Hello.
It is possible to Reload flash clip without reloading HTML page ?
Using JavaScript
I used this:

<javascript type='text/javascript'>
document.getElementById("id1").value="2.swf";
document.getElementById("id2").src="2.swf";
</javascript>

It's changes Tags Values. But the clip don't reloading.

Passing HTML Form And Hidden Variables From Flash To Html Page
Hi,

I have a html/flash site now, http://www.zachariack.com.

i access email from my site itself by giving the userid and pwd text box which i copied from the actual website hosting my email access. i copied the entire
<form...></form> tag to my page and thus was able to put the name and pwd in my home page only and access the email in a separate window.

now i have redesigned my webpage using only flash. i would like to know how i can implement the same using flash. as i have not much experience using action scripting i am a bit stuck about how you pass the hidden form variables. the below is the the exact form syntax:

<form name="form1" action="http://www.accudatanet.com/mail/msglist.php" method=post>
<input type="hidden" name=sid value="E9697301F704A0CE947DEF42CF86636A">
<input type=text size=15 name=f_user value="">
<input type=hidden name=six value=0>
<input type=password size=15 name="f_pass">
<input type=submit name=submit value="Login >>" class="button">
</form>

how do i implement the above using action scripting. thanks.

regards,
vasant

Passing HTML Form And Hidden Variables From Html To Flash
Hi

I need some help passing a html code to flash code. Maybe you guys can set some light on the subject.

<html>

<script>
function Dimensiones()
{

document.getElementById("tamx").value= document.getElementsByTagName('body')[0].clientHeight;
document.getElementById("tamy").value= document.getElementsByTagName('body')[0].clientWidth;

}
</script>
<body ONLOAD="Dimensiones();" ONRESIZE="Dimensiones();">
<form method="Post"
action="http://Validation link.asp">
<input type ="hidden" name="tamx">
<input type ="hidden" name="tamy">
<input type ="hidden" name="url_return" value ="http://Link.asp">
<input type ="hidden" name="url_ot" value = "http://Validation link.asp">
Nombre <input type="text" name="UserName" value="" size="20">
Password <input type="password" name="UserPass" size="20">
<INPUT type="submit" value="Enviar">
</form>
</body>
</html>

I'm having a real hard time passing the function Dimensiones() and dealing with the hidden variables. Can you guys help me with this? Thanks

Passing HTML Form And Hidden Variables From Html To Flash
Hi

I need some help passing a html code to flash code. Maybe you guys can set some light on the subject.

<html>

<script>
function Dimensiones()
{

document.getElementById("tamx").value= document.getElementsByTagName('body')[0].clientHeight;
document.getElementById("tamy").value= document.getElementsByTagName('body')[0].clientWidth;

}
</script>
<body ONLOAD="Dimensiones();" ONRESIZE="Dimensiones();">
<form method="Post"
action="http://Validation link.asp">
<input type ="hidden" name="tamx">
<input type ="hidden" name="tamy">
<input type ="hidden" name="url_return" value ="http://Link.asp">
<input type ="hidden" name="url_ot" value = "http://Validation link.asp">
Nombre <input type="text" name="UserName" value="" size="20">
Password <input type="password" name="UserPass" size="20">
<INPUT type="submit" value="Enviar">
</form>
</body>
</html>

I'm having a real hard time passing the function Dimensiones() and dealing with the hidden variables. Can you guys help me with this? Thanks

Passing Flash Variables To HTML
Hi,

I have a question regarding passing Flash variables to HTML pages. I have looked on several resource sites but can't seem to find the answer anywhere.

Basically I have two flash movies in two separate HTML pages. The first page links to the second page and back to the first page via the Flash movies using getURL.

When the first page is reloaded, the first movie then plays from the start. I would like to pass variables from the second page to the first so that I can test for them at the start of the first movie and use gotoAndPlay to go the the relevant frame.

Is this possible with just the two HTML pages and Flash movies or would I need something server side such as PHP or ASP?

Thanks in anticipation,

Danny

Passing Variables From Flash To Html
Hi All.

Ok, I've got the following javascript in an html page that has an swf embeded in it:

<script language="JavaScript"><!--
function launch(url){window.open(url, "newwindow", "width=+500+, height=+300+, location=0, menubar=0, resizable=0, scrollbars=1, status=0,titlebar=1, toolbar=0");}
// --></script>

Now, 10 buttons are each to lead to a new pop up html, I want the flash to pass the variable 'url' to the html, from the button.

errrmm.... why cant I get it to work. Any ideas?

Cheers. Dongle

Is This Possible?.....passing Variables From Flash To Html
i have created something like a search engine in flash. it doesn't use database or asp or nething else.

now i want to display the results in a html page is this possible????

Passing Variables To XML, HTML, & FLASH
ok. Here's my project.

-Im making a website and have flash navigation that pulls its info form an external XML file.

ok. Here's my problem.

-There are about about 1500 pages. And I dont want to have 1 flash file and 1 XML file for each time the navigation changes.

Here is what I need to do.

-I want to have, if possible, 1 flash file and multiple XML files and pass variables from the specific HTML page that you are on, to the flash file and then the flash will pull a specific XML file. (confusing, i know).

I hope this is understandable.

Thanks

mtb007

Passing Variables Into Flash From HTML?
Hi, 2 Quick questions -

(a) Can I pass a variable into a Flash movie from its .HTML container?
(b) Can I pass a variable into a Flash movie from the browser QueryString?

Thanks,
Jim.

P.S. I know I can load variables from a text/asp file but that won't help in this case.

Passing Variables From Html To Flash. How?
Hi,
I have a flash file with a movie clip with actionscripted movement. It moves based on variables passed to it. So when a button sets the value of moveX to 100, it moves to _x=100. This is all easy. But how do I send moveX = 100; from an html button?


Code:
//MovieClip Actions
onClipEvent(enterFrame){
movieClip._x = moveX;
}
The code is much more complex in reality. I am just using this as an example
How can I modify this code to look for a variable set by an HTML button? What do you I use on the HTML button? I figure I would have to JavaScript, right?

Any help would be much appreciated.

Thanks,

Flip.

Passing Variables From Html To Flash
Ive got links in my webpage, and on clicking one of these I want it to control a selection of images I have in my flash movie.
Can anybody help me here, I believe I have to pass it through the codebase, but not too sure.

cheers

lee

Passing Variables From Html To Flash
Im trying to figure out how to pass commands from html to flash. I made a navigation bar that needs to change color for each page, but I don't want to have to make a different navigation bar for each html page. So I want the html page to have a variable or something that flash can read and therefore interpret what page it is being displayed on.

Anyone know how to do this?

thanks.

Passing Variables HTML->Flash
so I was a pretty good actionscripter back in my day, but its been a few years. Anyone mind debugging this for me. It seems to be working on some platforms and not others.


--- html object tag

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="760" height="117" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="../new%20site/header.swf" />
<param name="quality" value="high" />

<param name="bgcolor" value="#000000" />
<embed src="../new%20site/header.swf?headType=company" quality="high" bgcolor="#000000" width="760" height="117" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

------------
so I am passing the variable headType=company
------------

--- actionscript in first frame of flash file
stop();

if (headType !="") {
if (headType=="home") {
gotoAndPlay (2);
}
else if (headType=="film") {
gotoAndPlay (3);
}
else if (headType=="television") {
gotoAndPlay (4);
}
else if (headType=="education") {
gotoAndPlay (5);
}
else if (headType=="factory") {
gotoAndPlay (6);
}
else if (headType=="technology") {
gotoAndPlay (7);
}
else if (headType=="partnerships") {
gotoAndPlay (8);
}
else if (headType=="company") {
gotoAndPlay (9);
}
else {
gotoAndPlay(2);
}
}
else {
gotoAndPlay(2);
}

-------------

so i really dont know what the problem is, sometimes it works, other times not.

Passing Variables Between Flash And Html?
hi guys!


hey does anyone know how do this?:

im wanting an html clickTag to look for a URL variable inside of a flash, does anyone know how to pass it?

eg:
flash has a variable of:
myURLstring = "http://www.google.com.au/"

and the html has:
"http://theMainURL/myFlash.swf?clickTAG=http://www.google.com/"

how do i change it to look something like this?:
"http://theMainURL/myFlash.swf?clickTAG=myURLstring"

hope that makes sence

Cheers!

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 The Embeded Flash Into The Html
my problem may be very simple - hopefully it is...

I think that I need to pass variables into the javascript with the head of the html - does anybody know how???

let me explain..

I was having probs with the scoreboard - as i think i mentioned before -- getting the thing to open up within a window of a set size while still sending the variables.

Okay - so I found - or variated from a code that i had found to come up with this:

getURL ("javascript:spawnWindow(window.open('http://www.myPage.com/cgi-bin/gamefiles/sendscore.exe?" add username add "&" add email add "&" add score add "&" add type add "','game5','status=yes, scroll=yes,width=400,location=yes, height=550')) ");

ok - well a bit different from that actually --- the same exluding the spawnWindow() - and i was getting it opening alright but the problem was is that the game window turned into a grey page saying"{object}" and the address bar saying javascript: bla bla --

so using this spawnWindow code - i have sort of got it to work -- but not unless i repeat the same code in the head text of the html - ok?

Now the problem - when i repeat the code - what must happen is that it spawns a window for each bit of code - i.e. - spawns one from the flash - and another one from the html---- the one from the html - requires debugging and states person is neither member nor guest.....(this is default if the variables have not been sent)

ok so far?

Now if I have the code only in the html and in flash i say getURL("javascript:spawnWindow()") - it tries to but the same thing happens.

okay - so finally i get to the question - would you know how to pass the variables into this code in the head of the html? - i.e. - is this possible?


anyone that can - I would really appreciate some help here

thanks in advance

beezer

Passing Variables From Html Page To Flash
Hi, I have an HTML page with a variable in and would like to pass it to flash and then read it out again to HTML how would I go about this?? Any help would be much appreciated

Thanks in advance

Passing Variables From Html To Flash Not Working Any More.
I have had complaints from a few previous clients that their flash files weren't displaying. I have looked at them all and the problem is that any flash file with a variable passed using the url method just hangs.

eg. anything with something like this in the embedding code just hangs:


Code:
< param name="movie" value="flash/myMovie.swf?myVariable=123" >


I am completely baffled by this. Any suggestions anyone? The file hasn't changed, the html page hasn't changed, but it no longer works!

Cheers

Fergus

Passing Variables To Flash From Html Link
how can i pass the var to flash where i can send from post..

for example: http://www.brandlite.com/index.htm?link=exhibits

the only way i can pass it so far is hardcoding it into my html page like this...


Code:
/embed src="main.swf?link=exhibits" width="780" height="480" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"/
where i do it in the embed src="main.swf?link=exhibits tag..


how can i pass with a link instead of hard coding.. see the thing is that i have one movie that loads all other swf.s so i want it to load the specific one that was set by the variable instead of hardionign different pages for different scenarios.


please help thanks[/code]
Quote:




<embed src="main.swf?link=exhibits" width="780" height="480" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>

Passing Variables From HTML To Flash: Tutorial
I've just completed a new tutorial on passing variables from HTML to Flash. In the tutorial, I show how to pass files names of external MP3's to your Flash movie. This way, you only need to edit your HTML, and never need to open the Flash to update your music player. However, the variables could be anything - a text string, numbers, etc.

The new tutorial is listed toward the bottom of the index of tutorials available.

See the new tutorial > HERE <

Passing Variables To Flash From HTML Link
Hi all,

I need to be able to go to a ceratin frame in a Flash website from an HTML link. I have a website that is totally built in Flash but I want to be able to go to certain frame (pages) from different links instead of always ending up on the home page. I hope I explained this well enough. On a scale of 1-10 I am about a 5 when it comes to action script. Please keep this in mind when you respond.

Thanks for any help you can give!!!
Russ

Passing Variables From HTML To Flash -- Not In Mozilla
Hi I am passing varibales from the Browser to Flash. It works in IE but not in Mozilla... anyone Know why? I tried "&eacute" and the "É" method, both dont work in Mozilla.

Here's a link to show what i mean....

http://192.168.2.237/crea/resultats/...lash/index.htm

You can also check the html... I think the problem might be there...

Passing Variables To Flash From Html Link
how can i pass the var to flash where i can send from post..

for example: http://www.brandlite.com/index.htm?link=exhibits

the only way i can pass it so far is hardcoding it into my html page like this...



code:--------------------------------------------------------------------------------
/embed src="main.swf?link=exhibits" width="780" height="480" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"/
--------------------------------------------------------------------------------

where i do it in the embed src="main.swf?link=exhibits tag..


how can i pass with a link instead of hard coding.. see the thing is that i have one movie that loads all other swf.s so i want it to load the specific one that was set by the variable instead of hardionign different pages for different scenarios.


i read you can do it with javascript.. i saw a tutiorial thast lets you send variables from a text field in html with a function, but i couldnt get it to get the variablkes from the address header bar.. please help

thanks

Passing Variables From HTML To Flash: Tutorial
I've just completed a new tutorial on passing variables from HTML to Flash. In the tutorial, I show how to pass files names of external MP3's to your Flash movie. This way, you only need to edit your HTML, and never need to open the Flash to update your music player. However, the variables could be anything - a text string, numbers, etc.

The new tutorial is listed toward the bottom of the index of tutorials available.

See the new tutorial > HERE <

[fmx2004] Passing Variables From Html To Flash
After reading a few posts, I wasn't able to find the answer to this.

I want to have links on several pages of my website which, when clicked, take the user to an html page called "portfolio.htm" which has a flash portfolio on it. This portfolio is set up with a series of buttons which load external .swf files for each project. How do I tell flash which .swf to load when the flash file opens.

ex: user clicks on "project x" on a web page called print.htm. The user should then be taken to portfolio.htm where a flash file resides and loads "project x" into a movie clip called "content_mc".

All the other posts I've read make reference to PHP. Is it neccesary to use PHP, or can I achieve this without PHP? Thanks for any advice you can offer.

Passing Variables To Flash From Html Link
how can i pass the var to flash where i can send from post..

for example: http://www.brandlite.com/index.htm?link=exhibits

the only way i can pass it so far is hardcoding it into my html page like this...



code:--------------------------------------------------------------------------------
/embed src="main.swf?link=exhibits" width="780" height="480" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"/
--------------------------------------------------------------------------------

where i do it in the embed src="main.swf?link=exhibits tag..


how can i pass with a link instead of hard coding.. see the thing is that i have one movie that loads all other swf.s so i want it to load the specific one that was set by the variable instead of hardionign different pages for different scenarios.


i read you can do it with javascript.. i saw a tutiorial thast lets you send variables from a text field in html with a function, but i couldnt get it to get the variablkes from the address header bar.. please help

thanks

Passing Variables From HTML To Flash: Tutorial
I've just completed a new tutorial on passing variables from HTML to Flash. In the tutorial, I show how to pass files names of external MP3's to your Flash movie. This way, you only need to edit your HTML, and never need to open the Flash to update your music player. However, the variables could be anything - a text string, numbers, etc.

The new tutorial is listed toward the bottom of the index of tutorials available.

See the new tutorial > HERE <

Passing Variables (key/value Pairs) From HTML To Flash ActionScript
Is this possible?

How is it done?

Thanks!!!

G

Passing Variables From Flash To HTML Form List
Hello and yes, I am stuck again.

So, here's my dilemma...
I have an HTML page with a form on the right hand side of the page and an embedded SWF on the left. Upon pressing a button with the SWF, I want to send a variable to the HTML form, to a list box. I've worked with the Javascript Integration Kit from the Expert Tutorial in the Flash 5 Bible and I don't see anything about it in the Flash MX Bible. Does anyone know how to do this?

The code I used in Flash was this:
on (press) {
getURL("javascript:FDK_AddValueToList('frmindex/selmy', 'Rogers Park', 'Rogers Park', "1'");
}

Then in Dreamweaver, I entered the this code (it isn't PHP. I couldn't get the code to show up any other way):

Any ideas?

Thanks,
jessicuh
PHP Code:




<script language="JavaScript" type="text/JavaScript">
<!--
function FDK_AddValueToList(ListObj,TextString,ValString,Position)  {
  if (isNaN(parseInt(Position)))   {
    Position = ListObj.options.length;
  }
  else  {
    Position = parseInt(Position);
  }
  if (ListObj.length > Position)  {
  ListObj.options[Position].text=TextString;
  if (ValString != "")  {
    ListObj.options[Position].value = ValString;
  }
    else  {
      ListObj.options[Position].value=TextString;
    }
  }
  else  {
    var LastOption = new Option();
    var OptionPosition = ListObj.options.length;
    ListObj.options[OptionPosition] = LastOption;
    ListObj.options[OptionPosition].text = TextString;
    if (ValString != "")  {
      ListObj.options[OptionPosition].value = ValString;
    }
    else  {
      ListObj.options[OptionPosition].value=TextString;
    }
  }
}
//-->
</script>
</head>
<body>
<form action="" method="post" name="frmindex" id="frmindex">
  <select name="selmy" size="1" multiple id="selmy">
  </select>
</form>

Passing Variables From HTML To Flash Using Query String
Am using query strings in HTML to pass variables to my flash movie so I can use the same movie but different title on each page. See www.gogojuicebars.com

Works fine when I test locally, but when uploaded the movie seems to display only the first "welcome" title on each page until you have clicked all of them. Then it works correctly???? Is almost like the flash movie is loading before the varaibles can be passed, but how can this be??

Any ideas on how to fix this?

Flash Passing Parameter To PHP And Reloading PHP
Hi,

i have 1 PHP page in which i have a Flash animation.
this flash swf file, display 2 fields and 1 button.

this php page is called "test.php".

i'm able to send data from Flash to a PHP page, but i would like to send the content of those 2 fields to the "test.php" and display them.
however, i do not know how to do it.

i see that it works but i'm not able to display or refresh the PHp page to display the result.

do you have any idea how to do it ?

as walkaround i was thinking to collect the webpage address where is executed the flash and to send it to another PHP page.
and this 2nd PHP page, will reload the test.php with parameters...

but once again, how to get under flash, the address of the actual executed php page ?

thanks a lot,

A.

Passing Variables Between Movies
hey all...

i am a programmer who is new to flash and i am pretty confused about scoping of variables. the immediate problem is as follows:

we have a main movie which calls another movie. the user can then select somethings in the sub-movie. we want to write those choices to a variable in the main movie. the movies are separate to keep the size of the main movie down.

is there any way for movies to share variables other than using text files and a load varaibles call? we tried using javascript and cookies (an ideal situation) but had trouble with ie om mac (we will need to use the setvariable call rather than using javascript to write the page and reloading it).

i am sort of new to flash terminology, so i trying to be as clear as possible.

thanks in advance!

og

Passing Variables Between 2 Movies
I need to pass a single variable from one flash movie to another. they are both on seperate html pages. I have done this before using ASP and I know it can be done with most other backend languages too. The trouble is I am limited by the clients crap intranet.

I have html, flash and javascript at my disposal. Anyway it can be done?

Passing Variables Between Movies
hello fellow flashers,

In need of your wisdom, yet again.

I want to declare a variable which can be accessed in another movie. I have a movie loading in an MC. In that movie there is a link to another movie, which has several sections. I want to target a specific section. This is what I have on the link in the first movie:

on (press) {
_global.section = "sales";
gotoAndStop(27);
loadMovie("investor.swf", _root.dropmenu);
}

Then in the investor.swf (the movie with all the different sections), I have in the frame action:

if (_global.section eq "sales") {
gotoAndPlay("sales");
}

Nothing happens.

I hope this is enough info.

Thanks in advance!!

Passing Variables Between Movies
Hi

I have one EXE Flash file and one SWF file... I call the second one from the first one... I'd like to pass variables from the first to the second without using text files... how is that possible? I hope that's clear!

nico

Passing Variables Down Through Movies
So, I'm creating an interactive test.

9 categories, 15 yes/no questions in each category, with total scores (yes's) for each category grouped together (in a separate movie) at the end of the test.

I've made it so that for each category, the number of yes's the user clicks gets totaled in something called "categorytotal"

To limit the stress of download, I've created separate swf files for each category (each question is accompanied by a vocal soundbite, which takes up a lot of room if put into only one file). Somehow, I have to get the "categorytotal" from each separate movie to move on to the final movie in which all totals shall appear.

Basically, the user has to see all of their totals gathered at the end, and somehow, their entries (variables) have to be passed along.

How would I do this?

I'm using LoadMovie to load in each successive swf/category of the test. In the Variables box, I've tried out POST, hoping that this would somehow pass on the new total for a variable such as "musictotal", so that it could eventually be passed on down to the last movie. Do I need to use LoadVariable, too?

Can this even be done???

Any help is greatly appreciated!

Thanks,
Shak

Passing Variables Between Movies
Is using globals the best way of passing variables from an already loaded movie to a new movie being loaded, or is there a better way? If so, what is it? Tks

Passing Variables Between Movies
Hi,

I'm loading movie2 into movie1 and want movie2 to use a variable I have set in movie1. I thought it would be recognised as a global variable but it doesn't seem to work.

anyone any ideas?

cheers!
Tammy

Passing Variables Between Movies
Hi
How can i pass variables between movies like:
nome="Tavares";
Cod_Delegacao="Coimbra";
If i do
loadMovieNum("despesas.swf?Nomes="+Nome+"?Cod_Dele gacao="+Delegacao,1);
don't work (for the variable Cod_Delegacao). How can i do that?
Thanks
Mario

Passing Variables Between 2 Movies
Hi,

I have 2 separate flash movies on one html page. Effectively there is a menu movie and a display movie. I would like the display movie to react (on mouseover) of the individual menu components.

I have done a fair amount of research on this so far and can not find a simple solution. Perhaps it is too simple and is staring me in the face. Surely there is a way to pass variables from one flash movie to another?

Your help is VERY much appreciated,
Best regards,
Tony

Passing Variables Between 2 Movies
Okay, this question is fairly simple, but for the life of me I can't figure it out. I'm feeling rather dumb, but it's been a while since I've tried this.

I have two movies on the same page and I need to pass variables between them without having to reload the page. How do I do that?

Thanks!

Passing Variables Between Movies
ok, I have five swfs in different pages but on the same site. One of them is the main swf that is always open (the other four are beeing opened and closed all the time). What I need is to know how to make the 5 swfs be exchanging variables all the time, in my last try I could only make them oad the variables once, then they wuldnt change again.

[mx]passing Variables Between Movies
Hi!!

I want to know how I can pass parameters between 2 swf files..

Can anyone help me??

[mx]passing Variables Between Movies
Hi!!

I want to know how I can pass parameters between 2 swf files..

Can anyone help me??

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