Note that there are some explanatory texts on larger screens.

plurals
  1. PORuntime error wirth FLASH CS5
    primarykey
    data
    text
    <p>I'm getting a runtime error when I reach frame three. however, the runtime error says it's on frame2:6. <strong>The code for frame 3 is:</strong></p> <pre><code>stop(); buy_cups.addEventListener(MouseEvent.CLICK, buycups); function buycups(event:MouseEvent):void{ cash1 = cash1 - 0.25; cups=cups+5; } buy_ice.addEventListener(MouseEvent.CLICK, buyice); function buyice(event:MouseEvent):void{ cash1 = cash1 - 0.25; ice=ice+1; } buy_lemons.addEventListener(MouseEvent.CLICK, buylemons); function buylemons(event:MouseEvent):void{ cash1 = cash1 - 1.25; lemons1=lemons1 + 2; } buy_straws.addEventListener(MouseEvent.CLICK, buystraws); function buystraws(event:MouseEvent):void{ cash1 = cash1 - 0.25; straws=straws+100; } </code></pre> <p><strong>The code for frame 2 is:</strong></p> <pre><code>stop(); //stand.addEventListener(MouseEvent.CLICK, check); addEventListener(Event.ENTER_FRAME, check); function check(ev : Event) : void { cash.text.text = cash1; storage_count.text.text = storage1; lemons_count.text.text = lemons1; cups_count.text.text = cups; straws_count.text.text = straws; ice_count.text.text = ice; } shop.addEventListener(MouseEvent.MOUSE_OVER, over_shop); function over_shop(event:MouseEvent):void{ shop.gotoAndStop(2); } shop.addEventListener(MouseEvent.CLICK, shop_now); function shop_now(event:MouseEvent):void{ gotoAndStop(3); } </code></pre> <p><strong>The error I receive is:</strong> Warning: No libraries were linked as Runtime Shared Libraries (RSLs) because of your publish settings: AIR Android [SWF] Lemonade-boy.swf - 942698 bytes after decompression TypeError: Error #1009: Cannot access a property or method of a null object reference. at Lemonade_fla::MainTimeline/check()[Lemonade_fla.MainTimeline::frame2:6]</p> <p>If ANYONE has any idea of what may be, or is, causing this please let me know. Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload