Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-25 Thread strk
On Fri, Oct 24, 2008 at 03:17:32PM +0200, Matthias Dittgen wrote:
 Have your received my email with the Test SWF?

Yes, thanks. Haven't looked at it yet but I plan to do next week.

  What's an RSL ?
 Remote Shared Library.

Mat, you're being *very* helpful !

I drafted a page on our wiki for use when we're to improve
Gnash implementation of symbols libraries:

 http://wiki.gnashdev.org/SharedSymbols

If there's anything you may want to add we'd appreciate it.

Like:

- How does a symbol library with RSL enabled look like ?
  Can you send a small SWF with that ?
  (we don't parse that, I'm afraid)

- Which SWF version introduced this feature ?

TIA!

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


Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-25 Thread strk
On Thu, Oct 23, 2008 at 01:45:01PM +0200, Matthias Dittgen wrote:
 @strk:
 
 I should try
 var func:String = register;
 Object[func](args);
 
 instead of
 Object.registerClass(args);
 
 to see, if an all code based attempt is working without having the
 compiler do EXPORT tags.

Yes please :)

 I have attached a test situation build in current FlashDevelop on
 WinXP as AS2 project.
 Let us know, how it goes.

It does contain the EXPORT, pretty much expected (as Peter pointed out).

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


Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-24 Thread Matthias Dittgen
Have your received my email with the Test SWF?

 What's an RSL ?
Remote Shared Library.

Imagine Main.swf loading Sub.swf.
Sub.swf consists of Library Symbol exported for AS and for runtime sharing!
Then in Main.swf Symbols from Sub.swf can be attached as if they were
directly in Main.swf.

Symbols from Main.swf can always be attached to Sub.swf or its childs
(without being exported for runtime sharing).

 I'm not sure that the movie *is* working.
 I mean, could as well be that the attachMovie with unexistent
 symbols are just garbage in the SWF, or hooks for the case in
 which the movie is loaded by another one, which contain the syms,
 but optional.
As long as you work with third party SWF files, we can only make
speculations about its content and how it was coded. You should work
with SWF files, where the source is available.

 Is the sym library of a 'loader' movie supposed to be available
 to 'loaded' movies for use ?
yes, see above

but the sym library of a loadED movie is only available to the
loadER movie, when exported for runtime sharing (RSL).

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


Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-23 Thread Matthias Dittgen
 Talking about SWF8:
which btw. means Actionscript 2.0 (AS2)

 Thank you for the pointer, but reading that article doesn't
 help me much. For example, I don't understand if the resulting
 SWF from that syntax is expected to contain EXPORT tags or not.
if you mean EXPORT tags in the swf bytecode,
I am not aware of the tags that are written by the compiler when using
the code explained by Peter Joel, but I could imagine, that when using
MTASC for compiling only DOACTION tags are written and no EXPORT tags.
But I usually don't read SWF bytecode after comiling. ;)

 My problem with the dmplayer.swf above is that it ends up
 looking for symbols like 'video_frame':
  ERROR: No export symbol video_frame found in movie dmplayer.swf.
 Which do NOT appear in any EXPORT tag.
How do you know?
Where does the SWF come from?
Do you do some kind of reverse engineering?

 This way you can attach classes that don't have a library symbol but
 extend MovieClip.
 You mean it is possible to add entries to the 'symbols library'
 trough DOACTION blocks only ? I mean, not something automatically
 done by the AS *compiler* but something done by the actual VM/player ?
I think so, but I am not sure about the bytecode/tags written by the
compiler interpreting the code.

The magic line of code actually is this one:
Object.registerClass(__Packages.com.peterjoel.shapes.Rectangle, Rectangle);
(http://livedocs.adobe.com/flash/8/main/2587.html)

first argument is of type String, specifying the classpath of the
Rectangle class.
second argument is of type Function and is a reference to the
Rectangle class constructor function.
In Peter's example Rectangle extends MovieClip.

this way if becomes possible to do the attachMovie call:
attachMovie(__Packages.com.peterjoel.shapes.Rectangle,
RectangleInstance, getNextHighestDepth());

 If so, can you provide the smallest example of such thing ?
see above and Peter's blog entry.

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


Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-23 Thread strk
On Thu, Oct 23, 2008 at 10:01:37AM +0200, Matthias Dittgen wrote:

 if you mean EXPORT tags in the swf bytecode,
 I am not aware of the tags that are written by the compiler when using
 the code explained by Peter Joel, but I could imagine, that when using
 MTASC for compiling only DOACTION tags are written and no EXPORT tags.
 But I usually don't read SWF bytecode after comiling. ;)

I've seen a few compilers automatically adding non-action tags as
a side effect of AS interpretation...

  My problem with the dmplayer.swf above is that it ends up
  looking for symbols like 'video_frame':
   ERROR: No export symbol video_frame found in movie dmplayer.swf.
  Which do NOT appear in any EXPORT tag.
 How do you know?
 Where does the SWF come from?
 Do you do some kind of reverse engineering?

The SWF comes from the web. I know by using an SWF dumper
(listswf from Ming - libming.org).

  This way you can attach classes that don't have a library symbol but
  extend MovieClip.
  You mean it is possible to add entries to the 'symbols library'
  trough DOACTION blocks only ? I mean, not something automatically
  done by the AS *compiler* but something done by the actual VM/player ?
 I think so, but I am not sure about the bytecode/tags written by the
 compiler interpreting the code.

Could you send me (a private attachment if the list doesn't let you) a small
SWF produced as a proof of concept ? If it contains no EXPORT tags
but has a working attachMovie('symbol',..) I'll go on with the research.

This is for eventual compatibility fixes in Gnash (The GNU SWF Player).

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


Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-23 Thread Peter Hall
The code on my old blog works for content published with Flash
authoring. However, it works because Flash inserts the export tags in
the swf automatically. If you have a swf that has a working
attachMovie, but no export tags, then it must be attaching the symbol
from another swf. An RSL perhaps?

Peter


On Thu, Oct 23, 2008 at 9:31 AM, strk [EMAIL PROTECTED] wrote:
 On Thu, Oct 23, 2008 at 10:01:37AM +0200, Matthias Dittgen wrote:

 if you mean EXPORT tags in the swf bytecode,
 I am not aware of the tags that are written by the compiler when using
 the code explained by Peter Joel, but I could imagine, that when using
 MTASC for compiling only DOACTION tags are written and no EXPORT tags.
 But I usually don't read SWF bytecode after comiling. ;)

 I've seen a few compilers automatically adding non-action tags as
 a side effect of AS interpretation...

  My problem with the dmplayer.swf above is that it ends up
  looking for symbols like 'video_frame':
   ERROR: No export symbol video_frame found in movie dmplayer.swf.
  Which do NOT appear in any EXPORT tag.
 How do you know?
 Where does the SWF come from?
 Do you do some kind of reverse engineering?

 The SWF comes from the web. I know by using an SWF dumper
 (listswf from Ming - libming.org).

  This way you can attach classes that don't have a library symbol but
  extend MovieClip.
  You mean it is possible to add entries to the 'symbols library'
  trough DOACTION blocks only ? I mean, not something automatically
  done by the AS *compiler* but something done by the actual VM/player ?
 I think so, but I am not sure about the bytecode/tags written by the
 compiler interpreting the code.

 Could you send me (a private attachment if the list doesn't let you) a small
 SWF produced as a proof of concept ? If it contains no EXPORT tags
 but has a working attachMovie('symbol',..) I'll go on with the research.

 This is for eventual compatibility fixes in Gnash (The GNU SWF Player).

 --strk;
 ___
 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] attachMovie() with non-library-symbols

2008-10-23 Thread Matthias Dittgen
@strk:

I should try
var func:String = register;
Object[func](args);

instead of
Object.registerClass(args);

to see, if an all code based attempt is working without having the
compiler do EXPORT tags.


I have attached a test situation build in current FlashDevelop on
WinXP as AS2 project.
Let us know, how it goes.

btw. what is your realname and what is your motivation working on
gnash? What else do you do?

@Peter:
nice to read you! You've been a motivation to play with AS2 for a long
time for me.

Matthias

On Thu, Oct 23, 2008 at 11:38 AM, Peter Hall [EMAIL PROTECTED] wrote:
 The code on my old blog works for content published with Flash
 authoring. However, it works because Flash inserts the export tags in
 the swf automatically. If you have a swf that has a working
 attachMovie, but no export tags, then it must be attaching the symbol
 from another swf. An RSL perhaps?

 Peter


 On Thu, Oct 23, 2008 at 9:31 AM, strk [EMAIL PROTECTED] wrote:
 On Thu, Oct 23, 2008 at 10:01:37AM +0200, Matthias Dittgen wrote:

 if you mean EXPORT tags in the swf bytecode,
 I am not aware of the tags that are written by the compiler when using
 the code explained by Peter Joel, but I could imagine, that when using
 MTASC for compiling only DOACTION tags are written and no EXPORT tags.
 But I usually don't read SWF bytecode after comiling. ;)

 I've seen a few compilers automatically adding non-action tags as
 a side effect of AS interpretation...

  My problem with the dmplayer.swf above is that it ends up
  looking for symbols like 'video_frame':
   ERROR: No export symbol video_frame found in movie dmplayer.swf.
  Which do NOT appear in any EXPORT tag.
 How do you know?
 Where does the SWF come from?
 Do you do some kind of reverse engineering?

 The SWF comes from the web. I know by using an SWF dumper
 (listswf from Ming - libming.org).

  This way you can attach classes that don't have a library symbol but
  extend MovieClip.
  You mean it is possible to add entries to the 'symbols library'
  trough DOACTION blocks only ? I mean, not something automatically
  done by the AS *compiler* but something done by the actual VM/player ?
 I think so, but I am not sure about the bytecode/tags written by the
 compiler interpreting the code.

 Could you send me (a private attachment if the list doesn't let you) a small
 SWF produced as a proof of concept ? If it contains no EXPORT tags
 but has a working attachMovie('symbol',..) I'll go on with the research.

 This is for eventual compatibility fixes in Gnash (The GNU SWF Player).

 --strk;
 ___
 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] attachMovie() with non-library-symbols

2008-10-23 Thread strk
On Thu, Oct 23, 2008 at 10:38:52AM +0100, Peter Hall wrote:
 The code on my old blog works for content published with Flash
 authoring. However, it works because Flash inserts the export tags in
 the swf automatically. If you have a swf that has a working
 attachMovie, but no export tags, then it must be attaching the symbol
 from another swf. An RSL perhaps?

What's an RSL ?

I'm not sure that the movie *is* working.
I mean, could as well be that the attachMovie with unexistent
symbols are just garbage in the SWF, or hooks for the case in
which the movie is loaded by another one, which contain the syms,
but optional.

Is the sym library of a 'loader' movie supposed to be available
to 'loaded' movies for use ?

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


Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-20 Thread strk
On Tue, Oct 14, 2008 at 09:45:56AM +0200, Matthias Dittgen wrote:
 You're talking about AS2?

Talking about SWF8:
http://dailymotion.alice.it/flash/dmplayer/dmplayer.swf

 See here for the answer:
 http://www.peterjoel.com/blog/?archive=2004_01_01_archive.xml

Thank you for the pointer, but reading that article doesn't
help me much. For example, I don't understand if the resulting
SWF from that syntax is expected to contain EXPORT tags or not.

My problem with the dmplayer.swf above is that it ends up 
looking for symbols like 'video_frame':

 ERROR: No export symbol video_frame found in movie dmplayer.swf. 

Which do NOT appear in any EXPORT tag.

 This way you can attach classes that don't have a library symbol but
 extend MovieClip.

You mean it is possible to add entries to the 'symbols library'
trough DOACTION blocks only ? I mean, not something automatically
done by the AS *compiler* but something done by the actual VM/player ?

If so, can you provide the smallest example of such thing ?

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


Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-14 Thread Matthias Dittgen
You're talking about AS2?

See here for the answer:
http://www.peterjoel.com/blog/?archive=2004_01_01_archive.xml

This way you can attach classes that don't have a library symbol but
extend MovieClip.
These classes can for example have visual content using the drawing API.

Have fun!
Matthias


On Mon, Oct 6, 2008 at 3:49 PM, strk [EMAIL PROTECTED] wrote:
 I've found a few movies out there using attachMovie()
 with symbol names which are NOT exported in the SWF
 movie containing the call.
 Are the SWF bogus (containing useless actionscript)
 or is there another interpretation of attachMovie()
 first argument ?

 --strk;

  ()   ASCII Ribbon Campaign
  /\   Keep it simple!

 ___
 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