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 <[email protected]>
> 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:[email protected]]
> *Sent:* Thursday, November 26, 2009 1:47 PM
> *To:* John Georgiou
> *Cc:* [email protected]
> *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 <[email protected]>
>
>>
>> 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
>> [email protected]
>> OPTIMEDIA Interactive Systems
>> 6 Arapaki Str, Kallithea,
>> 17676 Athens - GREECE
>> Tel. +30 210 9578294 Fax: +30 210 9578470
>> www.optimedia.gr
>>
>>
>
>