Great...Thanks Elisheva
On Mar 31, 12:44 pm, pamela fox <[email protected]> wrote: > Hi Elisheva- > Dmitri created a demo of this today - it's pretty cool, > actually:http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/ResizingSma... > > It also uses the smart info window functionality, so that the info window > opens in the optimal location. > > - pamela > > On Mon, Mar 16, 2009 at 6:51 PM, Elisheva <[email protected]> wrote: > > > Hi. > > > I am trying to open an infowindow with tween. Start with size of > > (w=1,h=1) and reaching the actual size over 2 seconds. > > > I have in my mxml: > > var options:InfoWindowOptions = new InfoWindowOptions({ > > customContent: new MapWindowInfo > > (pinXMLInfo,pinType,windowsStr), > > customOffset: new Point(380,335), > > customCloseRect: new Rectangle(340, 38, 16, > > 23) > > > MapWindowInfo is a class where I have the window properties (text, > > image etc). All is wrapped in a Box, and I have an > > addChild(Box); > > > How can I tween-scale the box ? > > > I tried : > > > box.height = 10; > > boxl.width = 10; > > addChild(box); > > var scaleEffect:Resize = new Resize(panel); > > scaleEffect.heightFrom = box.height; > > scaleEffect.widthFrom = box.width; > > scaleEffect.heightTo = 368; // actual size of the infowindow > > scaleEffect.widthTo = 311; > > scaleEffect.duration = 10000; > > scaleEffect.addEventListener(EffectEvent.EFFECT_END, function > > (evt:EffectEvent):void { > > scaleEffect.stop(); > > }); > > > scaleEffect.play(); > > > But I dont see the animation, the window pops up as before... > > > Has anyone tried it ? or has a link to an example ? > > > Thanks > > > Elisheva --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
