PDA

View Full Version : 1046 type not a compile-time constant


gani
12-04-2008, 01:39 PM
my fla is as follows

import net.quip.sound.CuePointEvent;

function onCuePoint(event:CuePointEvent):void {
play();
}




actionscript file like this
package net.quip.sound
{
import flash.events.Event;

public class CuePointEvent extends Event
{
// PROPERTIES
public static const CUE_POINT:String = "cuePoint";
public var name:String;
public var time:uint;

// CONSTRUCTOR
public function CuePointEvent(type:String, cuePointName:String, cuePointTime:uint, bubbles:Boolean = false, cancelable:Boolean = false)
{
super(type, bubbles, cancelable);
this.name = cuePointName;
this.time = cuePointTime;
}


}
}

i get this error
1046 type not a compile-time constant .....

i have searched high and low for this solution .... cant figure it out

Jeremy: This is from that long tutorial about curpoints that you suggested... they provided download files but i have no idea why i am getting errors even from the download files

gani
12-05-2008, 11:53 AM
nevermind.... solved

I had not saved the fla to its proper location. If you just try to save the swf to the right location you will get this error. The fla file must be saved there too :D:p

doh !