A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Why does flash hate me? (error)

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    92

    Why does flash hate me? (error)

    So i have this movie clip. And in this clip theres 2 buttons that are visible at 2 diffrent times. Anyway, the first button, you click and has this code:

    tellTarget("/news"){
    gotoAndPlay(2);
    }

    the 2nd button has this code:

    tellTarget("/news"){
    gotoAndStop(1);
    }

    HOWEVER, when i click the first button everything goes perfect. Now when i click the 2nd button i get this error message:

    Target not found: Target="/news" Base="?"

    What is going on?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Why gotoAndPlay in one case, and gotoAndStop on the other?

  3. #3
    Member
    Join Date
    Jul 2002
    Posts
    92
    because frame 1 is empty, and frame 2 on is the movie. the second button 'closes' the movie, the 1st button starts it.

  4. #4
    Senior Member skdzines's Avatar
    Join Date
    Sep 2003
    Posts
    301
    try getting rid of the tellTarget command. Instead do something like this:

    button 1
    on (release){
    _root.news.gotoAndPlay(2) // just make sure you have the correct path to the news movie clip you are calling
    }

    button 2
    on (release){
    _root.news.gotoAndStop(1)
    }

    hth

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