A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: roll over with link?

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    5

    roll over with link?

    hey everyone i'm tring to create a roll over.

    I have got my movieclip of a little movie which when the user rolls her/his mouse over the image the cube will start to turn.

    After its turned some type will come up say like "about us" i want it so that they can click on about us and it will then goto the aboutus.html page i have been trying to add

    on(release){
    getURL("aboutus.html()", "_self");
    }

    the thing is once i export the flash and try to move my mouse over the image it doesn't move anymore. but you can click on the image and it wil goto the abouts.html page.

    Anyone got any ideas at all?

    thanks alot

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    Post the fla file, and we'll take a look.

  3. #3
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    hey there man file is @ coa.auscstrike.com/cgi-bin/newcustomers.fla

    How i want it so once the user can click on the cube at any time and it will take them to the a page.

    Thx heaps!

  4. #4
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    I can't download it from there. Attach it to your next message using the "attach file" command below the message editor.

  5. #5
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    Looking at your .fla, it looks like all you need to do is add the following to your button (select the button on the stage and enter this in the actionscript panel).

    code:

    on(release){
    getURL("aboutus.html", "_self");
    }


  6. #6
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    Hey there mate thanks for that.

    I have gone to scene 1 and added :
    on(release){
    getURL("aboutus.html", "_self");
    }


    I then got this error:
    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Mouse events are permitted only for button instances
    on(release){

    Total ActionScript Errors: 1 Reported Errors: 1

    I can't seem to put:
    on(release){
    getURL("aboutus.html", "_self");
    }

    in the button though

    Would you maybe be able to try and do it in the fla and possibly send it over?

    Thx so much!

  7. #7
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    The problem is that you attached the script to the frame, instead of to the button. You need to delete that script from the frame. Then select the button, so that the title in the actionscript window says "actions - movieclip" (instead of "actions - frame"). Then paste the script in there.

    I'd fix it for you, but you'll learn more if you figure this bit out yourself...

  8. #8
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    Your a champion man thank you so much man! too easy

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