Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
Starlover_jacob #1
Re: Alert without button
Hello everyone,
I solved my problem.
What happened was that he was to busy executing the code that he didn't find
time to refresh the screen.
So what i did was i created a timer of 100 milliseconds after creating the
popup, so he got time to show the popup on the screen.
After the timer i continue the rest of my code (loading the image and
calculating the smaller one)
My code now looks like this:
------------------------------------------------------
// when image is selected i call the imageselected function
imageFile.addEventListener(Event.SELECT, imageSelected);
public function imageSelected(event:Event):void
{
pop2 = ImageLoadpopup(PopUpManager.createPopUp(Applicatio n.application as
Sprite,ImageLoadpopup,true));
PopUpManager.centerPopUp(pop2);
var myTimer:Timer = new Timer(100, 1);
myTimer.addEventListener("timer", timerHandler);
myTimer.start();
}
public function timerHandler(event:TimerEvent):void
{
// here i create a new loader and when that's complete i call another function
that handles the resize and saving.
}
------------------------------------------------------
So, the timer forces the code to wait, so it gets enough time to show my popup.
Greets, jacob
Starlover_jacob Guest
-
Alert Box
Hi, I have a confirm box when the user wants to delete a record. I am passing in some information about a record so that the user knows exactly... -
BUG ALERT!!
The following will throw an error, but it SHOULD NOT! var myAlert = mx.controls.Alert.show("Add New Application?", "CONFIRM",... -
Click twice on OK button in alert dialogs -- wassup with that?
Trash preferences or turn off alert dialogs in Edit-Preferences-General. -
Help with Alert box
Hi, I'm trying to get an Alert to show up when I click a button but it's not showing up. I've read the directions on how to add an alert component.... -
WORLDWIDE ALERT! How Did They Do That?
I need someone to go to www.msn.com and tell me how they made the flash file jump all over the page like that! The flash file in question is the... -
ntsiii #2
Re: Alert without button
Ahh. Another solution to this might be to use callLater();
Tracy
ntsiii Guest



Reply With Quote

