Re: [flexcoders] Simple but impossible Hbox alignment issue

2009-02-01 Thread Flex Noob
ok so just to follow up its a bug IMO with Label.

I tired setting truncateToFit and no dice.

So i swapped out label for text and its hot.








I also tried a TextArea without setting truncateToFit and it worked too.

crap like this makes me glad I'm mostly an AS dev.




From: Flex Noob 
To: flexcoders@yahoogroups.com
Sent: Sunday, February 1, 2009 9:56:28 PM
Subject: [flexcoders] Simple but impossible Hbox alignment issue


This one is rather perplexing. If I use a label inside an hbox and if the text 
inside the label runs too long it pushed the button off the screen:







Doesn't Flex tell the label what is maxWidth should be so that doesn't 
happen




  

[flexcoders] Simple but impossible Hbox alignment issue

2009-02-01 Thread Flex Noob
This one is rather perplexing. If I use a label inside an hbox and if the text 
inside the label runs too long it pushed the button off the screen:







Doesn't Flex tell the label what is maxWidth should be so that doesn't 
happen



  

Re: [flexcoders] When the heck are states ready?

2008-12-16 Thread Flex Noob
ok answering my own questions again but anyone who liked to follow along. .  .

so yeah. on creationComplete DOES return after skins loaded. But because I was 
converting the skin to a MovieClip it would return null instead of yelling at 
me for wrong type etc (nice).

SO, then i convert to DisplayObject container and got a rad "hack" rocking:

var d:DisplayObjectContainer = this.getChildAt(0) as DisplayObjectContainer;
var mc:MovieClip = d["myMovieClip"] as MovieClip;

I can see this work by setting some prop:

mc.alpha = .5

BUT, I can't add any events to it. . . ??

I've tried setting enabled, mouseEnabled, etc to true but still doesn't 
propogate mouse events.

Anyone?




____
From: Flex Noob 
To: flexcoders@yahoogroups.com
Sent: Monday, December 15, 2008 11:46:19 PM
Subject: [flexcoders] When the heck are states ready?


I'm setting button states using embed swfs.

on click I know my button has 4 children:

upState
overState
downState
label

when checking for these children on creation complete: nadda.

I've tried listening for different events but nothing seems to fire.

As a hack I know i can set enterFrame event to check BUUUTTT. . . . 
REALLY I mean come on flex.






  

[flexcoders] When the heck are states ready?

2008-12-15 Thread Flex Noob
I'm setting button states using embed swfs.

on click I know my button has 4 children:

upState
overState
downState
label

when checking for these children on creation complete: nadda.

I've tried listening for different events but nothing seems to fire.

As a hack I know i can set enterFrame event to check BUUUTTT. . . . 
REALLY I mean come on flex.


  

Re: [flexcoders] how do you blur smoothly between two states?

2008-12-12 Thread Flex Noob
I know I'm answering my own questions but hope someone has gone down the same 
path as me, can tell if I'm overlooking something obvious or wants to learn 
from my mistakes. . . 

My previous idea didn't work thanks to 
transition>blur>BlurInstance>TweenInstance>Tween.endTween.

endTween sets the tween to whatever state it should be at in the final 
position. In this case whatever blurXTo and blurYTo is.

to work around I'm listening for an update event and reset the blur to the last 
known value after it gets set to the end value on effectEnd. HOWEVER, this 
causes a noticable flicker as the endTween state is briefly displayed because 
BlurInstance.onTweenEnd.calls the private setBlurMethod.

so it now seems that i need to override the endTween method in my own class to 
prevent the tween from setting its to values. Unless of course I'm missing 
something painfully simple.

?








____
From: Flex Noob 
To: flexcoders@yahoogroups.com
Sent: Friday, December 12, 2008 12:51:22 AM
Subject: Re: [flexcoders] how do you blur smoothly between two states?


just dug into the AS3 classes and it by default  fromX/fromY has a default 
value of 4 and in the BlurInstanceClass it doesn't save the current blurX/BlurY 
values. I could create an event that listens for the update, the only time the 
value are sent, but then that adds extra overhead for each update.

Instead what I'll do is call a function to iterate the filters list, grab 
blurX/blurY.

Just wished they would have exposed a blurX and blurY prop on the Blur the 
wiring is there, just failed to provide a stub.




____
From: Flex Noob 
To: flexcod...@yahoogro ups.com
Sent: Thursday, December 11, 2008 11:34:01 PM
Subject: [flexcoders] how do you blur smoothly between two states?


hrmm, I don't get it

Say I have this on rollover:



and this on roll out:


works, cool, rock on. however if I mouse off at say 500ms the blur JUMPs to the 
to value and then works it way back. kind of sucks.

I've tried ommiting blurfrom or setting the value to *, "" and even 
blurXFrom="{ blur.blurXFrom} " blurYFrom="{ blur.blurYFrom} "but no dice.

what gives?





  

Re: [flexcoders] how do you blur smoothly between two states?

2008-12-12 Thread Flex Noob
just dug into the AS3 classes and it by default  fromX/fromY has a default 
value of 4 and in the BlurInstanceClass it doesn't save the current blurX/BlurY 
values. I could create an event that listens for the update, the only time the 
value are sent, but then that adds extra overhead for each update.

Instead what I'll do is call a function to iterate the filters list, grab 
blurX/blurY.

Just wished they would have exposed a blurX and blurY prop on the Blur the 
wiring is there, just failed to provide a stub.




____
From: Flex Noob 
To: flexcoders@yahoogroups.com
Sent: Thursday, December 11, 2008 11:34:01 PM
Subject: [flexcoders] how do you blur smoothly between two states?


hrmm, I don't get it

Say I have this on rollover:



and this on roll out:


works, cool, rock on. however if I mouse off at say 500ms the blur JUMPs to the 
to value and then works it way back. kind of sucks.

I've tried ommiting blurfrom or setting the value to *, "" and even 
blurXFrom="{ blur.blurXFrom} " blurYFrom="{ blur.blurYFrom} "but no dice.

what gives?




  

[flexcoders] how do you blur smoothly between two states?

2008-12-11 Thread Flex Noob
hrmm, I don't get it

Say I have this on rollover:



and this on roll out:


works, cool, rock on. however if I mouse off at say 500ms the blur JUMPs to the 
to value and then works it way back. kind of sucks.

I've tried ommiting blurfrom or setting the value to *, "" and even 
blurXFrom="{blur.blurXFrom}" blurYFrom="{blur.blurYFrom}"but no dice.

what gives?