Re: [flexcoders] Animating an arrow into a target

2011-09-08 Thread Mark Embrey
check out
http://flex4fun.com/2010/11/30/flex4-navigation-menu-using-state-and-timerfor
an idea
On Sep 7, 2011 4:21 PM, "valdhor"  wrote:
> I have a project where I need to show the progress of a, well, project.
The project has seven specific stages that it must pass through.
>
> What I would like to do is have an animated arrow move from left to right
across the screen until it hits a target on the right side. At any time a
user can navigate to the page to see what stage the project is up to. I'd
like the user to see the arrow move to that point and stop.
>
> Unfortunately I am not a designer nor animator. I have looked at tweening
but that just seems to be able to move an object (like the arrow) from one
place to another but I would like the arrow to elongate as it moves (ie. The
head and tail stays the same but the shaft elongates).
>
> I have PNG images of the arrow and target and can break the arrow into a
head, a tail and a 1-pixel wide shaft.
>
> If anyone has any ideas on how to accomplish it, examples/tutorials or
sites I can visit I would be most appreciative. (I have been googling all
day but can't find anything useful)
>
>


[flexcoders] Re: Animating an arrow into a target

2011-09-08 Thread tkraikit
Off the top of my head, you could do something by just animating the width of 
the shaft and the x coordinate of the head in parallel, e.g.


http://ns.adobe.com/mxml/2009"; 
   xmlns:s="library://ns.adobe.com/flex/spark" 
   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" 
minHeight="600">


























(This assumes that the shaft will scale horizontally in a seamless manner.)

-- Tom


--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I have a project where I need to show the progress of a, well, project. The 
> project has seven specific stages that it must pass through.
> 
> What I would like to do is have an animated arrow move from left to right 
> across the screen until it hits a target on the right side. At any time a 
> user can navigate to the page to see what stage the project is up to. I'd 
> like the user to see the arrow move to that point and stop.
> 
> Unfortunately I am not a designer nor animator. I have looked at tweening but 
> that just seems to be able to move an object (like the arrow) from one place 
> to another but I would like the arrow to elongate as it moves (ie. The head 
> and tail stays the same but the shaft elongates).
> 
> I have PNG images of the arrow and target and can break the arrow into a 
> head, a tail and a 1-pixel wide shaft.
> 
> If anyone has any ideas on how to accomplish it, examples/tutorials or sites 
> I can visit I would be most appreciative. (I have been googling all day but 
> can't find anything useful)
>




Re: [flexcoders] Regarding a book

2011-09-08 Thread Adarsh Kumar
Thank u sir...its really sufficient to me..
God bless u.

On Thu, Sep 8, 2011 at 8:20 AM, Rishi Tandon wrote:

> **
>
>
> Go through the video tutorial first and then live documentIon by adobe is
> the complete and best learning material.
> Also install tour de flex for quick demos.
>
> Sent from my iPhone
>
> On Sep 7, 2011, at 5:59 PM, "Adarsh"  wrote:
>
>
>
> Hi all
> i am very new to flex please suggest me which book to follow and which one
> is best for me...
>
>   
>



-- 
*Thanks with Regards
   Adarsh Kumar
  Mob.9417482208*


RE: [flexcoders] Regarding a Flex Book

2011-09-08 Thread Bill Brutzman
I like best. "Learning Flex 4" by Alaric Cole & Elijah Robison, O'Reilly.
The pages are in color.

 

--Bill

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Adarsh
Sent: Wednesday, September 07, 2011 8:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Regarding a book

 

  

Hi all
i am very new to flex please suggest me which book to follow and which one
is best for me...





Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-08 Thread Nick Middleweek
Doug, what's that?



On 7 September 2011 20:48, Douglas Knudsen  wrote:

> **
>
>
> also keep in mind virtualization use in Lists.  Just one more cog in The
> Wheel That Depends
>
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>
>
> On Wed, Sep 7, 2011 at 3:21 PM, Nick Middleweek wrote:
>
>> **
>>
>>
>> Alex,
>>
>> That's a good idea... What's your thoughts on approach to implement a
>> shared Button?
>>
>> Would you create it at the parent view level and inject into the IR's
>> using some kind of IFactory or perhaps attach it to the data property?
>>
>>
>> Cheers,
>> Nick
>>
>>
>>
>> On 7 September 2011 17:27, Alex Harui  wrote:
>>
>>> **
>>>
>>>
>>> Yes, it is a set of trade-offs.  Deferring until you know you need it is
>>> best for memory and startup time, but you have to pay for the adding later.
>>>  You can cache the button so you don’t always create a new one.  You can
>>> even share a button between all renderers if you want.
>>>
>>>
>>>
>>> On 9/7/11 5:42 AM, "ganaraj p r"  wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>> With toggling the visibility property you are creating 1 Button per Item
>>> Renderer.
>>>
>>> When you are creating an object each time a user's mouse is over it, and
>>> then deleting it when its out, you are creating 'n' number of objects and
>>> deleting them , the new objects need to be garbage collected.
>>>
>>> The initial load is going to be more ofcourse, but then its a set number
>>> since you are only going to be creating a set number of buttons.
>>>
>>> On Wed, Sep 7, 2011 at 10:23 AM, Nick Middleweek 
>>> wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>> Alex,
>>>
>>> Just checking/ thinking... But if I go down the visibility route and
>>> addChild( x ) up front in createChildren() would I be consuming more initial
>>> memory than if I addChild( x ) as and when I needed it?
>>>
>>> In my case, I have 15 columns, using the same renderer and 40 rows so
>>> that's 600 extra buttons that would be created that are initially set
>>> visible = false;
>>>
>>> I'm assuming they are all in memory and when scrolling, this could impact
>>> scroll performance.
>>>
>>>
>>> Or is adding/ removing children dynamically and making each Item Renderer
>>> go through it's update cycle more expensive?
>>>
>>>
>>> Cheers,
>>> Nick
>>>
>>>
>>>
>>>
>>> On 6 September 2011 19:48, Alex Harui  wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>> States are still available in the MX way.  You can also hide and show
>>> instead of add and remove.
>>>
>>> Known children should be created in createChildren or in states.  But
>>> otherwise, you have to create them when you know you need them.  The List
>>> components create them in updateDisplayList since that’s when they finally
>>> know how many to create.
>>>
>>>
>>>
>>> On 9/6/11 10:48 AM, "Nick Middleweek" >> http://n...@middleweek.co.uk> > wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>> Thanks for this... So I'm extending UIComponent, does this mean I'm doing
>>> it the MX way?
>>>
>>> Cheers...
>>>
>>>
>>> On 6 September 2011 14:38, Haykel BEN JEMIA >> http://hayke...@gmail.com> > wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>> Hi Nick,
>>>
>>> if you use Spark components and the child components you want to add are
>>> fixed and known, e.g. a 'close' button that should be visible on mouse-over,
>>> then I would use skin states and manage visibility of the components in the
>>> skin.
>>>
>>> Haykel Ben Jemia
>>>
>>> Allmas
>>> Web & RIA Development
>>> http://www.allmas-tn.com
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Sep 6, 2011 at 10:28 AM, Nick Middleweek >> http://n...@middleweek.co.uk> > wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>> Hi,
>>>
>>> I've been trying to find the correct 'place' to create new components
>>> after the parent component is UPDATE_COMPLETE.
>>>
>>> During initialisation, we create child components in *createChildren()*but 
>>> where/ when should we create them for e.g. in response to a mouseOver or
>>> a mouseClick event?
>>>
>>> Is it simply 'ok' to *this.addChild( *myNewButton *)* in a MOUSE_EVENT
>>> function handler or should I be setting some dirty flag to trigger off an
>>> invalidation and then add the button in a lifecycle override function?
>>>
>>>
>>> Thanks,
>>> Nick
>>>
>>>
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe System, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>>
>>
>>
>> --
>> Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
>> 035 5424, blog: http://www.middleweek.co.uk } );
>>
>>
>>
>  
>



-- 
Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
035 5424, blog: http://www.middleweek.co.uk } );


Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-08 Thread Nick Middleweek
Alex,

Not sure if I've overlooked something but how can the blue focus rectangle
help?


Cheers,
Nick



On 8 September 2011 03:11, Alex Harui  wrote:

> **
>
>
> I think I’d just hack it in.  You can probably hang it off of the DG when
> not used and grab it from there when needed.  The parent of the blue focus
> rectangle is shared among all Flex components in an app.
>
>
>