[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

put a variable inside the getURL("");

Posted on 2003-11-20
7
Medium Priority
?
279 Views
Last Modified: 2010-04-03
hi all..

i'm trying to send a variable from one frame to another:

frame 1:

on (release) {
      gotoAndPlay(30);
      var page:String = index2.htm;

}

and frame 30 recieves the variable:

stop();
getURL("page");

the command getURL("page"); is not using the variable "page" becasue in the website links to a url called "page" instead of "index2.htm" wich is the value of the variable "page"... how do i put the variable "page" inside the getURL(""); ??


thx in advanced :)
0
Comment
Question by:justaphase
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 27

Expert Comment

by:negatyve
ID: 9788987
on (release) {
    gotoAndPlay(30);
    var page:String = "index2.htm";

}

and

stop();
getURL(page); // without quotes..
0
 
LVL 1

Author Comment

by:justaphase
ID: 9789161
nope... i tryed that... didn't work :(
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9789196
whato does it open when you call it this way?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 22

Expert Comment

by:rascalpants
ID: 9789233
why not just try this:

frame 1:

on (release) {
     gotoAndPlay(30);
     _root.page.String = "index2.htm";

}

and frame 30 recieves the variable:

stop();
getURL(_root.page.String);


not sure why this is so complicated  :)


rp
0
 
LVL 1

Author Comment

by:justaphase
ID: 9789321
both ways, with negatyve code and  rascalpants code... doesn't go nowhere... inside the web page doesn't call nothing and outside the swf file doesn't call no file to... :(
0
 
LVL 27

Accepted Solution

by:
negatyve earned 300 total points
ID: 9789417
wow, now I see...

on (release) {
   var page:String = "index2.htm"; // before gotoAndPlay
   gotoAndPlay(30);
}

and

stop();
getURL(page);
0
 
LVL 1

Author Comment

by:justaphase
ID: 9789465
yes u right negatyve... i just saw it to!! lol

and that was my error all along... still doesn't work as u said, works this way, as i had in the first place before using "var page:String":

on (release) {
      page = "index2.htm";
      gotoAndPlay(30);
}

and

stop();
getURL(page);

easy :)  thx...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question