A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: having trouble targeting new MCs

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    24
    i hope someone can understand this. after you click a on button i'm attaching movie clips that contain buttons, then as you click on one of the movie clips to drag or whatnot it's suposed to effect the other MCs visibility. the trouble is that i don't think it is reaching out to the other movies.

    inside of mc "picture"

    on(press){
    Name=this._name // grabbing name
    Num=Name.substr(0,1); //grabbing increment number
    setProperty(_root.Num+"right",_visible, 0);
    }

    i hope someone understands this and can maybe shed some light on it for me.

    thanks

  2. #2
    I couldn´t figure out what exactly you´re trying to do yet.

  3. #3
    Junior Member
    Join Date
    Jun 2001
    Posts
    24
    i got through this one. the way i fixed this was through passing the object name into a fuction and doing it all in there. what i'm doing is always complicated, at least in my head.

    thanks.

    now i'm on to a new problem, wondering if you can capute the last clicked object, mc or whatever. so if you know how to do that...


  4. #4
    If I had to do it.. I would make my objects set a value to a single _root.var.
    Let´s say we hace 10 object.. every time you hit the object 5.. it sets the _root.myvar = 5..
    Then, when I need it.. it is identifyied as my 5th object... Hope it helped

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center