A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: [RESOLVED] WARNING: Button/Movie Code

  1. #1
    Member
    Join Date
    Sep 2007
    Location
    Richmond, VA
    Posts
    45

    resolved [RESOLVED] WARNING: Button/Movie Code

    I'm opening someone else's file and when I go to save as AS3 it is giving me this:

    WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored.

    Is there an easy way to find out where this mysterious piece of code is hidden? I just want to stop the warning.


  2. #2
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    Yeah, you're not just going to be able to open up an old AS2 document and save it as AS3. AS3 is a whole new beast that will require you to rewrite the file.

  3. #3
    Member
    Join Date
    Sep 2007
    Location
    Richmond, VA
    Posts
    45
    Quote Originally Posted by MyFriendIsATaco
    Yeah, you're not just going to be able to open up an old AS2 document and save it as AS3. AS3 is a whole new beast that will require you to rewrite the file.
    Yes, I've been doing that.
    I commented everything out and am slowly rebuilding.

    But how can I find this hidden code? Even if I copy and paste all the graphic elements, the code is going to come with it.

  4. #4
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Scripts should appear in the MovieExplorer. Should be easier than manually poking through instances.

  5. #5
    Member
    Join Date
    Sep 2007
    Location
    Richmond, VA
    Posts
    45
    Quote Originally Posted by 5TonsOfFlax
    Scripts should appear in the MovieExplorer. Should be easier than manually poking through instances.
    That was an EXCELLENT suggestion.
    I completely forgot about that thing.

    Sadly, there is no object with code on it. The warnings just keep popping up to make me crazy; every time I publish. I even tested by putting code on a button to make sure it shows up in Movie Explorer - it does.

    I'm just going to turn off warnings.
    Either that or copy everything into a new file.

    Thanks.

  6. #6
    Junior Member
    Join Date
    Jun 2008
    Posts
    12
    Same problem here. Warning is making me crazy.
    (why Flash wouldn't trace to the offending object right there...)

    Movie Explorer can't find its own butt half the time, and anything being ignored I wouldn't expect it to find, and it doesn't.
    Find & Replace is better, but still can't find and thing with "on..." that is probably on the object.

    I searched EVERY object I copied over from an old project and can't find any AS on them for the life of me.

    HELP!!!

    Any ideas?

  7. #7
    Member
    Join Date
    Dec 2004
    Posts
    68
    Just a shot in the dark, but there could be action script on a MC or button nested inside a MC. Movie Explorer will only show the AS on the main time line, not inside MC’s.

  8. #8
    Junior Member
    Join Date
    Jun 2008
    Posts
    12
    Searching Every object included drilling down into every layer of every movie clip. Amazing that Movie Explorer can have such blind spots.

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