Skip navigation
SEOLClanka
Currently Being Moderated

How to load other obejects in flash file after intro using ActionScript 3.0

May 6, 2012 12:42 AM

Tags: #action_script_3 #intro_animation

How to load other obejects in flash file after intro using ActionScript 3.0 or any other method all in same fla file. see blow intro screen shot ,this one playing repeatedly without loading other fla pages .only way to load other pages is click on Skip intro .see second screeshot below .i need that site to load after intro .

intro.jpg

main.png

 

see codes already in

 

stop();

 

 

skipintro_b.addEventListener(MouseEvent.CLICK, skipintro_b_clicked);

 

 

function skipintro_b_clicked(e:MouseEvent):void{

gotoAndStop("whoweare");

}

 

There is another script there

 

 

 

/* Simple Timer

Displays a countdown timer in the Output panel until 30 seconds elapse.

This code is a good place to start for creating timers for your own purposes.

 

 

Instructions:

1. To change the number of seconds in the timer, change the value 30 in the first line below to the number of seconds you want.

*/

 

 

var fl_TimerInstance:Timer = new Timer(1000, 30);

fl_TimerInstance.addEventListener(TimerEvent.TIMER, fl_TimerHandler);

fl_TimerInstance.start();

 

 

var fl_SecondsElapsed:Number = 1;

 

 

function fl_TimerHandler(event:TimerEvent):void

{

          trace("Seconds elapsed: " + fl_SecondsElapsed);

          fl_SecondsElapsed++;

}

 

i have no knowledge about these thing ,any help really appreciated .

 
Replies
  • Currently Being Moderated
    May 6, 2012 4:33 AM   in reply to SEOLClanka

    If you only want the intro to run once and then go to the same place that the button goes to, then in the last frame inside the intro animation use:

     

         MovieClip(root).gotoAndStop("whoweare");

     
    |
    Mark as:
  • Currently Being Moderated
    May 6, 2012 4:50 AM   in reply to SEOLClanka

    No, that is the code for your button that skips the intro.  Leave it alone.  You need to edit your intro animation to add that one line of code I showed to the end of the animation.

     
    |
    Mark as:
  • Currently Being Moderated
    May 6, 2012 5:14 AM   in reply to SEOLClanka

    You're welcome.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points