Skip to main content
buksori
Inspiring
October 7, 2020
Answered

Anyone help me please..

  • October 7, 2020
  • 4 replies
  • 1219 views

I can't solve this problem. I hope anyone will help me.

 

In the below attached fla(canvas) file, there are 3 layers and many key frames.

After publishing this fla file, I can't open html file on Chrome Browser or Internet Explorer.

I want to know why I can't open this html file.

Help me please.

 

http://www.buksori.net/0924/0924.fla 

    This topic has been closed for replies.
    Correct answer Young Churl Kwon

    만드신 앱은 작동하는데는 문제가 없지만  제 개인적으로 개선할 점이 라고 생각이 드는 것은 같은 모양의 버튼이 여러곳에 중복사용되었다는 것입니다.

     

    같은 모양의 심볼을 여러 곳에 반복하여 사용할 수 있는 것은 애니메이트에서 당연한 일입니다. 그러나 조건문등을 이용하여 하나의 버튼이 여러가지 일을 수행 할 수 있도록 수정할 수 있을 것입니다.

     

    예) 아래에 한가지 방법을 예로 들어 보겠습니다.
    var count = 0;
    var position = ["Q0", "Q1", "Q2", "Q3", "Q4"]; //Label명을 배열에 두고 버튼이 눌렸을 때 카운트를 이용하여 배열을 사용
    _this.PBtn.on('click', function(){
    _this.gotoAndPlay(position[count]);
    if (count < position.length) count = count + 1; else count = 0;
    });

     

    버튼에 액션을 줄 때마다 포함되는 var _this = this; 는 전역변수로 선언한 것이기 때문에 프레임 1의 스크립트의 맨위에 하나만 있으면 됩니다. 그 뒤에 있는 var _this = this; 는 모두 지우시면 됩니다. 


    정지버튼은 정지하게 하고, 이전, 다음 버튼은 count = count - 1, count = count + 1로 카운트를 바꾸어 주도록 하면 될 것 같아요.

    4 replies

    Colin Holgate
    Inspiring
    October 8, 2020

    You are missing a quote in this line:

    _this.gotoAndStop('Q05);

    It should be:

    _this.gotoAndStop('Q05');
    buksori
    buksoriAuthor
    Inspiring
    October 8, 2020

    Thank you for your help.

    Thank you.

     

    I will reproduce my file as to your help.

    Community Expert
    October 7, 2020

    HTML files won't open up in adobe animate. You need to open it up in Dreamweaver or another HTML editor.

    Legend
    October 7, 2020

    ???? He says he's trying to open it in Chrome/Internet Explorer, not Animate.

    Young Churl Kwon
    Inspiring
    October 7, 2020

    From what I've looked at, there is a problem with the button names you used in the music listening app you're going to create.

     

    I think your app has the intent to use buttons to move back and forth between labeled segments. However, the cause of the error is that the buttons used in the first keyframe of all labels have the same name.

    The same symbol can be used repeatedly in several places, but the name must be different. If you use one symbol in several places and all of them have the same name, Animate will not be able to distinguish them, and an error will prevent the app from running.

     

    In these apps, you only need to use the Play button, Stop button, Previous button, and Next button one by one. It's a good idea to think of it as a way of finding a section of music using it. Depending on the number of times the button is pressed, it seems that you can go to the frame where you want it.

    buksori
    buksoriAuthor
    Inspiring
    October 8, 2020

    안녕하세요?
    조언에 감사드립니다. 이제까지 Flash Program으로 제작을 해오다 내년부터 swf 파일은 인터넷상에서 사용불가이기 때문에
    짧은 실력으로(action script와 java script 에서는 문외한) 뭔가를 제작하려니 모든게 어려울 뿐입니다.

    각각의 key frame에 있는 instance의 이름을 다르게 바꾸고 action script에는 그에 맞추었습니다.

    var _this = this;
    _this.PBtn01.on('click', function(){
    _this.play();
    });

    var _this = this;
    _this.SBtn01.on('click', function(){
    _this.stop();
    });

    var _this = this;
    _this.Previous01.on('click', function(){
    _this.gotoAndStop('Start');
    });

    var _this = this;
    _this.Next01.on('click', function(){
    _this.gotoAndStop('Q02');
    });

     

    http://www.buksori.net/0924/0925.html 

    http://www.buksori.net/0924/092.fla

     

    저는 Animate가 timeline에 다수의 key frame과 다수의 button을 배치하면 인식을 못하는게 아닌가?하는 생각이 듭니다.

    새로 첨부한 Animate 파일의 Action script에 어떤 문제가 있는지 한번만 살펴주시면 감사하겠습니다.
    주변에 질문할 수 있는 사람이 전혀 없습니다.
    저는 경남 밀양에서 영어교사로 근무하는 한진교라는 사람입니다.
    감사합니다.

    buksori
    buksoriAuthor
    Inspiring
    October 8, 2020

    http://www.buksori.net/0924/0925.html
    http://www.buksori.net/0924/0925.fla

     

    주소가 잘못 링크되어 새로 올립니다.

    Legend
    October 7, 2020

    You're going to have to be a lot more specific than "can't open".

    buksori
    buksoriAuthor
    Inspiring
    October 7, 2020

    I can't open 0924.html, published by 0924.fla

     

    http://www.buksori.net/0924/0924.html