I am setting the canvas width to 25 or something like that. It leaves enough room to display the button and a vertical bar. In my approach I also have to react to resize events of the main application... constraints unfortunately don't work with Resize / Move effects... that's because you only have xFrom xTo, and widthFrom and widthTo etc. It would be nice if they actually had a rightFrom, rightTo leftFrom, leftTo etc.
--- In [email protected], "Nate Pearson" <[EMAIL PROTECTED]> wrote: > > Hey Iko, > > It's working great, had another question for you. When you do that > slide/resize on your canvas are you setting the width to 0 when it > loads? Maybe setting the visibility to false? You have inspired me > to copy you :) and I was wondering what the best approach is. > > --- In [email protected], "Nate Pearson" napearson99@ wrote: > > > > AH! Very cool! I like the minimize with the move. > > Thanks, you have answered my question. > > > > > > --- In [email protected], "iko_knyphausen" <iko@> wrote: > > > > > > > > > Yes, this would clip. If you want to slide and minimize, you need a > > > combination of MOVE and RESIZE. As both effects run in parallel, it > > > looks smooth if you allow both effects the same duration. I have a few > > > sliders in a beta app, if you want to check. http://www.aim4pro.com > > > <http://www.aim4pro.com> (use guest/guest to log in). Right to > the main > > > item list, you will find a slider button (vertically centered). > Click on > > > it to see a dashboard slid in... > > > > > > Later > > > > > > > > > --- In [email protected], "Nate Pearson" <napearson99@> > > > wrote: > > > > > > > > thanks for the reply. Will that clip the canvas if it goes > outside of > > > > it's parent container? > > > > > > > > I.E. Parent is 400 pix wide. Child that you want to slide is 200px > > > > wide and is centered in the parent. If you slide the child xTo="1" > > > > will it look like its sliding outside of its parent > > > container(clipping)? > > > > > > > > I'm about to go to bed or else I would try it right now. Either way > > > > I'll try it in the morning to figure out what's happening. > > > > > > > > Thanks again. > > > > > > > > --- In [email protected], "iko_knyphausen" iko@ wrote: > > > > > > > > > > > > > > > I did not want to install the app, but I have done some sliding in > > > and > > > > > out... > > > > > > > > > > I used a combination of MOVE effects and RESIZE in some cases. So > > > for > > > > > example if you want to slide a Canvas (with its children) you can > > > > > approach as follows... > > > > > > > > > > <mx:Move id="moveEffect" xTo="1" duration="500" > target="myCanvas" /> > > > > > > > > > > <mx:Canvas id="myCanvas" ... /> > > > > > > > > > > in an eventHandler you can then trigger the effect using > > > > > > > > > > moveEffect.play(); > > > > > > > > > > This is the bare minimum... but it explains the mechanism and what > > > to > > > > > look for... > > > > > > > > > > > > > > > --- In [email protected], "Nate Pearson" <napearson99@> > > > > > wrote: > > > > > > > > > > > > I'm trying to figure out how the "slide in slide out" effect is > > > done. > > > > > > > > > > > > Here is an example in an apollo app: > > > http://www.finetune.com/desktop/ > > > > > > (pretty cool app by the way!) > > > > > > > > > > > > When you start finetune desktop up and click the arrows left an > > > right > > > > > > you see how one things slides in and one slides out? That's > what I > > > > > > want! > > > > > > > > > > > > How the heck do you do it? Is it a tween? It looks like > there is a > > > > > > non-linear easing function on it but I'm a noob to effects. > > > > > > > > > > > > Thanks for your help in advance! :) > > > > > > > > > > > > > > > > > > > > >

