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
Similar Posts:
Apr 17, 2008
I just was notified by a web viewer using Internet Explorer that some of my site functionality is no longer working properly in their browser. I have looked into the problem, and found that in IE (both Windows and Mac), my getURL functions don't work.On an actions layer, here is an exerpt of my code:
Code:
//-----------------------------
buttonAll.onRelease = function() {
switch (p) {
[code]....
Depending on the frame of the inner movie clip, the button goes to different html pages. This has always worked before, but perhaps now needs a workaround due to recent IE updates. A secondary problem i might also mention, has recently caused troubles in IE as well. I have an image on a page with a javascript link to open a swf file in a new window. This works fine in Firefox, but comes up with a page not found in IE, where it had previously worked.
Code:
<a onclick="popup = window.open('http://www.page.com/flash001.swf', ' ', 'height=480,width=650,scrollbars=0,resizable=0'); return false" href="http://www.page.com/flash001.swf" target="_blank"><img src="/files/Images/Features/Journeys/Story_Image/flashimglink.jpg" border="0"></a>
View 4 Replies
May 30, 2010
I'm working on a masthead for a site, which uses the simple getURL command to load a page on the same site, code is:
on (release) {
getURL("link.html", "_top");
}
Now, this works fine in all browser with JS enabled, but when JS is disabled in Chrome and Safari it does nothing. Strangely enough, if the target is "_blank" it works.I've tried all 4 different targets, as well as using a variable to hold the link.
View 1 Replies
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
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
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
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
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
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
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
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
Jun 11, 2010
[code]...
Here the method clientMonitor() is called on creationcomplete() from the main application.
I am not able to bind the Bindable variable dbl to my textInput. Using the debugger, I am able to see that the result is assigned successfully to variable dbl, but it is not able to bind it to the text of view1. I see a NaN displayed in the text of view1.
View 1 Replies
Apr 15, 2007
Why cant i make a variable in a function? like this:
aiBunny = function (target)
{
var target.hp:Number = 15;
target.interval = setInterval (aiFoe, 24, target);
};
View 3 Replies
Jan 27, 2009
It seems that under Actionscript 3 XML (E4X) I'm unable to use dynamicaly created variable names...
this is ok:
Code:
var i:number = 111
this["someVarName" + i] = "actual_value"
trace(someVarName111) // = actual_value
[Code].....
View 3 Replies
Mar 27, 2012
i am trying to load the variables from parent(flash) to child(flash).Its working fine,.
parent swf:(flash)
var parentMessage:String = "Hello";
var swf:MovieClip;
var l:Loader = new Loader();
[Code].....
View 4 Replies
Apr 1, 2012
I have the following code:
<fx:Script>
<![CDATA[
import shared.GlobalsManager;
[code].....
View 1 Replies
Oct 13, 2011
I work with Flash Pro allmost 11 hours per day and every while i get a error which messes up everything. Approximetly i get this after about 2-3 hours withevery project.After i get this error there is no chance to test movies afterwards.I see a fast flash of the loader window but it dissapears so fast i cant even really see if it is loader.
View 1 Replies
Jul 16, 2011
I have a site that plays either .mp3 or .flv files depending on what is selected from the menu. Menu loads in from xml. I get "unable to make connection with server or unable to find flv on server" when I try to play the video. But the video and audio files are all in the same directory and the mp3 files play fine. I think I'm having a problem with the setMedia command. Here's the code that loads the video and audio files.
[Code]...
View 9 Replies
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
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
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
Jun 6, 2010
How do I use the getURL function in AS3 ?
View 1 Replies
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
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
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
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
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
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
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
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