A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Website help: Button within a button

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    4

    Website help: Button within a button

    Hello. I'm making my art website and want a picture index to appear in an over state of my main image sequence. So the index is supposed to have small images of the main pictures and when I click one it goes to that image and plays.

    I have the index set up as a button because otherwise I get a timeline instead of the Over/Down/Hit state that I need, and it works fine. But the code for the individual buttons doesn't work, because I don't think it's possible to have a button within a button. Are there any alternatives?

    on (release) {
    gotoAndPlay("Sketchwork", 1);


    Doesn't work, I've read threads but


    on (release) {
    tellTarget (_root) {
    ("framelabel")


    doesn't work either, but then again I don't understand framelabel.

    Any suggestions would be very appreciated!!

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    Well the gotoAndPlay should be working. But an small understanding of frame labels is important unless you want to just you the frame number instead.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

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