Check out the FlashPaper API.
http://www.adobe.com/support/documentation/en/flashpaper/2/flashpaper_api/index.html

regards,
Muzak

----- Original Message ----- 
From: "matt stuehler" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, April 18, 2007 5:32 PM
Subject: Re: [Flashcoders] Find size of the bounding box of a particular 
frameof a loaded SWF


> Jason,
>
> Thanks for the clarification - that's an important point.
>
> I should have been more specific in my original post.
>
> Essentially, we have a number of SWFs created by FlashPaper.
>
> I'm loading those SWFs into a container movie clip.
>
> I then want to scale and center the container clip on the main stage.
> This requires that I know the width and height of the container.
>
> The problem is that the SWFs contain multiple frames, and the content
> in each frame varies in size.
>
> What I'd like to be able to do is this:
>
> container_mc.gotoAndStop(1); // this shows the first frame of the SWF
> var w = container_mc._width;
> var h = container_mc._height;
>
> // use w and h to scale and position container_mc
>
> When the user clicks "Next":
> container_mc.gotoAndStop(2); // this shows the next frame of the SWF
> var w = container_mc._width;
> var h = container_mc._height;
>
> // use w and h to rescale and reposition container_mc
>
> The trouble is that container_mc._width & container_mc._height always
> return the same value, even though the content on each frame LOOKS
> like it's a different size. It's as though FlashPaper adds a
> transparent background to each frame, which is why every frame returns
> the same size.
>
> Is this the case? If anyone with FlashPaper experience could shed some
> light, it'd be greatly appreciated.
>
> Cheers,
> Matt Stuehler
> 


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to