ActionScript 2.0 :: GetURL From Variable?

Apr 4, 2005

I am loading in some text which is stored in a text object with the var name of jslink

I also have one button which upon press I would like to get the url of "jslink"

View 2 Replies


Similar Posts:


ActionScript 2.0 :: GetURL From Variable

Apr 4, 2005

I am loading in some text which is stored in a text object with the var name of jslink

I also have one button which upon press I would like to get the url of "jslink"

View 2 Replies

ActionScript 2.0 :: Incorporate A Variable Into A GetURL?

Aug 21, 2005

how to incorporate a variable into a getURL like so -

getURL ("javascript:NewWindow=window.open('I want to insert a variable HERE','','width=600,height=500,left=0,top=0,toolbar=No ,location=No,scrollbars=No,status=No,resizable=No, fullscreen=No'); NewWindow.focus(); void(0); return false;");
}

I want to be able to generate a new window that just loads into it an image that's in the sites directory. I know it can be done in javascript, cause this code works in a html page

<a href="" " onclick="window.open('#fullSiteTextImage#/#uploadTextImageDirectory#/large_#strTextImageImage#','', 'width=600,height=500,noscrollbars'); return false;>

The green bit is a CFM variable, which contains something like flash/flash_images/image.jpg

So how can I do this from flash? I KNOW it can be done. It must be possible, someone please help me. The thing that seems to stuff it up to me is the fact that I have to enclose the getURLs URL parameter in quotes, so flash doesnt evaluate the variable.

View 6 Replies

ActionScript 2.0 :: Unable To GetUrl Variable?

Jul 29, 2007

I've been playing around and still can't get this to work. My thumbnail gallery is loaded dynamically using xml and I have a link included with each thumbnail but can't seem to get it to work to load the link with each thumnail.In xml I have:

Code:
<pic>
<image>http://www.yoursite.com/images/image1.jpg</image>

[code].....

View 5 Replies

ActionScript 2.0 :: How To Post Variable Using GetURL

Aug 11, 2007

Why am I not able to pass variable to PHP using getURL?I have this actionscript ...

Code:
var bb_debugcount:String = "4";
getURL("myserverpage.php", "_self", "POST");

[code]....

View 1 Replies

ActionScript 2.0 :: Xml Link Variable In GetURL?

Aug 24, 2007

i have a link setup in my xml attributes so that when i click a button it will use that link. ex. of xml

Code:
<song name ="Test Track 1" band ="Band1" file="test1.mp3" lyrics="http://www.theskooks.com" />

lyrics attribute is the link i'm trying to use for the button i have made an new rray and everything for it and then created on release functions to getURL from that attribute from the xml but my code doesnt work properly it doesnt get the url.

Code:
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {

[Code].....

View 6 Replies

ActionScript 2.0 :: Add A Variable To A GetURL Javascript Function?

Jan 13, 2011

how to add a variable to a getURL Javascript function. I have; ActionScript Code: getURL("javascript:JavascriptFunctionNAme(ASVariableName?);"); It works fine when I replace ASVariableName with "1" or some other plain text.

View 5 Replies

ActionScript 2.0 :: Adding A Variable To A GetURL Line (correct Way To Code It)?

Jun 13, 2006

all I want to do is add a variable to a getURL line of code.EG:getURL("/index.asp", "_self");I need to add a variable (_root.myvariable) to the end of the link so that it goes to:index.asp?myvar=thevalueofmyvariable

View 3 Replies

ActionScript 2.0 :: Email Capture Form - GetURL Not Sending Variable

Mar 19, 2007

I'm trying to make a small email capture form, but I'm having trouble getting Flash to pass the email address to the server. I've since given up trying to use getURL and I'm simply trying to trace the variable instead. The form consists of a text box w/ instance name "email_txt" and a button w/ instance name "btnSignUp." the actionscript is placed on the button.

Here's PHP Code:
on(release) {
trace("email_txt says: " + email_txt);
// getURL stuff here
}

My trace statement reads:
Code:
email_txt says: undefined

View 5 Replies

ActionScript 2.0 :: Create A String Variable...and Then Use The Value Of That Variable To Declare Another Variable?

Jan 3, 2006

f you know PHP...then you know that you can create a string variable...and then use the value of that variable to declare another variable. like this:

PHP Code:

<?php$foo = "haha";$i{$foo} = "success";print $i{haha};?>

and it would display "success"...or like this:

PHP Code:

<?php$foo = "haha";$$foo = "success";print $haha;?>

and it would also display "success".

View 6 Replies

Using Variables Within GETurl?

Nov 9, 2009

I've created a 'flashvars' tag in my embed code (aid=test), which I simply wish to add to the end a GetUrl statement, contained in within a button (which is on the first level of the flash movie). This is the code I've added to the button...
 
on (release) {    getURL("http://www.platinumselect.com?id="+aid);}
 
But this doesnt seem to work!? Is there anything else I need to do?

View 8 Replies

Use GetURL With Quotes?

Mar 20, 2010

How i can use the function getURL with quotes? The reason that i need to quotes, is tu put a parameter to another function in Adobe Director.[code]...

View 1 Replies

AS3 :: Use GetURL Function In It?

Jun 6, 2010

How do I use the getURL function in AS3 ?

View 1 Replies

ActionScript 2.0 :: XML Value In GetURL?

Jul 10, 2008

XML test file

<Slides>
<slideNode linkURL="www.cnet.com" jpegURL="images/test1.jpg">test 1</slideNode>
<slideNode linkURL="www.zdnet.com" jpegURL="images/test2.jpg">test 2</slideNode>
<slideNode linkURL="www.pcmag.com" jpegURL="images/test3.jpg">test 3</slideNode>
<slideNode linkURL="www.newegg.com" jpegURL="images/test4.jpg">test 4</slideNode>
</Slides>

In the browser, www.cnet.com, does not work. The value it outputs is: file:///C:/Documents%20and%20Setting...w/www.cnet.com

ActionScript
----------------
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("slides.xml");
slides_xml.ignoreWhite = true;

[code]....

View 6 Replies

IDE :: GetUrl{} Not Working?

Aug 19, 2009

I want 2 open an image in a blank window, when user clicks on the button.I used the following coding to the button:

on (Press) {
getURL("www.domainname.com, "_blank");
}

But the above code is not working , when i click on it.

View 4 Replies

ActionScript 2.0 :: Getting Var From Php And Using With GetURL?

Oct 15, 2009

how to get variable from php and use its value to properly link button in flash?

example:

index.php contains variable VAR1 with value TEST

i need to crate flash with following button

on (release) {
getURL("http://www.test.com/index.php?VAR1=<<here goes the value of the VAR1 from php, which is 'test'>> , "_self");

View 1 Replies

Changing GetURL In A Template?

Apr 30, 2009

I am customising a Template Monster template that has a flash menu.When I changed the getURL code (using AS2) of my flash menu buttons they work for an external URL but do nothing in my site. EG.THIS WORKSgetURL("index.html");THIS DOESNTI have everything in the same root folder and the animated menu bar works perfectly in-situ, just wont go from page to page.

View 2 Replies

Add A GetURL Code To The Buttons?

Jul 27, 2009

I have a pre built flash navigation menu. I am trying to add a getURL code to the buttons. The code looks like this:

function butnClick(event:MouseEvent):void {
if (event.target.num == 0) { // For the 1st button:
// Add your button click actions here[code]............

Im getting syntax errors and I know its wrong but thats the only way I know how to write it so far.

View 5 Replies

GetURL To Open In Same Window?

Jun 14, 2010

I am using Flash CS3, AS 2.0 and I have a button with -

on (release) {
getURL ("http://www.axiomaudio.com/store.html", _blank)
}

This is a small banner in an HTML page and I want it to open in the same window instead of opening a new window. I have tried using _self) instead of _blank) but it still opens a new window.

View 6 Replies

GetURL Command In Firefox 3.5?

Jul 7, 2009

Are there known issues regarding the getURL command in Firefox 3.5?I made a very simple flash movie with some getURL commands and they work in IE7 and IE8 but not in Firefox 3.5.[code]I just tested in Opera (9.24) and it doesn't work either...

View 1 Replies

ActionScript 1/2 :: GetURL() To A .doc File

Mar 22, 2010

So we have some web-based training that we are making. Using CS4 to publish to Flash 7 and then the page is running in IE 6. (Got to love them corporate policies!) We have some resource documents for the users to download. Usually we make them pdfs and use getURL() and the files work just fine. However, this time we have a file that we want to keep as a .doc type. The code is:

[Code]...

View 3 Replies

Actionscript :: Interact With PHP Via GetURL?

Feb 8, 2010

getURL('http://www.google.com',_blank);

The above can open google.com,but how to fetch data from server side(PHP) on localhost?

View 1 Replies

Javascript :: Why Use DoFSCommand If One Can Just GetUrl

Dec 4, 2010

I read it's possible to call any javascript [URL] so why would I need doFscommand ?

View 1 Replies

ActionScript 2.0 :: Add GetURL() In Flash Xml?

Feb 20, 2009

I want to add getURL() to flash xml gallery images.

at present my script is loading external images fine. but i need to give images hyperlink. [code]...

View 9 Replies

ActionScript 2.0 :: Using GetURL To Login Using Php

Apr 19, 2010

I've created a login form in Flash that should post to a php login script on a different server.

I've given one input text field a variable name of user (for the username)

I've given the other input text field a variable name of pass (for the password)

I'm using the following AS applied to a button:

Code:
on (release) {
getURL("http://www.website.com/login.php?username="+ user +"&password="+ pass);
}

[Code].....

I log in just fine to the site... If I attach the full code to the script I log in just fine... why is it that passing the variables is not working with getURL action script?

I've tried to accomplish this using several different scripts but I get the same result with everything I do.

View 8 Replies

ActionScript 3.0 :: GetURL From XML To Button

May 17, 2010

I have modified simple photo gallery tutorial through XML at [URL] click on a thumb and an image scrolls in. Now I'm trying to add a link to the image - but can't get the url from the xml to the image.

Here's the XML-file (pics.xml)
[XML]
<?xml version="1.0" encoding="utf-8"?>
<images><image>
<pics>pics/utrechtmedia.jpg</pics>
<sites>sites/utrechtmedia.jpg</sites>
[Code] .....

View 5 Replies

ActionScript 2.0 :: Assign GetURL Value With XML?

Feb 2, 2006

I'm having trouble getting urls to work with an XML document I'm pulling into flash.

The XML looks like this:
[CODE]<items>
<item>

[code].....

View 6 Replies

ActionScript 2.0 :: Put GetURL To All Mc On The Stage

Feb 3, 2006

I would like to put getURL on all mc on the stage, I put the script like this

Code:

var _root.url_array:Array = new Array("url1","url2","url3")
for (var mc in this) {
var i:Number = 0;

[Code]....

the problem when I click on mc, it go to same url, how can I it different.

View 5 Replies

ActionScript 2.0 :: Load A Swf With GetURL?

May 16, 2003

I did a quick search to find how to load a swf into an already playing swf with a getURL action. Is this possible? Like loading a jpg but I want to load a swf. Does that make sense?Say I have an empty mc in my swf and want to call a swf from an absolute address, like

getURL ("http://www.subquark.com/projects/demoA.swf", myEmptyMC);

I have not tried it yet 'cause I'm at work (no flash here) but I was talking to someone . . . about creating a logo once and then just calling it from one location (site by subQuark). That way I only need to update it in one place for html sites (as I do now) or for all flash sites (which I do per site now).

View 6 Replies

ActionScript 2.0 :: GetURL To A Different Location?

Nov 17, 2006

I have most of the basics down in actionscripting. I want to learn a little bit more on if else statements. I have an issue right now that I am pretty sure needs to use the if else statement.

What I have is an FLV playing in a browser. When that FLV is done playing, I want it to getURL to a different location. So basically when the FLV is done it goes to the next HTML page.

I attempted and got this far :

[AS]
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

[Code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved