Solved

put a variable inside the getURL("");

Posted on 2003-11-20
7
272 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
  • 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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 100 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SCCM 2012 - Deploy Flash 16 6,858
How to convert pdf file to html file 8 377
Adobe Flash Player won't install on Windows 7 3 210
flash in chrome 4 66
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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 select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now