Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-25-2009, 08:47 AM   #1
dilpreet
Member
 
Join Date: Apr 2009
Posts: 58
Default Externally load a swf

Hey

i am trying to load an swf in a little rectangle and not the whole window. Just wondering if it's possible.

thanks
__________________
Dilpreet Singh
dilpreet is offline   Reply With Quote
Old 11-25-2009, 09:02 AM   #2
aseptik
London
 
Join Date: Jul 2006
Location: London
Posts: 33
Default

?????
what you mean?
regarding rectangle , are you talking about a part of the html? or a part of a flash file?
aseptik is offline   Reply With Quote
Old 11-25-2009, 09:07 AM   #3
dilpreet
Member
 
Join Date: Apr 2009
Posts: 58
Default

sorry, i mean inside a flash file, i have a rectangle 300, 200 and i want the externally loaded file to come in their
__________________
Dilpreet Singh
dilpreet is offline   Reply With Quote
Old 11-25-2009, 02:55 PM   #4
tadster
tadster
 
tadster's Avatar
 
Join Date: Feb 2009
Location: Texas
Posts: 2,111
Default

after you load the swf, instantiate it as a Sprite, then if your rectangle is a Sprite, simply use :

theNameOfYourRectangleSprite.addChild(yourLoadedSW FasASprite);
__________________
www.actiontad.com - ActionScript and JavaScript sitting in a tree...
tadster is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:06 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.