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??
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-10-2007, 10:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Namespaces In Xml For Html Markup
hi, we have an xml file we will be loading into a project. The xml will be littered with AS3 friendly styling (inline) but we were hoping to avoid the ugly CDATA--ie:
Code:
<![CDATA[<p>This is text</p>]]>
The approach we are hoping to accomplish would be declaring a namespace in the xml:
Code:
<pages>
<page>
<content xmlns:h="http://www.w3.org/1999/xhtml">
<text targetid="1">
<h:font color='#ffffff'>This text</h:font>will go into the box with id of 1.
</text>
<text targetid="2">
This text will go into the box with id of 2.
</text>
</content>
</page>
</pages>
i know there is a Namespace class, but i am not sure how to tie the two together....can someone give me a lead? I have read this , but it does not lead me to the connection with how this MAY work with html...if at all.
Unwanted HTML Markup In Text Box Value
I've inherited a Flash MX 2004 document that has some text entry points that verify you've entered the right text before continuing or provide you a warning message and urge you to try hard. They're set up like so:
Code:
on (keypress "<Enter>")
{
if (titleInputText == "hoped-for text entry")
{
gotoAndPlay("someNamedTarget");
}
else
{
comment = "Hey--enter hoped-for text entry to continue!";
}
}
Some of them just weren't behaving at all correctly. With some handy-dandy trace() statements, I found that a few of them were returning values that included HTML formating of the text. Instead of getting
Code:
something entered
I was getting
Code:
<FONT = "Arial">something entered</FONT>
which is causing me all sorts of problems. How on earth can I turn off the HTML tags? Where did it come from?
(Why, yes, I do know just enough to get myself in trouble. Why do you ask?)
Any help would be greatly appreciated on this.
Using Web Standard Markup In Flash
Hello,
Simple question: I have numerous transitional xhtml pages marked up and ready to go. The code is basic but uses a few tags that are not recognized in Flash via HTML import- <h1>, <div> etc. Is there a best practice method for using this code without having to "dummy" down the code for use in Flash? Is there any advantage to importing the xhtml pages as XML and going that route or will I have the same problem?
Thanks,
Bob
Flash Markup Language
hey,
anyone out there know's anything about flash markup language? Just saw it at work at http://www.sukima****a.com. Thanks.
Flash Inventing Nonexistent Markup <li>
Hi There--
Have put together a site where textfields are imported using the loadVars command.
Here it is:
http://grasshpr.home.mindspring.com/...ernate1_3.html
Here's the entire folder, which includes the textfiles and the fla:
http://grasshpr.home.mindspring.com/shinnAlternate1
The problem is that on some of the textfiles, Flash is adding markup where there isn't any, in the form of list dots. The kind you get when you put <li> in front of a line. (It probably won't do it for you. Flash just wants to drive me crazy. (It's succeeding.))
This only occurred in the last iteration of the design.
It's occurring on both of the computers I have access to, so it's something in the file.
Since this is the first time I've imported text, I'm utterly clueless as to what could be making this happen.
Has this happened to anyone else? If so, how did you solve it?
Any insight will be vastly appreciated.
Thanks for reading this,
Lee
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
Xml Markup Still Showing Up
i'm trying to load an xml file into my flash file but each time i load the xml into the flash, the xml markup is still there.
here is the fla and xml file
http://www.whathedale.com/kirupa/home.fla
http://www.whatthedale.com/kirupa/text/update.xml
thanks in advance.
dale tan.
Markup Tool
Hi
I am developing an application called markup. This allows a user to markup on pages/content he is viewing….my markup application has one tool bar and one markup area ….
What I want is to have different makrup areas for different pages in a presentation.
How I m doing this…
in a master file /base file I load this markup swf and the presentation swf….my markup is works fine if there is only one page in the presentation…but if there are more than one my markup objects are visible in the second page also…but I want separate markup regions for separate pages..
please help me..
thanks
shan
Xml Markup Still Showing Up
i'm trying to load an xml file into my flash file but each time i load the xml into the flash, the xml markup is still there.
here is the fla and xml file
http://www.whathedale.com/kirupa/home.fla
http://www.whatthedale.com/kirupa/text/update.xml
thanks in advance.
dale tan.
XML Text Displaying Markup
We are encountering an intermittent issue where the markup and tags that we are reading in from an xml file are being displayed. This problem occurs randomly for some and not at all for others. Has anyone experience this issue and have any insight?
Retaining Markup Tags In HtmlText Fields
Is it possible to wrap an XML object so that it's element tags are preserved (not parsed) if it populates a text field as htmlText? I'm trying to use XML in an htmlText field where other (non-XML) text is styled using CSS. I get the results I'm looking for (except for the CSS) when I populate the text field as plain text (not htmlText).
I tried wrapping the XML in a <![CDATA[]]> tag, but that too was parsed when used as htmlText.
Any ideas?
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
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
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
W3C Markup Validation Service Web Site Shows Lots Of Errors For .swf Object
Hello;
I'm using the method to insert a .swf file into an Html document as described in the "Frequently Asked 'Flash' Questions" tutorial in this forum:
http://www.sitepoint.com/forums/showthread.php?t=210919
The flash object works fine in my browser.
When I try to validate the Html using the W3C Markup validation service it says that there are no attributes for SRC, QUALITY, PLUGINSPAGE, TYPE, WIDTH, HEIGHT, and MENU. It also says that the element EMBED is undefined.
Since it shows so many errors it looks like the W3C Markup Validation Service might not configured to work to .swf objects.
You can copy and paste the code below and you can see what I'm talking about. Here's the link to the W3C Markup Validation Service page:
http://validator.w3.org/
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Shockwave Flash Movie</title>
</head>
<body bgcolor="#AAAAAA">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="250">
<param name="movie" value="300 x 250.swf" />
<param name="quality" value="autohigh">
<param name="menu" value="false" />
<embed src="300 x 250.swf" quality="autohigh" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="250" menu="false"></embed>
</object>
</body>
</html>
I think that using the flash object will be ok but for my peace of mind can somebody tell me is it safe or wise to use the .swf object when the W3C web site shows so many errors?
Thanks.
Passing Flash Variables To HTML
Hi,
I have a question regarding passing Flash variables to HTML pages. I have looked on several resource sites but can't seem to find the answer anywhere.
Basically I have two flash movies in two separate HTML pages. The first page links to the second page and back to the first page via the Flash movies using getURL.
When the first page is reloaded, the first movie then plays from the start. I would like to pass variables from the second page to the first so that I can test for them at the start of the first movie and use gotoAndPlay to go the the relevant frame.
Is this possible with just the two HTML pages and Flash movies or would I need something server side such as PHP or ASP?
Thanks in anticipation,
Danny
Passing Variables From Flash To Html
Hi All.
Ok, I've got the following javascript in an html page that has an swf embeded in it:
<script language="JavaScript"><!--
function launch(url){window.open(url, "newwindow", "width=+500+, height=+300+, location=0, menubar=0, resizable=0, scrollbars=1, status=0,titlebar=1, toolbar=0");}
// --></script>
Now, 10 buttons are each to lead to a new pop up html, I want the flash to pass the variable 'url' to the html, from the button.
errrmm.... why cant I get it to work. Any ideas?
Cheers. Dongle
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
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>
|