HTML Variables And Flash?
Is there a way for a text box with a scroll bar component (a swf embeded in an HTML doc) to get variables from the html document? Thx in advance.
Nick
FlashKit > Flash Help > Flash MX
Posted on: 07-03-2002, 01:27 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
Variables From Html To Flash
hello
i need to send a variable from an external link to my flashmovie. meaning: when somebody clicks on a link to my site i need that link to send a variable, catch it in the movie, and know what franme to go to... (fx if somebody wants to go to the support section in my movie, i need a variable that i can read from the movie. if the var is 3 the movie will go to frame 3 where the support section loads...)
i now how to set it up in flash. but how do i send it with the html-link?
hope you can help me Jesper
Variables From Html To Flash
i just wanted to develope
a player for a few mp3 files in flash.
my idear was to replace the embed
mediaplayer or Quicktimeplayer,
wich vary in their appearance with
a nice flash movie.
so I need a posibility to send flash
information about the filename an title
from html code...
perfect would be sth like this:
[ = html open tag
[object ... width="580" height="50"]
[param ...
[embed src="player.swf?fname=file.mp3&title=mytile" ... ][/embed]
[/object]
but that does not work (of course)
i thought about crating some txtfiles dynamicly (php) and let them prase by flash... but thats rather complicated as
many users use the site the same time.
another solution is may be to create a movie for each mp3... this is a bit *arg*... you know (~50 files) ;)
Flash Variables To Html
I am sending a flash variable to html like this
PHP Code:
on (release) {
nav = "Hotel Services Test";
getURL("test.html?test.nav="+nav);
}
but I cant figure out how to get it to work in html, this is what I have.
PHP Code:
<script>
document.write(nav)
</script>
HTML -> Flash MX (variables In URL?)
I'm working on an html/flash site and i want an html button to evoke a specific reation from an swf embedded in the html page. I'm not quite sure what the best way to go about this is.. I was thinking the button would be a link to the url of the embedded swf with an argument tacked onto the end that the swf could then parse and read the value of, directing the swf to go here or there or do this or that in its own timeline based on whatever the variable was. It sounds nice, but how? Or do I need a php/asp script to do what I'm getting at? Thanks for your time.
Flash Getting Variables From HTML
I have a little problem with a Flash embeded in an HTML page. I dont really know wich way to solve my problem/or questions.
I have a Flash in a HTML page. That HTML page is divided in Frames. The Flash is in the top Frame and is acting as a Flash Menu controling the bottom frame content.
When i click on a button in the Flash menu, it load and different HTML content in the bottom frame. All my buttons in Flash have a "MouseDown" state to let the user know where they are in the website.
The problem is when I click the "Back" button in the Browser menu, the bottom frame of my html page is going back to the previous one (that is ok), but my Flash menu dont change is button state to the previous one. It stays where it was cliked the last time.
I'm thinking about My Flash loading a variable that would be contained in each html page loaded in the bottom frame. This way Flash would know what page is actually in the bottom frame and it could ajust the menu to show the matching button on its "MouseDown" state.
Damn my english is BAD... Sorry for this...
Is it the way it should be? And where i can find the info to make this work?
Thanks!!!!!
Here is my problem page
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
Sending Variables From Html To Flash
I'm stuck!
I'm currently making a html-site in dreamweaver.
It consists of 2 frames; one frame with an html-content, and one frame
where I want to show Flash-anims.
I want the flash movie to respond to the links in the html-frame.
is it possible?and if is,are the method compatible with a wide range of
browsers?
petter
Sending Variables To Flash From Html
Hi all!
Wondering how i send a variable to flash via html or javascript. I need an if statement at the beginning of my timeline so that when a certain variable is sent across from the web page, the flash movie starts at a different point, depending on which variable is used.
This is so the swf can be started from specific places in the time line, which is sepcified by the user on the html page. Any hints?
k8
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
Importing Variables From HTML To Flash
Hi, I'm building a flash mp3 player embedded on a website that lists the songs as links. When a user clicks the link it loads the mp3 to the flash player to be played. The problem i am having is that i cannot figure out how to pass the string variable of the mp3 location to the flash player from the html website. I read about using XML to do so but i don't think that would work as good because the player is on the current page so there should be no need. Does anyone know of a function that imports variables from HTML/ASP to Flash?
Thanks,
Brad
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!
Flash Variables To Javascript Or Html?
I have created a flash css editor for myspace.com, it generates a full css code and assignes it to a variable. I would like to create a preview button that will load this variable containing the css into a mock myspace layout html document that will open when the user clicks a button in the flash program. I understand how to use the get url method of sending variables to java, but my variable is much to large for that method, and the fscommand method i understand as well. but I can't seen to find a way to make it work due to the flash document having to be on the page you wish to pass the vairables to. I read a short tutorial on how to create a new window and make the content of the new window on the fly wish java script, but I can't seem to get that to work the way I would like it too. I thought that maybe I could save the variable as a cookie and have java function that opens a new window with the mock myspace page that has a javascript code in it that would load the variable from the cookie that flash created, but I don't know if that would work either. and if it would, I don't know how. I purchased a javascript book, but it doen't help me with flash intergration. and the tuturials I find only show you how to maniputate the page that the flash movie is on. please keep im mind that my server is a cheap one and I don't have the option of server side scripts.
please someone help me out.
Thanks,
Rickey Ward
Diamonddrake.com
My Flash Variables Contain Html Markup?
am using actionscript below to post variables to cgi script:
stop();
avertissement = "";
t_name.text = "";
t_email.text = "";
t_phone.text = "";
t_comments.text = "";
recipient ="user@domain_name.com";
subject="Enquiry from website";
bt_submit.onRelease = function() {
if (t_name.text == "") {
avertissement += " name";
}
if (t_email.text == "") {
avertissement += " email adress";
}
if (t_comments.text == "") {
avertissement += " comments";
}
if (avertissement !== "") {
t_status.text = "Please fill in these fields : "+avertissement;
avertissement = "";
} else {
loadVariablesNum("cgi-bin/nms_formmail.pl", 1, "POST");
t_status.text = "";
nextFrame();
}
};
bt_clear.onRelease = function() {
avertissement = "";
t_name.text = "";
t_email.text = "";
t_phone.text = "";
t_comments.text = "";
t_status.text = "";
};
The flash variables are sent to the script which generates an email message but the variables seem to come with html markup. Here is what comes in the email:
Below is the result of your feedback form. It was submitted by (<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test@test.com</FONT></P></TEXTFORMAT>) on Thursday, May 10, 2007 at 17:31:17
---------------------------------------------------------------------------
comments: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test message</FONT></P></TEXTFORMAT>
phone: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">000 555 3430343</FONT></P></TEXTFORMAT>
name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test name</FONT></P></TEXTFORMAT>
---------------------------------------------------------------------------
The same script works fine with html, have been searching everywhere trying to find a solution but everything I try either doesn't work or still sends variables with markup??
Any ideas??
Is This Possible? Can Flash Read Html Variables?
Sorry Flash Newb - We're making a banner to give out to 3 different sites. Each site uses its own variable for the html.
Example:
yahoo uses getURL(Yahoo, '_blank'); and the html would be *.swf?Yahoo=http://*
msn uses basically the same thing only is Msn instead of Yahoo
aol uses a {FSCommand("CLICK");}
is there anyway that I could code the flash to read the html file to see which variable is defined? and using if than statements to use that code? basically I want to keep from having to make 3 different banners.
anyhelp would be greatly appreciated.
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
Some Variables In HTML String Not Getting To Flash.
Hi. I'm building a map that pulls in a location destination via the HTML string. Like this:
<object type="application/x-shockwave-flash" data="loader.swf?path=admin_map.swf?xCoords=324&yC oords=197">
the variables xCoord and yCoord are pulled in by the admin_map.swf and assigned to a dot representing a city on a map.
xCoord works fine. The variable gets into the swf, the dot adjusts its position, everything works great. yCoord does not. I have no idea why. I used a dynamic text box to see what was getting to flash and all it spat out was _level0.
I've tried changing the variable name, adding extra variables to the end of the string, changing where the dot_mc is in the swf, everything I can think of. I'm out of ideas. Does anybody know what could be wrong?
The full flash code:
function initialize () {
_root.mapMotherMC.attachMovie("worldmap", map, 1);
_root.mapMotherMC._x=-175;
_root.mapMotherMC._y=-50;
//if (xCoords>0 && yCoords>0) {
_root.placerDot._x=xCoords;
_root.placerDot._y=yCoords;
//}
};
initialize();
and the full HTML string:
<object type="application/x-shockwave-flash" data="loader.swf?path=admin_map.swf?xCoords=324&yC oords=197" width="500" height="250">
<param name="movie" value="loader.swf?path=admin_map.swf?xCoords=324&y Coords=197" />
Thanks
Flash Variables To Javascript Or Html?
I am makeing a flash css generator to cusomize myspace profiles, I am up to the point where the full css code is generated, and then assigned to a variable. I am trying to make a preview button that will open a new browser window with a sample myspace profile but using the css defined in the flash variable. I can't seen to figure this out, I have found that the only way might be to use fscommands and a javascript gateway, but I am not well versed in javascript. Someone please help me out with this as soon as possible, Im at a standstill, I don't want to release my flash program until I have all its features operational, I have spent the last 2 weeks pulling allnighters from concept & design, to deciding features, and everyone who has beta tested for me says it can't compare to the other editors without a preview option. and I agree.
I have searched everywhere online for some help with this, and I can't seem to get anywhere with it. Thanks,
Rickey Ward
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.
Some Variables In HTML String Not Getting To Flash.
Hi. I'm building a map that pulls in a location destination via the HTML string. Like this:
<object type="application/x-shockwave-flash" data="loader.swf?path=admin_map.swf?xCoords=324&yC oords=197">
the variables xCoord and yCoord are pulled in by the admin_map.swf and assigned to a dot representing a city on a map.
xCoord works fine. The variable gets into the swf, the dot adjusts its position, everything works great. yCoord does not. I have no idea why. I used a dynamic text box to see what was getting to flash and all it spat out was _level0.
I've tried changing the variable name, adding extra variables to the end of the string, changing where the dot_mc is in the swf, everything I can think of. I'm out of ideas. Does anybody know what could be wrong?
The full flash code:
function initialize () {
_root.mapMotherMC.attachMovie("worldmap", map, 1);
_root.mapMotherMC._x=-175;
_root.mapMotherMC._y=-50;
//if (xCoords>0 && yCoords>0) {
_root.placerDot._x=xCoords;
_root.placerDot._y=yCoords;
//}
};
initialize();
and the full HTML string:
<object type="application/x-shockwave-flash" data="loader.swf?path=admin_map.swf?xCoords=324&yC oords=197" width="500" height="250">
<param name="movie" value="loader.swf?path=admin_map.swf?xCoords=324&y Coords=197" />
Thanks
Variables From HTML Fields To Flash
Hi,
I really can't understand why this process is really hard to find in the web.
I have a variable that came from a html form. I wanna to put the value of this variable into a Flash variable. The question is: HOW?
Thanks
Passing Variables From Html To Flash Movie
Hi,
When I load my game I want certain variables to be automatically passed to it. The movie is embedded into a html page created by asp, so the variables will be passed into the html easily. I just don't know how to get them from the html to the Flash.
I realise that once loaded I could use loadVariables to make an asp call, but in this case the asp has created the html page containing the variables to start with and I just want to read them in.
Hope this makes sense and somebody out there can help!
Thanks
Andy B
Passing Variables From 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
How To Post A Variables Into Html Form By Flash
Question:
I'd like to use flash to make 3 flash buttons. Each buttons can send a variable to the specific text field in a html form.
the html form is like this:
<form name="bigsmallForm" method="POST" action="/NASApp/opg/buyBigSmall.do">
<p>
<input type="text" name="ticket.stake" size="5" value="0">
<input type="text" name="ticket.line1.betType"value="" >
<input type="text" name="ticket.line2.betType" value="">
<input type="text" name="ticket.line3.betType" value="">
<input type="text" name="ticket.line4.betType" value="">
<input type="text" name="ticket.line5.betType" value="">
<input type="text" name="ticket.multiple" value="1">
</form>
the value will past to each ticket "value"
Anyone can tell me how can I acheive this?
I think using
on(Release){
getURl(.... something post);
}
I am not sure how.
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>
Sending Variables Over Pages Of Html Containing Flash
Hi all, I am doing a flash project, and decided to use multi html page as the container of the swf because I want the back button on the browser to work normally. I know there are tricks to enable back button correctly throughout one swf using hidden frames and java, but I want to explore the standard multi html way. So, my question is, is it possible to transfer variable from one flash file on a HTML page to another ? the link will open in the same page, so, I think the variable should be defined in the HTML, which can be controlled thru PHP /other backend (so when a link is clicked in flash, it will send data to a PHP and return it to _self). Does anyone know how flash can read vars from the HTML it is contained in ? Any suggestion will be great! 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 <
Sending Variables To Flash From HTML Problem
Hi,
Im trying to get a variable into flash from the html.
I have the following embedded in my html file.
menu.swf?mySection=aboutUs
etc
In my movie on the main timeline i have a load of movie clips, each with different instances. (one of which is aboutUS)
On my first frame, the same as the one with my mc's on i have
_root.mySection.gotoAndPlay(85);
This just doesnt work and I cant work out why!
Im SURE the variable is getting into flash as if i put a dynamic text box on the movie it shows up aboutUS. So flash if definately receiving it.
I have also tried adding:
loadVariables("flashVariable.htm", "mySection", "GET");
Still nothing. Any Ideas? I REEALY need to get this sorted
Cheers
Neil
_____________passing Flash Variables Between Html Pages?
Hi there,
I'm trying to build basically a simple "client managed" flash component into a website... I imagine there will be some PHP needed to pass a flash variable ("or in this case a menu item") betweem html pages... check out my poorly designed illustration!
If anyone can help, or point me in a driection of a "easy to follow" tutorial that's be fantabulous!
-B
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 "é" 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...
Please Help, Sending Variables To Flash Through The Html Tags
Hello to all,
I need some help folks. I'm a designer and I'm having a hard time figuring out something in action script. Any help would be greatly appreciated.
Ok, here it goes.
I have a .swf file that consists of a list component and a video player.
The list component gets populated with an xml file that looks something like this.
<?xml version="1.0" encoding="UTF-8"?>
<videoclips>
<flv src="crookedHouse.flv" caption="Crooked house"/>
<flv src="lake.flv" caption="Lake"/>
<flv src="roofline.flv" caption="Roof line"/>
<flv src="shambles.flv" caption="Shambles area"/>
<flv src="bricklayer.flv" caption="Brick walls"/>
<flv src="church.flv" caption="Church"/>
</videoclips>
when the list gets populated you can click on the list item to play each movie.
The action script in the .swf starts of like this to load the xml file.
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
var rootNode:XMLNode;
var videoXML:XML = new XML();
videoXML.ignoreWhite = true;
videoXML.onLoad = loadCombo;
videoXML.load("video2.xml");
I want to use a query string in the html to be able to change the xml file to be loaded.
So if I did this in the html.
<param name="movie" value="FLVPlayer.swf?video3.xml" />
<embed src="FLVPlayer.swf?video3.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="200">
It would load the video3.xml file that has a different set of videos.
What do I have to do in my action script to achieve this. Please, please help I can't find anything.
Thank you!
Updating Ever Changing Variables Sent From HTML To Flash
OK - could somebody simply tell me if this is even possible -
My main.swf is embedded in my index.html page.
It loads external swfs in ONLY WHEN a HTML button, sitting outside my main.swf but ON index.html is clicked - posting it's variable/value to my swf?
So what I am saying is - Flash will not be functioned to do it's loadVars magic, I want Flash to be ready & waiting for a new variable to arrive at any given time - THEN action a function depending on the value of the variable.
Does this make sense to anyone?
I'm just not sure on the limitations of Flash - the program where I thought absolutely ANYTHING is possible.
If it's not possible then I will go around this problem another way.
Can Variables Be Passed In Flash To Html Page
hello.
just curious here can one pass variables to flash movies within themselves such as loadMovie("thispage.swf?id=whichOne&numPages=3");
i have used this technique with embedded flash in html such as <param name="movie" value="flash/final.swf?page=stainless"> but can the same principle be used within flash?
also loading flash variables sometimes seem to take to long to load tho its only one var. being loaded?
is there another method to do this with out the use of backend?
thanx
Trying To Figure Out Text Variables In Html To Flash
I helped produce this site over 4 years ago, and i can't remember how to use the variable text that appears in the main header:
http://www.shastadrivingschool.com/services.shtml
"Services Shasta Driving School Offers"
embed src="header.swf?header=Services Shasta Driving School Offers"
i tried to recreate this. I made a small flash file, dynamic text box, added "header" as a variable name, also mirroring my embed src HTML code to match variable name... I feel like i'm missing something else.
can someone help? I know i'm over looking a simple item here.
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
|