update path data

0 views
Skip to first unread message

Erno

unread,
Jan 4, 2008, 3:08:59 AM1/4/08
to Degrafa
Hi everyone!
Im trying to change path data. If I have this:

<degrafa:GeometryGroup id="myGroup">
<geometry:Path stroke="{redStroke}" id="myPath" data="M100
100 L 200 200z">
</geometry:Path>
</degrafa:GeometryGroup>

And i just try to change data like this:

myPath.data = "M 0 0 L 0 200z";

Old stroke stay there and it draw new one.
Do I have to clean it some how first and then set data?

I have other question. If I want to animate my path do I have to
update data or is there better and easier way?
Like I have curve and I want to make it wave. I saw there was basic
rotation etc. but i want to make it wave.

Sorry my stupid questions, but im still learning flex/as3.

Thanks for help!
-Erno from Finland

Erno

unread,
Jan 5, 2008, 7:58:35 AM1/5/08
to Degrafa
Could someone please tell me how to update Path data?
Or do I have to allways destroy path and create new with new data?

Thanks!

-Erno from Finland

Jason Hawryluk

unread,
Jan 5, 2008, 8:23:59 AM1/5/08
to Degrafa
Sorry for the delay, Oversight on my part changes were made that are
preventing the segments from getting cleared when you reset the data
property. For now you can if using action script do a
myPath.segments=[]; to clear it.

We will have a fix up in a little while. Are you using a SWC or SVN
directly?

Again apologies for the delay.

cheers

jason
> > -Erno from Finland- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

Erno

unread,
Jan 5, 2008, 9:16:27 AM1/5/08
to Degrafa
Hi, and thanks for reply!

Just same time when you send reply I notice that source code is
available and
figure out same thing.

I'm using now SWC but I change to SVN.
Its great that you make source code available.

Maybe you should create cleanPath function or something like that.

Well anyway now I can continue.
Thanks for reply, source code and great framework!

-Erno

On 5 tammi, 15:23, Jason Hawryluk <FlexibleExperime...@gmail.com>
wrote:

Jason Hawryluk

unread,
Jan 5, 2008, 9:34:28 AM1/5/08
to Degrafa
A proper fix should be up today. This same area of path has another
minor issue as well that the next update will solve.

Your most welcome.

cheers

-jason
> > > - Afficher le texte des messages précédents -- Masquer le texte des messages précédents -
Reply all
Reply to author
Forward
0 new messages