Jump to content


Button click, show new window or just on top


  • You cannot reply to this topic
1 reply to this topic

#1 Nightscream

    Young Padawan

  • Members
  • Pip
  • 100 posts
  • Gender:Male
  • Location:Belgium

Posted 13 January 2008 - 06:57 PM

Hi
i'm noob to flash but I need to know just some basic steps in the right direction.
How can I create something when I push on a button on my screen I get a new window or just make something that get on top of the first thing. Then I need to add a image viewer but I look that one op in a tutorial.
Is it possible to code javascript into flash or only action script?

btw i'm using action script 2.0
thanks in advance!

Edited by Nightscream, 13 January 2008 - 06:58 PM.


#2 Blue_Monkey

    Young Padawan

  • Members
  • Pip
  • 11 posts

Posted 13 January 2008 - 07:52 PM

I don't know what kind of window you mean, but you can have a button play a movie clip. Give the movie clip the instance name of mc (under the properties panel) and paste this code for your button:

on (release) {
_root.mc.play();
}

Give the movie clip a blank frame 1 with a stop action. Then have frame 2 be the window (with a stop action). When you click the button, it will "open" or "close" the window.







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users