Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 07:40
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  How to make Window Alert in AS3 like Java Script
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: How to make Window Alert in AS3 like Java Script  (Read 3149 times)
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« on: 01/18/10, 11:01 »

hey2 i have some script that called 'to make a popup alert / wndow alert like java script window alert' like this :

Code:
navigateToURL(new URLRequest("javascript:alert('Some Text..');"),"_Self");

but thats didnt work for me, when i try to call that, that just open the blank url in my web browser.. Smiley

A little help that really appreciate..

Thank you very much Smiley
Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 01/18/10, 15:36 »

why dont you use the alert of flash?

Alert.show("your text","headline");

If you like, you can add some buttons to it as well Wink
Just read the manual for details
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #2 on: 01/18/10, 19:32 »

Huhuhu, why didnt work for me.. T.T

Code:
function wew(event:Event):void{
Alert.show("Wiw Done !!","headline");
}

thats said

Quote
1120: Access of undefined property Alert.

Thank you Smiley
Logged

Huihihi~ Cheesy
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #3 on: 01/21/10, 11:11 »

Ups its worked if i use just single quote.. Smiley

so..

Code:
Alert.show('Wiw Done !!','headline');

thank you Smiley
Logged

Huihihi~ Cheesy
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything