Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-08 Thread Kenneth Kawamoto

Changing to Event.INIT and catching IOErrorEvent.IO_ERROR had no effect,
but it's interesting the player thinks it's an AVM1 movie...

Using Symbol Class is better solution anyway, since if you use the
Document Class, your asset will include entire Stage too.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Jason Van Cleave wrote:

ok, I did get it to puke - here's some info

[Switching to process 2666 thread 0x622f]
0x199ae696 in Flash_EnforceLocalSecurity ()

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000c
0x199ae696 in Flash_EnforceLocalSecurity ()

The Flash log also had this in it
CLASS: [class Circle]
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 
SWF; code in the ActionScript 3.0 SWF will not run.
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never 
Completed.


The Document class seems to be the issue. Making a Symbol, assigning the 
linkage without it works ok


On Feb 8, 2008 3:30 AM, Jason Van Cleave <[EMAIL PROTECTED] 
> wrote:


I have been working with this technique a lot today so I downgraded
to 9.047 on the mac but I am not getting any crashes.

i did see this come through tho

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never
Completed.

I started with my code then tried the above changes with the files here:

http://darylteo.com/blog/wp-content/uploads/2007/11/assetlibraries.zip


On Feb 7, 2008 6:48 PM, Kenneth Kawamoto <[EMAIL PROTECTED]
> wrote:

I'm on a Mac at the moment and I can verify this crashes both
Firefox
and Safari immediately. It would be interesting to find out why,
but as
this is the old player we are talking about, Adobe won't be
looking into.

Since it works on Moviestar (works on both PC/Mac), can you just
check
the player version installed with SWFObject and do the
ExpressInstall if
Moviestar is not present? (The last time I checked, the
ExpressInstall
was not working on Mac at all though, but that's another matter...)

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Meinte van't Kruis wrote:
 > Actually, the trace doesn't really matter. The point is,
flash player of
 > that version keeps crashing whenever I try to get a class
definition
 > from an external SWF, and after this instantiating that class.
 >
 > the line producing the crash is then this one; var tmp:* =
new skinClass();
 >
 > On Feb 7, 2008 5:49 PM, Kenneth Kawamoto
<[EMAIL PROTECTED] 
 > >> wrote:
 >
 > Oops you said Circle was the Document class.
 >
 > var appDomain:ApplicationDomain = e.target.applicationDomain;
 > var skinClass:Class =
 >
appDomain.getDefinition(getQualifiedClassName(e.target.content)) as

 > Class;
 > trace("skinClass: " + skinClass);
 >
 > then it's the same as yours basically. Sorry about the noise!
 >
 > Kenneth Kawamoto
 > http://www.materiaprima.co.uk/
 >
 > Kenneth Kawamoto wrote:
 >  > private function onComplete(e:Event):void {
 >  >var appDomain:ApplicationDomain =
 >  > e.target.loader.contentLoaderInfo.applicationDomain;
 >  >var skinClass:Class =
 >  >
 >
appDomain.getDefinition(getQualifiedClassName(e.target.content.getChildAt(0)))

 >  > as Class;
 >  >trace("skinClass: " + skinClass);
 >  > }
 >  >
 >  > Output:
 >  > skinClass: [class Circle]
 >  >
 >  > Kenneth Kawamoto
 >  > http://www.materiaprima.co.uk/
 >  >
 >  > Meinte van't Kruis wrote:
 >  >> I find the following:
 >  >>
 >  >> When following the methods described by Daryl Theo (at
 >  >>
 >
http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/

 >  >>
 >  >> )
 >  >> to duplicate DisplayObjects works fine in flash
player 9.0.115
 >  >> (latest). In
 >  >> version 9.0.47 it repeatedly crashes the browser
(both firefox in
 >  >> ie)... I
 >  >> wonder
 >  >> if anyone else has this problem. To reproduce, simple
instal 9.0.47,
 >  >> follow
 >  >> the steps by Daryl, and voila, a browser crash.
 >  >>
 >  >> In short, make an swf

Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-08 Thread Meinte van't Kruis
hmm, the only difference in code I can spot right now, is that you have the
Circle class
attached to the DisplayObject itself, rather than the Document root, does it
crash
when you put the Circle class on the Document root?


On Feb 8, 2008 9:30 AM, Jason Van Cleave <[EMAIL PROTECTED]> wrote:

> I have been working with this technique a lot today so I downgraded to
> 9.047on the mac but I am not getting any crashes.
>
> i did see this come through tho
>
> Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never
> Completed.
>
> I started with my code then tried the above changes with the files here:
>
> http://darylteo.com/blog/wp-content/uploads/2007/11/assetlibraries.zip
>
> On Feb 7, 2008 6:48 PM, Kenneth Kawamoto <[EMAIL PROTECTED]>
> wrote:
>
> > I'm on a Mac at the moment and I can verify this crashes both Firefox
> > and Safari immediately. It would be interesting to find out why, but as
> > this is the old player we are talking about, Adobe won't be looking
> into.
> >
> > Since it works on Moviestar (works on both PC/Mac), can you just check
> > the player version installed with SWFObject and do the ExpressInstall if
> > Moviestar is not present? (The last time I checked, the ExpressInstall
> > was not working on Mac at all though, but that's another matter...)
> >
> > Kenneth Kawamoto
> > http://www.materiaprima.co.uk/
> >
> > Meinte van't Kruis wrote:
> > > Actually, the trace doesn't really matter. The point is, flash player
> of
> > > that version keeps crashing whenever I try to get a class definition
> > > from an external SWF, and after this instantiating that class.
> > >
> > > the line producing the crash is then this one; var tmp:* = new
> > skinClass();
> > >
> > > On Feb 7, 2008 5:49 PM, Kenneth Kawamoto <[EMAIL PROTECTED]
> > > > wrote:
> > >
> > > Oops you said Circle was the Document class.
> > >
> > > var appDomain:ApplicationDomain = e.target.applicationDomain;
> > > var skinClass:Class =
> > > appDomain.getDefinition(getQualifiedClassName(e.target.content))
> as
> > > Class;
> > > trace("skinClass: " + skinClass);
> > >
> > > then it's the same as yours basically. Sorry about the noise!
> > >
> > > Kenneth Kawamoto
> > > http://www.materiaprima.co.uk/
> > >
> > > Kenneth Kawamoto wrote:
> > >  > private function onComplete(e:Event):void {
> > >  >var appDomain:ApplicationDomain =
> > >  > e.target.loader.contentLoaderInfo.applicationDomain;
> > >  >var skinClass:Class =
> > >  >
> > > appDomain.getDefinition(getQualifiedClassName(
> > e.target.content.getChildAt(0)))
> > >  > as Class;
> > >  >trace("skinClass: " + skinClass);
> > >  > }
> > >  >
> > >  > Output:
> > >  > skinClass: [class Circle]
> > >  >
> > >  > Kenneth Kawamoto
> > >  > http://www.materiaprima.co.uk/
> > >  >
> > >  > Meinte van't Kruis wrote:
> > >  >> I find the following:
> > >  >>
> > >  >> When following the methods described by Daryl Theo (at
> > >  >>
> > >
> >
> http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/
> > >  >>
> > >  >> )
> > >  >> to duplicate DisplayObjects works fine in flash player 9.0.115
> > >  >> (latest). In
> > >  >> version 9.0.47 it repeatedly crashes the browser (both firefox
> > in
> > >  >> ie)... I
> > >  >> wonder
> > >  >> if anyone else has this problem. To reproduce, simple instal
> > 9.0.47,
> > >  >> follow
> > >  >> the steps by Daryl, and voila, a browser crash.
> > >  >>
> > >  >> In short, make an swf, with document class Circle
> > >  >>
> > >  >> then load in your main swf, with the following code in the
> > > onComplete
> > >  >> handler;
> > >  >>
> > >  >> private function onComplete(e:Event) {
> > >  >> var appDomain:ApplicationDomain =
> > > e.target.applicationDomain;
> > >  >>
> > >  >> var skinClass:Class = appDomain.getDefinition
> > >  >> (getQualifiedClassName(e.target.loader.content)) as Class;
> > >  >>
> > >  >> trace("CLASS: " + skinClass);
> > >  >>
> > >  >> //var tmp:* = new skinClass();   <-
> uncommenting
> > > this
> > >  >> line
> > >  >> crashes the browser
> > >  >> }
> > >  >>
> > >  >>
> > >  >> Any ideas, or other ideas to clone a displayobject?
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig

Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-08 Thread Meinte van't Kruis
I've just checked. Setting Circle class on the displayobject itself works
fine. It only crashes when setting
the Circle class as a Document class...

So I guess that would make a fine solution, attaching the Class to the
object itself, rather than the document.

On Feb 8, 2008 9:47 AM, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:

> hmm, the only difference in code I can spot right now, is that you have
> the Circle class
> attached to the DisplayObject itself, rather than the Document root, does
> it crash
> when you put the Circle class on the Document root?
>
>
>
> On Feb 8, 2008 9:30 AM, Jason Van Cleave <[EMAIL PROTECTED]> wrote:
>
> > I have been working with this technique a lot today so I downgraded to
> > 9.047on the mac but I am not getting any crashes.
> >
> > i did see this come through tho
> >
> > Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never
> > Completed.
> >
> > I started with my code then tried the above changes with the files here:
> >
> > http://darylteo.com/blog/wp-content/uploads/2007/11/assetlibraries.zip
> >
> > On Feb 7, 2008 6:48 PM, Kenneth Kawamoto <[EMAIL PROTECTED]>
> > wrote:
> >
> > > I'm on a Mac at the moment and I can verify this crashes both Firefox
> > > and Safari immediately. It would be interesting to find out why, but
> > as
> > > this is the old player we are talking about, Adobe won't be looking
> > into.
> > >
> > > Since it works on Moviestar (works on both PC/Mac), can you just check
> > > the player version installed with SWFObject and do the ExpressInstall
> > if
> > > Moviestar is not present? (The last time I checked, the ExpressInstall
> > > was not working on Mac at all though, but that's another matter...)
> > >
> > > Kenneth Kawamoto
> > > http://www.materiaprima.co.uk/
> > >
> > > Meinte van't Kruis wrote:
> > > > Actually, the trace doesn't really matter. The point is, flash
> > player of
> > > > that version keeps crashing whenever I try to get a class definition
> > > > from an external SWF, and after this instantiating that class.
> > > >
> > > > the line producing the crash is then this one; var tmp:* = new
> > > skinClass();
> > > >
> > > > On Feb 7, 2008 5:49 PM, Kenneth Kawamoto <[EMAIL PROTECTED]
> > > > > wrote:
> > > >
> > > > Oops you said Circle was the Document class.
> > > >
> > > > var appDomain:ApplicationDomain = e.target.applicationDomain;
> > > > var skinClass:Class =
> > > > appDomain.getDefinition(getQualifiedClassName(e.target.content))
> > as
> > > > Class;
> > > > trace("skinClass: " + skinClass);
> > > >
> > > > then it's the same as yours basically. Sorry about the noise!
> > > >
> > > > Kenneth Kawamoto
> > > > http://www.materiaprima.co.uk/
> > > >
> > > > Kenneth Kawamoto wrote:
> > > >  > private function onComplete(e:Event):void {
> > > >  >var appDomain:ApplicationDomain =
> > > >  > e.target.loader.contentLoaderInfo.applicationDomain;
> > > >  >var skinClass:Class =
> > > >  >
> > > > appDomain.getDefinition(getQualifiedClassName(
> > > e.target.content.getChildAt(0)))
> > > >  > as Class;
> > > >  >trace("skinClass: " + skinClass);
> > > >  > }
> > > >  >
> > > >  > Output:
> > > >  > skinClass: [class Circle]
> > > >  >
> > > >  > Kenneth Kawamoto
> > > >  > http://www.materiaprima.co.uk/
> > > >  >
> > > >  > Meinte van't Kruis wrote:
> > > >  >> I find the following:
> > > >  >>
> > > >  >> When following the methods described by Daryl Theo (at
> > > >  >>
> > > >
> > >
> > http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/
> > > >  >>
> > > >  >> )
> > > >  >> to duplicate DisplayObjects works fine in flash player
> > 9.0.115
> > > >  >> (latest). In
> > > >  >> version 9.0.47 it repeatedly crashes the browser (both
> > firefox
> > > in
> > > >  >> ie)... I
> > > >  >> wonder
> > > >  >> if anyone else has this problem. To reproduce, simple instal
> > > 9.0.47,
> > > >  >> follow
> > > >  >> the steps by Daryl, and voila, a browser crash.
> > > >  >>
> > > >  >> In short, make an swf, with document class Circle
> > > >  >>
> > > >  >> then load in your main swf, with the following code in the
> > > > onComplete
> > > >  >> handler;
> > > >  >>
> > > >  >> private function onComplete(e:Event) {
> > > >  >> var appDomain:ApplicationDomain =
> > > > e.target.applicationDomain;
> > > >  >>
> > > >  >> var skinClass:Class = appDomain.getDefinition
> > > >  >> (getQualifiedClassName(e.target.loader.content)) as Class;
> > > >  >>
> > > >  >> trace("CLASS: " + skinClass);
> > > >  >>
> > > >  >> //var tmp:* = new skinClass();   <-
> > uncommenting
> > > > this
> > > >  >> line
> > > >  >> crashes the browser
> > > >  >> }

Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-08 Thread Jason Van Cleave
ok, I did get it to puke - here's some info

[Switching to process 2666 thread 0x622f]
0x199ae696 in Flash_EnforceLocalSecurity ()

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000c
0x199ae696 in Flash_EnforceLocalSecurity ()

The Flash log also had this in it
CLASS: [class Circle]
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript
3.0SWF; code in the ActionScript
3.0 SWF will not run.
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never
Completed.

The Document class seems to be the issue. Making a Symbol, assigning the
linkage without it works ok

On Feb 8, 2008 3:30 AM, Jason Van Cleave <[EMAIL PROTECTED]> wrote:

> I have been working with this technique a lot today so I downgraded to
> 9.047 on the mac but I am not getting any crashes.
>
> i did see this come through tho
>
> Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never
> Completed.
>
> I started with my code then tried the above changes with the files here:
>
> http://darylteo.com/blog/wp-content/uploads/2007/11/assetlibraries.zip
>
>
> On Feb 7, 2008 6:48 PM, Kenneth Kawamoto <[EMAIL PROTECTED]>
> wrote:
>
> > I'm on a Mac at the moment and I can verify this crashes both Firefox
> > and Safari immediately. It would be interesting to find out why, but as
> > this is the old player we are talking about, Adobe won't be looking
> > into.
> >
> > Since it works on Moviestar (works on both PC/Mac), can you just check
> > the player version installed with SWFObject and do the ExpressInstall if
> > Moviestar is not present? (The last time I checked, the ExpressInstall
> > was not working on Mac at all though, but that's another matter...)
> >
> > Kenneth Kawamoto
> > http://www.materiaprima.co.uk/
> >
> > Meinte van't Kruis wrote:
> > > Actually, the trace doesn't really matter. The point is, flash player
> > of
> > > that version keeps crashing whenever I try to get a class definition
> > > from an external SWF, and after this instantiating that class.
> > >
> > > the line producing the crash is then this one; var tmp:* = new
> > skinClass();
> > >
> > > On Feb 7, 2008 5:49 PM, Kenneth Kawamoto <[EMAIL PROTECTED]
> > > > wrote:
> > >
> > > Oops you said Circle was the Document class.
> > >
> > > var appDomain:ApplicationDomain = e.target.applicationDomain;
> > > var skinClass:Class =
> > > appDomain.getDefinition(getQualifiedClassName(e.target.content))
> > as
> > > Class;
> > > trace("skinClass: " + skinClass);
> > >
> > > then it's the same as yours basically. Sorry about the noise!
> > >
> > > Kenneth Kawamoto
> > > http://www.materiaprima.co.uk/
> > >
> > > Kenneth Kawamoto wrote:
> > >  > private function onComplete(e:Event):void {
> > >  >var appDomain:ApplicationDomain =
> > >  > e.target.loader.contentLoaderInfo.applicationDomain;
> > >  >var skinClass:Class =
> > >  >
> > > appDomain.getDefinition(getQualifiedClassName(
> > e.target.content.getChildAt(0)))
> > >  > as Class;
> > >  >trace("skinClass: " + skinClass);
> > >  > }
> > >  >
> > >  > Output:
> > >  > skinClass: [class Circle]
> > >  >
> > >  > Kenneth Kawamoto
> > >  > http://www.materiaprima.co.uk/
> > >  >
> > >  > Meinte van't Kruis wrote:
> > >  >> I find the following:
> > >  >>
> > >  >> When following the methods described by Daryl Theo (at
> > >  >>
> > >
> > http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/
> > >  >>
> > >  >> )
> > >  >> to duplicate DisplayObjects works fine in flash player 9.0.115
> > >  >> (latest). In
> > >  >> version 9.0.47 it repeatedly crashes the browser (both firefox
> > in
> > >  >> ie)... I
> > >  >> wonder
> > >  >> if anyone else has this problem. To reproduce, simple instal
> > 9.0.47,
> > >  >> follow
> > >  >> the steps by Daryl, and voila, a browser crash.
> > >  >>
> > >  >> In short, make an swf, with document class Circle
> > >  >>
> > >  >> then load in your main swf, with the following code in the
> > > onComplete
> > >  >> handler;
> > >  >>
> > >  >> private function onComplete(e:Event) {
> > >  >> var appDomain:ApplicationDomain =
> > > e.target.applicationDomain;
> > >  >>
> > >  >> var skinClass:Class = appDomain.getDefinition
> > >  >> (getQualifiedClassName(e.target.loader.content)) as Class;
> > >  >>
> > >  >> trace("CLASS: " + skinClass);
> > >  >>
> > >  >> //var tmp:* = new skinClass();   <-
> > uncommenting
> > > this
> > >  >> line
> > >  >> crashes the browser
> > >  >> }
> > >  >>
> > >  >>
> > >  >> Any ideas, or other ideas to clone a displayobject?
> > ___
> > Flas

Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-08 Thread Jason Van Cleave
I have been working with this technique a lot today so I downgraded to
9.047on the mac but I am not getting any crashes.

i did see this come through tho

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never
Completed.

I started with my code then tried the above changes with the files here:

http://darylteo.com/blog/wp-content/uploads/2007/11/assetlibraries.zip

On Feb 7, 2008 6:48 PM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote:

> I'm on a Mac at the moment and I can verify this crashes both Firefox
> and Safari immediately. It would be interesting to find out why, but as
> this is the old player we are talking about, Adobe won't be looking into.
>
> Since it works on Moviestar (works on both PC/Mac), can you just check
> the player version installed with SWFObject and do the ExpressInstall if
> Moviestar is not present? (The last time I checked, the ExpressInstall
> was not working on Mac at all though, but that's another matter...)
>
> Kenneth Kawamoto
> http://www.materiaprima.co.uk/
>
> Meinte van't Kruis wrote:
> > Actually, the trace doesn't really matter. The point is, flash player of
> > that version keeps crashing whenever I try to get a class definition
> > from an external SWF, and after this instantiating that class.
> >
> > the line producing the crash is then this one; var tmp:* = new
> skinClass();
> >
> > On Feb 7, 2008 5:49 PM, Kenneth Kawamoto <[EMAIL PROTECTED]
> > > wrote:
> >
> > Oops you said Circle was the Document class.
> >
> > var appDomain:ApplicationDomain = e.target.applicationDomain;
> > var skinClass:Class =
> > appDomain.getDefinition(getQualifiedClassName(e.target.content)) as
> > Class;
> > trace("skinClass: " + skinClass);
> >
> > then it's the same as yours basically. Sorry about the noise!
> >
> > Kenneth Kawamoto
> > http://www.materiaprima.co.uk/
> >
> > Kenneth Kawamoto wrote:
> >  > private function onComplete(e:Event):void {
> >  >var appDomain:ApplicationDomain =
> >  > e.target.loader.contentLoaderInfo.applicationDomain;
> >  >var skinClass:Class =
> >  >
> > appDomain.getDefinition(getQualifiedClassName(
> e.target.content.getChildAt(0)))
> >  > as Class;
> >  >trace("skinClass: " + skinClass);
> >  > }
> >  >
> >  > Output:
> >  > skinClass: [class Circle]
> >  >
> >  > Kenneth Kawamoto
> >  > http://www.materiaprima.co.uk/
> >  >
> >  > Meinte van't Kruis wrote:
> >  >> I find the following:
> >  >>
> >  >> When following the methods described by Daryl Theo (at
> >  >>
> >
> http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/
> >  >>
> >  >> )
> >  >> to duplicate DisplayObjects works fine in flash player 9.0.115
> >  >> (latest). In
> >  >> version 9.0.47 it repeatedly crashes the browser (both firefox
> in
> >  >> ie)... I
> >  >> wonder
> >  >> if anyone else has this problem. To reproduce, simple instal
> 9.0.47,
> >  >> follow
> >  >> the steps by Daryl, and voila, a browser crash.
> >  >>
> >  >> In short, make an swf, with document class Circle
> >  >>
> >  >> then load in your main swf, with the following code in the
> > onComplete
> >  >> handler;
> >  >>
> >  >> private function onComplete(e:Event) {
> >  >> var appDomain:ApplicationDomain =
> > e.target.applicationDomain;
> >  >>
> >  >> var skinClass:Class = appDomain.getDefinition
> >  >> (getQualifiedClassName(e.target.loader.content)) as Class;
> >  >>
> >  >> trace("CLASS: " + skinClass);
> >  >>
> >  >> //var tmp:* = new skinClass();   <- uncommenting
> > this
> >  >> line
> >  >> crashes the browser
> >  >> }
> >  >>
> >  >>
> >  >> Any ideas, or other ideas to clone a displayobject?
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-07 Thread Kenneth Kawamoto
I'm on a Mac at the moment and I can verify this crashes both Firefox 
and Safari immediately. It would be interesting to find out why, but as 
this is the old player we are talking about, Adobe won't be looking into.


Since it works on Moviestar (works on both PC/Mac), can you just check 
the player version installed with SWFObject and do the ExpressInstall if 
Moviestar is not present? (The last time I checked, the ExpressInstall 
was not working on Mac at all though, but that's another matter...)


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Meinte van't Kruis wrote:
Actually, the trace doesn't really matter. The point is, flash player of 
that version keeps crashing whenever I try to get a class definition 
from an external SWF, and after this instantiating that class.


the line producing the crash is then this one; var tmp:* = new skinClass();

On Feb 7, 2008 5:49 PM, Kenneth Kawamoto <[EMAIL PROTECTED] 
> wrote:


Oops you said Circle was the Document class.

var appDomain:ApplicationDomain = e.target.applicationDomain;
var skinClass:Class =
appDomain.getDefinition(getQualifiedClassName(e.target.content)) as
Class;
trace("skinClass: " + skinClass);

then it's the same as yours basically. Sorry about the noise!

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Kenneth Kawamoto wrote:
 > private function onComplete(e:Event):void {
 >var appDomain:ApplicationDomain =
 > e.target.loader.contentLoaderInfo.applicationDomain;
 >var skinClass:Class =
 >

appDomain.getDefinition(getQualifiedClassName(e.target.content.getChildAt(0)))
 > as Class;
 >trace("skinClass: " + skinClass);
 > }
 >
 > Output:
 > skinClass: [class Circle]
 >
 > Kenneth Kawamoto
 > http://www.materiaprima.co.uk/
 >
 > Meinte van't Kruis wrote:
 >> I find the following:
 >>
 >> When following the methods described by Daryl Theo (at
 >>

http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/
 >>
 >> )
 >> to duplicate DisplayObjects works fine in flash player 9.0.115
 >> (latest). In
 >> version 9.0.47 it repeatedly crashes the browser (both firefox in
 >> ie)... I
 >> wonder
 >> if anyone else has this problem. To reproduce, simple instal 9.0.47,
 >> follow
 >> the steps by Daryl, and voila, a browser crash.
 >>
 >> In short, make an swf, with document class Circle
 >>
 >> then load in your main swf, with the following code in the
onComplete
 >> handler;
 >>
 >> private function onComplete(e:Event) {
 >> var appDomain:ApplicationDomain =
e.target.applicationDomain;
 >>
 >> var skinClass:Class = appDomain.getDefinition
 >> (getQualifiedClassName(e.target.loader.content)) as Class;
 >>
 >> trace("CLASS: " + skinClass);
 >>
 >> //var tmp:* = new skinClass();   <- uncommenting
this
 >> line
 >> crashes the browser
 >> }
 >>
 >>
 >> Any ideas, or other ideas to clone a displayobject?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-07 Thread Meinte van't Kruis
Actually, the trace doesn't really matter. The point is, flash player of
that version keeps crashing whenever I try to get a class definition from an
external SWF, and after this instantiating that class.

the line producing the crash is then this one; var tmp:* = new skinClass();

On Feb 7, 2008 5:49 PM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote:

> Oops you said Circle was the Document class.
>
> var appDomain:ApplicationDomain = e.target.applicationDomain;
> var skinClass:Class =
> appDomain.getDefinition(getQualifiedClassName(e.target.content)) as Class;
> trace("skinClass: " + skinClass);
>
> then it's the same as yours basically. Sorry about the noise!
>
> Kenneth Kawamoto
> http://www.materiaprima.co.uk/
>
> Kenneth Kawamoto wrote:
> > private function onComplete(e:Event):void {
> >var appDomain:ApplicationDomain =
> > e.target.loader.contentLoaderInfo.applicationDomain;
> >var skinClass:Class =
> > appDomain.getDefinition(getQualifiedClassName(
> e.target.content.getChildAt(0)))
> > as Class;
> >trace("skinClass: " + skinClass);
> > }
> >
> > Output:
> > skinClass: [class Circle]
> >
> > Kenneth Kawamoto
> > http://www.materiaprima.co.uk/
> >
> > Meinte van't Kruis wrote:
> >> I find the following:
> >>
> >> When following the methods described by Daryl Theo (at
> >>
> http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/
> >>
> >> )
> >> to duplicate DisplayObjects works fine in flash player 9.0.115
> >> (latest). In
> >> version 9.0.47 it repeatedly crashes the browser (both firefox in
> >> ie)... I
> >> wonder
> >> if anyone else has this problem. To reproduce, simple instal 9.0.47,
> >> follow
> >> the steps by Daryl, and voila, a browser crash.
> >>
> >> In short, make an swf, with document class Circle
> >>
> >> then load in your main swf, with the following code in the onComplete
> >> handler;
> >>
> >> private function onComplete(e:Event) {
> >> var appDomain:ApplicationDomain =
> e.target.applicationDomain;
> >>
> >> var skinClass:Class = appDomain.getDefinition
> >> (getQualifiedClassName(e.target.loader.content)) as Class;
> >>
> >> trace("CLASS: " + skinClass);
> >>
> >> //var tmp:* = new skinClass();   <- uncommenting this
> >> line
> >> crashes the browser
> >> }
> >>
> >>
> >> Any ideas, or other ideas to clone a displayobject?
> >>
> >
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-07 Thread Kenneth Kawamoto

Oops you said Circle was the Document class.

var appDomain:ApplicationDomain = e.target.applicationDomain;
var skinClass:Class = 
appDomain.getDefinition(getQualifiedClassName(e.target.content)) as Class;

trace("skinClass: " + skinClass);

then it's the same as yours basically. Sorry about the noise!

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Kenneth Kawamoto wrote:

private function onComplete(e:Event):void {
   var appDomain:ApplicationDomain = 
e.target.loader.contentLoaderInfo.applicationDomain;
   var skinClass:Class = 
appDomain.getDefinition(getQualifiedClassName(e.target.content.getChildAt(0))) 
as Class;

   trace("skinClass: " + skinClass);
}

Output:
skinClass: [class Circle]

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Meinte van't Kruis wrote:

I find the following:

When following the methods described by Daryl Theo (at
http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/ 


)
to duplicate DisplayObjects works fine in flash player 9.0.115 
(latest). In
version 9.0.47 it repeatedly crashes the browser (both firefox in 
ie)... I

wonder
if anyone else has this problem. To reproduce, simple instal 9.0.47, 
follow

the steps by Daryl, and voila, a browser crash.

In short, make an swf, with document class Circle

then load in your main swf, with the following code in the onComplete
handler;

private function onComplete(e:Event) {
var appDomain:ApplicationDomain = e.target.applicationDomain;

var skinClass:Class = appDomain.getDefinition
(getQualifiedClassName(e.target.loader.content)) as Class;

trace("CLASS: " + skinClass);

//var tmp:* = new skinClass();   <- uncommenting this 
line

crashes the browser
}


Any ideas, or other ideas to clone a displayobject?





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-07 Thread Kenneth Kawamoto

private function onComplete(e:Event):void {
   var appDomain:ApplicationDomain = 
e.target.loader.contentLoaderInfo.applicationDomain;
   var skinClass:Class = 
appDomain.getDefinition(getQualifiedClassName(e.target.content.getChildAt(0))) 
as Class;

   trace("skinClass: " + skinClass);
}

Output:
skinClass: [class Circle]

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Meinte van't Kruis wrote:

I find the following:

When following the methods described by Daryl Theo (at
http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/
)
to duplicate DisplayObjects works fine in flash player 9.0.115 (latest). In
version 9.0.47 it repeatedly crashes the browser (both firefox in ie)... I
wonder
if anyone else has this problem. To reproduce, simple instal 9.0.47, follow
the steps by Daryl, and voila, a browser crash.

In short, make an swf, with document class Circle

then load in your main swf, with the following code in the onComplete
handler;

private function onComplete(e:Event) {
var appDomain:ApplicationDomain = e.target.applicationDomain;

var skinClass:Class = appDomain.getDefinition
(getQualifiedClassName(e.target.loader.content)) as Class;

trace("CLASS: " + skinClass);

//var tmp:* = new skinClass();   <- uncommenting this line
crashes the browser
}


Any ideas, or other ideas to clone a displayobject?



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash player 9.0.47 serious issue (maybe some 9 versions before too)

2008-02-07 Thread Meinte van't Kruis
I find the following:

When following the methods described by Daryl Theo (at
http://darylteo.com/blog/2007/11/16/abstracting-assets-from-actionscript-in-as30-asset-libraries/
)
to duplicate DisplayObjects works fine in flash player 9.0.115 (latest). In
version 9.0.47 it repeatedly crashes the browser (both firefox in ie)... I
wonder
if anyone else has this problem. To reproduce, simple instal 9.0.47, follow
the steps by Daryl, and voila, a browser crash.

In short, make an swf, with document class Circle

then load in your main swf, with the following code in the onComplete
handler;

private function onComplete(e:Event) {
var appDomain:ApplicationDomain = e.target.applicationDomain;

var skinClass:Class = appDomain.getDefinition
(getQualifiedClassName(e.target.loader.content)) as Class;

trace("CLASS: " + skinClass);

//var tmp:* = new skinClass();   <- uncommenting this line
crashes the browser
}


Any ideas, or other ideas to clone a displayobject?

-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders