Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Animate CC AS3 - script problem laoding movie clips to stage

Explorer ,
Nov 03, 2017 Nov 03, 2017
  1. I have 96 buttons that load 96 different movie clips. When user clicks each button (not simple button) it's corresponding movie clip loads from library to stage and plays. if another movie clip is already playing,  it is removed so the other one can load and play. 
245
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 03, 2017 Nov 03, 2017

you need an object in your library with class name = Saf_Jan01_25.

if you think you do, and clicking that button has no effect, embed a screenshot showing that object's symbol properties panel:

Screenshot - 11_3_2017 , 10_54_02 AM.png

Translate
Community Expert ,
Nov 03, 2017 Nov 03, 2017

do you have a question?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 03, 2017 Nov 03, 2017

I'm hoping you can help me with my dilemma. I have 96 buttons that when one is clicked it load its corresponding movie clip from the library to stage and plays. If another movie clip is already playing,  it is removed and the other one can load and play.  The AS3 script below but there seems to be something wrong because no movie loads when button is clicked and also I'm not sure how to write the code to remove a movie if one is playing prior to a button click.  Any help would be greatly appreciated.  Thank you

btn_SAFER_25_1Jan.buttonMode = true;

btn_SAFER_25_1Jan.addEventListener(MouseEvent.CLICK, fl_MouseOverHandler2);

function fl_MouseOverHandler2 (e:MouseEvent):void {

var saf_Jan01_25:Saf_Jan01_25 = new Saf_Jan01_25();

this.addChild(saf_Jan01_25); saf_Jan01_25.x = 394;//sets the x position

saf_Jan01_25.y = 344;//sets the y position }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 03, 2017 Nov 03, 2017
LATEST

you need an object in your library with class name = Saf_Jan01_25.

if you think you do, and clicking that button has no effect, embed a screenshot showing that object's symbol properties panel:

Screenshot - 11_3_2017 , 10_54_02 AM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines