?
Solved

put a variable inside the getURL("");

Posted on 2003-11-20
7
Medium Priority
?
278 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
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.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…
Suggested Courses

770 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