A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: [CS3] [AS2] Controling Movie Clip from another Problem

  1. #1
    Member
    Join Date
    Oct 2008
    Posts
    80

    [CS3] [AS2] Controling Movie Clip from another Problem

    i am having problems using the gotoAndStop from another Movie Clip

    1 and A are both on the main timeline.. 3 is within 2 wich is within 1 , C is within B wich is within A (Diagram bellow). I am trying to have a button in 3 change the frame number for the Movie Clip in C. (The letter and Numbers are just for the example, I dont accualy have them named like that).

    MainTimeline: 1->2->3
    MainTimeline: A->B->C

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    in (_root.a.b.c)

    _root.1.2.3.gotoAndStop()
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    Member
    Join Date
    Oct 2008
    Posts
    80
    i tried to use the in (_root.a.b.c) command but i get "Unexpected 'in' encountered" i tried to even add ; and {.

  4. #4
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    When I wrote that I was indicating that _root.1.2.3.gotoAndStop() needed to be placed inside of (in) the clip you referred to as _root.a.b.c
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  5. #5
    Member
    Join Date
    Oct 2008
    Posts
    80
    oh, i tried _root.1.2.3.gotoAndStop(2);
    it doesnt change the movie clip at all

  6. #6
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Did you give the clips instance names or are you referring to their names in the library?
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  7. #7
    Member
    Join Date
    Oct 2008
    Posts
    80
    i am putting there instance name...
    Last edited by madbomb122; 11-10-2008 at 04:46 PM.

  8. #8
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Yeah. What I am assuming the issue is that you need to get the path to the movie you want to change correct.
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  9. #9
    Member
    Join Date
    Oct 2008
    Posts
    80
    guess i will just do it the way that would require me to put the AC in multi times instead of once like i hopped i could do

  10. #10
    This isn't working for me either. Are there any other conciderations I should be making?

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