Skip to main content
Participating Frequently
October 22, 2008
Question

getURL(varLink01, "_self"); variable not passing???

  • October 22, 2008
  • 4 replies
  • 585 views
i'm passing varLink01 from PHP to a flash file no problem (it loads into a dynamic text field fine).

but when i try and load this variable to the getURL command the link is not working, the flash takes me to a "page not found." here is my code:

DECLARE VAR
var passed:String = varLink01;
(different layer, same frame)

ACTION SCRIPT
on (release) {
getURL(varLink01, "_self");
}

i've put hours into this.... any help???

Thanks, Joe
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
November 23, 2008
go to www.kglad.com and send me an email. i'll respond and then you can send your fla. i'll give you a quote to fix your problem.
kglad
Community Expert
Community Expert
November 22, 2008
in addition to that error message, what do you see in the output panel when you click your button that has that trace() attached?
Participating Frequently
November 23, 2008
Flash Debug Output----------------
http://www.liquidmilitia.com/output.jpg
Flash SWF file running----------------
http://www.liquidmilitia.com/indexJL2.php
NOTE: view the notes below the image (ignore all images but image no. 1)

can i email you the fla file to look at? i'll be happy to make a modest donation or purchase.
kglad
Community Expert
Community Expert
November 20, 2008
that trace() function should cause your output panel to display the value of varLink01 which from the look of the code you showed, is undefined.
Participating Frequently
November 22, 2008
i'm getting this in my Output Panel:
"One or more breakpoints have been removed because they are not on valid lines of code." this is weird since the SWF file runs perfectly other than this issue.

i updated my code to be sure my vars are declared and defined--

var varImage01:String = " http://www.liquidmilitia.com/gallery2/d/2966-1/01.jpg";
var varLink01:String = " http://www.yahoo.com";
var passed:String = varImage01;
i01load.contentPath = varImage01;
var passed:String = varLink01;

BUT-
i'm using Actionscript 2.0. if i can RUN and DISPLAY the value of varLink01 in a dynamic text box like
i am in the SWF file -- doesn't this confirm that the variable is succifiently declared and defined?

I'm really sorry if i'm missing something here...
kglad
Community Expert
Community Expert
October 22, 2008
in your on(release) handler use trace(varLink01) to confirm that you're within the correct scope and have no typos.
Participating Frequently
November 18, 2008
Thank you for reply. I've inserted the trace and I debug this layer only. I do not receive any errors that I see.. I'm not really familiar with Flash debug however.

on (release) {
trace(varLink01)
getURL(varLink01, "_self");
}

* All actionscript and Flash objects are now on the same layer. Dynamic text box on the same layer displays this variable perfectly! Thus, I believe this must be a syntax error or misuse/lack of use of a method or property of some kind... am I getting warm??? Mouseover on the Loader object containing the actionscript above does show a link (the little hand) but there is no activity when I click the image............ dead.

Here is the script I use to import the variable on the first frame of this layer.

var passed:String = varImage01;
i01load.contentPath= varImage01;
var passed:String = varLink01;

REALLY APPRECIATE THE HELP!!! Sorry my reply has taken so long (ill).