A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: Making Links

  1. #1
    Junior Member
    Join Date
    Jun 2003
    Posts
    12

    Making Links

    Hey i started using Flash Mx 2 months ago, until now ive been ''playing'' with it for fun, now im doing a site mixed with html and flash menu, but i have 1 LITTLE ( ) problem, how do i do the links of the flash menu to the html part? ive tried many things but it keeps getting a scripting error...
    If anyone can give me any tip

    Thanks
    Just remember your unique, like everyone else...!

  2. #2
    Member
    Join Date
    Nov 2002
    Location
    at the corner of flotsam & jetsam, just within the walls of reality
    Posts
    91
    you mean link to a URL?

    well, depending on how you did your "buttons" or whatever is going to be the hyperlink, you have a few options:

    if you just did text (say, selected the text tool), there is a link option with the properties window. just highlight the text and then, in the link box within the properties window, type http://www.mylink.com...

    if you created a movie clip, you're going to use the actions panel (f9) to do a getURL("http://www.mylink.com...");. typically, a getURL will be within a function, like

    myButton.onPress = function(){
    getURL("http://www.mylink.com");
    }

    where myButton is the instance name of your movie clip.

    hope this helps.
    best,

    Mos
    wei wu wei

  3. #3
    Junior Member
    Join Date
    Jun 2003
    Posts
    12
    umm...i tried that and it doesnt work the buttons are incorporated in a drop down menu thats activated by a button, and the buttons are incorporated in a movie clip. Dont know if this information will help more, hope it does. Thanks for the help anyway get.MOS
    Just remember your unique, like everyone else...!

  4. #4
    Member
    Join Date
    Nov 2002
    Location
    at the corner of flotsam & jetsam, just within the walls of reality
    Posts
    91
    ugh yes, i've run into the error you're experiencing. what's your code now? and, is your drop-down menu an entire movie clip in itself?
    best,

    Mos
    wei wu wei

  5. #5
    Junior Member
    Join Date
    Jun 2003
    Posts
    12
    this is the menu im talking about...

    btw the onyl link i tried to add was on história button on canal.1 MC and the link there was only for testing

    Thanks
    Attached Files Attached Files
    Last edited by 0_b00gie; 06-02-2003 at 01:51 PM.
    Just remember your unique, like everyone else...!

  6. #6
    It's good to flash! DaveTomneyUK's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    172

    reply

    try this for the link

    on(release) {
    getURL("yoursite.com","_self");
    }

  7. #7
    Junior Member
    Join Date
    Jun 2003
    Posts
    12
    Thanks for the tip Dave it kinda ''worked'', now there are no script errors! but the link doesnt open...
    The .fla is there can you see if its just me or not plz?

    Thanks
    Just remember your unique, like everyone else...!

  8. #8
    It's good to flash! DaveTomneyUK's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    172

    reply

    try this file
    Attached Files Attached Files

  9. #9
    Junior Member
    Join Date
    Jun 2003
    Posts
    12
    tried it...no luck did you change anything? it still doesnt work at least in here! you guys think i have to change it or there's still a way make it work how it is?

    Thanks for the time guys
    Just remember your unique, like everyone else...!

  10. #10
    It's good to flash! DaveTomneyUK's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    172

    reply

    what u wanting is when u go over the left button u want the menu to drop down right and when it drops when u click it goes to a page?

  11. #11
    Junior Member
    Join Date
    Jun 2003
    Posts
    12
    yes, when i click história it goes to the html page of my site to which it corresponds, and the other buttons to and so on...
    Just remember your unique, like everyone else...!

  12. #12
    It's good to flash! DaveTomneyUK's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    172

    reply

    try it now i think ive done it all you did wrong was u put the code in the 1st scene instead of scene 11 i think it was scene 1 had the buttons of the movie and 11 it had the tween end

    by the way how do you tween ive never done that b4 the movement part
    Attached Files Attached Files

  13. #13
    Junior Member
    Join Date
    Jun 2003
    Posts
    12
    Indeed its working now! Thanks alot for the time you took and for the help Dave! i really aprecciate it!
    What tween do you mean? the part that the menu goes up again? didnt get it sorry ... can you explain it better please so i can try to help you in what i can

    Just remember your unique, like everyone else...!

  14. #14
    It's good to flash! DaveTomneyUK's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    172

    reply

    no problem....i mean when you click make a motion tween i dont know how to do it the movement part

  15. #15
    Junior Member
    Join Date
    Jun 2003
    Posts
    12
    It's really easy, in the tweens frame 1( you have to add the stop(); on frame 1 so the tween doesnt start when is not activated) and in the frame you what it to stop (lets say 11) and what you do to the button is simply tell

    on (release) {
    tellTarget (a) {
    play ();
    }
    }

    him when you click he goes play the tween in this case until frame 11(thats when the menu goes to the bottom and stops) and when you click again he plays the rest of the tween thats the menu going back.the a represents the instance name i gave it
    Hope i explained it in a way you can understand it...
    Just remember your unique, like everyone else...!

  16. #16
    It's good to flash! DaveTomneyUK's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    172

    reply

    ya your right it's easy when you know how i did it in 2secs LOL thanks

  17. #17
    Junior Member
    Join Date
    Jun 2003
    Posts
    12
    LOL c00l no problem anytime
    Just remember your unique, like everyone else...!

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