actually, that listing on the flashcoders wiki is wrong.  I wrote this out a
while back:

http://labs.blitzagency.com/?p=59

I apologize, I need to completely rewrite it to be coherent ;)  but, it DOES
explain the 3rd and 4th arguments.  I also created a quick flash demo that
allows you to change values to see their affects on an object.

again, the article needs to be reworked, but it explains pretty thoroughly
how assetpropflags works.  I've been meaning to write a utility class to
manage using assetpropflags, but I *think* there are differences in how it
acts based on the version of flash you are using.  But not totaly sure about
that.

hth,

JG

On 5/14/06, Peter Hall <[EMAIL PROTECTED]> wrote:

There is no "default". If you need to restore the state, then you have to
first find out what that state is. There are some methods on that page,
which describe how to do that (though it's fairly clumsy).

For example, if you need to find out the dontEnum value, then you do a
for..in loop and see what turns up. Then, once you have changed the value,
do another for..in, then figure out the difference. readOnly and
dontDelete
are harder, since you actually have to change the data.

To "un-set" a flag, use 0, then pass the bitwise flags as the 4th
argument.

Peter

On 5/10/06, Muzak <[EMAIL PROTECTED]> wrote:
>
> Haven't used ASSetPropFlags in ages, but if i had to guess, I'd say 0
> applies to a class instance.
>
> 0 = | can overwrite, yes | can delete, yes | is hidden, no |
>
> regards,
> Muzak
>
>
> ----- Original Message -----
> From: "j.c.wichman" <[EMAIL PROTECTED]>
> To: "'Flashcoders mailing list'" <[email protected]>
> Sent: Wednesday, May 10, 2006 2:13 PM
> Subject: RE: [Flashcoders] Assetpropflags back to default
>
>
> > Hi,
> > Yes this is one of the many results google turned up :), exactly where
> on
> > the page did you read which call reverts the flags back to the
default,
> or
> > what the default is, I cannot find a clear statement describing that.
I
> mean
> > which bit applies to a class instance by default.
> >
> > Greetz
> > H
> >
> >
> >
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] On Behalf Of Muzak
> >> Sent: Wednesday, May 10, 2006 11:06 AM
> >> To: Flashcoders mailing list
> >> Subject: Re: [Flashcoders] Assetpropflags back to default
> >>
> >> http://www.osflash.org/flashcoders/undocumented/assetpropflags
> >>
> >> regards,
> >> Muzak
> >>
> >> motto: Google first, ask questions later..
> >>
> >> ----- Original Message -----
> >> From: "j.c.wichman" <[EMAIL PROTECTED]>
> >> To: "'Flashcoders mailing list'" <[email protected]>
> >> Sent: Wednesday, May 10, 2006 9:47 AM
> >> Subject: [Flashcoders] Assetpropflags back to default
> >>
> >>
> >> > Hi list,
> >> >
> >> > I was wondering, is it possible to revert an object back to
> >> its default
> >> > setting after using for example:
> >> > _global.ASSetPropFlags (myObject, null, 6, true);
> >> >
> >> > What is the call I need to do to revert the myObject to the
> >> state it was?
> >> > Is there a default state? Am I making any sense:)?
> >> >
> >> > Greetz
> >> > Hans
>
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
John Grden - Blitz
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to