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








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




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-24-2004, 11:16 AM


View Complete Forum Thread with Replies

Sponsored Links:

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>

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Passing Data To Flash From Html Link
Is it possible to have an HTML link that passes data to a swf? I have a lexicon that is made in flash and there are html pages that link to terms in the swf file. I want to be able to add something at the end of the html link that tells the swf what frame to go to.

View Replies !    View Related
Passing Flashvar URL Link In HTML To Button In Flash
Developing SWF in Flash cs3, publishing in flash 6

I am trying to create a SWF with a dynamic getURL command that can be set at the HTML level.

I am embedding my swf in an html document with the following code:


Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="720" height="365" id="wtm_mini" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="FlashVars" value="link=http://www.surfcontrol.com">
<param name="allowFullScreen" value="false" />
<param name="movie" value="wtm_mini.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#ffffff" /><embed src="wtm_mini.swf" loop="false" menu="false" quality="high" scale="noscale" bgcolor="#ffffff" width="720" height="365" name="wtm_mini" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


In my flash, I have a button, which says simply:

Code:
on(release){
getURL(link, "_self");
}



The variable is being passed properly into flash. However, flash doesn't recognize the variable as a proper link since its not encased in quotes (" "). So when you click on the link, it goes nowhere. I

'm pulling my hair out here. I've searched both this forum and google and haven't figured out how to overcome this problem. Every other example I see works without using the quotes. What am I missing here?

(Coincidentally, I'm aware that I could probably research and use SWFObject to get this to work, but since i'm handing this off, i'm limited to some basic code. Preferably I'd like to address this issue within Flash if necessary, not with extra javascript or anything else on the HTML side.)

Appreciate any help I can get. Thanks

View Replies !    View Related
HTML Or Javascript Link Passing To XML And Flash MP3 Player
I am not a flash developer, but would like to know how to implement this on my website.

I have a flash MP3 player that reads XML code and plays MP3's at whatever specific location i place in the XML file. However, I placed the MP3 player in the header of my page. I have some HTML links that are the listed separately as the songs that should be played in the player.

1. Song 1
2. Song 2

Etc.. I want to be able to click on one of these links and it loads that song into the flash player at the top of the page. So if I have a list of songs on a page in HTML. I want to be able to click on that link and it loads and plays that song. And so on. How can this be done? Can it?

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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????

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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 <

View Replies !    View Related
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...

View Replies !    View Related
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 <

View Replies !    View Related
[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.

View Replies !    View Related
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 <

View Replies !    View Related
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>

View Replies !    View Related
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?

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
Passing Variables From Asp Link
I'm trying to get a swf file to recognise a variable from an asp link on a page which links to the one containing the SWF eg

http://www.mydomain.com/map.asp?locationid=11

The flash movie would load a page depending on this id passed. I've tried the following on the first frame of the movie, but i might be beating up the wrong track?

if (locationid==11) {
getURL ("www.mydomain.com");
}

Thanks

View Replies !    View Related
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

View Replies !    View Related
Passing Variable To Swf Through Html Link
I have read that to pass a variable from html to flash all i need to do is add it to the end of the link like so:
<VALUE="file.swf?variable=value">

but this has not worked for me.

i have declared:
var value;
on the first frame of the flash file but this has made no difference.
i've also tried adding single quotes around 'value' but still no joy.

what am i doing wrong?
thanx

View Replies !    View Related
Passing Variable To Movie By Html Link
Hi I've looked everywhere for this answer so i'm not sure its possible.

I have a movie within a html page. On the html page i have various links that need to be able to pass variables to the embedded movie. basically each link will load a differnent mc into the embedded movie by sending a differnet variable. I just need to know how to set up the varable in the link.

Any help will be really great thanks.

View Replies !    View Related
Html Link To Loadmovie, Passing Path?
I'm trying to do a simple photo viewing application.

There's an html page with thumbnail images. The thumbnails link to a different html page with an SWF embedded to display large images.

How can I pass different paths for a LOADMOVIE action from the html links on page 1 to the SWF in page 2?

View Replies !    View Related
Calling A Function From An Html Link And Passing Multiple Parameters
Hi all

Okay I know how to call a function using an html link like this:


Code:
<a href="asfunction:_root.DoThis,Parameter">Click here</a>
my problem is I need to pass in several parameters but when I do this:


Code:
<a href="asfunction:_root.DoThis,Parameter1,Parameter2,Parameter3">Click here</a>
it passes one parameter with this value:

'Parameter1,Parameter2,Parameter3'

Does anyone know how I get round this?

Thanks in advance

View Replies !    View Related
Passing Variables From Html
This is the HTML

<HTML>
<HEAD>
<SCRIPT>
var reso="800"
</SCRIPT>
<BODY>
>OBJECT flash .swf..........................>
</OBJECT>
</BODY>
</HTML>

Flash needs to understand and pass the "var" script.

How can this be done.

Thanks,

Monte Darland

View Replies !    View Related
Passing Variables From Html
I can pass variables directly into a swf via the url:


Code:
http://www.wesite.com/Movie.swf?MyVar=true


and I can hard code a variable value into my movie by altering the body and embed (or whichever ones you alter)tags in the html:

Movie.swf?MyVar=true

But what I want to do is pass a variable into Flash when calling the html page it is embedded in

i.e.
Code:
http://www.website.com/page.html?MyVar=false


then the value of MyVar is passed from the html into the Flash movie embedded in it.

any ideas?

Thanks

View Replies !    View Related
Passing Variables To Html
i'm not even sure this is the right place to ask, so apologies if it isn't,

i'm a complete actionscript newbie, and i'm sweating to make this work.

here's the deal
i have a test, which at the end, must open a html , passing on 3 variables: question number, correct/not, and number of tries. I've managed to make my variables show up on a textfield, so all is ok with them so far. but i don't understand exactly how to send them. if i put an action on a frame with a "geturl" action that specifies to GET the variables, they don't show up on my url...

where do i specify *which* vars to send? do they have to be on a textfield onstage? in the same timeline? in a frame?

help!

thanks

View Replies !    View Related
Passing Variables From A Html Doc
when you embed the flash file in html, i remember reading you could pass variables by setting parameters, yet am unable to find this in the help sections, could somone post me the relevant tag please.

thx, rme.

View Replies !    View Related
Passing Variables From HTML
Is there any way of passing variables to a flash movie from a HTML document?

If so does anyone have a tutorial or the time to point me in the right direction. Cheers

View Replies !    View Related
Passing Variables From Html To Swf
hi... got a problem:
i used to pass values directly from an html (or php or asp) to an swf using this:

<param name="movie" value="menu.swf?type=3">

(and the other tag)

<embed src="menu.swf?type=3" ...

this used to work fine, i would have a varialbe in root called "type" with a value "3" to do my stuff. but now i can't get the swf to recognize the passed variable.

has something changed with Flash CS3? i am using action script 2

thanks

View Replies !    View Related
Passing Variables From 1 Html To Another
I was just wondering what would be the "best" way to pass a variable that's in a swf to another swf located in another html.

something like index.swf embed in index.html and sends a value to a variable to index1.swf embed in index1.html.

What I'm trying to achieve is have a user select the language he wants, plays the rest of the swf and when it reaches the last frame it does something like


ActionScript Code:
//this is the last frame of splash.swfif (language == "fr") {        _root.container.loadMovie("about.swf"); //_root is on index.swf    _root.getLanguage(language); //passes the value to a variable in a function}else if (language == "eng") {    _root.container.loadMovie("about.swf");    _root.getLanguage(language);}


so that works perfectly when splash.swf is loaded into index.swf but now I want the same result but having splash.swf and index.swf on different html

View Replies !    View Related
Passing Variables From Html
How does one go about getting a variable from html into your flash movie via action script?

If you could lead me in the right direction that would be awesome.

Thanks!

-T

View Replies !    View Related
Passing Variables From Html
Hello, I am trying to pass a vaiable into Flash using the url. Here is my object/embed tag:

<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="732" HEIGHT="158" id="aboutmain" ALIGN="">

<PARAM NAME=movie VALUE="aboutmain.swf?toggle=1"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>

<EMBED src="aboutmain.swf?toggle=1" quality=high bgcolor=#FFFFFF WIDTH="732" HEIGHT="158" NAME="aboutmain" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

and here is the code in Flash:

if (_root.toggle) {
gotoAndStop("end");
}

I have named my frame properly but the movie still completely plays. Am I doing something wrong here?? Thanks for any advice....

-richard

View Replies !    View Related
Passing Variables From Html To Swf.
Hi,

Is there a way to pass vaiables from an swf(1.swf in dooh.html) to another swf (2.swf in us.html)? with out and backend help. Just Flash and Html.

i.e.
I press a button in 1.swf, and the browser takes me to us.html with 2.swf.. and passes the variable in here..


I hope someone knows how

View Replies !    View Related
Passing Variables Between Swf's In Different Html Docs
I am trying to build a navigation swf that will receive a variable (from the calling page) and do something (change the color of an object) based on the value of the passed variable.

So, I have Home.html containing "Menu.swf"

When the user clicks on the "Examples" button in Menu.swf, I need to load Examples.html (also containing Menu.swf) and pass Menu.swf (in "Examples.html") a variable.

I have spent ages playing with LoadVars.send, LoadVars.sendandLoad, etc, but can't get it to work.

My last effort was:

In sending swf
on (release) {
myTXData = new LoadVars();
myTXData.strCurentLocation="Examples";
myTXData.sendAndLoad("MenuTest/Examples.html","myRXData", "GET");
}

In receiving swf
myRXData = new LoadVars();


The more I read about this and try it, the more i think it's not possible. I would like reading and writing variables to text files

Can anyone help out here?

Thanks

Mark

View Replies !    View Related
Passing Variables To An HTML Window
Here's my situation. I have a login on my flash site and I want to pass the data of the user/pass on to another HTML window with two fields on it the loginusr and loginpass. Is there a way to do this?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved