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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
-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
://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
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
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
.
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
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
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
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
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
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
31 matches
Mail list logo