Send Variable To New Html Page -- Then Using It WITHOUT PHP
hi again,
I've been reading tutorials on ways to pass variables to a new window. On the kirupa site, there's a trick to send it without php... sort of.
Basically it's using the GET method in getURL, so the code looks like this:
------code---------
PHP Code:
someVar=1111;
getURL("newpage.swf","_blank", "GET");
--------------------
and so the address bar of newpage looks like:
.../blah/newpage.swf?someVar=1111
my question is, how can i get that variable and use it in newpage.swf ? all i need is the number; is there even some way for newpage to get its own address and use a substring to get the number?
Thanks, chi
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 04-19-2004, 11:48 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Send Variable To Xml (which Is Actually A Php Page) Possible?
I have an xml file that is dynamic. Depending on the variable sent to it, it will have different content. So how do I do this? When I used the following it doesn't work:
gamedata.load("gamedata.php?id=1");
I take off the 'id' variable and it works. Ugh. Please advise.
The header of my php file is like so:
Code:
<?
header('Content-type: text/xml');
echo "<?xml version="1.0" encoding="ISO-8859-1" ?>"; ?>
<gameshow>
<data dtype="PROJECT_SETTINGS">
<project_type>1</project_type>
<title>Whatever...
Send Variable To HTML Help
Hi,
I need to tell my HTML page to hide a DIV once a button in my flash movie has been clicked. I need to do this once without page refresh.
I already have FlashVars going from my page to my movie but I also need to return vars to my page. Is this possible?
Thanks for reading
ActionScript To Send User To HTML Page?
In Flash MX 2004 Professional, I've created some buttons using Modify --> Convert to Symbol --> Button.
What would the ActionScript code be to have the user onRelease be sent to another html page in the same folder as the HTML page on which the button is located?
If possible, I'd like the code to work with older versions of Flash.
Thanks!
Bill
Send Variable To Flash From HTML
Does anyone know how i would go about declaring and sending a variable to a flash movie that is embedded into an html page.
Here's what I'm trying to do...
I have a menu tree designed in flash.
It sits in a table on an html page.
I need to let the flash movie know what page it is on...
so that the menu will open to the appropriate submenu.
My initial thought was to set up the embed code to url encode
the variable like so...
(EMBED src="mymovie.swf?mymenu=submenu1" ect)
But this causes the movie to not play.
If anybody knows how to control a flash movie with the html
page that the movie is embedded into, it would be greatly appreciated.
thanks.
How To Send Variable From Html To Flash?
Can anyone give me some hint how to do this?
I have a html file with pull down menu. It will direct the user to a flash file, simply depend on what value he has selected from the pull down menu. (a flash file with some frames, go to which frame simply depends on what value he has chosen from the html files).
[F8] HTML -> SWF Send Variable Not Working. ?
Hey everyone!
I know this has been asked 1000 times here and I've been reading the posts as well as the Macromedia links that have come up along the way. I'm missing something though and frankly, some of what I read is over my head.
I have a swf menu with 2 language options. I'm trying to control these when an html file loads. At this point all I want to have happen is that the menu (which has 6 buttons) selects the correct language and disables button 1 when the html page loads. Assuming I can get past that, I'm pretty sure I can pick up from there and make it more complex. (I'll end up with 20 or so pages in the end with a gif language togglee button as wll as another swf subnav.)
In the html page, the object / embed is set up like this:
Code:
<div id="mainmenu">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
'width','541',
'height','29',
'align','middle',
'src','en/menu_main',
'quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer',
'movie','en/menu_main',
'swLiveConnect','true'
); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="541"
height="29"
align="middle"
name="mainmenu"
swLiveConnect="true">
<param name="FlashVars" value="lang=est">
<param name="movie" value="en/menu_main.swf?lang=est" />
<param name="quality" value="high" />
<embed name="mainmenu"
src="en/menu_main.swf?lang=est"
FlashVars="lang=est"
width="541"
height="29"
align="middle"
quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash">
</embed>
</object>
</noscript>
</div>
... and the first frame of the swf is set up like this (which doesn't disable any buttons yet. That would be a separate variable I guess?):
Code:
if (_root.lang=="eng"){
_root.mcbtn1.btnText.btnText.text = "ENG Button";
_root.mcbtn2.btnText.btnText.text = "ENG Button";
_root.mcbtn3.btnText.btnText.text = "ENG Button";
_root.mcbtn4.btnText.btnText.text = "ENG Button";
_root.mcbtn5.btnText.btnText.text = "ENG Button";
_root.mcbtn6.btnText.btnText.text = "ENG Button";
}
if (_root.lang=="est"){
_root.mcbtn1.btnText.btnText.text = "EST Button";
_root.mcbtn2.btnText.btnText.text = "EST Button";
_root.mcbtn3.btnText.btnText.text = "EST Button";
_root.mcbtn4.btnText.btnText.text = "EST Button";
_root.mcbtn5.btnText.btnText.text = "EST Button";
_root.mcbtn6.btnText.btnText.text = "EST Buttont";
}
I've been messing with different changes along the way and this is where I ended up cornering myself...
Any help would be great. Thanks
Dynamic Movie Size Send To Html Page
Hi,
I have a flash movie (menu navigation) with a dynamic width and height.
In the html should load the movie, afterwards the movie should calculate his own
size and send it back to the calling html page for resizing the specific html layer.
there are any suggestions,articles or tutorials to settle this ?
Thanks,
dp
Send Text Variable To Flash From Html
Hello, and thx if you can help me. here is what i would like to do : put a text somewhere in my html page containing the flash, and send it to the flash so it writes the text in the flash. for example i type kinoko in a form in html and the swf writes "welcome kinoko". if someone know how to do this, help would be greatly appreciated. thx thx thx !
Send Variable From Flash To HTML & Back Again
Send Variable from Flash to HTML & Back Again...
Here's my problem...
I have an html page with a flash navigation embedded in the page.
When a user clicks a button I need to send a variable to the new
html page that also has the same menu embedded in it. This way the
menu doesn't start on frame 1 (closed), but instead will open on the
last button that was clicked. I hope that made sense.
The menu is going to be a part of a template in dreamweaver.
Everytime a new page is created, I need that page to be able
to send a variable to the flash movie that is embedded on the page
before the flash movie loads. This way the button pressed sends
a variable to the html page, the page carries it into the new flash movie and the menu starts off where it was last clicked.
I do not want to use frames, but it needs to be done in this fashion.
Does anyone know of a way to do this.
If my message was too confusing, just write me and maybe I can explain it better. Hope someone can help me out!
Thanks.
Send A Variable To Flash Via Html-code
How can I with the html-code include a variable that you can take out in flash?
PHP Code:
<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="481" height="332" id="denstora" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="denstora.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="denstora.swf" quality="high" bgcolor="#ffffff" width="481" height="332" name="denstora" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
Also, just a little variable. (xmlfile=text.xml) (I want to have the same swf-file but use it in several html-files (and I have one xml-file to every html-file))
Please help me =(
Send Variable To Html Login Screen
Hi,
Not sure if I can do this, but I would like to create a login movie. Have a user name and password, and on (release), loadVarsObject.send(url[,target, method] ) (I think...)
the website is http://webmail.venicevikingssfl.com , the user name is tester, the password is passes. This will log into my webmail account.
So, I have tried
MyVar.send("http://webmail.venicevikingssfl.com/horde/login.php", ,POST) where MyVar contains imapuser:tester and pass:passes (the username and password variables in the html document). No luck. I must have tried a hundred cominations, and even messed with getURL. Cant find anything on the web about it, maybe it isn't possible.
I would also do it in html, but cant get that to work either. Any help is greatly appreciated.
Thanks in Advance
Todd
Retrieving A Variable From An Html Page
Here's my scenario:
Two flash movies load into a page, a mouse event in the first movie uses getURL("javascript: funciton()") to set a variable in the parent html page. The second flash is using an onClipEvent(enterFrame) to constantly check for a change in this variables value before it runs certain timelines. The trick is, how do I get that variable back into the flash?
I've tried using the loadVariables to bring in the parent html page, but, of course, all I get is a big jumbled mess of javascript and html. Is there a smart way to grab a unique variable from this page? My only idea is bringing in all of this jumbled info and then parsing out the exact string using indexOf, but this seems quite messy. Any other ideas? Thanks in advance.
Quasi
Grab Variable Off Of HTML Page?
Is there a way for a Flash movie to grab a variable from the HTML page it is sitting on?
Why do I want to do this? see the thread:
http://board.flashkit.com/board/show...hreadid=363445
Read A Variable From An HTML Page
I am wondering if it is possible to set a variable using Javascript in an HTML page and then reading that variable with my flash movie.
ex. I set a variable called page="about" using Javascript. This is done in the HTML page. In my flash movie I want to read that variable (if page=="about" then do something).
Any help is appreciated
Passing A Variable To A New Html Page
I'm trying to pass a variable to a new html page opened by clicking on a button
I COULD use getURL to open the new page, but I want to be able to define the new window's properties (dimensions, which toolbars show up, etc), so I prolly need to use javascript for that.
I found this code from another post in here, for doing just that:
function platformCheck(){
if (navigator.platform == "Win32"){
window.open('mypage. htm','pagename','toolbar=yes,scrollbars=no,status=
yes,width=800,height=600')
} else {
window.open('mypage. htm','pagename','toolbar=yes,scrollbars=no,status=
yes,width=785,height=587')
}
but I'd still like to pass a variable. Does anyone know how to do that? I'm thinking this is prolly just a syntax question, cause it seems like it wouldn't be that hard to do
thanks
Pass Variable From 1 Swf To Another Swf On The Same Html Page? Help
I have 2 swf. I do not want B.swf to load until A.swf get the the certain point. They both are on the same html page.
Is there a way I could pass the variable (say if I send a _global in A.swf) from one swf to another if they are on the same html page?
thank you so much!
Import Web Page HTML As A Variable
I was curious if there is a way to load the HTML code of a Web Page into a string variable. From there I could strip it down to it's basics using function like indexof and substring. Then display it's contents in a textbox.
Variable From Html Page Or Javascript?
Okay, I have a sliding, drop down menu sidebar thingy. The user clicks a button and my slick little eye candy flash movie has a secondary navigation list slide down while any buttons underneath slide down as well. Then when you click on another button it slides back up and the new button's secondary nav slides down. nuff said.
what I would like to have happen is that when a user clicks on a secondary nav button and a new html page loads, I would like it to appear that the secondary nav slider has stayed down on the newly loaded html page.
this means passing some kind of variable to my flash movie so that it can tell which page the user is on and react (go to a particular frame)
what's the easiest/best way to accomplish this? thanks in advance
Variable From Html Page Or Javascript?
Okay, I have a sliding, drop down menu sidebar thingy. The user clicks a button and my slick little eye candy flash movie has a secondary navigation list slide down while any buttons underneath slide down as well. Then when you click on another button it slides back up and the new button's secondary nav slides down. nuff said.
what I would like to have happen is that when a user clicks on a secondary nav button and a new html page loads, I would like it to appear that the secondary nav slider has stayed down on the newly loaded html page.
this means passing some kind of variable to my flash movie so that it can tell which page the user is on and react (go to a particular frame)
what's the easiest/best way to accomplish this? thanks in advance
Pull Variable In Flash SWF From HTML Page
Here's what I want to do... HTML pages home.htm, about.htm, contact.htm all have the same Flash SWF in the page for nav buttons. Each page loads with target _self, and I want to have the flash movie load on each page at a different frame number BUT I want to use the same SWF.
For Example:
home.htm starts on frame 1 and stops at frame3, when you click the About link, it loads about.htm and sets the goandplay on frame 4. Then with the contact.htm page, it loads and starts on frame 7.
I'm guessing I need a some variable in the HTML code of each .htm file to tell it were the target is to start at whatever frame I decided.
Can this be done.. and if so, where would I start?!?!
thanks,
Basher
Seems Like It Is Not Recognizing The Variable Passed From The Html Page
I have a movie that is a background to this website. Here is the html:
HTML Code:
<div id="flashcontent">
<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="100%" height="100%">
<param name="movie" value="Images/SWFs/WholeBG.swf?grass=true">
<param name=quality value=high>
<param name="wMode" value="transparent">
<embed src="Images/SWFs/WholeBG.swf?grass=true" width="100%" height="100%" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object>
</div>
You can see the variable is appended to the param and embed tags: "?grass=true"
Below is the actionscript to the background movie that will call the loadGrass function if grass is equal to true (near end of script). But for somereason grass is never true because it never loads. I know the loadGrass function works without the if statement. Do you think it is not recieving the grass variable? What else could be happening?
ActionScript Code:
Stage.align = "bl";
Stage.scaleMode = "noScale";
Stage.showMenu = false;
// This function gets a random number and is called by various functions
function getNum()
{
var i:Number = Math.random();
return i;
}
// Water Background Loader
function loadWater()
{
_root.attachMovie("waterBG_mc", "waterBG_mc1", this.getNextHighestDepth());
var water_x:Number = 1 + (Math.ceil(System.capabilities.screenResolutionX / waterBG_mc1._width));
for (var i = 2; i <= water_x; i++)
{
var id:String = "waterBG_mc" + i;
_root.attachMovie("waterBG_mc", id, this.getNextHighestDepth());
_root[id]._x = _root.waterBG_mc1._width * (i - 1);
}
}
// Grass Loader
function loadGrass()
{
_root.attachMovie("grassBG_mc", "grassBG_mc1", this.getNextHighestDepth());
var grass_y:Number = _root._height - _root.grassBG_mc1._height;
_root.grassBG_mc1._y = grass_y;
var grass_x:Number = 1 + (Math.ceil(System.capabilities.screenResolutionX / _root.grassBG_mc1._width));
for (var i = 2; i <= grass_x; i++)
{
var id:String = "grassBG_mc" + i;
_root.attachMovie("grassBG_mc", id, this.getNextHighestDepth());
_root[id]._x = _root.grassBG_mc1._width * (i - 1);
_root[id]._y = grass_y;
}
}
//bubbles
function bubbleAttack()
{
var rand_x:Number = Math.ceil(_root._width * Math.random());
var rand_y:Number = Math.ceil(_root._height * Math.random());
var rand_num1:Number = Math.round(getNum());
var rand_num2:Number = Math.round(getNum());
var rand_num3:Number = Math.round(getNum());
var rand_id:Number = rand_num1 + rand_num2 + rand_num3;
var id:String = "bubbleMC_" + rand_id;
_root.attachMovie(id, id + rand_x, this.getNextHighestDepth());
_root[id + rand_x]._x = rand_x;
_root[id + rand_x]._y = rand_y;
var rand_scale:Number = Math.round(200 * getNum());
_root[id + rand_x]._xscale = rand_scale;
_root[id + rand_x]._yscale = rand_scale;
updateAfterEvent();
}
// For some reason calling function bubble attack with setInterval causes errors,
// so Instead I call function go with setInterval to call bubbleAttack
function go()
{
bubbleAttack();
}
// Manatee Loader
function loadManatee()
{
_root.attachMovie("manateeMC", "manateeMC1", this.getNextHighestDepth());
//var manatee_x:Number = System.capabilities.screenResolutionX - (1.5 * manateeMC1._width);
//var manatee_y:Number = System.capabilities.screenResolutionY - (1.25 * manateeMC1._height);
var manatee_x:Number = 500;
var manatee_y:Number = _root._height - _root.manateeMC1._height;
_root.manateeMC1._x = manatee_x;
_root.manateeMC1._y = manatee_y;
}
//call of functions
loadWater();
if(grass == true){
loadManatee();
loadGrass();
}
setInterval(go, 50);
Pull Variable In Flash SWF From HTML Page
Here's what I want to do... HTML pages home.htm, about.htm, contact.htm all have the same Flash SWF in the page for nav buttons. Each page loads with target _self, and I want to have the flash movie load on each page at a different frame number BUT I want to use the same SWF.
For Example:
home.htm starts on frame 1 and stops at frame3, when you click the About link, it loads about.htm and sets the goandplay on frame 4. Then with the contact.htm page, it loads and starts on frame 7.
I'm guessing I need a some variable in the HTML code of each .htm file to tell it were the target is to start at whatever frame I decided.
Can this be done.. and if so, where would I start?!?!
thanks,
Bash3r
Pull Variable In Flash SWF From HTML Page
Here's what I want to do... HTML pages home.htm, about.htm, contact.htm all have the same Flash SWF in the page for nav buttons. Each page loads with target _self, and I want to have the flash movie load on each page at a different frame number BUT I want to use the same SWF.
For Example:
home.htm starts on frame 1 and stops at frame3, when you click the About link, it loads about.htm and sets the goandplay on frame 4. Then with the contact.htm page, it loads and starts on frame 7.
I'm guessing I need a some variable in the HTML code of each .htm file to tell it were the target is to start at whatever frame I decided.
Can this be done.. and if so, where would I start?!?!
thanks,
Basher
Pass A Variable From Flash With Java To Html Page?
I know this is possible without ASP or anything.
Basically I want the user to enter their name into a text field in a flash movie, click a button and this opens up an html page with the message "hello [NAME]". Thats basically it, I can do it with ASP but this needs to work locally so I guess Java is the way to go.
Ta.
Passing A Simple Variable From An HTML Page Into Flash?
Okay...so here it goes....
Okay the first part isnt as important to my question but I have to set up the scenario for you... Inside a flash file I have like 5 buttons that control the x position of a movie clip (the movie clip is called "mc_maincontent".The movie clip is longer than the stage itself and when I click one of the 5 buttons it tells the movie clip to position itslef accordingly. Basically it makes the movie clip slide into position depending on which button you push.The main timeline is only 3 frames long.. So here is the actual code that I have:
//this is what is in the first frame on the main timeline.
currentPos = _root.mc_maincontent._x;
clickedPos = currentPos;
//this is what is in the 2nd frame on the main timeline.
//the 7 is just what i dived it by to controll how fast it scrolls
if (currentPos != clickedPos) {
currentPos = currentPos + (clickedPos - currentPos)/7;
_root.mc_maincontent._x = currentPos;
}
//this is what's in the 3rd frame, i just keeps going back to frame 2
gotoAndPlay(2);
Now with all of that said, the five buttons that i have on the main timeline that controll the x position of the movie clip each just have a simple bit of code in them that sets the properties of the "clickedPos" variable...for example button one contains the code:
on (press) {
clickedPos = 386.7;
}
OKAY SO NOW HERE IS THE ISSUE........
What if I have an HTML page, that is seperate from the page housing this flash movie, but if for some reason I want this seperate HTML page to have buttons on it as well (not flash buttons though) and if I click one of these buttons it tells the flash file in the other page to change that "clickedPos" variable to another value. How would one do this?
Html Button Passing Variable To Flash Next Page
Hi
I hope someone can help me here or direct me to somewhere. I would like to pass a variable to a flash file from the previous html page. I thought I could add a php query and the flash file would automatically pick it up, but obviously I am being naive.
Basically is it possible to add a variable to the html that an embedded flash file can read.
any help greatly appreciated if you can understand the drivel I have written above
many thanks
adam
Passing A Variable In A GetURL Function To An HTML Page With JavaScript
This is probably a stupid question, but here goes:
I want to open external windows with high quality jpegs, and I don't want toolbars, scrollbars, etc...
So what I have made a blank html page called "launch.html"
On this page is some simple javascript set up to take the variable passed from Flashs getURL function, and open up a new window with the correct file.
But when I use a javascript alert to find out if the variable is being passed correctly the alert box says my variable is undefined.
The flash getURL function is scripted as such:
getURL("launch.html&openWindow=" + _root.myTarget, target="_blank", "GET")
_root.myTarget variable is set when a user presses a thumbnail image on my webpage.
Well thats my problem, hope I explained it well. Thanks ahead of time for any help you can provide
btw, using Flash 5
Page 2 - LoadVars.send Won't Send
It occurs to me that 'send' is not as useful and rarely better to use than 'sendAndLoad'. Even if you do not intend to use any returned variables, the 'sendAndLoad' method will notify Flash that your server side script has processed the information correctly.
Just check this commented code out and I think you will agree this is much better...
Code:
// Success/Failure function sends user on to new frame when called
test = function (success){
if (success){
gotoAndPlay("loaded");}
else{
gotoAndPlay("failed");
}
};
update=new LoadVars(); // create new LoadVars object called 'update'
update.data="value"; // assign the variable 'data' to the new LoadVars object
update.onLoad=test; // call the test function when the transfer is complete
update.sendAndLoad("update.php", reply, "POST"); // begin the transfer
stop(); // stop the movie (continues on calling the 'test' function)
In my example above is the 'sendAndLoad' line:
update.sendAndLoad("update.php", reply, "POST");
1. 'update.sendAndLoad' sends our 'update' LoadVars object.
2. 'update.php' is our script.
3. 'reply' is the LoadVars object any results will be returned in.
4. 'POST' is our method.
...as you can see, if the script processes the data correctly it will return a successful operation to Flash, where you can then continue your movie. It will also return a non-successful operation and allow you to forward to a Flash frame with some form of error message (which I think should be a requirement of any data transfer).
That would be the best advice I could offer, but if you are adamant about using just a 'send' command... try using your LoadVars object instead of a window target, as I think its is very odd the same object is apparently using different methods...
data.send("save2.pl", data, "POST");
Yeah, btw surely its 'POST' not 'GET' ...some data send/load objects will not work with the 'GET' method, so its wise to stick to 'POST' unless its necessary not too.
A Load Html Page Button On A Two Frame Html Page
can someone help me? I want to load an html page on a different frame of the same html page from a swf that are in the principal frame. I know i have to use javascript and, i suppose, fscommand. Can someone help me? I'm a novice on javascript
Will Swf Loaded Into One Html Page Be Cached For Another Html Page
Trying to decide how best to structure a flash website and would like to know if loaded swf elements are cached.
Basically I was going to structure the site into 5 separate sections each a separate flash file on a separate html page.
i.e
Homepage.html (this holds homepage.swf)
Services.html (this holds services.swf)
Portfolio.html (this holds portfolio.swf)
ComingSoon.html (this holds comingsoon.swf)
Contact.html (this holds contact.swf)
Each of these main flash files will share certain elements such as the navigation buttons, the main interface etc.
My question is, once a shared swf element has been loaded into homepage.html, is this shared element then in the browsers cache and does not require to be downloaded again when the user navigates to say services.html?
The main reason I am structuring it this way is to allow bookmarking of each of the main sections and also to keep the initial download file size down rather than have to download all 5 sections as one movie.
Thanks
Paul
Help Me Please : Send To Frames Page
Can anybody please help me, i have been stuck on this problem for a few weeks now. You guys are my final hope!!
I have a webpages that uses three frames (javascript). the left and right frames are pure HTML but the centre frame contains a flash movie with all my buttons on. The problem i have is that i need the user to click a button in the flash movie that then targets the two frames either side, changing the HTML pages in them. i.e. click the button changes a picture on the left and text on the right.
Anybody got any ideas, i would be very grateful.
Thanks for your help
Send Variables To The ASP Page
I have problem:
I send the variables and I need to prevent SWF not open new window in browser.
I tried to use "_self" parameter, but the window is still open.
Why?
Code:
SendMail = new LoadVars();
SendMail.email = email_txt.text;
SendMail.subject = subject_txt.text;
SendMail.body = body_txt.text;
SendMail.send("forms/send_mail.asp", "_self", "POST");
trace("checked = "+checked);
trace("variables sended to the ASP page");
email_txt.text = "";
subject_txt.text = "";
body_txt.text = "";
Send A Page To A Friend
Hi guys,
I made a html site with a menu in Flash, but in the menu I have a button to send the page to a friend by email.
I already did something like that in html but in actionscript I'm not really sure...
In html the source code for the link looking like that:
href="http://neptune.nuspec.net/cgi-bin/tell/tell.cgi" class="style1"
onclick="window.open('http://neptune.nuspec.net/cgi-bin/tell/tell.cgi?referer='+escape(window.location.href),'' ,'width=360,height=360,status=1');return false;">Send this page to a friend</a>
But how can I whrite that in actionscript? or someting doing the same thing?
To give you an exemple, go to this adress http://www.trigonelle.com/inn_laurentians_quebec.html and look a the bottom of the page. You have a link Send this page to a friend, click on it.
In actionscript, I want that the link open the popup like in the exemple.
Thank you for your help!
Send A Page To A Friend
Hi guys,
I made a html site with a menu in Flash, but in the menu I have a button to send the page to a friend by email.
I already did something like that in html but in actionscript I'm not really sure...
In html the source code for the link looking like that:
href="http://neptune.nuspec.net/cgi-bin/tell/tell.cgi" class="style1"
onclick="window.open('http://neptune.nuspec.net/cgi-bin/tell/tell.cgi?referer='+escape(window.location.href),'' ,'width=360,height=360,status=1');return false;">Send this page to a friend</a>
But how can I whrite that in actionscript? or someting doing the same thing?
To give you an exemple, go to this adress http://www.trigonelle.com/inn_laurentians_quebec.html and look a the bottom of the page. You have a link Send this page to a friend, click on it.
In actionscript, I want that the link open the popup like in the exemple.
Thank you for your help!
Send This Page Script
I am looking for a send this page form like the one found here:
http://www.adobe.com/products/creativesuite/web/standard/?xNav=WS
is this script available anywhere?
Thanks
Send Variables To ASP Page
I want to link to a web page from my Flash swf and send variables to that web page (probably ASP page that someone else will be coding). I don't know much about ASP or Flash's sendVar and other methods of doing this. I planned to use the following code in the Flash button with "agent" being the variable. I don't see the variables in the URL when it links. Does that mean it isn't working? Is there a way to modify my script below or do I need to use another method? And if I want to send all variables, how do I do that? Ampersands to list them all or another way?
on (release) {
getURL("contact.html?agent="+_root.agent,"_blank", "GET");
}
Thanks,
Brian
Send Data From A Web Page
Does anyone know why my web page doesn't send the submit data to my e-mail adress?
This is my php code:
<?php
mail("coachesgroup@coachesgroup.com",$name,$surnam e,$bussines,$role,$adress,$phone,$days,"From: PHPMailer
Reply-To: $from
X-Mailer: PHP/" . phpversion());
?>
And here is my swf file too.
Thank you all!
Send Variables To The ASP Page
I have problem:
I send the variables and I need to prevent SWF not open new window in browser.
I tried to use "_self" parameter, but the window is still open.
Why?
Code:
SendMail = new LoadVars();
SendMail.email = email_txt.text;
SendMail.subject = subject_txt.text;
SendMail.body = body_txt.text;
SendMail.send("forms/send_mail.asp", "_self", "POST");
trace("checked = "+checked);
trace("variables sended to the ASP page");
email_txt.text = "";
subject_txt.text = "";
body_txt.text = "";
How To Send Data To ASP Page?
Whats up guys?
ok i am stumped on this, i am trying to send data to a ASP page.
i am trying to track a flash movie.
the asp page is already set up. but i have tried everythign in my knowledge to get this to work.
this is the code i am using..
on timeine i have
myLoadVars= new LoadVars();
myLoadVars= "";
on (release){
_root.myLoadVars="gantz";
loadMovie("flash/gantz.swf", 4);
_root.myLoadVars.send("trackflashmovie.asp","",GET );
trace(_root.myLoadVars);
}
If youc an help please give me an answer thanks!
Send Data From A Web Page
Does anyone know why my web page doesn't send the submit data to my e-mail adress?
This is my php code:
<?php
mail("coachesgroup@coachesgroup.com",$name,$surnam e,$bussines,$role,$adress,$phone,$days,"From: PHPMailer
Reply-To: $from
X-Mailer: PHP/" . phpversion());
?>
And here is my swf file too.
Thank you all!
Using Flash To Send Page
I have a simple form within Flash that sends allows someone to send whatever page they are on to another via email. Right now, everything works...except the URL.
I am using PHP, and I was thinking I could place this into the page code:
$URL = $_SERVER['HTTP_REFERER'];
but, how can I pull that variable into a swf on the same page and then pass it back out of that swf as a variable? It seems like something that would be pretty easy to do. I know how to send variables in flash, but I am having trouble with this one.
Thanks.
|