GetURL & Variables
Hi everybody,I have the following action attached to a button. The problem is that I always get the same page select01.cfm, even if the CF cookie doesn't exist yet.So, what I would like to do is: if ColdFusion'cookie exists, tell my Flash navbar to use one URL, otherwise Flash use the other one.Any idea?Thanks in advance.Attach Codeon (release) {if ("Cookie.UserID" == undefined) { var myURL:String = "login02.cfm?language=fr";}else {var myURL:String = "eshop/select01.cfm?language=fr";}getURL(myURL);}
Adobe > ActionScript 1 and 2
Posted on: 12/07/2006 08:47:05 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Variables In GetURL
I wish to display a list of names from a database and have them clickable to go to a URL
e.g Name: Smith, A URL: "http://localhost/CFDOCS/premier/PlayerHome.cfm?PlayerID=SMITHA"
I am bringing across to Flash the relevant fields, Name and PlayerID creating arrays and duplicating movie clips for display thus for the Name field
for (i=0; i<player_length; i++) {
duplicateMovieClip (colPlayer, "colPlayer" add i, i);
setProperty ("colPlayer" add i, _y, yposition);
colPlayer.data = player_array[1];
set ("colPlayer" add i add ".data", player_array);
}
which get shown in the column colPlayer
So far so good
I have done exactly the same with the PlayerID as a check although I do not want to display this in my final version
On each name in the Name column I want to have a script like
onClipEvent (mouseDown) {
if(hitTest(_root._xmouse,_root._ymouse, true)){
getURL ("http://localhost/CFDOCS/premier/PlayerHome.cfm?PlayerId="SMITHA");
}
}
obviously without the hardcoding
I haven't been able to find an exactly equivalent problem in the forum
Any help much appreciated
Using GetURL With Variables ?
I am trying to create a navigation system & the URLs are likely to change fairly often. I want to be able to use a series of variables to load in the URLs. I have tried replacing the "www.myurl.com" with the variable myUrl, where myUrl="www.myurl.com" but it doesn't seem to like it. Any ideas?
GetURL Using 'variables'
hi there,
I'm trying a new idea to get a URL depening on variables.
I've set up a series of buttons which set the variables as 'dynamic text'
Code:
_root.area="ENGLAND"
_root.city="London"
and I was hoping to set the following variables on the root of the movie:
Code:
myURL="http://www.MyURL.com?page=search.aspx?area="+area+"&city="+city+"
with code on the search button:
Code:
on (release) {
getUrl(myURL);
}
but this throws up errors. I think the basic idea is there, but my 'variable' string is incorrect... Any ideas?
Cheers
Using Variables In GetURL
ok I have an inputbox with the variable name search, and when a button is clicked I want a page to open with the url: http://music.lycos.com/default.asp?QT=S&QW=search but with the search replaced by whatever has been typed into the inputbox
this is the code I have set for the button at the moment, can anyone help?
Code:
on (release) {
getURL("javascript:NewWindow=window.open('http://music.lycos.com/default.asp?QT=S&QW=search'); NewWindow.focus(); void(0);");
}
GetURL Variables
What are the variables I put into my script in order to get my new pop up window to function as I want. I have used them in html but never in actionscripting. I want to things like width, height, no scrollbars, no resize, no menu bars, and things of that nature. What variables are available to me and how do I integrate them into this simple code?
on (release) {
getURL("pools/free/i/5.jpg", "_blank");
}
Thanks so much. I looked around for a while but couldn't find a simple listing.
GetURL With Php Variables
Hi,
I'm trying to include a variable in my URL in flash. For example, I'd like this: getURL("site.php?school="$school"&pg=welcome"
It might to be hard to understand what I want. In my php page, i have the school they select to be stored to $school. I'd like for the URL in the getURL line to include the variable. For instance, if they chose "anderson" as the school, I want the link to be site.php?school=anderson&pg=welcome.
Thanks
GetURL With Php Variables
Hi,
I'm trying to include a variable in my URL in flash. For example, I'd like this: getURL("site.php?school="$school"&pg=welcome"
It might to be hard to understand what I want. In my php page, i have the school they select to be stored to $school. I'd like for the URL in the getURL line to include the variable. For instance, if they chose "anderson" as the school, I want the link to be site.php?school=anderson&pg=welcome.
Thanks
GetUrl Variables?
on (release) {
getURL("mypg.html", "_blank");
}
So after blank can you put other parameters like window no resize etc? Or does that only work with javascript?
Using Variables As Part Of A GetURL
hey, i'm trying to gather a variable as part of a getURL command
for instance i want this to be standard in every link:
http://www.backin79.co.uk/audio/
then i want a variable from a text file to do the rest:
so a button does this:
OnRelease
if tickbox1 eq "download"
getURL: http://www.backin79.co.uk/audio/'/:variable1'
end if
endOn
anyone help?
How To Append Variables To GetURL
Does anyone know how to append variables to a getURL string?
What I am trying to do is once a variable has been passed back to a Flash movie I am looping through an if statement and based on the variable I direct a user to a different URL. Along with directing them to a differnet URL I need to pass the variable on the querystring. I'm familiar with doing it as a loadmovie expression but not as a getURL. Any help or suggestions would be appreciated.
Passing Certain Variables Using GetURL?
I would like to know if there is a way to only pass certain variables via the getURL command. I'm passing variables in between HTML pages using GET and the URLs are of an ungodly length, passing every variable I define in a movie just seems kinda like overkill if I only need to pass one or two.
Any help is appriciated!
thanks in advance,
-FirebornX
Sending Variables+getURL
Ok so I have an asp file on say http://www.test1.com/clicky.asp
and it has a form
<FORM ACTION="clicky.asp" METHOD=POST>
What is your e-mail address?
<input type="text" size="15" maxlength="80" name="email"><BR>
What is your web site address (optional)?
<input type="text" size="15" maxlength="900" name="website"><BR>
<input type="submit" value="Clicky" name="step"><P>
</FORM>
Now say I want to put a flash file on a client domain.. http://www.test5.com
Is there a way I can use getURL (method=post)on the client site to goto http://www.test1.com/clicky.asp while sending the variables..
Basically from the client site I want to send all html form variables from the flash file to the formAction page so the user can register without ever having to manual enter data..
I want all hidden data sent too, possible?
Thanks and sorry for my english.
Use Variables In GetURL(javascript)?
I'm using JavaScript to open a popupwindow. In flash I coded like this:
Code:
on (release) {
getURL("javascript:launchwin('video/clients/corporate1/corporate1.html' , 'newwindow' , 'toolbar=no,directories=no,menubar=no,scrollbars=no,width=276,height=155,resize=no')");
}
Works fine, but I generate the name of the exact html content through variables, like this:
Code:
myVideo = "video/clients/" add _root.topic add "/" add _root.topic add ".html";
Can I put the var myVideo inside the getURL action, in stead of 'video/clients/corporate1/corporate1.html'?
I tried this, but it didn't work:
Code:
on (release) {
getURL("javascript:launchwin(myVideo, 'newwindow' , 'toolbar=no,directories=no,menubar=no,scrollbars=no,width=276,height=155,resize=no')");
}
GetURL() And ASP Session Variables
I'm going to try and explain this the best I can...
Here we go...
I'm using a Flash MX menu to navigate a company Intranet. When a user logs into the Intranet, an ASP script sets Session variables so that other pages can detect if a user is logged in. All of the pages of the Intranet are set up to kick back to the login screen if these Session variables are not set. When navigating with the Flash Menu, the Session variables do not carry to the next page (even if they are ALREADY SET).
I'm using the getURL(link) actionscript command...
I was wondering if anyone knew a way to make these Session variables carry over after a call to getURL() or if there is another ActionScript command that could be used?
Thanks for the help,
Grier
Sending Variables Thru GetURL?
As a Precursor: I am using Flash 5!
I am using get URL for the first time. My objective is that when a link in my embedded Flash movie is clicked, a new URL is loaded in it's place with a new flash movie embedded in it. The problem is this: I need the Flash movie in the newly loaded URL to goto a certain frame, depending on what is clicked in the first movie at the previous URL (i.e. if the FAQS link is clicked, I want it to load the new movie and go directly to the FAQS section). Can someone please tell me how to do this. I know it entails sending a variable but I dont understand how to send variables thru the GetURL action; I would send using GET but where in this dialogue box does one insert the variable? and how would the new movie read the variable to implement the appropriate event?
Any help would be much appreciate. And I thank everyone who was kind enough to respond to previous questions.
-Debbie
Sending Variables In GetURL
When I use this string
getURL("javascript:doLMSSetValue('cmi.core.lesson_ location','1');");
everything works fine and the number 1 is populated as it should be. My problem is that I want to substitute the 1 with a variable like loca.
So I would have
var loca=22
getURL("javascript:doLMSSetValue('cmi.core.lesson_ location','+loca');");
The problem is that +loca is what is sent, not 22. I have tried moving around the quotes and apostrophe's but cant seem to find the right solution.
Thanks for the help.
Variables In GetURL Function
im trying to have flash open a new window that will have an image in it for a corresponding gallery item in the flash site. But I don't want to make hundreds of .html documents for each image, so I am trying to pass the relevant info to one html document so it can do the work for me.
The problem is that I want to use the getURL function to open the new window with the variables, but it doesn't seem to be doing what I want it to. Here is the code i am using:
on (release) {
getURL("popup.htm?/projects/"+_root.foldername+"/"+_root.projname+"_1highres.jpg", "_blank")
}
However it stops at the question mark and doesn't look at the rest.. how do I get it to do what you can see I am telling it to do?
Thanks!
Importing Variables Into GetURL
I have a text file that loads dynamically into a flash movie. One of the variables I load is a url to another website.
The url is declared in the text file as:
&order=http://website.com
It is called up in the actions panel as: (snippet)
artist_txt.htmlText = this.artist;
cd_txt.htmlText = this.cd;
quantity_txt.htmlText = this.quantity;
order = this.order;
var sectionCount = titles.length;
It is then loaded into a button with the following script
on (release) {
getURL("order", "_blank", "post");
}
When I select list variables in output mode the url string displays properly.
Unfortuantely, I get the following error in the web page:
The file
/H/html/heartland/music/order?lv=order=http%3A%2F%2Fheartlandcommunitychur ch%2Espreadth…
cannot be found. Please check the location and try again.
Can anyone tell me where I am goning wrong?
Thanks in advance
Rick
[F8] GetURL Using POST With Variables
I'll make this as easy as I can to explain:
I am making a small product catalogue, and want to call to call an outside website the UPC of each product.
If I use something like
Set Variable: "upc" = "897441000115"
to find the product, how do I set up the getURL script so it will find this?
The product is currently being found via an html form, using the following:
Code:
<form action="http://www.website.com/location.asp" method="post">
<input name="upc" type="hidden" id="upc" value=897441000115>
</form>
but the company now wants the product form directly IN flash. it's just a simple "click on image, find it" form.
hope someone can help!
GET, GetURL And Passing Variables
i have some code that brings PHP variables using flashvars: 2 textboxes and
a background image:
Code:
class Main extends MovieClip{
function Main(){
this.stop();
this['image_mc'].loadMovie(_root.VarPhoto);
this['overlay_mc']['text_txt'].text = _root.varCaptionText_Top;
this['overlay_mc']['text_txt2'].text = _root.varCaptionText_Bottom;
}
this works fine.
i want to pass those same variables to a php popup via the getURL function. This works fine, passed through GET:
Code:
function onRelease(){
var flashblah = "test";
getURL("javascript:openNewWindow('popup/popup.php?varCaptionText_Bottom=" + flashblah + "','thewin','height=600,width=500,toolbar=no,scrollbars=yes');");
}
but this does not.. and i cant work out why...
Code:
function onRelease(){
getURL("javascript:openNewWindow('popup/popup.php?varCaptionText_Bottom=" + _root.varCaptionText_Bottom + "','thewin','height=600,width=500,toolbar=no,scrollbars=yes');");;
}
this neither:
Code:
function onRelease(){
var flashblah = _root.varCaptionText_Bottom;
getURL("javascript:openNewWindow('popup/popup.php?varCaptionText_Bottom=" + flashblah + "','thewin','height=600,width=500,toolbar=no,scrollbars=yes');");;
}
declaring it a global doest work either:
Code:
_global.myVariable = _root.varCaptionText_Bottom;
function onRelease(){
getURL("javascript:openNewWindow('popup/popup.php?varCaptionText_Bottom=" + _global.myVariable + "','thewin','height=600,width=500,toolbar=no,scrollbars=yes');");;
}
what am i doing wrong?
Convert Php Variables To GetURL
i'm not a scripter, no php but some simple actionscript. i'm trying to load the contents of a folder which contains .pdf documents using a php script like this:
<?php
$handle = opendir(".");
while($item = readdir($handle)) echo $item . "
";
closedir($handle);
?>
how can i send/read the output (=the directory contents) to/in flash and convert them, so that flash lists the filename (without the ".pdf" ending) an onClick opens the file in a new window?
[CS3] Using GetURL To Send Variables
Hi,
I'm trying to launch a website today and we have a navigable flash banner as one of the main sections. One of the features of this section is the ability to 'Send to a friend'. Up until now I've been using "getURL" to send an address out of flash to a script that then handles the rest of the process. It all works fine except the method causes flash to open a new blank window with the URL sitting there in the address bar which obviously isn't ideal for a number of reasons.
How can I hide this process from the user? Currently, the url that is output is in the format of:
***.com/flash_post/process_flash_post/index/54tdr9kgfdlgmdklk/?email=me@domain.com&pathWay=inspirationinformatio n
I'm a pretty new user to AS so please bare this in mind if offering help.
Thanks so much!
Sending Variables With 'getURL'
Howdy, Everyone!
I inserted this code into my banner for a campaign that I am running. The unique URL sends a value.
This is what the code looks like. Pretty darn simple:
on (release) {
getURL("http://www.mywebsite.com/go.php?id=LJCG68", "_blank");
}
Does this seem right to everyone? I wouldn't think there would be any issue with this. The URL works fine, but the values do not seem to be sent properly....
GetURL - How Do I Pass Variables With
OK, I have 1 variable (username) that I need to pass with a getURL statement like this:
getURL("http://mywebpage/mywebpage.html","_self");
how can I get that variable to the loaded page?
HALP Variables And GetURL
But I am really stumped and cannot even seem to get on the actionscript site to post this.
PLEASE HELP PLEAASSSSSEEEE
Hi I have a simple graphic that is on a page that holds a StoreID
I want, if people click on the graphic, for them to go to a page based on what the store id is.
I have read all the tutorials but I cannot get it to work.
My action script on my panel is
onClipEvent (mouseDown) {
getURL("products.asp?value=" + Value, "", "GET");
}
and my index file reads
<object classid="clsid27CDB6E-AE6D-11CF-96B8-444553540000" id="obj2" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="774" height="179">
<param name="movie" value="images/site_images_monthly/2test.swf?Value=0">
<param name="quality" value="High">
<param name="scale" value="NoBorder">
<param name="salign" value="TL">
<param name="wmode" value="transparent">
<embed src="images/site_images_monthly/2test.swf?Value=0" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj2" width="774" height="179" quality="High" scale="NoBorder" salign="TL" wmode="transparent"></object>
As you can see, I simplified things by embedding a hardcoded value called 'Value" but when you go to my page at
www.popshop.org/stores/themes/popshop/index.asp
you'll see that clicking on supergirl image doesn't pass the value to the next page.
How do I do this? I've seen lots of talk about it but nothing specific enough for a novice like me to use.
Thanks!
How To Pass Variables Via GetURL()?
Hi there,
I'm building a Flash page that requires a user to login, and then allows him to navigate to many different CFM/HTML applications. I need to pass some variables to the Coldfusion application, such as the userId, user name, etc to these pages.
But I don't see how I can pass variables using getURL(), unless I actually type the variables into the URL line, like this:
ActionScript Code:
getURL("http://mypage.com?userid=ab1234");
But I might have 15 variables to keep track of, and it's kinda messy to type it all in the URL.
What's the best/easiest way to navigate from Flash to another webpage, while also passing all the necessary variables?
I also need to be able to press the browser's back button to get back to the Flash page without having the user log in again.
Any help is appreciated! Thanks!
GetUrl And Variables Problem
Hey guys, I've got a silly problem with actionscripting.
I have o button on stage, and I want to add an action to this button by actionscripting. The action will tell the button to open a webpage BUT the URL will be in a variable so the code is:
ActionScript Code:
button.onRelease = function() { getURL(_root.mylink);};
Now, I will set the value of the variable. The problem is that I want the URL to open in a "_blank" Window. I've tried this:
ActionScript Code:
_root.mylink = "http://www.sampleurl.com", "_blank";
... can somebody tell me what's wrong with setting the variable? every time a click the button it takes me to the webpage, but in the main window - not in a pop.
If I were not using variables the code should be like this
ActionScript Code:
getURL("http://www.sampleurl.com", "_blank");
F5 - Variables In The GetURL Function?
Does anyone know how to put a variable in the getURL function?
What I'm looking to do is something like this, but I'm not sure of the syntax:
function viewLarger (imgID) {
getURL ("javascript:spawn('_tombstones/index.php?id=(imgID)','tombstone',216,245,'no')");
}
By the way, the spawn code is just a javascript function to load a popup.
I'm sure that this is possible, right? I'm just not the world's best syntax-guy. I don't know exactly how to write this.
Any help?
G
Using GetURL With POST Variables
I need to send a variable (zipcode) to a coldfusion script and also load the cf page that displays the results (same script) in the browser window (_self)
is getURL the appropriate choice for this? (never done it this way before).
if so, does using POST in a getURL just grab any variables on the _root? where does it get its variables?
thanks!
GetUrl And Variables Problem
Hey guys, I've got a silly problem with actionscripting.
I have o button on stage, and I want to add an action to this button by actionscripting. The action will tell the button to open a webpage BUT the URL will be in a variable so the code is:
ActionScript Code:
button.onRelease = function() { getURL(_root.mylink);};
Now, I will set the value of the variable. The problem is that I want the URL to open in a "_blank" Window. I've tried this:
ActionScript Code:
_root.mylink = "http://www.sampleurl.com", "_blank";
... can somebody tell me what's wrong with setting the variable? every time a click the button it takes me to the webpage, but in the main window - not in a pop.
If I were not using variables the code should be like this
ActionScript Code:
getURL("http://www.sampleurl.com", "_blank");
Use GetURL To Pass Variables... Could Use A Tip
Hello... I have a flash pic with an invisible button over the clip. I want the user to be able to click on the button & the following should happen:
should load the page "flashtest2.asp"
should pass the variables= name=jon&description=yadayada
should use GET.
flash test2 is an asp page set up to list the name & description variables
I tried this AS, but it didn't work
on (press) {
getURL(flashtest2.asp?name=jon&description=yadayada, "_self");}
but it didn't work... any ideas?
Unwanted Variables With GetURL
Hi I have a simple form that posts a text field to a php script which i am trying to import into flash. My problem is that its sending lots of unwanted variables to the php script, when i've only given a couple of objects variable names.
I currently have 2 layers. One with all of the images i imported over from fireworks and then another with a Input Text box and search button. The textbox has been given a variable of pc_query and the search button has the following AS:
on (release) {
getURL("results.php", "_self", "GET");
}
The results.php script loads upon pressing the button and the data entered into the text box also follows through. However, i'm also getting alot of other junk i don't want, such as:
results.php?pc%5Fquery=%3CTEXTFORMAT+LEADING%3D%22%2D1%22%3E%3CP+ALIGN%3D%22LEFT%22%3E%3CFONT+FACE%3D%22Avenir+65+Medium%22+SIZE%3D%2214%22+COLOR%3D%2 2%23000000%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3ENG2%3C%2FFONT%3E%3C%2FP%3E%3C%2FTEXTFORMAT%3E&product=%3Cp+align%3D%22left%22%3E%3C%2Fp%3E&v arsSent=pc%255Fquery%3D%255Flevel0%252EpostCode
Please could someone point me in the right direction?
Many thanks,
Nick
Only Pass Some Variables In GetURL, Not All
Hi All, this may be a bit odd, but perhaps there's a way around it.
I managed to pass some variables to a PHP using getURL. Problem is, there is only variable I would like to pass, the others should remain hidden
My ActionScript is as follows:
First Frame
myRootFinder = _url.lastIndexOf("/");
myRoot = _url.substring(0, myRootFinder+1);
On the Button
on (release) {
getURL(myRoot+"sales/search.php?search="+_root.search.text, "", "GET");
}
As soon as I take the GET out, I get an error. Has to be either POST or GET (according to Flash).
I know this is minor, but any suggestions?
Loading Variables Into A GetUrl-action
hey,
i want to load some variables from a .txt-file and then use this txt (wich is an URL) into a getUrl action
the variables load into a txtfield but then i'm stuck... :
getURL (_root.txtField1, "_blank");
.txt Variables Into Array With GetURL Support
flashers:
i have a .txt file with x number of names/http links. what i want to do is load this data into an array so that name[x] corresponds with link[x] in a simple output list. link[x], therefore, must be a button, enabling the user to click via getURL(), however, i have not been able to successfully import more than one variable from my .txt file and still have a functioning link.
is it even possible to increment a movie clip instance? for example, i have a text field variable called "text" which is placed in a button. that button is then placed in a movie clip with instance name "info." i want info to be incremented every time a new variable is loaded from the .txt file. that means if i have 50 variable (names and links), the infoArray should also have a length of 50.
any help would be more than appreciated!
thanks in advance!
-oni
PRO Help NEEDED: Passing Variables To JS Using GetURL
hello all-
I'm dynamically loading URL's (and window size values) from a database and have assigned the values into Flash arrays.
In the following script, passing static values (in place of the URL,txg2,txg3) works and opens the pop-up window corectly...
on (release) {
kwm = arrayNum;
txg1 = eval(arLaunchURL[kwm]);
txg2 = eval(arwinWidth[kwm]);
txg3 = eval(arwinHeight[kwm]);
getURL("javascript: popUpWin('http://www.flashkit.com',txg2,txg3)");
}
HOWEVER, when I place variables into the getURL function, I am getting Javascript errors.
ERROR: 'txg2' is not defined.
I know the arrays are correctly holding the data, since I've tested them.
I've tried a variety of techniques (including 'eval()'), but none seem to work.
One of my last guesses is that the syntax is incorrect in some way, and Flash is just passing the text name of the variable.
Anyone heard of this problem before?
Any ideas or assistance is much appreciated.
-R.
Help With GetURL > Setting Variables :confused:
Simple question .... I hope
I have a swf on my site that contains a button that loads a pop-up window.
It does this with the following code ...
Quote:
on (release) {
getURL("http://www.mysite.com/myfile.html", "new window");
stop();
}
The problem is that I need to customise the pop-up window size and properties (ie no scrollbars and no address bar)
I know I can do this with the following Javascript ...
Quote:
on (release) {
getURL ("javascript:OnlineWindow=window.open 'http://www.mysite.com/myfile.html','onlineWin','width=780,height=600,loc ation=No,scrollbars=No');
stop();
}
.... however because of the way that my domain is set up (front end address loading pages from different site) this java route doesn't work.
Is there anyway to do it without Java? can I POST it with getURL variables?
I'm sure it not that difficult
Many thanks for any ideas / answers.
Please Help Me With Passed Variables In GetURL Address
Hello, I haven't asked anything here in a looong time so I hope you'll be kind with me because I really don't know how to go about this...
I am building a multi-lingual PHP website with Flash menus.
I know how to DISPLAY a variable within a Flash movie that is passed to the movie in the url (ie "movie.swf?var=value" or "movie.swf?var=$phpvar") but I don't know how to use that variable... In other words, if I wanted to DISPLAY that particular variable within Flash MX I would simply create a text dynamic field and enter the name of the variable (var) in the Var property field of the dynamic text field. When loaded the movie will display the word "value" in the first example or whatever is stored in the $phpvar variable.
My problem is: how do I use the variable's value in an URL???
Here is my situation. When on an english page I am calling my movie like this:
movie.swf?l=en
This should tell my menu to change all the menu's link to english links, which would mean adding ?l=en after all of them.
So now I am in Flash MX and I have to create link with getURL.
What is the value of the URL field? How to I use the variable I sent to my movie within that field? That is my question basically...
I know that in PHP I would simply do this:
echo '<a href="link.php?l='.$l.'">link</a>';
but how do I do it in Flash???
I hope somebody is nice enough to give me the solution!
Sending Variables To Embedded .swf GetURL(?)
Just a quick one.
Using getURL("myDoc.html","_self") from within my main movie.
How/can I load a variable into a .swf file embedded in "myDoc.html".
No javascript ... no php etc.
If so what would be the correct getUrl() call.
Thanks in advance.
Sending Variables To Embedded .swf With GetURL
Hi,
Can I send a variable to an embedded .swf file in a html page I am opening with:
getURL("myNext.html","_self");
If so what is the correct call if the variable within the embedded .swf on html page "myNext.html" has the name "lastPage".
Thanks in advance.
Variables In GetURL Command On A Button?
Is it possible to assign variables to the getURLcommand?
I have my variables in an external .html-file.
Here is some pieces of my code:
var URLlink = "link" +i, ("i" is a counter)
-> URLlink = link1, which is stated in the variables as "&link1=http://www...."
I then tried to use this variables in the actionscript on a button:
on (release) {
getURL(link1);
}
but it only returns "link1!
Is there a smart way to assign the variables to the button?
I would appreciate any hints :·)
Best regards
Michael
GetURL And GET, Choosing The Variables I Want To Send
Hello, I need a trick
I have a getURL in button. My flash document contain many variables because i load a xml file on it.
When my button getURL ('site','_blank','GET') is used... The url of the page it loads is not very easy to undersand
Is there a way to send only 2 or 3 variables.
Thanks!
Passing Variables With GetURL / Popups
hi,
i have seemingly tried every possible method to make this work.. to no avail:
i want to open a popup window using getURL... and this works fine:
Code:
function onRelease(){
getURL("javascript:openNewWindow('popup/popup.php','thewin','height=650,width=516,toolbar=no,scrollbars=yes');");
}
great.
however, i also want to pass variables to it too.... again, this works great:
Code:
function onRelease(){
_root.getURL('popup/popup.php', "", "GET");
}
i get the variables in the php script with GET.
**BUT**
try as I may.. can i make them both work together???? I.e. open a popup window with particular dimensions **and** pass variables??
it seems not.
i thought something like this would work:
Code:
function onRelease(){
_root.getURL("javascript: openNewWindow('popup/popup.php','thewin','height=650,width=516,toolbar=no,scrollbars=yes')", "", "GET");
}
or indeed this:
Code:
function onRelease(){
getURL("javascript:openNewWindow('popup/popup.php?varCaptionText_Bottom=" + flashblah + "','thewin','height=600,width=500,toolbar=no,scrollbars=yes');");
}
basically.. nothing happens at all in either case. im using flash player 9, exporting as a flash 8 movie.
any help gladly appreciated!!!!
How Do I Send Search Variables Using GetURL?
I am attempting to send a variable string to a search page, such as:
http://www.anticrombie.com/search.as...earch+variable
Two questions: 1.) How can I send it using a variable, and
2.) How do I add a '+'sign if they input multiple words?
This is the code I tried so far to tackle the first question:
Code:
on (release) {
searchURL = "http://www.anticrombie.com/results.asp?q=" + k;
getURL(searchURL, "content");
k = "";
}
'k' is the name of the dynamic text box that the search terms are put into. "content" is the name of the target window (frame). 'q' is the variable name that the programmer will put in the asp page to run the search result.
the URL that is coming up is "http://www.anticrombie.com/results.asp?q=", it is ignoring the search terms.
Can anyone point me in the right direction? Thanks in advance.
Reading Variables Passed By GetURL?
Seen this?
getURL("http://www.someurl.com/somepage.htm", _top, "GET");
The URL on your next browser window will be:
eg: http://www.someurl.com/somepage.htm?input=1
How do I get a .swf to read the variable input?????
All examples that I have seen online give me laodVars() or loadVariables() which use text files for input.
I need a string on my browser as input!
Any ideas?
GetUrl Shouldn't Send All Variables
Hello all, as a newcomer to the forums I'll try to be quick.
I'm having a little problem with getUrl. It looks like it's the only method if I want to send POST data to a php site and open the page at the same time. For eg. I want to "PoST" all necessary fields for PayPal payment directly to PayPal and open the paypal page right in the same window.
Looks like easy stuff.
so just do a getUrl( https:// ..... , "_self" , "POST"); someone could say. Yes but it would eventually send all global variables in the movie (paypal will reject it)
or I could do LoadVars.send( ...... ) but this one somehow doesn't want to open the page (looks like it only sends the variables)
Putting the getUrl code in a different class wouldn't also work because it calls by reference transfering reference apparently (in contrary to conventional languages pure OO like Java or Eiffel for example where scope rules r strong Object Oriented), so in other words it would still send all variables across.
So as a last resort looks like I have to play around with movie_clips and scope which for flash I'm not very familiar. If there is any other way I might consider or any good explanation to playing with movie_clips a little hand would be greatly greatly appreciated.
Thank You
Building GetUrl Querystrings W/variables
hello all-
i'm running into what seems to be a simple syntax issue i hope someone can help with. i have a querystring passing a var to my .swf. this var is getting into the movie fine and i can output it in a text box, but i'm having problems "rebuilding it" into my new getUrl. here's what i have:
Code:
on (release) {
getURL("index.cfm?searchtype=" & _root.searchtype & "");
}
what i'm looking to see interpreted by the browser is:
Code:
on (release) {
getURL("index.cfm?searchtype=OH");
}
(where the value of _root.searchtype is "OH")
the action i'm seeing now is the file going to http://mysite.com/0 (where the swf is in the root directory of the site - when i want to see http://mysite.com/index.cfm?searchtype=OH)
thanks much in advance,
nk
Building GetUrl Querystrings W/variables
hello all-
i'm running into what seems to be a simple syntax issue i hope someone can help with. i have a querystring passing a var to my .swf. this var is getting into the movie fine and i can output it in a text box, but i'm having problems "rebuilding it" into my new getUrl. here's what i have:
Code:
on (release) {
getURL("index.cfm?searchtype=" & _root.searchtype & "");
}
what i'm looking to see interpreted by the browser is:
Code:
on (release) {
getURL("index.cfm?searchtype=OH");
}
(where the value of _root.searchtype is "OH")
the action i'm seeing now is the file going to http://mysite.com/0 (where the swf is in the root directory of the site - when i want to see http://mysite.com/index.cfm?searchtype=OH)
thanks much in advance,
nk
|