Download source file: flashjavascript
Step 1
- Create New Flash File ActionScript 3.0
- Select the Selection Tool V
- Go to Properties tab and press Edit button and set the width of your document to 320 pixels and the height to 120 pixels.
- Change the layer name to background ( double click on it ).
- Select the RectAngle Tool ( R) and make the adjustments as follow in the picture below.
- While RectAngle Tool (R) is still selected press Ctrl+K and check this 3 steps.
- Make sure that the Align/Distribute to Stage button is turned on,
- Click on the Align horizontal center button and
- Click the Align vertical center button.
Step 2
- Select the Text Toll (T) and write something .
- While the image or object is still selected, hit F8 key (Convert to Symbol) to convert it into a Movie Clip Symbol.
- Change the instance name to “alert_btn“.
Step 3
- Create a new layer and change the name to “as3″
- Press F9 to open AS3 panel.
- Copy / Paste the following code:








Trackbacks/Pingbacks
[...] This post was mentioned on Twitter by J. Anna. J. Anna said: Flash Tutorial: : Flash javascript popup window http://www.flashconf.com/flash-cs5/flash-javascript-popup-window/ [...]
[...] Więcej: Flash javascript popup window | Flash tutorials | Flash video … [...]
[...] Excerpt from: Flash javascript popup window | Flash tutorials | Flash video … [...]
[...] Flash javascript popup window | Flash tutorials | Flash video tutorials | Flash actionscript | flash… [...]
[...] See the original post: By: Flash javascript popup window | Flash tutorials … – FlashCS.com [...]