Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Results 1 to 4 of 4

Thread: Adressing MovieClips

  1. #1
    Member Flash Addict hard_overclocker is on a distinguished road hard_overclocker's Avatar
    Join Date
    Jul 2007
    Posts
    50
    Rep Power
    4

    Question Adressing MovieClips

    flash templates
    Hi, I have a problem.

    I have a xml slideshow and I have created a new class for the buttons (added directly on the stage) that allow the user to select a picture. All I have to do in this class is to addChild(theLoader) that was passed from the main class.
    On the stage I have a mc called: imgPlaceholder_mc in witch I want the picture to be loaded based on what button has been clicked.

    My question is how do I target imgPlaceholder_mc from my button class ?
    ex :
    PHP Code:
    stage.imgPlaceholder_mc.addChild(myImage); 
    doesn't work ....
    I have also tryed to pass imgPlaceholder_mc to the class but things got crazy

    I am not asking anyone to try to reconstruct my problem, but in case you know the answer, let me know.
    Thanx

  2. #2
    Member Flash Addict hard_overclocker is on a distinguished road hard_overclocker's Avatar
    Join Date
    Jul 2007
    Posts
    50
    Rep Power
    4

    A little correction

    imgPlaceholder_mc is created in the constructor of my main class and then added to the stage...

  3. #3
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9
    Hi,
    you can add
    Code:
    addEventListener(Event.ADDED_TO_STAGE,go);
    at your class and

    Code:
    function go(evt:Event):void
    {
         trace(parent. imgPlaceholder_mc);
    }

  4. #4
    Member Flash Addict hard_overclocker is on a distinguished road hard_overclocker's Avatar
    Join Date
    Jul 2007
    Posts
    50
    Rep Power
    4
    Thanx alot Flep, I'll give it a shot

+ Reply to Thread

Similar Threads

  1. Tweening Movieclips
    By xPINKMERCEDESx in forum advanced Actionscript 3.0
    Replies: 1
    Last Post: 05-03-10, 21:40
  2. Help Proportional scaling MovieClips relative to stage
    By terraform in forum Actionscript 3.0 newbies
    Replies: 1
    Last Post: 05-02-10, 10:43
  3. movieClips Ricorsivi
    By rivo900 in forum Actionscript 3.0 base
    Replies: 2
    Last Post: 31-01-10, 21:36
  4. Replies: 0
    Last Post: 23-09-07, 12:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts