swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] pdf2swf creating a movieclip


From: filip sound
Subject: Re: [Swftools-common] pdf2swf creating a movieclip
Date: Thu, 26 Nov 2009 13:02:50 +0100

make sure you create flash 9 or 10 SWFs (AS3)
load the swf.
then get the swf out of the loader object.

// loader complete handler:
private function loaded(e:Event)
{
  if (e.target.content is MovieClip)
  {
    var loaded_swf:MovieClip = MovieClip(e.target.content);
    // after that you can easily loop like:
    for (var i:uint = 0; i<loaded_swf.numChildren; i++)
    {
      trace(loaded_swf.getChildAt(i));
    }
  }
}


2009/11/26 John Georgiou <address@hidden>
Thanks for your answer, but how can I loop into the extracted swf to find all the objects?
 
I tryied something:
 
for ( i in loaded_swf) {
    trace( i );
}
 
but that works only for movieClips and not for graphics.
 
I'll appreciate your help.
John


From: filip sound [mailto:address@hidden]
Sent: Thursday, November 26, 2009 1:47 PM
To: John Georgiou
Cc: address@hidden
Subject: Re: [Swftools-common] pdf2swf creating a movieclip

you don't need to have them separately. the loaded swf contains objects that you can control. just loop all object, do some traces to find out how it is all stacked. i made an editor where you can animate loaded swf (from pdf) and hide single objects....

yours,
  filip

2009/11/25 John Georgiou <address@hidden>
 
I try to convert  one page of a pdf file to swf, but I want to include all the extracted graphics in one moveclip to the root. i.e. foo
I want this because I try to set all the elements visible or not.
Is it possible to do this?
 
Thank you in advance
 
   
 

John Georgiou
Electrical & Computer Engineer
address@hidden
OPTIMEDIA Interactive Systems
6 Arapaki Str, Kallithea,
17676 Athens - GREECE
Tel. +30 210 9578294 Fax: +30 210 9578470
www.optimedia.gr

   



reply via email to

[Prev in Thread] Current Thread [Next in Thread]