Results 1 to 7 of 7

Thread: Problem with movie clip

  1. #1
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Problem with movie clip

    At my office no one really knows how to do flash and the person who created this flash file is gone. The original was deleted so I had to go and decompile the file we had of it. I got everything off of it and matched everything up as it was supposed to but it is still not working as it should.

    The project is a picture of a person and each body part is supposed to act as a button. when you click on this button several links to another page pop up right next to it and they should send you to a new page. I put the action script back in as labeled( compiler made a folder for actions and I matched the actions to the file it was named, which it was sprite, so I put Action 515 in sprite 515 and the script would match up perfectly with the frame, as the code it self labeled which frame it was supposed to go in).

    The problem is when I test the movie after all the code is in there is no button to click, in fact all it does is show the person's body and that's it. I go and press the check syntax button to see if there is an error in the code and it says there is errors and that it will show up in the output box. The output box comes up blank. So I am now out of ideas how to fix this problem.

    Here is the code:
    //frame 5 (DOACTION)

    stop();

    onClipEvent(ROLLOVER)
    {
    this.gotoAndPlay(on);
    }

    onClipEvent(ROLLOUT)
    {
    this.gotoAndPlay(out);
    }

    onClipEvent(RELEASE)
    {
    getURL("BreathingorChestSymptoms/AsthmaAttack.htm","_self");
    }
    onClipEvent(ROLLOVER)
    {
    this.gotoAndPlay(on);
    }

    onClipEvent(ROLLOUT)
    {
    this.gotoAndPlay(out);
    }

    onClipEvent(RELEASE)
    {
    getURL("BreathingorChestSymptoms/Cough.htm","_self");
    }

    onClipEvent(ROLLOVER)
    {
    this.gotoAndPlay(on);
    }

    onClipEvent(ROLLOUT)
    {
    this.gotoAndPlay(out);
    }

    onClipEvent(RELEASE)
    {
    getURL("BreathingorChestSymptoms/Croup.htm","_self");
    }

    onClipEvent(ROLLOVER)
    {
    this.gotoAndPlay(on);
    }

    onClipEvent(ROLLOUT)
    {
    this.gotoAndPlay(out);
    }

    onClipEvent(RELEASE)
    {
    getURL("BreathingorChestSymptoms/WheezingotherthanAsthma.htm","_self");
    }
    Can someone help me with the problem that is occurring with this. I am using Macromedia Flash MX 2004.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    You're adding the above to the frame? If so, that's not where they belong.

    With that syntax, you should be adding those actions directly to the movieclip.

  3. #3
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I am still have the same problem, would making the code so that it works on the frame work better, or be easier, if so can you give me an example of what I would need to change from that?
    Last edited by pyromnc555; 09-16-2008 at 05:37 PM.

  4. #4
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    If needed I can attach the file I need fixed.

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    On movieclip....
    Code:
    onClipEvent(ROLLOUT)
    {
    this.gotoAndPlay(out);
    }
    on frame:
    Code:
    movieclip_instance_name.onRollOut = function() {
       this.gotoAndPlay(out);
    }
    Change the highlighted with the proper values.

  6. #6
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Did not change anything...
    I did the check syntax and still came up with errors. Did some messing around and it was errors with the getURL. Also did the same thing with the one I put on the movieclip and it came up with an error. I would help a whole lot if it would tell me the error but it is not.
    on the GetUrl would changing it to: link.onRelease = function () help or does that code just make it worse. When I put that in it stopped coming up with error message when I did check syntax.
    On the MovieClip maybe I am putting it in the wrong place, I am assuming it is not supposed to be on timeline since it has frames on it so I was putting it directly on the picture (or individual sprite).
    Sorry if these question sound stupid or dum but I don't normally deal with flash.
    Last edited by pyromnc555; 09-16-2008 at 08:19 PM.

  7. #7
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by pyromnc555 View Post
    If needed I can attach the file I need fixed.
    That would be best. Your questions are a bit specific to the implementation of the person who coded it originally. Without knowing some basic details, it's hard for me to offer advice.

  8. The Following User Says Thank You to Medyman For This Useful Post:

    pyromnc555 (09-16-2008)

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
  •