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'" <flashcoders@chattyfig.figleaf.com>
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'" <flashcoders@chattyfig.figleaf.com>
>> 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


_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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