|
Hrm... never tried that in 2, but then again, never
liked Parrellel either. Just do:
e1.playEffect();
e2.playEffect();
Instead.
----- Original Message -----
From: Dan
Diodati
Sent: Tuesday, November 29, 2005 1:45 PM
Subject: RE: [flexcoders] Effects on a modal box? I tried to do a parellel effect which does not seem to
work:
var parentToPopUpOver =
view;
var isModal:Boolean = true; var initObj = {}; var addReasonDialog = mx.managers.PopUpManager.createPopUp( parentToPopUpOver, com.sf.sfv4.view.sharkfin.AddReason, isModal, initObj); var e1 = new
mx.effects.Move(addReasonDialog);
e1.xTo=5; e1.yTo = 5// view.parent.parent.vPosition; e1.xFrom = 800; e1.yFrom = 600; e1.duration=400;
e1.easing=com.robertpenner.easing.Expo.easeInOut; //Echo.debug("before explode " + view.width +"," + view.height); var e2 = new mx.effects.Resize(addReasonDialog); e2.widthFrom=0; e2.heightFrom=0; //e2.widthTo=300; e2.heightTo=600; e2.duration=400; e2.easing=com.robertpenner.easing.Expo.easeInOut; // little bit of performance boost by hiding children //e2.hideChildren = [addReasonDialog]; var all = new mx.effects.Parallel(); all.addChild(e1); all.addChild(e2); all.playEffect(); The dialog box opens but does not have the zooming out
effect that I want.
It appears that the effect occurs after the dialog box is
opened and not during the creation of the dialog.
Dan From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 7:08 PM To: [email protected] Subject: Re: [flexcoders] Effects on a modal box? Be wary of any consultant who says you "can't" do
something.
This is Flex... of course you can! Not everything, but most things that are cool & matter. For everything, that's Zombo.com. Example (psuedo code):
popup = PopUpManager.createPopUp(this, Panel, false);
var resize = new Resize(popup);
resize.widthFrom = 0;
resize.widthTo = 320;
resize.heightFrom = 0;
resize.heightTo = 240;
resize.duration = 1000;
resize.suspendBackgroundProcessing = true;
resize.playEffect();
Booyah!!!
You'll have to elaborate on the implode...
----- Original Message -----
From: Dan
Diodati
Sent: Monday, November 28, 2005 8:46 PM
Subject: RE: [flexcoders] Effects on a modal box? Just to be clear I want to have a dialog box that
zooms open from a button and then implodes into a text box when closed. I was
told by some consultant that this would not work. So he was
incorrect?
Dan From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 5:05 PM To: [email protected] Subject: Re: [flexcoders] Effects on a modal box? You can use all mx.effects.* on popups, sure.
PopUpManager.createPopUp returns the popup itself; feel free to make it the
target of an event.
----- Original Message -----
From: Dan
Diodati
Sent: Monday, November 28, 2005 6:04 PM
Subject: [flexcoders] Effects on a modal box? Hi when doing
special effects can they be applied when opening a modal titlewindow via the
PopUpManager?
Dan
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|

