"Assertion Failed" in function 'assert','addeventlistener','dispatchevent'

hi all,

my name is adi, i have a problem with corona sdk about error in my source code,error message is “Assertion Failed”, i show the picture about error message in my corona sdk :

 

source code error halaman1-2.lua in line 222 :

[lua]

– Project: button.png

– Description: 

– Version: 1.0

– Managed with http://CoronaProjectManager.com

– Copyright 2013 . All Rights Reserved.

– 

– Project: TA

– Description: 

– Version: 1.0

– Managed with http://CoronaProjectManager.com

– Copyright 2013 . All Rights Reserved.

– 

local storyboard = require ( “storyboard” )

local scene = storyboard.newScene()

local widget = require ( “widget-v1” )

local sprite = require(“sprite”)

local play1

local latar

local kura

local kuraSheet

local kuraSet

local kuraAnim


local narasi

local narasi1


local kelinci

local kelinciSheet

local kelinciSet


local lebah

local lebahSheet

local lebahSet


local tupai

local tupaiSheet

local tupaiSet


local berang

local berangSheet

local berangSet


local bendera

–local arrowSprite

–local arrow

–local arrowSheet

–local arrowSpriteSet


–local arrowSprite1

–local arrow1

–local arrowSheet1

–local arrowSpriteSet1


local soundberang = audio.loadSound ( “kelinci-ketawa.mp3” )

local tapberang

local function listener(event)

    

    if event.target.name == “bendera1” and event.phase == “began” then

        transition.to(bendera,{time = 1000,alpha = 0})

        transition.to ( kura, {time = 8000,x = 1300, y = 400} )

        transition.to ( kelinci, {time = 3000,x = 1300 , y = 500} )

        kura:prepare(“kuraGerak”)

        kura:play()

        kelinci:prepare(“Kelincijalan”)    

        kelinci:play()

        

    end

    --if event.target.name==“kelinci” and event.phase==“began” then

        —tapKelinci = audio.play(soundKelinci)

        --transition.to(arrow, { time = 1000, alpha = 0 })

        --transition.to(arrow1, { time = 1000, alpha = 0 })

        --kuraAnim = transition.to ( kelinci, {time = 3000,x = 1300 , y = 500} )

        --kelinci:prepare(“Kelincijalan”)    

        --kelinci:play()

    --end

    --if event.target.name==“kura” and event.phase==“began” then

        --tapKura = audio.play(soundkura)

        --transition.to(arrow, { time = 1000, alpha = 0 })

        --transition.to(arrow1, { time = 1000, alpha = 0 })

        --transition.to ( kura, {time = 8000,x = 1300, y = 400} )

        --kura:prepare(“kuraGerak”)

        --kura:play()

    

    --end

    if event.target.name==“berang” and event.phase==“began” then

        tapberang = audio.play(soundberang)

    end

end

local function narasi(event)

    if event.target.name == “tekan” and event.phase == “began” then

        narasi = audio.loadStream ( “narator2.mp3”  );

        narasi1 = audio.play ( narasi, { channel = 3 } );

        return true

    end

end

local function Tombolprev(event)

    if event.phase == “release” then

        storyboard.gotoScene( “halaman1-1”, “fade”, 800  )

        return true

    end

end

local function tombolnext(event)

    if event.phase == “release” then

        storyboard.gotoScene(“halaman1-7”,“fade”,800)

        return true

    end

end

function scene:createScene( event )

        halaman1Scene = self.view

        latar = display.newImage (“background-layer-1.png”);

        halaman1Scene:insert(latar);

        local tabelCerita = display.newImage( “kotakCerita2.png” );

    tabelCerita.y =90;

    tabelCerita.x = 512;

    halaman1Scene:insert(tabelCerita);

    play1 = display.newImage(“tombolPlay.png”);

        play1.x =880;

        play1.y = 170;

        play1.name = “tekan”;

        halaman1Scene:insert(play1);


        kuraSheet = sprite.newSpriteSheet (“sprite-kura2.png”,134,158)

        kuraSet = sprite.newSpriteSet ( kuraSheet, 1, 10 )

        sprite.add(kuraSet,“kuraGerak”,1,10,1000,0)

        kura = sprite.newSprite(kuraSet)

        kura.x = 480;

        kura.y = 400;

        kura.name = “kura”

        halaman1Scene:insert(kura);

        -----------------------------------------------------

        berangSheet = sprite.newSpriteSheet ( “sprite-berang.png”,   164, 236 )

        berangSet = sprite.newSpriteSet ( berangSheet, 1, 8 )

        sprite.add( berangSet, “mulutBerang”, 1, 8, 1000, 0 )

        berang = sprite.newSprite(berangSet)

        berang.x = 250;

        berang.y = 400;

        berang.name = “berang”

        halaman1Scene:insert(berang);

        -------------------------------------

        tupaiSheet = sprite.newSpriteSheet ( “sprite-tupai.png”,   180, 151 )

        tupaiSet = sprite.newSpriteSet ( tupaiSheet, 1, 8 )

        sprite.add( tupaiSet, “ekorTupai”, 1, 8, 1000, 0 )

        tupai = sprite.newSprite(tupaiSet)

        tupai.x = 200;

        tupai.y = 500;

        halaman1Scene:insert(tupai);

        

        

        

        ----------------------------------------

        kelinciSheet = sprite.newSpriteSheet ( “sprite-kelinci.png”,   168, 214 )

        kelinciSet = sprite.newSpriteSet ( kelinciSheet, 1, 6 )

        sprite.add(kelinciSet,“Kelincijalan”,1,6,1000,0)

        kelinci = sprite.newSprite(kelinciSet)

        kelinci.x = 370;

        kelinci.y = 500;

        kelinci.name = “kelinci”

        halaman1Scene:insert(kelinci);

        ------------------------------------------------------

        lebahSheet = sprite.newSpriteSheet ( “sprite-lebah.png”,   71, 79 )

        lebahSet = sprite.newSpriteSet ( lebahSheet, 1, 3 )

        sprite.add( lebahSet, “lebahTerbang”, 1, 3, 1000, 0 )

        lebah = sprite.newSprite(lebahSet)

        lebah.x = 400;

        lebah.y = 200;

        halaman1Scene:insert(lebah);

        

        ------------------------------------------------------

        

        --arrowSheet = sprite.newSpriteSheet(“arrowSprites.png”, 85, 141)

    --arrowSpriteSet = sprite.newSpriteSet(arrowSheet, 1, 12)

    --sprite.add(arrowSpriteSet, “ARAH”, 1, 12, 600, 0)

    --arrow = sprite.newSprite(arrowSpriteSet)

    --arrow.x = 357

    --arrow.y = 300

    --arrow.name = “arah”

    --halaman1Scene:insert(arrow);

        ----------------------------------------------------

        --arrowSheet1 = sprite.newSpriteSheet(“arrowSprites.png”, 85, 141)

    --arrowSpriteSet1 = sprite.newSpriteSet(arrowSheet1, 1, 12)

    --sprite.add(arrowSpriteSet1, “ARAH”, 1, 12, 600, 0)

    --arrow1 = sprite.newSprite(arrowSpriteSet1)

    --arrow1.x = 450

    --arrow1.y = 250

    --arrow1.name = “arah”

    --halaman1Scene:insert(arrow1);

        

        bendera = display.newImage(“bendera1.png”);

        bendera.x = 512

        bendera.y = 350

        bendera.name = “bendera1”

        halaman1Scene:insert(bendera);

        ----------------------------------------------------

        local tabBar = display.newImage (“background-layer-2.png”);

        tabBar.y = 550;

        halaman1Scene:insert(tabBar);

    

end

function scene:enterScene( event )

    local Halaman1EnterScene = self.view

    storyboard.purgeScene( “halaman1-1” )

    – kelinci:addEventListener( “touch”, listener )

   –  Halaman1EnterScene:insert(kelinci)

   –  kura:addEventListener( “touch”, listener )

     bendera:addEventListener ( “touch”, listener )

     berang:addEventListener ( “touch”, listener )

     play1:addEventListener ( “touch”, narasi )

    – Halaman1EnterScene:insert(kura)

     --kelinci:prepare(“Kelincijalan”)    

     --kelinci:play()

    – kura:prepare(“kuraGerak”)

     --kura:play()

    ------------------------------------------

    storyboard.purgeScene( “halaman1-1”)

    local tomPrev = widget.newButton{

            default = “sample4.png”,

            over = “sample44.png”,

        onRelease = Tombolprev;

        }

    tomPrev.y = 300;

    tomPrev.x = 40;

    Halaman1EnterScene:insert(tomPrev);

    local tomNext = widget.newButton {

        default = “sample3.png”,

        over = “sample33.png”,

        onRelease = tombolnext;

        } 

    tomNext.x = 982;

    tomNext.y = 300;

    Halaman1EnterScene:insert(tomNext);

    ----------------------

    --arrow:prepare(“ARAH”)

   – arrow:play()

    

   – arrow1:prepare(“ARAH”)

   – arrow1:play()

    --Halaman1EnterScene:insert(arrow)

    –

     lebah:prepare(“lebahTerbang”)

     lebah:play()

     -------------------------

     tupai:prepare(“ekorTupai”)

     tupai:play()

     ----------------------

     berang:prepare(“mulutBerang”)

     berang:play()

end

function scene:exitScene( event )

local group = self.view

    display.remove(widget);

   kelinci:removeEventListener( “touch”, kelinci )

    kelinci:prepare(“Kelincijalan”)

   kura:removeEventListener( “touch”, kura )

   

   if gerakAnim then

        transition.cancel(gerakAnim)

    end

    kura:prepare(“kuraGerak”)

    kura.x = 480

    kura.y = 400

    

    audio.stop ( narasi1 )

end

function scene:destroyScene( event )

        local group = self.view

kelinciSheet:dispose()

 kuraSheet:dispose()

end

scene:addEventListener( “createScene”, scene )

scene:addEventListener( “enterScene”, scene )

scene:addEventListener( “exitScene”, scene )

scene:addEventListener( “destroyScene”, scene )

return scene

[/lua]

how do I solve this problem, please help … hehe

thank’s before

http://marsstudio.org

up up up

up up up