Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

addChild to holder - CS3

This is a discussion on addChild to holder - CS3 within the PHP | mySQL | Flash CS3 forums, part of the Flash CS3 eng category; Hello; I am a novice with CS3 and have a question. I have the code below which is working fine. ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > PHP | mySQL | Flash CS3

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-04-08, 19:02
Junior Member
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
goodlie is on a distinguished road
Question addChild to holder - CS3

Hello;
I am a novice with CS3 and have a question.

I have the code below which is working fine. I would like to load this .swf to a holder on the stage (holder_mc), that is sized and positioned how I would like it.

Then I will have another button that I would like to removeChild() from the holder_mc.

Can someone help me with this?
Thank you.

import flash.events.MouseEvent;
import flash.display.MovieClip;
import flash.display.Loader;
import flash.events.*;
import flash.net.URLRequest;
var imageLoader:Loader = new Loader();
var theURL:String = "New4thfloorStar.swf";
var imageRequest = new URLRequest(theURL);
imageLoader.load(imageRequest);
FourthFloor_btn.addEventListener(MouseEvent.CLICK, FourthFloor_btn_Click);
function FourthFloor_btn_Click(event:MouseEvent):void
{
addChild(imageLoader.content);
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 3 Addchild and RemoveChild Matt27 Actionscript 3.0 base 1 12-10-08 03:19
Actionscript 3 addChild / removeChild loris.dassie Actionscript 3.0 base 4 08-08-08 19:29
attachMovie and addChild from the Timeline Flep Tutorials 7 23-07-08 10:06
AddChild in frame diversi Malakiah Actionscript 3.0 avanzato 2 14-03-08 07:49
addChild? forse no nootropic.kint Actionscript 3.0 base 5 03-08-07 13:31


All times are GMT. The time now is 05:10.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406