A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: problem with rollover

  1. #1
    Member
    Join Date
    Nov 2004
    Location
    uk
    Posts
    40

    problem with rollover

    hello,
    i am creating a safe and it split up into sections,
    when u rollover a section the pice moves out the way showing stuff under it but the trouble is the canvas space around the pic is in the way as they r all imported from photoshop!
    is there anyway i can remove the canvas or have it work only when u rollover the pic and not the canvas?
    (9 sections in total)


    EDIT:- is there an easyer way to do my script aswell cos on each still frame i have to add script for it to work :- on (rollover).........
    can i make 1 script for each shape but work in all frames?
    Last edited by SharingDOODLES; 11-08-2004 at 12:44 PM.

  2. #2
    Has Returned
    Join Date
    Mar 2001
    Posts
    269
    There are many ways to do this, a source file would help..

    Look into TraceBitmap, Hit sections of buttons, Break apart.

    Trace bitmap will vectorise your imported image.

    Hit sections of buttons let you define the "active" area of a button.

    Break apart will let you use things like the eraser on your image.

  3. #3
    Member
    Join Date
    Nov 2004
    Location
    uk
    Posts
    40
    cheers
    ill check it out!
    totaly forgot about the hit-section on buttons lol

  4. #4
    Member
    Join Date
    Nov 2004
    Location
    uk
    Posts
    40
    if i was to give each button a name could i put in a layer for the script and have the whole script there?
    myButton.onRollOver = function () {
    gotoandplay (23)...................

    myButton2.onRollOver = function () {
    gotoandplay (45)...................
    and so on...............



    EDIT:-
    i have tried puttin script for 1 button in a layer and it works the first time but not again after that!
    :- a.onRollOver = function () {
    gotoAndPlay(2);
    }
    can any1 help plez?

    tried with 2 buttons and it aint happening
    a.onRollOver = function () {
    gotoAndPlay(2);
    }
    b.onRollOver = function () {
    gotoAndPlay(25);
    }
    Last edited by SharingDOODLES; 11-08-2004 at 03:12 PM.

  5. #5
    Has Returned
    Join Date
    Mar 2001
    Posts
    269
    I attached a file for you with event actions for movieclips and buttons. dont know if it will help.
    Attached Files Attached Files

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