Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-04-2008, 01:39 PM   PM User | #1
gani
Regular Coder

 
Join Date: Nov 2008
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
gani is an unknown quantity at this point
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 07:14 PM..
gani is offline   Reply With Quote
Old 12-05-2008, 11:53 AM   PM User | #2
gani
Regular Coder

 
Join Date: Nov 2008
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
gani is an unknown quantity at this point
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 !
gani is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:41 AM.


Advertisement
Log in to turn off these ads.