View unanswered posts | View active topics



Reply to topic  [ 1 post ] 
Problems compiling AS3 Code - please can anybody help? 
Author Message
Member

Joined: Thu Jun 19, 2014 10:36 am
Posts: 1
Reply with quote
Hi,

Please can anybode help me with this problem? I have FlashDelevop Version 4 and Flex SDK 4.6.0. For example I tried this code - following. Adobe Flash Player opens and I always have a white screen on the Adobe flash player. What is wrong?
I'm not sure what the problem is, if it is the code or the compiler installed not right.

Thanks in advance

import flash.events.MouseEvent;

stop();
next_btn.addEventListener(MouseEvent.CLICK, goNext);
prev_btn.addEventListener(MouseEvent.CLICK, goPrev);


function goNext(evt:MouseEvent):void
{
if (currentFrame == currentScene.numFrames && scenes[scenes.length - 1].name == currentScene.name)
{
gotoAndStop(1, scenes[0].name);
}
else
{
nextFrame();
}
}


function goPrev(evt:MouseEvent):void
{
if (currentFrame == 1  && scenes[0].name == currentScene.name)
{
gotoAndStop(totalFrames);
}
else
{
prevFrame();
}
}


Thu Jun 19, 2014 10:56 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.