[flexcoders] Shift-drag on HSlider in FB4

2009-06-17 Thread Daniel McQuillen

Does anybody have any tips for capturing a slider drag with SHIFT keyboard 
event?

MouseEvents have the handy shiftkey property for capturing events with SHIFT 
key depressed. However, s:HSlider/ doesn't seem to launch any helpful mouse 
events (e.g. mouseUp) and the events it does launch (e.g. change) don't have 
the event.shiftkey property.

I could capture the shift key state in my own boolean flag somewhere by using 
keyUp and keyDown handlers on the slider or parent containers, but then the 
issue of component focus gets in the way and it doesn't behave smoothly.

There's probably a really easy answer to this that -- like so many before -- 
eludes my slow thinking. Thanks for any suggestions!

- Daniel McQ



[flexcoders] +Re: Dynamic destination of remote object?

2008-09-10 Thread Daniel McQuillen
Did you try casting to mx.rpc.remoting.mxml.RemoteObject? This is a subclass
or mx.rpc.remoting.RemoteObject. Although it's for the mx:RemoteObject
tag, it does give you access to the endpoint property...something the
superclass doesn't.

- Daniel


[flexcoders] Flex Kit for CS3 weirdness

2008-08-12 Thread Daniel McQuillen
I'm experiencing some weirdness when using the Flex Kit for CS3. I have a
MovieClip I'm exporting to a .swc (for Flex) as a UIMovieClip called
AnimationPanel. I'm defining the class in a separate AnimationPanel.as
file with a class definition of:

  public class AnimationPanel extends UIMovieClip

I've already used the Make Flex Component command on the symbol in the
library and it reads the class correctly. There are are 10 child movieclips
within this main UIMovieClip timeline I want to access from the
AnimationPanel.as class. When I tried to compile, the compiler complained
that it didn't know what these movieclip references were. So I added member
definitions in the AnimationPanel.as file...

private var animHC:MovieClip
private var animCHL:MovieClip
... and so on.

That worked for all but two, which the compiler still said it didn't know
what they were. (I checked spelling and the instance name field for these
two.) Why thse two? Dunno.

This is the funny part: I did one thing...I moved the layer that the
supposedly missing movieclip was on. Suddenly, the compiler decided that a
conflict exists with definition [movieclip name] in namespace internal* for
every child movieclip l had defined*! So now it didn't want *any *definitions
in the class...they were being picked up automatically from inside the
movieclip. So now I took out all the member definitions and it worked fine.

Ehh...

I gues this is my ignorance of how the compiler works with movieclips, their
members, and classes that define the movieclips. Are you supposed to define
child movieclips that exist on the timeline in the .as class when
subclassing UIMovieClip? Does anybody know where to go to learn more about
how the compiler works in this case? Eveyrthing's working now but I'd like
to know what's going on.

Thanks in advance for any help!

Daniel
Santa Cruz, CA