is there one too many curly's at the bottom?

On 12 Apr 2007 12:51:04 -0700, Brian Silveira <[EMAIL PROTECTED]>
wrote:

  This is the error I'm getting: "1037: Packages cannot be nested"....
What am I doing wrong

package yor.dc
{
import flash.display.MovieClip;
import flash.text.TextFormat;
import flash.events.MouseEvent;
import flash.events.Event;

[Embed(source="image/button-02.swf", symbol="dcbuttonsymbol")]
public class dcbuttonsymbol extends MovieClip
{

private static const LABEL_UP:String = "up";
private static const LABEL_OVER_ON:String = "over on";
private static const LABEL_OVER_OFF:String = "over
off";

private static const FRAME_OVER_ON_DONE:int = 20;
private static const FRAME_OVER_OFF_DONE:int = 29;


public var label_mc:MovieClip;

public function dcbuttonsymbol()
{
super();

addEventListener(MouseEvent.MOUSE_OVER,
onMouseOver);
addEventListener(MouseEvent.MOUSE_OUT,
onMouseOut);

stop();
}

public function setLabel(val:String):void
{

label_mc.label_txt.text = val.toUpperCase();
}

public function setEmbeddedFont(val:String):void
{


var _fmt:TextFormat = new TextFormat(val);
label_mc.label_txt.embedFonts = true;
label_mc.label_txt.setTextFormat(_fmt, 0,
label_mc.label_txt.text.length);
}

protected function onMouseOver(event:MouseEvent):void
{

gotoAndPlay(LABEL_OVER_ON);
addEventListener(Event.ENTER_FRAME,
onEnterFrame);
}

protected function onMouseOut(event:MouseEvent):void
{

gotoAndPlay(LABEL_OVER_OFF);
addEventListener(Event.ENTER_FRAME,
onEnterFrame);
}

protected function onEnterFrame(event:Event):void
{

if(currentFrame == FRAME_OVER_ON_DONE ||
currentFrame == FRAME_OVER_OFF_DONE)
{
stop();
removeEventListener
(Event.ENTER_FRAME, onEnterFrame);
}
}

}
}




--
Dominick Accattato, CTO
Infrared5 Inc.
www.newviewnetworks.com

Reply via email to