A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: #include refuses to work

  1. #1
    Developer
    Join Date
    Apr 2007
    Location
    UK
    Posts
    324

    #include refuses to work

    geezers!

    Has #include been mangled for the Flash 9 preview?

    I cant use it at all. Every time I build it says there is a syntax error and this :
    ReferenceError: Error #1065: Variable Timeline0_f054bee8b6882e459af1757d996988f7 is not defined.

    Why can't I use includes!? I can use them no problem in Flex. I need them!!!!

  2. #2
    Actionscript 3, postproduction georgecalgary's Avatar
    Join Date
    Jun 2005
    Location
    Toronto
    Posts
    229
    It should could. Are you sure it's the right way?

    #include "[path]filename.as"

  3. #3
    Actionscript 3, postproduction georgecalgary's Avatar
    Join Date
    Jun 2005
    Location
    Toronto
    Posts
    229
    Sorry. It removed for AS3.

    #include Removed

  4. #4
    Developer
    Join Date
    Apr 2007
    Location
    UK
    Posts
    324
    Is there no way I can include external as files then without using classes?

  5. #5
    Developer
    Join Date
    Apr 2007
    Location
    UK
    Posts
    324
    Ah, scratch that - I see that this time around the hash need to be removed

    e.g
    include "C:\\test.as"

    What a stupid decision. I thought they were trying to make it more like a serious programming language like C? I can't think of any reason why they would change this.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center