+ Reply to Thread
Results 1 to 4 of 4

as3 class loading to the compiled swf PROBLEM

This is a discussion on as3 class loading to the compiled swf PROBLEM within the Actionscript 3.0 newbies forums, part of the Flash English category; Hi! i have a problem with loading external *.as scripts into my compiled swf. if i compile it from new ...

  1. #1
    Junior Member Settled In tiborio is on a distinguished road
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0

    as3 class loading to the compiled swf PROBLEM

    Hi!
    i have a problem with loading external *.as scripts into my compiled swf.
    if i compile it from new everything is fine, however if i change something in the *.as and save it, the next time i load the swf i wont see any difference to the functionality of the swf.
    recompiling the swf solves the problem. Do i have to recompile the swf every time i change something in the external file?

    because if yes i don't really see the point of using external scripts, i might just do the code on the timeline.

    Please help me out with this, i've been banging my head for a week now on this problem.

    in case if You know a link to any documentation how the swf handles external scripts i would really appreciate it!

    thanks!

    .galo desi

  2. #2
    Junior Member Settled In CosmicHighway is on a distinguished road
    Join Date
    Aug 2011
    Posts
    5
    Rep Power
    0

    Re: as3 class loading to the compiled swf PROBLEM

    Hi tiborio,

    When you change the .as file instead of running the .swf, you can just test the movie. This can be found under control -> test movie -> test (shortcut: ctrl + enter). Make sure you save all files you make changes to (both the .as and .fla).

    The reason for putting code in the .as file is for readability. You have all your code in one place and it is easier to find and correct errors. Otherwise you may need to incorporate the code into several different frames which will just add to the confusion.

    Hope this helps.

  3. #3
    Junior Member Settled In tiborio is on a distinguished road
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0

    Re: as3 class loading to the compiled swf PROBLEM

    Hi CosmicHighway!

    I'm aware of this, however my problem is not while i'm testing it(compiling) but when i put the swf to the server and than later i change the code of the external .as. if i change the .as it won't load the changes to the swf until i recompile. that is my problem. that's why i was asking if i have to recompile the swf all the time i make changes to the .as.

    thanks for trying to help.

  4. #4
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,762
    Rep Power
    11

    Re: as3 class loading to the compiled swf PROBLEM

    Quote Originally Posted by tiborio View Post
    Hi CosmicHighway!

    i was asking if i have to recompile the swf all the time i make changes to the .as.
    Hi,
    yes!

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 03-11-10, 08:59
  2. Class problem
    By dimid in forum Flash English
    Replies: 2
    Last Post: 18-10-09, 09:09
  3. Class for loading several images in containers
    By xoxo in forum Actionscript 3.0 newbies
    Replies: 0
    Last Post: 13-12-08, 20:24
  4. Problem with a hitch in loading xml-content
    By alxpalm in forum Actionscript 3.0 newbies
    Replies: 1
    Last Post: 27-10-08, 13:26
  5. Problem with loading external swf
    By madmad in forum Actionscript 3.0 newbies
    Replies: 2
    Last Post: 28-05-08, 20:36

Tags for this Thread

Bookmarks

Posting Permissions

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