Pass Variables To SWF From HTML Link?
Is it possible to pass a variable to a Flash movie from a HTML hyperlink? This variable could come from 1 of 50 or more different hyperlinks so I don't think I can use getURL with a specific URL to get variable.
What I have is an opening Flash movie that has multiple expanding menus. Each of these menu category items links to a standard HTML page. I would like to make a link in the HTML page that lets the user go back to the Flash menu and have the Flash menu open up/expand to where he/she had originally navigated.
This would be easy to do in Flash with a simple variable. If variable=levelA then goto and play "expanded" of such-and-such nested "levelA" movie clip. I just need to send a variable to tell Flash what to do based on where the user is coming from.
So how can I send these variables to Flash from a html hyperlink?
Thanks!
FlashKit > Flash Help > Flash General Help
Posted on: 02-02-2003, 12:42 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Run Time: Pass Link Var [html Format] To Txt Box
Greetings,
I have a text box with var equal to "link"
I have a push buttom with click handler "link01"
When the push buttom is clicked, "linko01" handles as follows:
Code:
//link #01
link01 = function()
{
links = "<br><b>VB.Net Developers Resource Centre</b>" +newLine+ "http://www.mvps.org/vbnet/" +newLine+ "<br>VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources, News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net."
}
The problem is, however, that i cannot get the URL to appear as a link that opens...opens on a second page.
If i try the traditional html formatting, <a href=>, the link is not displayed, nor does it function correctly.
Could anyone please help me with the syntax?
Thank you
How To Pass Variables From HTML Into Swf
Hi,
I can not find information anywhere, on how to read variables passed in from HTML to swf file, using actionscript 3.0.
I have read that variables can be passed in either via
1. myprog.swf?var1=value1, or
2. with SWFObjects methods: so.addVariable("var1", "value1"), or
3. with Object <param .. > tag.
But how is that data picked up in actionscript 3.0? I've read that it is available as _root.var1, but I'm guessing that is actionscript 2.0, because _root is not recognized.
What's more, how can you set the variables in Flash 9 authoring tool when debuging?
Thank you for help.
David in New York.
Can I Pass Variables When I Load A New Swf In Html?
Hello everybody.
I can´t find a solution if I can pass a value for a variable when I load a SWF-File in an HTML-Document.
Is it possible or do I have to use Javascript or Actionscript to load an external value?
I need a quick answer please!
Thanx
Christian
How To Pass Variables From HTML To FLASH4?
I wonder if anyone can help with this real pain of a problem...
I have a HTML page of tourist attractions. Simple, but I want the user to be able to click on an attraction and have my Flash Map open and go to the correct co-ordinates.
I sort of understand that a form & submit button could be added to the tourism attractions HTML page, but how do I get Flash to receive that information?
Help!
Pass Variables From Html To Flash ?
i was wondering if there's any way you can pass variables from html to a flash image ?
in other words: i want a script that takes a variable it is given from outside the flash movie and changes the link accordingly.
I hope this is possible and if someone wants to help me with this
Thx in advance
Greets
HTML/JavaScript/ActionScript/variables/pass
Trying to take a variable from the html doc using a JavaScript to put it into the flash movie...having problems & I can't seem to get the job done. I am sure it can be done!!
ID & NAME are in OBJECT/EMBED(passFlash) & swLiveconnect=true and the function is described...
function getIt(){
var message=document.test.song.value;
window.document.passFlash.SetVariable("output", message);
}
donc, I get an error which says "passFlash" is not an object but in fact it is the NAME/ID???
"output" is the name of the textField in the movie.
What's going on here? If anyone out there can HELP, I'd appreciate the input...been racking my brain for two days now on this!! You can also directly e-mail.
thanks____________________________________________ _________
Stephen Koch . " °
14, rue Aristide Briand ° '. .°oO
92130 Issy les Moulineaux . 0
01.47.36.95.82 .°Oo. ° . -
[mail]stephen.koch@libertysurf.fr[/mail] . - ° o
________________________________[]_______________[]____
Help, Trying To Pass Variables From A Flash Movie To Html Using GetURL
here's an example of the code i am using (it's for a banner that lets you select a few dropdown options):
//concatenates the variables in my movie to the url
_root.urlvar=("http://www.examplesite.com/page.html?var1="+_root.variable1+"var2="+_root.var iable2);
//opens the url in a new browser window
getURL (_root.urlvar, "_blank");
The problem i am having is that IE and Firefox block this. Is there a way of getting around the security without changing browser settings?
Flash Menu 4 HTML Pages - Pass Variables On Page Refresh
So the subject is a hint as to how hard it is to search on this simple idea.
Will be very greatful for some help today!
PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:
SectionA
SectionB
SectionC
What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.
Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)
THUS....
MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.
Can I do this with a GET/POST or something?
Thanks!
-AB
Html Link In Flash And Variables
I made an application which loads external xml files an put them inside a textfield using htmlText. Now the text contains a few links, and I was wondering if I could give information from a link to a flash variable.
Like when you have a link in that textfield: <a href="&name=johnny">link</a> and when you click it fills a variable named: "name" with the value "johnny".
This way I could connect to the MySQL database and get the information about "johnny" and display it.
I've searched google, but I found only resources about external links and getting values into flash variables.
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 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 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 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
Combining ASP, HTML Link, And Flash Dynamic Text Variables
Ok, I have been messing with Flash since 3. But have just been making simple movies. My clients never had a great need for a flash site. But times have changed....
Anyways, learning Flash 5 now and have a need to figure something out for a client. ANy help would be appreciated.
I am going to be designing a page that shares a flash file right down the center. The text will be in a flash (text) box and will zoom in and out as links are clicked and pages change. The issue I am trying to resolve is allowing the same movie (text box zooming) to replay over and over again, each time a link in the HTML/javascript area is clicked. The key is that the text within the flash changes based on the variable I pass through the link. The fun part is that the flash text area will be called via ASP.
Confused?
I mean it should be pretty straight forward. I just need to figure out how to pass the variable from the link to the flash movie dynamic text action. So it knows what ASP page to call. But since I am not that familiar with how Flash 5 and actionscript works, I figured I would go to the ones who do.
I really don't want to have to load a movie over and over again based on the page I am calling. That defeats the whole point of being a dynamic site... right?
I appreciate any help.
Brian
Pass Variable In Order To Link To Certain Frame In Flash Movie
i'm trying to pass a variable to my flash movie in order to make it go to and play a particular frame (referenced by its label in the actionscript).
i found the following on a message board and have attempted to implement it:
Here's a php example:
Let's say your external party wants to link to a frame label
"externalParty1"
Their html button would have this link
<a href="yourSwfPage.php?label=externalParty1&">Click here</a>
Now yourSwfPage.php has been sent a label variable in the query string which
is all you need. You will pass this on to your swf file like this in the
object tags.
<!--Your regular object tags here -->
<!--The variable which came in via the query string above -->
<!--is sent to flash from here via PHP -->
<param name="movie" value="yourSwf.swf?label=<?print urlencode($label);?>&">
And finally in your swf file you would have a method to manage the label
instruction
In yourSwf.fla have this on the first or second frame of the _root
//Did an external link come in?
if (typeof label != "undefined") {
this.gotoAndPlay(label);
} else {
//otherwise no external label so normal play
play();
}//end ifbut it doesn't seem to be working. is there a mistake in this information? can anyone advise on how else to accomplish this if this is not the correct way?
many thanks!!
Pass Variables Between Different Swf >> HELP
This is quite simple.
I'm loading 02.swf inside 01.swf...
Code:
loadMovie ("02.swf", _root.screen)
That's OK
Now I want to pass some information from 02.swf to 01.swf before it's starts
In other words, I want to pass some variables to the main swf
Does anyone have an idea?
Thanks
Renato
Pass Variables From One Swf To A Second Swf?
Help! I have two movies and I want the first to pass a variable to the second movie.
loadMovieNum("second_movie.swf", 0, "POST") just doesn't seem to do it. My second movie plays but does not receive the variable.
I have tried loading the second movie into a new level rather than replaceing the first but that doesn't work either.
GET also will not work.
I'm trying to do this locally so I can run the swfs from a CD.
How Can I Pass Variables
can someone tell me how can i pass variables to a flash movie through html or asp pages?
merry christmas and thanks in advance
Baljit Singh Grewal
Variables Do Not Pass Why?
hello i am trying to make a ip fliter system and i need a little help
in my movie file i have
//Create the LoadVars object and load data
myData = new LoadVars()
//domain name with key
myData.load("http://domain.com/key.php")
//Callback handler and binding
myData.onLoad = function(succes){
if(succes){
Comments_txt.text = gotoAndPlay(this.Comments);
} else trace("Error loading data")
}
stop()
and at the key.php
<?php
$iplist = array("0.0.0.0","10.10.0.0");
foreach($iplist as $ip)
{
if($ip == $_SERVER[REMOTE_ADDR])
{
$allowaccess = 1;
}
}
if($allowaccess)
{
echo "Comments=2";
}
else
{
echo "Comments=3";
}
?>
when i enter my ip adress into Iplist$ and upload file to internet and after i play the movie from my computer everything works fine the variable Comments=2 forwards me to frame 2 .
The trouble happens when i wpload movie to domain2.com that has ip 10.10.0.0 and add this ip to ip list in key.php file the movie does not play athough it was plaing from my computer what could be the possible reason?
any advices are welcome
Thanks a lot!
Pass Variables From ASP To MX
This ASP line works fine for my flash movie:
Response.Write "&firstname=Mike&"
But this returns one quotation mark:
Response.Write "&firstname=" & firstname & "&"
I also tried this:
test = "&firstname=" & firstname & "&"
Response.write test
That doesn't work either.
How can I put variable names in the Response.write and get Flash MX to take it.
Here is my Action Script:
myData = new LoadVars();
myData.onLoad = function() {
leaguename.text = this.leaguename;
};
myData.load("livedraftvar.asp");
stop();
Pass Url Variables
Hey. I am trying to pass some vars via the url. I have the imbed/ object tags set up to receive the variables:
http://markchalus.com/gallery.php?ca...mbs=new_14.jpg
if you view the source, you'll see the var values are making it to the embed areas. The white text field you see floating on the page is on _root and has the var name of "cartItems". No value is appearing even though the imbed tags have the "cartItems" value. Any ideas? I was under the impression this is all I needed to do.
Thanks for the help,
1M.
P.S. I'm not sure if anyone else is having search problems here but I have had a difficult time for the past couple of days searching anything....
How Do I Pass Variables Between This?
I am building a Flash movie with multiple movie clips on the stage. I wrote some code so that it is possible to change all the movie clips at once with a while loop rather than having ti write code out for each one.
Most of the code works fine, however I think I am getting a problem when actually changing the movie clips. For example, I have a variable called nextItem, which holds the name of the next item to be changed. I then use the code:
Code:
_root.nextItem._x = _root.myThing._x;
_root.nextItem._y = _root.myThing._y;
to alter the clips on the stage. This is where the problem is, I think.
I presume the problem is that Flash is trying to move a clip with the instance name "nextItem" but of course I want it to pick up on the vairable instead of searching for the instance name.
How do I get Flash to pick up the variable instead?
Any help would be appreciated,
jellyrools
Pass Variables From URL
Hello everybody,
First I want to say that I am new to Flash and ActionScript.
What I need to do is:
I have that URL: http://domain.com/home.php?pid=23 (The value of $_GET['pid'] is dynamic, could be different depending on where I am coming from).
Also I have a flash navigation with buttons.
The URLs of these buttons should be:
1st button: http://domain.com/page1.php?pid=23 (This value of pid should be taken from the $_GET['pid'] value)
2nd button: http://domain.com/page2.php?pid=23 (This value of pid should be taken from the $_GET['pid'] value also)
My problem is that I can not figure out how to pass the $_GET['pid'] value and attach it to the getURL and make the links of these buttons.
Thank you for your help in advance!
Pass Variables To SWF
Ok guys, as i am sure you know when you publish your swf there is a html page that comes along with it, I have found through here how to embed the flas movies into pages, what I need to know is how do you pass variables into the swf?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>grafitti</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="550" height="512" id="grafitti" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="grafitti.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="grafitti.swf" quality="high" bgcolor="#ffffff" width="550" height="512" name="grafitti" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
what would I do to pass the variable 'picture' with the value 'thing.jpg',
thanks for the time spent oh and one more thing, can I load the swf into a page on a different site if i choose to?
How To Pass Variables?
function onResult(e :OperationEvent):void
{
var sd:Number = new Number(e.data);
}
Is there anyways to pass this variables to other swf files as a session?
Pass Variables To PHP?
Hi there...
I want to have a button and when clicked, it does the equivelent of going to this php address and executes the php, as it would by typing into address bar. Simply activates php script with variables.
Code:
http://yoursite.dom/public/list.php?email_address=newuser@domain.com&group_ids=1&action=subscribe&firstname=John&lastname=Doe
.
How can i do this 'behind the scenes' in flash?
I have so far this (which of course doesnt work because 'theVariables' is not recognised by the PHP fle. I need to send variables which are name in the php file email_address, group_ids etc etc)
Code:
btn_submit.addEventListener(MouseEvent.CLICK, btn_submit_handler);
function btn_submit_handler(event:MouseEvent):void {
theVariables.email_address = emailAdVar;
theVariables.group_ids = 1;
theVariables. action = "subscribe";
theVariables.firstname = firstNameVar;
theVariables.lastname = lastNameVar;
var theRequest:URLRequest = new URLRequest();
theRequest.url = "listmessenger.php";
theRequest.method = URLRequestMethod.POST;
theRequest.data = theVariables;
var theLoader:URLLoader = new URLLoader();
theLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
theLoader.addEventListener(Event.COMPLETE, loadCompleteHandler);
theLoader.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
theLoader.load(theRequest);
}
function handleIOError(event:IOErrorEvent):void {
event.target.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
}
function loadCompleteHandler(event:Event):void {
//do nothing...
}
thank you very much for any help!
Best Way To Pass Variables From As2 To As3
I have a variable in an as2 movie, urlwholoadedme = _level0._url; , that i need i need to pass to an as3 swf that gets loaded ( (loadMovieNum("movietoload.swf", 1); ). what is the most efficient way to do this?
TIA to anyone willing to help!
Pass Variables Into Another Swf
Hi, I'm very new to as and my friend wanted me to make 4 him som presentation cdrom in flash... it's photogalery and i used component from mr10.net and it works! BUT if i want larger image to open in a new window (not html) on click i'm finished
So. if anybody can explain me how can i make it ...
i've used this code:
ActionScript Code:
function clickMe(id) {
var imagePath = myGallery.getXMLNode().firstChild.childNodes[id - 1].attributes["jpegURL"];
var wiew = ("images/"+imagePath);
this.createEmptyMovieClip("imageBig",this.getNextHighestDepth());
loadMovie(wiew, "imageBig");
imageBig._x = 150;
imageBig._y = 70;
}
it works but that's only the big image with active content in the background .. i want to open another window with close cross and prev/next buttons but i'm unable to pass any variable into another swf file... so that's my story )
Pass Variables To Swf
Can anyone help me to pass variables through a url to swf file that loads in a html file.
I currently have it working when the swf that loads directly in a browser, see Pea Weavil Model
This works fine, but there are certain issues with loading the swf directly in the browser. Any help would be appreciated.
Pass Variables From ASP To MX
This ASP line works fine for my flash movie:
Response.Write "&firstname=Mike&"
But this returns one quotation mark:
Response.Write "&firstname=" & firstname & "&"
I also tried this:
test = "&firstname=" & firstname & "&"
Response.write test
That doesn't work either.
How can I put variable names in the Response.write and get Flash MX to take it.
Here is my Action Script:
myData = new LoadVars();
myData.onLoad = function() {
leaguename.text = this.leaguename;
};
myData.load("livedraftvar.asp");
stop();
Pass Variables From URL
Hello everybody,
First I want to say that I am new to Flash and ActionScript.
What I need to do is:
I have that URL: http://domain.com/home.php?pid=23 (The value of $_GET['pid'] is dynamic, could be different depending on where I am coming from).
Also I have a flash navigation with buttons.
The URLs of these buttons should be:
1st button: http://domain.com/page1.php?pid=23 (This value of pid should be taken from the $_GET['pid'] value)
2nd button: http://domain.com/page2.php?pid=23 (This value of pid should be taken from the $_GET['pid'] value also)
My problem is that I can not figure out how to pass the $_GET['pid'] value and attach it to the getURL and make the links of these buttons.
Thank you for your help in advance!
Why Can't Variables Pass Into TellTarget
i'm trying to pass variable into the TellTarget block...
i cant trace the variable outside the telltarget block... but can't trace it inside it inside
this is just the simple script i written... can someone tell me why?
variable = 123;
trace (variable);
tellTarget ("_root.abc") {
trace (variable);
}
output:
123
expected output
123
123
Pass Variables To Different Scenes
G'day
Is there an easy way to pass variables from one scene to another..
I have a text box called 'name1' in scene 1. I put a text box called 'name1' in scene 2 but it will not pick up the original value of the name1 in scene1...
grr
thanks
Pass Variables, Or 'goto' From One .swf To Another?
I know this is probably a common question, so hopefully someone can answer easily.
can i communicate from my parent .swf to a loaded .swf? in other words, either timeline commands like 'goto', or just pass variables?
Pass Variables To Movie
i am going through an array and want to assign a movie clip for each element. i also want to pass in strings for dynamic text fields.
this worked originally but when i tried to make it so there was animation with the text fields, it all fell apart.
is there a way i can assign variables in the movie clips and on the onLoad function for the text fields, set the value to the variables?
Can An SWFs Pass Variables To Another SWF ?
How can I use the following:
Code:
loadVariables("orderConfirmation.html", 0, "POST");
to send all variables in the current SWF (orderForm.hmtl) to orderConfirmation.hmtl ??
I successfully email all the variables when I pass them to an ASP file with:
Code:
getURL("www.webpage.com/emailVariables.asp",_blank,"POST");
but I can't seem to pass them to the other HTML(SWF) file for the Order Confirmation page that I'm trying to set up.
Got a minute??
Still Can't Get Variables To Pass With LoadMovieNum()
I've created two movies, and trying to get variables from movie1.swf to pass to movie2.swf when I load it into level 0. (loadMovieNum("movie2.swf", 0);
Neither loadMovieNum("test2.swf", 0, "POST"); or loadMovieNum("test2.swf", 0, "GET"); work.......
plz help!!! going insane over this one!!
PAss Variables To SWF 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">
All these files are on our server so it could be something to do with the server I guess (even though the admin claims he hasn't changed any settings recently)...
I am completely baffled by this. Any suggestions anyone?
Cheers
Fergus
Javascript 2 Pass Variables
Hello, flash masters.
I need to pass variables from a frame with a combo menu to a flash movie in another frame. Should someone help me, pleas?
thanks a lot.
Pass Variables From Buttons
flash5
I'm running a shell swf that loads a UI swf into _level2. Buttons in the UI will load content pages into _level1.
My problem is I want to run a exit transition based in the UI before loading the new content page (which unloads the current content page).
My solution, or so I thought, was to set a variable with the buttons that would be called by a loadMovie function at the end of the exit transition.
Here's a sample
In Button One which I want to load page1.swf the code is:
on (release) {
myContent = "page1";
gotoAndPlay ("loadCnt");
//Where "LoadCnt" is the Exit transition
}
In the last frame of the Exit transition the code is:
loadMovie (myContent+".swf", "_level1");
stop ();
It is my understanding that this should load "page1.swf" (or whatever other page I set the myContent variable to) into _level1.
I thought that maybe the variable wasn't being passed, but I used the trace (myContent); action in testing the movie and it traced the proper variable.
What am I doing Wrong? Should I be using Arrays?
Thanks for your help in advance
Pass Variables To SetInterval
Hoya,
I am willing to send variables to setInterval function enclosed in some other function. Here is the code:
PHP Code:
_global.alphafade = function () {
fade = setInterval (function () {
if (_root.VARIABLEtoBEreceived >90) {
clearInterval (fade)
}else{
_root.VARIABLEtoBEreceived += 50
}
},100)
}
Do I have to miss the first function and leave the setInterval function alone ?
In that case how to call setInterval function with certain passed variable ?
Thanx a lot . I am quite a newbie concerning setInterval function.
Using FlashVars To Pass Variables To A SWF
first i went to the big wigs:
http://www.macromedia.com/support/fl.../flashvars.htm
Im curently passing a variable to my flash file useing this method but it does not work in some browsers e.g I.E, it works in firefox fine. But in I.E it doesn't even load the swf.
here is what i have in my php file:
<?php
$ammount = "6";
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>load jpg</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<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="300" height="200" id="load jpg" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="load jpg.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<PARAM NAME=FlashVars VALUE="howmany=<?php echo $ammount; ?>" />
<embed src="loadjpg.swf" FlashVars="howmany=<?php echo $ammount; ?>"
quality="high" bgcolor="#ffffff" width="300" height="200" name="load jpg" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</embed>
</object>
</body>
</html>
any idea what i can do?? I mean its the exact way Macromedia says to do it and it works in Firefox?
|