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








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




KirupaForum > Flash > Flash 8 (and earlier) > Flash 5
Posted on: 05-20-2003, 06:00 AM


View Complete Forum Thread with Replies

Sponsored Links:

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!

View Replies !    View Related
GetURL Function
Can i pass an anchor from a flash file to an other htm doc in a seperate frame?

getURL"file.htm#enclosures"?

thanks.

Josh

View Replies !    View Related
[F8] GetURL Function Help
I dont understand what Im doing wrong. Im trying to pop up this word doc when the button "thumb3" is released. But every time I test it it says the file cannot not be found check path. But I have the file in the same folder as the swf. Heres the code:

thumb3.onRelease = function() {
getURL("C:DocumentsandSettingsJamarcusDesktopw ebsiteResume.doc","_blank");
};
stop();

View Replies !    View Related
[CS3] Help Using Int GetURL Function
Hey,

I already posted this in the ActionScript forum, but I am new to flash so I figured I'd try here to.

So, I have been trying to make a navigation bar for my web page on flash, and I am trying to program the action script for the buttons. I am getting errors and I can't seem to figure out what I'm doing wrong, or if I am even on the right track here. Here's what I have programmed in.

import flash.events.MouseEvent;
homebtn.addEventListener(MouseEvent.CLICK, navload);
function navload(event:MouseEvent):void {
getURL("www.whatsyourlifestory.ca", "_blank")
}

I have also tried using

on(release) {
getURL("website", "_blank");
}

Thanks

View Replies !    View Related
Using GetURL Function
Hey guys,

So, I have been trying to make a navigation bar for my web page on flash using the getURL function and I am trying to program the ActionScript for the buttons. I am getting errors and I can't seem to figure out what I'm doing wrong, or if I am even on the right track here. Here's what I have programmed in.

import flash.events.MouseEvent;
homebtn.addEventListener(MouseEvent.CLICK, navload);
function navload(event:MouseEvent):void {
getURL("http://www.whatsyourlifestory.ca", "_blank")
}

Thanks

View Replies !    View Related
GetURL Function
Hiya, does anybody have any idea why my link to a website will not work once my SWF file is downloaded onto someone elses computer. It woks on my computer fine, going to the correct website. But i then uploaded my SWF file for friends to do a user test but when they download it onto their computer it doesnt work.

Thanks

View Replies !    View Related
GetURL Function
hello guys can somebode tell me please when I use th getURL method for example getURL("http://www.mysite.com); it is always giving me a security message saying it is an unsaf process,so I wanna remove it without the need to change settings of the player from the adobe website.I tried to use the "System.security.allowDomain("http://www.yahoo.com");" but it didnot work.

View Replies !    View Related
GetURL Function
Hi,

I am trying to work out how or if I can resize a browser window to a preset size for example 800 x 600. I have an FAQ application and when the user clicks on video tutorial a swf is displayed. The swf was made using Captivate and has a resolution of 800 x 600.

At present when you click on the button it displays the tutorial in a full browser window, which depends on the users screen resolution. I want to force the new window to open the swf at 800 x 600 without having to embed the swf into an html page. The site this app will be loaded onto is content management site and do not want too many managed files created, which will need to be maintaining (if I embed the swf to a html page I will need to upload the swf and the html page). However if I can force the new browser window to the correct size I will only need to upload the swf.

Hope I have explained this well enough and I look forward to any assistance.

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

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

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

View Replies !    View Related
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);");
}

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

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

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

on (release) {
if ("Cookie.UserID" == undefined) {
var myURL:String = "login02.cfm?language=fr";
}
else {
var myURL:String = "eshop/select01.cfm?language=fr";
}
getURL(myURL);
}

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

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

View Replies !    View Related
Help With GetURL(mailto, ) Function
I'm trying to set up a "Contact Us" form using a button that will utilize the GetURL function.

Instead of hard coding the e-mail address as:
GetURL("mailto:myaddress@domain.com", "_self");

What I'd like to have is something like:
var mailAddress = loadVariables("external.text", this);
GetURL("mailto:" + mailAddress, "_self");

I've tried this but it doesn't work.
Any ideas appreciated.

Thanks.

View Replies !    View Related
How Am I Gonna Add GetURL Function To That MC
if somebody can help that will be greate.

View Replies !    View Related
Geturl Function Won't Work
I have tried everything I can think of to get this stupid getURL function to work on the "HClogo" on frame 50. Can someone please look at it & tell me what I'm doing wrong?

Thanks!

View Replies !    View Related
GetURL To Call A Js Function
i'm making a movie in Flash 8 (but will export it to 7), and am trying to use getURL to call a javaScript function.

I have this in an onRelease:
getURL('javascript:changeBackground();')

I have it working just fine in IE and Safari, but Moz is giving me some trouble. Basically, it will run the function, then in place of the page in the browser is an empty page with just the word 'false' written and 'javascript:changeBackground();'' in the URL bar.

I tried putting a 'return true' at the end of my js function, but still no luck.

any ideas?

thanks

View Replies !    View Related
Geturl Function Not Working
This has been buggin me for the past few days.
i am one of many people trying to link from flash to iframes but i cannot get it to work for the life of me.
im using

on(release){
getURL("grosby.html", "iframe1");
}

with the iframe code looking like this

<iframe name="iframe1" id="iframe1" height="291" width="622" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"></iframe>

my flash is sitting with in a table set with the iframe in a different cell of the same table.

but it wont work. ive tried using flash 7 and 8 but nothing.

any ideas ?

thanx,
alex

View Replies !    View Related
GetURL W/javascript Where Does My Function Go?
my getURL works in my .swf file except when I try to incorporate a function to do window.open to be able to control the new window better - shouldn't my javascript function go in the html file like any other html document? The function by itself works in an html page. This problem occurs in both MX 2004 and Flash 8.


_root.getURL_btn.onRelease = function(){

getURL("javascript:OpenWin('myPage.html')");

}


function OpenWin(NewURL)
{
var strWindowFeatures = new String("");
var strOtherFeatures = new String("");
var strTopPosition = new String("");
var strLeftPosition = new String("");

strTopPosition = ((screen.height / 2) - 225).toString();
strLeftPosition = ((screen.width / 2) - 225).toString();

strOtherFeatures = "location=no,menubar=no,resizable=no,";
strOtherFeatures += "scrollbars=no,status=no,toolbar=no,top=";
strOtherFeatures += strTopPosition;
strOtherFeatures += ",left=";
strOtherFeatures += strLeftPosition;

strWindowFeatures = "width=425,height=325";
strWindowFeatures += strOtherFeatures;
window.open(NewURL,strWindowFeatures);

}//end OpenWin

View Replies !    View Related
Using Frameset In GetURL Function
Does anyone know how to get a link from a Flash button in a .swf file located in top.html to load an image in a different frame--bottom.html? According to the books, it should work with the following Action Script---but it doesn't. This opens a new window every time. I want it to place the image in the lower portion of the frameset. The overall set up is--frameset.html with pages named top.html and bottom.html. Any advice?
Thanks.

stop();

img1_btn.onRelease = function() {
getURL("

View Replies !    View Related
Problems With GetURL Function
Well, i seach on the web many times, but i can´t find a solution about this case.
I just have a button on the stage and the getURL function inside of onRelease function inside of this button
When i click on this button, it´s worl well (in another OS), but not the same in windows xp with service pack 2. They have now some kind of pop-up blocker and it´s turned on by default. So, all my getURL functions are blocked. Anyone knows how to make the getURL functions work again, on the windows xp with SP2, of course????
thanks anyway and sorry about my english, i´m not an american, so i dont have to write correctly

View Replies !    View Related
Actionscript GetURL Function
Hello ActionScripters,

I have a series of html files with embedded flash content.
I have one html file with embedded flash, that always opens a new browser window
when a button is clicked. I always want the button, when clicked to open the next html file (along with its embedded flash file) to open in the same browser window.

I am using Windows XP, Flash 8 (and Flash CS3).
The button is really a movieclip that when clicked calls the getURL() function. I am using _self as the parameter for the function as well as the http://www.myflashpage.com/coolFlash.html (etc).

I have other html files where the getURL functions correctly, and opens the next page in the same window.

But there is a difference between these pages. In the page that does not work, I create an empty movieclip container, and then attach the movie (in this case the button as a movie clip) to the container. There is more than one movieclip container. The button is clickable in the container (I use swapdepth to put container on top, etc).

On my other html files I do not have the button (a movieclip) on any layer (aka container) other than the top layer. The button works fine this way, using _self as the parameter.

Any ideas on how I can get my attachmovie version to work??
Thanks,

eholz1

View Replies !    View Related
GetURL Function Problems
Hi. Im currently using macromedia flash 8 professional and just finished creating a flash button which works perfectly. Now im trying to add code to it so that when the button is clicked, it links to a url.

I used the code

on (release){
getURL("www.google.ca");
}

However when i test it a blank page in my browser (mozilla) opens up. What is the correct way to turn an animated button into a link in Flash 8 proffesional?





























Edited: 12/14/2007 at 07:35:03 PM by Infamous_01

View Replies !    View Related
Delaying GetURL Function
Hi People I have a question here.
The situation is such: I have a button and when the user click on it, it actually goes to play frame 2 but I want it to fetch a webpage on frame 30 instead of fetching the webpage at frame 2 coz I have a movie clip between frame 2 and 30. I want the movie clip to stop playing before getting URL.
Is this possible?
I have put this into an asp page and when it reaches that particular frame ( after the movie was played), it directed me to a page named undefined(http://localhost/undefined).
This is something really new to me. Can someone help?

View Replies !    View Related
Flash/XML - Help With GetURL Function
Hi...

First of all, I hope I'm posting in the right forum

I've messed around with XML+FLASH menu systems (downloaded from various Flash resource sites) on a novice level . As in, I know how to modify the XML file to have the content I want and where to rename the XML file in the FLA if need be. But I've never had to actually manually modify any functions within the FLA before. I'm really green when it comes down to diggin' within the Flash coding.

Anywho, I came upon this really nice horizontal/glide menu from a way talented flash guru who was nice enough to share his source files with me...

The files are located here (btw, its an MX 2004 FLA file):
http://www.ff-squad.com/dev/horzmenu

The problem I've run into with it, is that any hyperlinks setup within this menu will only open windows on a 'parent' level, which I don't want. With other Flash+XML menu systems like this, usually the authors allow you to change the targeting to whatever you wish easily through the XML file (ie. _blank, mainFrame, etc) and that's what I wish to have with this menu -- Customizeable targeting through the XML file for any hyperlink.

I didn't wanna bother the Author of this menu too much, but I did lightly ask him about changing the hyperlink targeting & his simple reply was:

Shouldn’t be too difficult, you can simply edit the getURL(someexpressionhere, “frametarget”)


I did find where the getURL function is in the FLA, but anything I tried was an absolute (because I have lame Flash coding skills!). I even did some searching on the net for examples and none of them worked either. Obviously the menu wasn't designed to handle multiple types of hyperlink targets.

So, I'm wondering if a Flash guru on here can help me figure this out. That is, if this menu doesn't have to be totally reinvented!

I do hope I don't come off sounding too confusing - and of course...any help on this would be grandioso!

thank you.

View Replies !    View Related
Using GetURL To Call JS Function
Hello!
If i'm using the getURL method to call a JavaScript function:

getURL("javascript:myFunction('sections/1.html')");
How do I pass a string+variable as a parameter of that function?:

instead of:
'sections/1.html'

i'd like to pass something like:
"sections/"+i+".html"

where i is a variable.
What is the correct syntax for that parameter we're passing?

Thank you! :good:

View Replies !    View Related
Pblm With 'getURL' Function
Hi guys,
I have a very basic menu in Flash, but I can't get the menu items to link using the 'getURL' or using text links. I've used invisible buttons and movieclip commands, but no joy.
I have attached the .fla source, you will see that the 'company' menu is done using text links (static and dynamic) and the 'services' menu is done using invisible buttons and the 'getURL' function. Neither work.

I'm pretty desperate to be honest, I have the site live on Friday, any help is very much appreciated,

Cheers,

Pat

View Replies !    View Related
Trouble Using GetURL Function
Hi,

I have designed a flash animation for a website and at the end of the animation I have a button that takes the user to a html page. I have the following code in the last frame of the movie

btnFinish.onRelease = function() {
getURL("http://www.google.com", _self);
}


I want the new page to open in the same window as the movie. But the button opens the page in a new window. I also tried substituting _self with _parent but it still does not work.

Am I missing something.

Thanks in Advance.

Sriram.

View Replies !    View Related
Problem With GETURL Function
i want to open my links.html page in to the Right frame of my index page.
i couldn't do this using a flash button.

this is the script i used

on (release) {
getURL("links.html", "rightFrame");
}

but still its open in a new window.So How can i over come this problem?
Please help me.

View Replies !    View Related
Delaying GetURL Function
Hi People I have a question here.
The situation is such: I have a button and when the user click on it, it actually goes to play frame 2 but I want it to fetch a webpage on frame 30 instead of fetching the webpage at frame 2 coz I have a movie clip between frame 2 and 30. I want the movie clip to stop playing before getting URL.
Is this possible?
I have put this into an asp page and when it reaches that particular frame ( after the movie was played), it directed me to a page named undefined(http://localhost/undefined).
This is something really new to me. Can someone help?

View Replies !    View Related
Flash/XML - Help With GetURL Function
Hi...

First of all, I hope I'm posting in the right forum

I've messed around with XML+FLASH menu systems (downloaded from various Flash resource sites) on a novice level . As in, I know how to modify the XML file to have the content I want and where to rename the XML file in the FLA if need be. But I've never had to actually manually modify any functions within the FLA before. I'm really green when it comes down to diggin' within the Flash coding.

Anywho, I came upon this really nice horizontal/glide menu from a way talented flash guru who was nice enough to share his source files with me...

The files are located here (btw, its an MX 2004 FLA file):
http://www.ff-squad.com/dev/horzmenu

The problem I've run into with it, is that any hyperlinks setup within this menu will only open windows on a 'parent' level, which I don't want. With other Flash+XML menu systems like this, usually the authors allow you to change the targeting to whatever you wish easily through the XML file (ie. _blank, mainFrame, etc) and that's what I wish to have with this menu -- Customizeable targeting through the XML file for any hyperlink.

I didn't wanna bother the Author of this menu too much, but I did lightly ask him about changing the hyperlink targeting & his simple reply was:

Shouldn’t be too difficult, you can simply edit the getURL(someexpressionhere, “frametarget”)


I did find where the getURL function is in the FLA, but anything I tried was an absolute (because I have lame Flash coding skills!). I even did some searching on the net for examples and none of them worked either. Obviously the menu wasn't designed to handle multiple types of hyperlink targets.

So, I'm wondering if a Flash guru on here can help me figure this out. That is, if this menu doesn't have to be totally reinvented!

I do hope I don't come off sounding too confusing - and of course...any help on this would be grandioso!

thank you.

View Replies !    View Related
Using GetURL To Call JS Function
Hello!
If i'm using the getURL method to call a JavaScript function:

getURL("javascript:myFunction('sections/1.html')");
How do I pass a string+variable as a parameter of that function?:

instead of:
'sections/1.html'

i'd like to pass something like:
"sections/"+i+".html"

where i is a variable.
What is the correct syntax for that parameter we're passing?

Thank you! :good:

View Replies !    View Related
Pblm With 'getURL' Function
Hi guys,
I have a very basic menu in Flash, but I can't get the menu items to link using the 'getURL' or using text links. I've used invisible buttons and movieclip commands, but no joy.
I have attached the .fla source, you will see that the 'company' menu is done using text links (static and dynamic) and the 'services' menu is done using invisible buttons and the 'getURL' function. Neither work.

I'm pretty desperate to be honest, I have the site live on Friday, any help is very much appreciated,

Cheers,

Pat

View Replies !    View Related
GetURl To Call JS Function
Hello!
If i'm using the getURL method to call a JS function:

getURL("javascript:myFunction('sections/1.html')");
How do I pass a string+variable as a parameter of that function:

instead of:
'sections/1.html'

i'd like to pass something like:
"sections/"+i+".html"

where i is a variable.
What is the correct syntax for that parameter?

Thank you!

View Replies !    View Related
Using Variables Created Inside A Function Outside The Function?
I am trying to use a variable I am creating inside of a function, outside of that function, but I seem to have a scope issue when I do this.

My code is:

Code:
function drawlines(centerx, centery, radius, radians){
var radiansSoFar:Number = 0

var piechart:MovieClip = new MovieClip();
piechart.name = "piechart"
piechart.x = stage.stageWidth/2;
piechart.y = stage.stageWidth/2;


stage.addChild(piechart);
}
but I want to make a function outside of this which removes the variable piechart, but because im so unfamiliar with how flash names instances now I have no idea how to do this.

It works if I define var piechart:MovieClip = new MovieClip() outside of the function, but this isnt very useful as I eventually need to create multiple movieclips dynamically and name them dynamically.

So basically how would make it so I would be able to use the code


Code:
function removeChart(chartname){
stage.removeChild(chartname)
}
to dynamically remove a movieclip I created in a function?

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

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

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

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

View Replies !    View Related
HELP HOW DO I INCLUDE VARIABLES IN GetURL()?
i dont know where to put the variables, and im using POST so how the heck do i include the vars??????

View Replies !    View Related
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')");
}

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

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

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

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

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

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

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