Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2008
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts

    1046 type not a compile-time constant

    my fla is as follows

    Code:
    import net.quip.sound.CuePointEvent;
    
    function onCuePoint(event:CuePointEvent):void {
     play();
    }



    actionscript file like this
    Code:
    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
    Last edited by gani; 12-04-2008 at 08:14 PM.

  • #2
    Regular Coder
    Join Date
    Nov 2008
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    doh !


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •