If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Nov 2009
    Member #
    I am just starting Flash CS3, and I would like some assistance with a game.

    In my game, a symbol (movieclip?) is inserted somewhere in the stage randomly. If you hover over it, it changes position automatically.
    I converted my target into a MovieClip, and made it possible to export for ActionScript.
    I put this in the ActionScript Class file

    class Target extends MovieClip

    I can't find the code I need to
    1) make target a button, graphic, or movieclip
    2) make the target randomly appear on the screen when frame is loaded
    3) make the target randomly move to a different place when hovered over
    4) make a score variable, and make it go up each time the target is hovered over.

    I have an idea of how to do #4, something like

    var score;

    function OnLoad ()
    score = 0

    function onEnterFrame ()
    score=+1 if {code for hover over symbol}

    I would greatly appreciate any help.

    Thank you,


  3. #2
    Member JasonMc's Avatar
    Join Date
    Oct 2009
    Member #
    If you make the target a movieclip you can give it the features of a button.

    A lot of answers to your questions can be found at they have tutorials, file downloads and a forum

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 08:56 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: