Re: [swfmill] mix simple and lower level tags

2007-02-28 Thread daniel fischer
Benjamin Campin <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 15:34:02 -0500):

  > Dan, correct me if I am wrong,
  > 
  > This works if we use the 
  > 
  > swfmill simple foo.xml foo.swf
  > 
  > However it is not working with 
  > 
  > swfmill xml2swf foo.xml foo.swf


no correction here, you're exactly right. sorry, could've mentioned that.

all the "hard lifting" for import (ttf,png,jpg) is coded in c and triggered by 
swft: functions from the simple stylesheet. no grand automatisms when you use 
lowlevel...

-dan


-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] mix simple and lower level tags

2007-02-28 Thread Benjamin Campin
Dan, correct me if I am wrong,

This works if we use the 

swfmill simple foo.xml foo.swf

However it is not working with 

swfmill xml2swf foo.xml foo.swf

Benjamin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of daniel fischer
Sent: February 28, 2007 1:32 PM
To: swfmill@osflash.org
Subject: Re: [swfmill] mix simple and lower level tags

Benjamin Campin <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 13:10:29 -0500):

[boiled down quote:]
  > 
  >   
  >   

this works if you place the right object. With DefineEditText, you're
defining id 2, but with PlaceObject2 you're placing #3 (which doesnt exist).


It's maybe not quite obvious that PlaceObject2's objectID *references* an
existing object while Define* -well- *define* them.

hth,
-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] mix simple and lower level tags

2007-02-28 Thread Benjamin Campin
Ah,

Obviously,

Thanks Dan, 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of daniel fischer
Sent: February 28, 2007 1:32 PM
To: swfmill@osflash.org
Subject: Re: [swfmill] mix simple and lower level tags

Benjamin Campin <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 13:10:29 -0500):

[boiled down quote:]
  > 
  >   
  >   

this works if you place the right object. With DefineEditText, you're
defining id 2, but with PlaceObject2 you're placing #3 (which doesnt exist).


It's maybe not quite obvious that PlaceObject2's objectID *references* an
existing object while Define* -well- *define* them.

hth,
-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] mix simple and lower level tags

2007-02-28 Thread daniel fischer
Benjamin Campin <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 13:10:29 -0500):

[boiled down quote:]
  > 
  >   
  >   

this works if you place the right object. With DefineEditText, you're defining 
id 2, but with PlaceObject2 you're placing #3 (which doesnt exist). 

It's maybe not quite obvious that PlaceObject2's objectID *references* an 
existing object while Define* -well- *define* them.

hth,
-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] mix simple and lower level tags

2007-02-28 Thread Benjamin Campin
Hi Dan,

Here is the example:




 

  



  
  

  

  
  
  

  
  
  

  

   
  
  

  


Thank you,

Benjamin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of daniel fischer
Sent: February 28, 2007 10:26 AM
To: swfmill@osflash.org
Subject: Re: [swfmill] mix simple and lower level tags

Benjamin Campin <[EMAIL PROTECTED]> (on Mon, 26 Feb 2007 14:56:03 -0500):

  > I was not able to get the expected results, I am not able to mix the 2
  > formats. My font is not included in the result. Perhaps I missed
something ?

can you send me a sample of this? maybe i can get it to work :)

-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread daniel fischer
Christopher Brian Jack <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 09:13:29 -0800 
(PST)):

  > Am I catching that right?  Flash just imports everything to a bunch of
  > actionscript?  With the only difference being the stuff in DefineShape
  > supports multiple frames whereas runtime AS doesn't?

There is no script code in the star.xml at all, it's basic SWF tags. 
Actionscript is compiled to bytecode (to be found in DoAction2 tags, amongst 
others) by Flash (or MTASC, or haXe).

There's a lot you can't do from script (importing fonts comes to mind), and a 
lot you can't do without script (any program logic more complex than really 
simple buttons). That's why there's MTASC/haXe *and* swfmill :)

-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Getting started question

2007-02-28 Thread Jon Molesa
* Joseph Donth <[EMAIL PROTECTED]> wrote:

Welcome, hope you find it useful.
> I am new to swfmill and have two questions.

Google:
site:osflash.org/pipermail/swfmill_osflash.org [Your Search Term]
> First, is there a way to search the archives for a subject. I don't want to 
> post a question that has been already answered but I can't find any way to 
> research it (without reading the whole list).

Not sure what flash9b.ocx, or how you use just an OCX.  You doing this
in some VB?  Does that compile you ActionsScript?  If not you'd need
something to compile it.  I'd run some simpler tests for it's ability
to compile code.

> Second, my problem I am seeking assistance with:
> 
> I have a swf file that contains 12 frames. When I follow the examples 
> provided by Mark Winterhalder's Using swfmill to create SWFs without Flash, I 
> end up with a single frame SWF that contains all 12 of my original SWF files 
> frames. I am trying to print the first frame and then with a second print 
> request frames 2 thru 12. I am using the activeX component flash9b.ocx under 
> Windows XP.
> 

-- 
Jon Molesa
[EMAIL PROTECTED]

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Christopher Brian Jack
Am I catching that right?  Flash just imports everything to a bunch of
actionscript?  With the only difference being the stuff in DefineShape
supports multiple frames whereas runtime AS doesn't?

On Wed, 28 Feb 2007, daniel fischer wrote:

> Date: Wed, 28 Feb 2007 18:02:45 +0100
> From: daniel fischer <[EMAIL PROTECTED]>
> Reply-To: swfmill@osflash.org
> To: swfmill@osflash.org
> Subject: Re: [swfmill] alternative vector sources
>
> Christopher Brian Jack <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 08:21:24 
> -0800 (PST)):
>
>   > >   > Yes.  So if I went to flash, drew a star, then run the above what 
> would I
>   > >   > be getting in the XML?
>   > >
>   > > Why not just try it? This is how i started understanding the SWF format.
>   >
>   > I don't own flash. :(
>
>
> fair enough, me neither-- i had my flatmate produce test swfs at the time :)
>
> i've attached a simple star swf (boiled down from
> http://swfmill.org/trac/browser/trunk/test , imported from svg :) for your 
> review. The LineTos is what you're probably interested in. CurveTo works just 
> the same but with x1,y1 (control point) and x2,y2 ("destination" point). Note 
> that the flash player doesnt render cubic beziers natively (you need to 
> approximate them with quadratic ones :().
>
> obviously, you'd need to understand some basics of SWF too (DefineSprite, 
> PlaceObject2) to analyze/produce more complex drawings. also, please note 
> that the structure of these is not swfmill's domain- swfmill's "lowlevel 
> dialect" just resembles the SWF structures as XML. all weirdness thanks to 
> macromedia (or even futuresplash) :)
>
> hope that helps.
> -dan
>
>
> --
> http://0xDF.com/
> http://iterative.org/
>

.=.
|  Christopher BRIAN Jack aka "Gau of the Veldt"  |
+='
| [EMAIL PROTECTED]
`=-
Hi Spambots, my email address is [EMAIL PROTECTED]
Hi Humans, my email address uses rot13 cipher

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] Getting started question

2007-02-28 Thread Joseph Donth
I am new to swfmill and have two questions.

First, is there a way to search the archives for a subject. I don't want to 
post a question that has been already answered but I can't find any way to 
research it (without reading the whole list).

Second, my problem I am seeking assistance with:

I have a swf file that contains 12 frames. When I follow the examples provided 
by Mark Winterhalder's Using swfmill to create SWFs without Flash, I end up 
with a single frame SWF that contains all 12 of my original SWF files frames. I 
am trying to print the first frame and then with a second print request frames 
2 thru 12. I am using the activeX component flash9b.ocx under Windows XP.

Regards,
Joe Donth


My three files are as follows:

application.xml




 
 
 
  
   
   
  
  
 


application.as
class Application extends MovieClip {
 function onLoad (){
  attachMovie ("PeeingDog", "peeingDog", 1000);
 }
}

peeingdog.as
import flash.external.ExternalInterface;

class PeeingDog extends MovieClip {
 var dateField:TextField;

 function PeeingDog(){
  createTextField("dateField",1,0,0,100,25);
  dateField.text = "";
  if(ExternalInterface.available){
   ExternalInterface.addCallback("callMe", this, callMe);
   ExternalInterface.addCallback("DoPrint", this, DoPrint);
  }
 }

 function callMe(value) {
  dateField.text = value;
 }
 
 function onLoad(){
  ExternalInterface.call("Ready");
 }

 function DoPrint(value){
  dateField.text = value;
  print(PeeingDog,"bframe");
 }
}
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread daniel fischer
Christopher Brian Jack <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 08:21:24 -0800 
(PST)):

  > >   > Yes.  So if I went to flash, drew a star, then run the above what 
would I
  > >   > be getting in the XML?
  > >
  > > Why not just try it? This is how i started understanding the SWF format.
  > 
  > I don't own flash. :(


fair enough, me neither-- i had my flatmate produce test swfs at the time :)

i've attached a simple star swf (boiled down from
http://swfmill.org/trac/browser/trunk/test , imported from svg :) for your 
review. The LineTos is what you're probably interested in. CurveTo works just 
the same but with x1,y1 (control point) and x2,y2 ("destination" point). Note 
that the flash player doesnt render cubic beziers natively (you need to 
approximate them with quadratic ones :().

obviously, you'd need to understand some basics of SWF too (DefineSprite, 
PlaceObject2) to analyze/produce more complex drawings. also, please note that 
the structure of these is not swfmill's domain- swfmill's "lowlevel dialect" 
just resembles the SWF structures as XML. all weirdness thanks to macromedia 
(or even futuresplash) :)

hope that helps.
-dan


-- 
http://0xDF.com/
http://iterative.org/


star.xml
Description: application/xml
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Christopher Brian Jack
On Wed, 28 Feb 2007, daniel fischer wrote:

> Christopher Brian Jack <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 07:40:56 
> -0800 (PST)):
>
>   > Yes.  So if I went to flash, drew a star, then run the above what would I
>   > be getting in the XML?
>
> Why not just try it? This is how i started understanding the SWF format.

I don't own flash. :(

.=.
|  Christopher BRIAN Jack aka "Gau of the Veldt"  |
+='
| [EMAIL PROTECTED]
`=-
Hi Spambots, my email address is [EMAIL PROTECTED]
Hi Humans, my email address uses rot13 cipher

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread daniel fischer
Christopher Brian Jack <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 07:40:56 -0800 
(PST)):

  > Yes.  So if I went to flash, drew a star, then run the above what would I
  > be getting in the XML?

Why not just try it? This is how i started understanding the SWF format. 

You'll get a pretty ugly DefineShape2 structure, not very fun to work with, but 
surely possible.

-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Christopher Brian Jack
On Wed, 28 Feb 2007, Jon Molesa wrote:

> I think he want to take a swf created in flash that does contain a
> vector object and
>
> swfmill swf2xml vector.swf vector.xml
>
> What tags should he look for in the xml output?
>
> >   > What does a vecotr object drawn in flash proper come out as in smfmill's
> >   > XML output?

Yes.  So if I went to flash, drew a star, then run the above what would I
be getting in the XML?

.=.
|  Christopher BRIAN Jack aka "Gau of the Veldt"  |
+='
| [EMAIL PROTECTED]
`=-
Hi Spambots, my email address is [EMAIL PROTECTED]
Hi Humans, my email address uses rot13 cipher

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Jon Molesa
I think he want to take a swf created in flash that does contain a
vector object and

swfmill swf2xml vector.swf vector.xml

What tags should he look for in the xml output?

>   > What does a vecotr object drawn in flash proper come out as in smfmill's
>   > XML output?
> 
> ? i dont understand this question.
> 
> -dan

-- 
Jon Molesa
[EMAIL PROTECTED]

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] mix simple and lower level tags

2007-02-28 Thread daniel fischer
Benjamin Campin <[EMAIL PROTECTED]> (on Mon, 26 Feb 2007 14:56:03 -0500):

  > I was not able to get the expected results, I am not able to mix the 2
  > formats. My font is not included in the result. Perhaps I missed something ?

can you send me a sample of this? maybe i can get it to work :)

-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread daniel fischer
Christopher Brian Jack <[EMAIL PROTECTED]> (on Wed, 28 Feb 2007 03:55:03 -0800 
(PST)):

  > Okay since everyone seems religiously opposed to making bug-free SVG
  > importing in swfmill 

Brian, i really dont know how you get that idea. As said, i am *lacking the 
resources* to work on the SVG import. I surely would like to have it bug-free, 
too, even though it doesnt solve your problem at all..

Ian is right, even if swfmill could import SVG fine, you still couldn't access 
or manipulate the shape structures (except transformations on a high level). 
JSON is one option (see google). Your idea of using (generating?) a haxe class 
another. You could also parse SVG from actionscript, generate some haXe 
datastructure to store your shapes, or use haXe's -resource flag to embed the 
shapes in some format that you can parse..

  > While AS can use the drawing primitives to draw into movieClips there's
  > no way to change control points or make use of frames when done this way
  > (except to redraw the shape in the movieClip each time).

that is a flash "limitation" (or design decision), ie, something you'll have to 
live with.

  > What does a vecotr object drawn in flash proper come out as in smfmill's
  > XML output?

? i dont understand this question.

-dan


-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Christopher Brian Jack
On Wed, 28 Feb 2007, Darren Cook wrote:

> > What about the second question then?  Is there something I can store
> > vectors as that the AS can access the controls point and vertices
> > with?
>
> If you had your vertices in JSON format it is basically actionscript so
> could be compiled by MTASC. You could then use actionscript's drawing
> functions.

Is there a description of this format somewhere?

Or would I be better off making a Haxe class for each vector object (that
creates its own movieClip when constructed)?

.=.
|  Christopher BRIAN Jack aka "Gau of the Veldt"  |
+='
| [EMAIL PROTECTED]
`=-
Hi Spambots, my email address is [EMAIL PROTECTED]
Hi Humans, my email address uses rot13 cipher

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Quentin

No, as you said, you still need to redraw the points and vectors each time
you want your visual to change...

On 2/28/07, Christopher Brian Jack <[EMAIL PROTECTED]> wrote:


On Wed, 28 Feb 2007, Ian Thomas wrote:

> Don't know what you're talking about with SVG there, Christopher. If
> swfmill imported SVG, AS still couldn't access the control points and
> vertices, AFAICS.
>
> Ian

What about the second question then?  Is there something I can store
vectors as that the AS can access the controls point and vertices with?

> On 2/28/07, Christopher Brian Jack <[EMAIL PROTECTED]> wrote:
> >
> > Okay since everyone seems religiously opposed to making bug-free SVG
> > importing in swfmill are there any other vector formats that swfmill
> > recognizes that allow AS running withing the flash to access the
control
> > points and vertcies of the vector objects?
> >
> > While AS can use the drawing primitives to draw into movieClips
there's
> > no way to change control points or make use of frames when done this
way
> > (except to redraw the shape in the movieClip each time).
> >
> > What does a vecotr object drawn in flash proper come out as in
smfmill's
> > XML output?
>
> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>

.=.
|  Christopher BRIAN Jack aka "Gau of the Veldt"  |
+='
| [EMAIL PROTECTED]
`=-
Hi Spambots, my email address is [EMAIL PROTECTED]
Hi Humans, my email address uses rot13 cipher

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Darren Cook
> What about the second question then?  Is there something I can store
> vectors as that the AS can access the controls point and vertices
> with?

If you had your vertices in JSON format it is basically actionscript so
could be compiled by MTASC. You could then use actionscript's drawing
functions.

JSON is becoming a more common data format (mainly due to the popularity
of ajax), and should be fairly easy to convert from XML, etc.

Darren


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Christopher Brian Jack
On Wed, 28 Feb 2007, Ian Thomas wrote:

> Don't know what you're talking about with SVG there, Christopher. If
> swfmill imported SVG, AS still couldn't access the control points and
> vertices, AFAICS.
>
> Ian

What about the second question then?  Is there something I can store
vectors as that the AS can access the controls point and vertices with?

> On 2/28/07, Christopher Brian Jack <[EMAIL PROTECTED]> wrote:
> >
> > Okay since everyone seems religiously opposed to making bug-free SVG
> > importing in swfmill are there any other vector formats that swfmill
> > recognizes that allow AS running withing the flash to access the control
> > points and vertcies of the vector objects?
> >
> > While AS can use the drawing primitives to draw into movieClips there's
> > no way to change control points or make use of frames when done this way
> > (except to redraw the shape in the movieClip each time).
> >
> > What does a vecotr object drawn in flash proper come out as in smfmill's
> > XML output?
>
> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>

.=.
|  Christopher BRIAN Jack aka "Gau of the Veldt"  |
+='
| [EMAIL PROTECTED]
`=-
Hi Spambots, my email address is [EMAIL PROTECTED]
Hi Humans, my email address uses rot13 cipher

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Ian Thomas
Don't know what you're talking about with SVG there, Christopher. If
swfmill imported SVG, AS still couldn't access the control points and
vertices, AFAICS.

Ian

On 2/28/07, Christopher Brian Jack <[EMAIL PROTECTED]> wrote:
>
> Okay since everyone seems religiously opposed to making bug-free SVG
> importing in swfmill are there any other vector formats that swfmill
> recognizes that allow AS running withing the flash to access the control
> points and vertcies of the vector objects?
>
> While AS can use the drawing primitives to draw into movieClips there's
> no way to change control points or make use of frames when done this way
> (except to redraw the shape in the movieClip each time).
>
> What does a vecotr object drawn in flash proper come out as in smfmill's
> XML output?

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] alternative vector sources

2007-02-28 Thread Christopher Brian Jack

Okay since everyone seems religiously opposed to making bug-free SVG
importing in swfmill are there any other vector formats that swfmill
recognizes that allow AS running withing the flash to access the control
points and vertcies of the vector objects?

While AS can use the drawing primitives to draw into movieClips there's
no way to change control points or make use of frames when done this way
(except to redraw the shape in the movieClip each time).

What does a vecotr object drawn in flash proper come out as in smfmill's
XML output?

.=.
|  Christopher BRIAN Jack aka "Gau of the Veldt"  |
+='
| [EMAIL PROTECTED]
`=-
Hi Spambots, my email address is [EMAIL PROTECTED]
Hi Humans, my email address uses rot13 cipher

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org