Skip to main content
harleythesiren
Participant
September 18, 2022
Question

Blank screen

  • September 18, 2022
  • 1 reply
  • 409 views

Hello! 

I am a new student for Adobe animate and have been looking everywhere for answers! so if you guys can help me you'd be a lifesaver! So I am making an advertisement for a class it is for the new Legend of Zelda game I have the logo on a different layer and have it on hit I have also published the setting for Image asset (per the professor's instructions) and when I tried putting the code snippet for it to link it to a url for the nintendo website it is a blank screen I have set it up as a button and as a movie to try to see if it would work and nothing please help! 

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    September 18, 2022

    when your logo is either a button or movieclip, you needed to assign it an instance name (in the properties) panel.  then you need to assign code (as3 or javascript/easeljs) to have it respond to mouse events.

     

    so:

     

    1. html5 or as3?

    2. button or movieclip?

    3. what's the logo's instance name

    4. what's your code?

    5. what's debugging (compiler errors for as3, browser developer console for html5) show?

    harleythesiren
    Participant
    September 19, 2022

    It is is html5

    it is a button to link to the nintendo website or supposed to 

    it says it needs an instance name unsure how to fix 

    here is the code: 


    /* Click to Go to Web Page
    Clicking on the specified symbol instance loads the URL in a new browser window.

    Instructions:
    1. Replace http://www.adobe.com with the desired URL address.
    Keep the quotation marks ("").
    */

    button_3.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_3);

    function fl_ClickToGoToWebPage_3(event:MouseEvent):void
    {
    navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
    }

    and this is what shows on the output 

    WARNINGS:
    Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (2)
    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.

     

     

    kglad
    Community Expert
    Community Expert
    September 19, 2022

    please answer #5