A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: [F8] Buttons not working correctly...

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    8

    [F8] Buttons not working correctly...

    I am having the strangest problem... and I'm really hoping someone can help me out...

    The Site is here: http://www.littleolemedesigns.com

    I call the flash by calling a js file that calls the swf file by using this:
    <script src="http://www.littleolemedesigns.com/includes/templates/LittleOleMeSite/jscript/LOMD_Header_Animation.js"></script>

    The fla file can be downloaded here if anyone needs to look at it: http://littleolemedesigns.com/includ...Animation2.fla


    Here's my problem:

    In IE6, all the buttons work correctly... (the free stuff and tutorials buttons aren't linked yet).

    In IE7, when you first go to the site, only one button will work and only one time. Doesn't matter which one. When you close the browser and open it again and go the site again, you get the one button that will work one time again.

    In Firefox, none of them are working.

    I've tried clearing my flash cache, and clearing my browser cache and it still doesn't work.

    Does anyone have any idea??

  2. #2
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    I can give you a tip that will resolve alot of issues:

    Do not use Buttons, replace them with movieclips and place your code into ONE frame with actionscript only.

    movieclip.onRelease = function() {
    getURL(blah blah);
    }

  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    8
    Thank-You for that advice.. I didn't realize that Flash buttons were a problem... How would you make that work for doing a hover button... that code looks like it only does the click and go to a url functionality... not the hover animation.

  4. #4
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    Buttons are extremely depreciated and should not be used. You can find many articles online about why / why not, etc. By using movieclips you have SOOOO much more functionality and coding changes in the future will be very simple.

    The 3 basic functions are here:

    PHP Code:
    movieclip.onRelease = function() {
    // Actions here
    }
    movieclip.onRollOver = function() {
    // Actions here
    }
    movieclip.onRollOut = function() {
    // Actions here


  5. #5
    Junior Member
    Join Date
    May 2008
    Posts
    8
    That's awesome... Thank-You soooo much!!!

  6. #6
    Junior Member
    Join Date
    May 2008
    Posts
    8
    Ok... I'm sure I'm doing something stupid... I'm trying to make a hover button.

    I put the movie clip (instead of the button) on the first frame of the main timeline. Inside the movie clip, the graphics for the stationary button are on the first frame, and the animation I want to happen on hover is on the second frame.

    On the movie clip on the main timeline, I have this actionscript:

    movieclip.onRollOver = function() {
    ecommerce_button_mc.gotoAndPlay(2);
    }

    What am I doing wrong??

  7. #7
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    "movieclip" is the instance name of the movieclip, you need to change that to match the movieclip your referencing.

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