Adobe Dreamweaver Forums



Last 10 THreads :         Load dynamic text into an embeded swf (Last Post : mikeyjray - Replies : 4 - Views : 9 )           »          Log email text (Last Post : Torgom - Replies : 0 - Views : 1 )           »          Properties > Flex Build Path (Last Post : kevxross - Replies : 0 - Views : 1 )           »          Can Anyone Help With Sub Menus (Last Post : Murray *ACE* - Replies : 8 - Views : 9 )           »          transferring DW license from crashed computer (Last Post : Sonjay - Replies : 1 - Views : 7 )           »          DIV in Table not working. (Last Post : Murray *ACE* - Replies : 13 - Views : 14 )           »          Variable for Loader Content (Last Post : Sea Crystal - Replies : 0 - Views : 1 )           »          left join won't work in query of query? (Last Post : Dan Bracuk - Replies : 5 - Views : 6 )           »          fireworks exports hundreds of files (Last Post : Rob Miller - Replies : 0 - Views : 1 )           »          Fireworks Color Selection Bug (Last Post : Linda Rathgeber - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 12-01-2008, 09:13 PM
camwest
 
Posts: n/a
Diggs:
Default Choppy Transitions

http://screencasts.bigbangtechnology.com/Choppiness.mov is a video of the
problem
http://pastie.org/328101 is a link to all the transition code

The first time I transition to a component it is all choppy loading, I think
because it is instancing the component. I tried putting creationPolicy="all"
on the <mx:AddChild> but It doesn't make a difference... i just want to preload
the component before doing the transition animation... any advice would be
appreciated!



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-01-2008, 09:42 PM
rtalton
 
Posts: n/a
Diggs:
Default Re: Choppy Transitions

You know, it's actually not bad considering how much you have going on. It does
seem like the creationPolicy should help, but there is so much going on at that
moment with the layout and effects.

Have you tried setting the suspendBackgroundProcessing property to TRUE on
each of the effects? This blocks all of the layout and measuring going on in
the app.


Reply With Quote
  #3 (permalink)  
Old 12-01-2008, 10:02 PM
camwest
 
Posts: n/a
Diggs:
Default Re: Choppy Transitions

Rtalton I'll try that.

I don't think creationPolicy is working correctly. When I put
creationComplete="trace('init')" on any of the components that I'm adding, I
don't see any output in the console when the application loads. I should see
this event dispatch if creationPolicy is set to "all"?

I'll let you know about the suspendBackgroundProcessing property.

Reply With Quote


  #4 (permalink)  
Old 12-01-2008, 10:33 PM
rtalton
 
Posts: n/a
Diggs:
Default Re: Choppy Transitions

Adding the creationPolicy=all to the addChild tag may not help you much and may
even slow you down if there multiple views in a child view stack, for instance.
It would all have to be created during the transition.
You should see that trace whenever the component is created. It may not be
when the app loads, but when you switch to the state containing the child you
are adding. Check it then.
I think in your case, the creation policy on the component only kicks in when
you change to the state containing that component, NOT when the app first loads.

Reply With Quote
  #5 (permalink)  
Old 12-01-2008, 10:33 PM
camwest
 
Posts: n/a
Diggs:
Default Re: Choppy Transitions

you are correct in your assertion rtalton, however I was under the impression
that adding creationPolicy="all" to an mx:AddChild tag would instance the
component regardless of state as long as the component that containted the
<mx:states> tag was instanced.

Reply With Quote
  #6 (permalink)  
Old 12-01-2008, 11:42 PM
rtalton
 
Posts: n/a
Diggs:
Default Re: Choppy Transitions

Setting creationPolicy="all" on the addChild tag in your state definition
shouldn't have any effect until you move to that state.

You could still set this to "all" on a navigator container within the state,
and get the result you want.

If the component you are adding was made using MXML, you can set it's
creationPolicy to "none", and then in code, use createComponentFromDescriptor()
to instantiate it (only works on MXML components). I've used this and it works
well.

Reply With Quote


Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk