Link to home
Start Free TrialLog in
Avatar of snuttemjuk
snuttemjuk

asked on

Flash header that detects what document that imports it

Hi!

I have created a typical "flash-header" for a website.
This header is animated like an intro and I want the whole animation only to run from the start on the home-page.
On all other pages I want the header to jump directly to the last frame, skipping the whole intro-nonsense.

Is it possible to read wich file is importing the flash-file inside the Flash-file.
Like an actionscript that has short code pile

thisURL = methodToGetCurrentURL();

if thisURL == "index.html" then {
  play();
} else {
  gotoAndPlay("Stop")
}

If that is not possible, then can I simply get the parameter from the import of the flashfile.
in IMPORT of the SWF:
header.swf?startpage=no

in Flashfile:
getURL ("test.swf?startpage=" + startpage);
if (startpage == yes) {
      gotoAndStop("Start");
} else {
      gotoAndStop("stop");
}

I'm a newbie to flash and nothing seems to work very well.
The simpler the solution, the better. Thanx./
Ola.
ASKER CERTIFIED SOLUTION
Avatar of trigger-happy
trigger-happy
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial