Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-01-2008, 11:09 AM   #1
kalisky
Registered User
 
Join Date: Dec 2008
Posts: 1
Default UIComponent setters

Hi,

I have a Canvas, that has some other UIComponents inside. I use an animation to resize it, and calculate each step of the animation myself and upon each step of the animation, I set the width and height of each UIComponent on the canvas, and its x and y.

As I noticed these actions take a lot of time (I saw many events were fired by the setters: width, height, x, y), I was wondering if there's a better way of doing so, and will the resize effect be more efficient.

Thanks.
kalisky is offline   Reply With Quote
Old 12-22-2008, 06:39 AM   #2
berras007
Registered User
 
Join Date: Dec 2008
Posts: 4
Default

1st create a 2nd state from your old state then on the newly created state you can do specifying your objects and dont forget to give ID for your new state so that you can call it on mouse event ,

then create a transition you can use either sequence or parallel movement
berras007 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
(flex 3) StartDrag on UIComponent inside a Canvas glitchy Problem springframework Flex 2, 3 & 4 3 04-18-2009 07:19 PM
StartDrag on UIComponent inside a Canvas glitchy Problem springframework ActionScript 3.0 0 07-06-2008 10:41 PM
Control UIComponent Focus Cerin Components 4 02-27-2008 03:56 AM
UIComponent addChild() not drawing UIComponent idleflow Flex 2, 3 & 4 7 01-22-2008 05:44 PM
UIObject and UIComponent Scripts don't Update on Recompile suicidePills Components 3 06-19-2006 06:06 PM


All times are GMT. The time now is 07:05 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.