Avatar of MJ
MJFlag for United States of America

asked on 

Alert with variable value in flash!

Hi..please excuse my ignorance because I have never done this before!! :) AllI want to do is to alert a value of some variable in flash! It seems pretty easy, but I can't do it! I have looked at some examples but I can't getthem to work!
-------------
pos_tableau = 1;


import mx.controls.Alert;
Alert.show(pos_tableau, "pos_tableau value", Alert.OK, _level1);

----------------------------

P.S. don't get what the _level represents????
Adobe Flash

Avatar of undefined
Last Comment
MJ
Avatar of negatyve
negatyve

Code is correct, but it will work only if:

- you are exporting your movie for flash player 6/7 with AS 2.0
- you have got an "Alert" component symbol in your library

>P.S. don't get what the _level represents????

the fourth parameter of the Alert.show method is the timeline which the alert window will center in..
Avatar of MJ
MJ
Flag of United States of America image

ASKER

So is there any other way to do this?? All I want to do is find out what value is being passed in the code??? I don't care how I get it! Even a traditional javascript alert would work!
SOLUTION
Avatar of Savong
Savong
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of muso120999
muso120999

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of MJ
MJ
Flag of United States of America image

ASKER

One question though... I tried both of these and when I test the movie or scene I still don't see anything??? Any ideas??
Avatar of Savong
Savong
Flag of United States of America image

How are you testing these?  Some details might give us a better idea.
Avatar of MJ
MJ
Flag of United States of America image

ASKER

I'm just using Test Movie. I do get one actionscript error but it doesn't give me any more than that???  The code runs though????
Avatar of MJ
MJ
Flag of United States of America image

ASKER

I'll post another question since this is seperate from this question!

Thanks!
Adobe Flash
Adobe Flash

Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.

29K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo