troubleshooting Question

Opening a page at startup in Flash movie

Avatar of jamildriscoll
jamildriscoll asked on
Adobe Flash
1 Comment1 Solution216 ViewsLast Modified:
I have a website, entirely in flash.  I would like for when the movie plays to open one of the pages that I have made for it (all in sprites).

Here's the ActionScript for the button that opens the page I want:

on (rollOver)
{
    if (_root.link != 2)
    {
        this.gotoAndPlay("s1");
    } // end if
}
on (releaseOutside, rollOut)
{
    if (_root.link != 2)
    {
        this.gotoAndPlay("s2");
    } // end if
}
on (release)
{
    if (_root.link != 2 && _root.flag_animation1 == 1)
    {
        _root.flag_animation1 = 0;
        _root.menu["item" + _root.link].gotoAndPlay("s2");
        _root.link_prev = _root.link;
        _root.link = 2;
        _root.scrollPART.gotoAndStop(2);
        _root.scroller.scroller.gotoAndStop(3);
        _root.play();
    } // end if
}

I want this link to be brought up when the movie plays, with that button disabled since it is on the appropriate section.

I have tried putting it on a layer in the "scene" timeline, but no luck.

I need the appropriate action script to play the movie and have this opened when the movie loads.

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros