[flexcoders] Flex4 animation: try it out

2008-09-10 Thread Chet Haase
Hey everyone, I finally got around to joining the group. I figured it's cool to be fashionably late. Now, to sit back and watch my inbox fill up... I don't know if anyone made it over to my blog yesterday, but I posted a demo library of some of the animation features that we're working on for

RE: [flexcoders] Note to someone at Adobe who is in charge of documentation

2008-09-12 Thread Chet Haase
Jason, I know this wasn't really your point, which was about having better docs and not the TweenEffect API specifically, but for what it's worth: the new effects for the next release of Flex, along with the Animation class (which is used instead of Tween), avoid the use of Function handles

RE: [flexcoders] Looking for examples tutorials code to learn how to draw on a canvas

2008-09-19 Thread Chet Haase
Mark, I posted a tutorial a few months ago called TopDrawer that showed how to create a simple vector-drawing application. Parts 2 and 3 show the details of turning mouse events into drawn shapes on the canvas. http://graphics-geek.blogspot.com/2008/03/finally-some-code-top-drawer-part-i.html

RE: [flexcoders] second time image is not appearing

2008-09-22 Thread Chet Haase
I don’t think your reset function does what you want it to – it sets the source path to the Image to null. That will make the image invisible … but you’ll never see it again without setting the source path back to something reasonable. Try toggling the visible flag instead… Chet. From:

RE: [flexcoders] Re: Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread Chet Haase
Anyways, I guess coming from Swing there are books (such as Filthy Rich Clients, one author Chet Haase works for Adobe now) which cover Yeah, I heard that rumor as well... lots of neat tricks, details, expert type info. That's what I was sort of wondering about. To be fair, Filthy Rich Clients

RE: [flexcoders] JavaFX and Flex how do we compare?

2008-11-18 Thread Chet Haase
I would be curious to find out how others view the platforms, especially from the standpoint of external application developers, but having been on the inside of both of these projects, here are some points of comparison. I'm attempting to be objective here and just point out some of the areas

RE: [flexcoders] Re: Architecture question using Move Effect and Events

2008-11-21 Thread Chet Haase
I'm not sure I understand the whole context, but if I'm right that there's just one of these custom components per app, and therefore one Move effect running on it at any given time, isn't it easier to just cache an instance to the effect itself and pause() it directly when you get the

RE: [flexcoders] **View States Problem**

2008-11-27 Thread Chet Haase
States are mutually exclusive: a given component (such as the component that contains the states in your code below) can only be in one state at a time. States can be derived from each other, but that's essentially just a way to inherit property values from one state to the other; they are

RE: [flexcoders] Issues trying to create a custom image component

2008-11-28 Thread Chet Haase
I did something like this in my 'Sorted Details' demo: http://graphics-geek.blogspot.com/2008/04/sorted-details.html (there's also a short video of it here: http://graphics-geek.blogspot.com/2008/09/video-sorted-details.html) The 'slides' in the demo are custom components, subclassing

RE: [flexcoders] Zoom effect absolute positioning

2008-12-02 Thread Chet Haase
Hi Ward, I don't think that switching to an absolute layout would have the desired effect. For one thing, your thumbnails probably have no explicit location and are just being positioned by the Canvas layout manager, so if you switch to absolute, they might just decide to go put themselves at

RE: [flexcoders] move effect Flex live doc example does not work

2008-12-02 Thread Chet Haase
I think the problem is that you named your application move. 'move' is a word that's already used in Flex (such as the move() function), so it runs into problems when it tries to use that word as a type as well. name your application differently and it should work fine (it did for me, but I

RE: [flexcoders] People with blogs

2008-12-04 Thread Chet Haase
My more manual approach is to simply type my blog in DreamWeaver and to copy/paste the raw HTML code into the Edit HTML view of my blogging page. This does all the transformation of 's into escape codes for me. But my blog is on blogger.com, which has pretty bad support for coding in general

RE: [flexcoders]Architect an image gallery transition effect - design suggestions

2009-02-11 Thread Chet Haase
Seems like you're trying to do too much with triggers. Why not just handle whatever arbitrary event you're after (like clicking on the next/prev buttons) and then manually launch your custom effect with the appropriate target(s)? If necessary, the even handler could set up information on the

RE: [flexcoders] Re: A very simple code of ImageSnapshot

2009-02-12 Thread Chet Haase
You're not giving any height to your uiHolder and then you're using the height dimension when creating the BitmapData, so it fails because you're asking it to create a BitmapData with invalid dimensions. Try it with real values for both width and height and you'll get a better result. Note

RE: [flexcoders] Overiding Hide effect? I want to hide immediately

2009-02-24 Thread Chet Haase
Triggers are good when you want a canned action to happen on a canned event. But you want to feed a bit more logic into it, which is starting to break the triggers mold. You might want to skip the trigger and handle the hide event specifically, then either play() the Fade effect or hide it

RE: [flexcoders] About effect in Flex4

2009-07-06 Thread Chet Haase
Transitions work just fine in flex4, but you need to declare them in a transitions block (just like in flex3), not in the Declarations block: s:transitions s:Transition fromState=”primary” toState=”secondary” s:Sequence targets=”{[panel1]}” // etc. Note that Blur is not an effect

RE: [flexcoders] About Effect in Flex4

2009-07-06 Thread Chet Haase
both Parallel and Sequence work the same in flex4 as they did in flex3. So this: s:Sequence s:Move/ s:Resize/ /s:Sequence is valid and function in flex4. Chet. From: flexcoders@yahoogroups.com

RE: [flexcoders] How to link effects so that one starts after one finishes?

2009-07-09 Thread Chet Haase
There are a couple of ways you could make this work: 1) Simplest: make your triggered effects do the right thing (the appearing one waits for the disappearing one to finish, via a startDelay): mx:WipeDown id=wipeDown duration=700 / mx:WipeUp id=wipeUp duration=700 startDelay=700/ This

RE: [flexcoders] Re: problem using mx:Glow and mx:Box

2009-07-27 Thread Chet Haase
Box doesn't have a fill by default, so you're seeing right through the container to the background behind it. The glow you're seeing inside the box is actually just a general glow around each of the container's elements. You'd get the same result with a Canvas, although a Panel has a fillled

RE: [flexcoders] Loading Images

2009-08-05 Thread Chet Haase
Since img is in a ViewStack, it seems like it's probably not yet instantiated. If it hasn't been made visible yet, then it won't be instantiated and it will be null, so your call to load() will fail as it does below. If you're trying to display the larger version of the image and the

RE: [flexcoders] Flex 3d Tweening and best practice/results for Text

2009-08-07 Thread Chet Haase
You don’t necessarily have to reset the 2d matrix – you just have to make sure that all of your 3d properties are set back to the values they would have if the object were again in 2d. In the original example, if the only thing you did was to change the z location, and then you reset it to 0,

RE: [flexcoders] Flex 3d Tweening and best practice/results for Text

2009-08-07 Thread Chet Haase
-attitude.fr/ msn : thomas.parqu...@web-attitude.frmailto:thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.netmailto:sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2009/8/7 Chet Haase cha...@adobe.commailto:cha...@adobe.com You don’t necessarily have to reset the 2d

RE: [flexcoders] Flex 3d Tweening and best practice/results for Text

2009-08-08 Thread Chet Haase
://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.frmailto:thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.netmailto:sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2009/8/8 Chet Haase cha...@adobe.commailto:cha...@adobe.com That’s not what I’m seeing

RE: [flexcoders] How to make the effect smooth

2009-09-25 Thread Chet Haase
Scaling text is a funny thing. Generally, you won't get what you're asking for - smooth-scaling. The problem is that to display text in any reasonable way (in a way where it won't look completely ugly), graphics engines use things like font metrics, point sizes, font hints, sub-pixel

RE: [flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread Chet Haase
Nope: HSBColor is a utility class for dealing with colors represented in the HSB (Hue, Saturation, and Balance) color space. It will help you convert between RGB and HSB colors, but will not help you with RGB to hex string conversions. Chet. From: flexcoders@yahoogroups.com

RE: [flexcoders] Chet Haase explains the graphics stack in Flash Player

2009-11-02 Thread Chet Haase
. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Vivian Richard Sent: Monday, November 02, 2009 3:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Chet Haase explains the graphics stack in Flash Player You can ask this question directly to Chet. He

RE: [flexcoders] Matrix3D error

2009-11-03 Thread Chet Haase
The old projects from FB4 imported classes from the Flex 4 sdk and your Flex 3 compiler is complaining about classes that it can't find in Flex 3. If you want to compile against Flex 4 in FB3, then set up your SDKs to add the Flex 4 SDK, and point your project(s) at that SDK instead of the

RE: [flexcoders] Exporting Flex animation to animated GIF?

2009-12-07 Thread Chet Haase
A partial solution would be to handle update events from the main effect running the animation and capture a screenshot of the application (ImageCapture or the BitmapUtil class in Flex 4) for each update, then save those bitmaps as images (not sure how to turn those separate images into one

RE: [flexcoders] Tutorials or pointing me in the right direction

2010-02-18 Thread Chet Haase
Hi, I posted a simple drawing app tutorial a couple of years ago that you might check out. It has the basics in it like listening for mouse down/move/up events and causing drawing operations based on them. It's based on Flex 3, when drawing was a bit more involved than it is in Flex 4 - you

RE: [flexcoders] Draw three rectangles inside a canvas -----URGENT PLEASE

2010-04-20 Thread Chet Haase
I can't tell what you're trying to do, but this code works: s:Panel width=400 height=300 s:Rect width=100 height=100 s:fill s:SolidColor color=red/ /s:fill /s:Rect s:Rect x=200 width=100 height=100 s:fill

RE: [flexcoders] A way to animate or move a list smoothly? My attempt in Flex 3 works, Flash builder not so much.

2010-05-03 Thread Chet Haase
I can't run the code to see what you're seeing since it refers to objects that aren't here, but for the deceleration movement behavior you describe, you probably want to check out the 'easer' property of Flex 4 effects. This property lets you define the timing behavior of your animations, with