1. what message appears?
2. that should happen automatically but you can create a black rectangle, convert it to a movieclip and when needed, attach it to the stage just below the depth of your alert, assign an alpha of about 80, assign a mouse handler and assign usehandcursor to false
3. solved with 2.
The alert window comes up, the title appears but the message does not. It's just a window with a title and no text/message. I've used the alert window before, and it usually disables everything on the screen until you answer Yes or No, but this time it isn't. I've compared my code to my old code with the alert window that works, and can't find any differences.
Any idea on how to fix this without using a movie clip?
if the function that instantiates your component what's
That's very strange. It says -16383.
I have the root application called codesMain.fla, then it loads this file with the ScrollPane component which is altCodes.fla. This file has all the code in the 1st frame of the screen application, and I'm not using any movie clips.
Not sure why the depth would be -16383, do you happen to know? Thanks again for your help.
yes, that's a normal depth when nothing is added to the stage using actionscript. there shouldn't be a problem because of that.
i don't know why you're having that problem.
if you create a new fla with an alert component, some buttons on-stage and you copy your code, does it work as expected?
I think you were on the right track, it did have something to do with the parent fla file. Once I complied it's parent file (and imported the window and alert classes into the parent), my message appeared in the alert box.
It doesn't make any sense, because the component is not in the parent file, it's in the sub-parent fla file, but I guess you just have to compile all the files in the hierarchy for it to work... It also doesn't make sense why everything else worked before (the title, the yes and no buttons) except for the message.
Thanks for the suggestion (to look at the depths, etc), however, I'm still unable to understand why the alert is not modal as it should be. If anyone has any suggestions on how to fix the buttons to make them modal, please let me know. Thanks.
just the _level0 swf needs the component in the library (and the swf that actually uses the component).