Be a Supporter!

Submitting Swf's On Ng & Classes

  • 159 Views
  • 5 Replies
New Topic Respond to this Topic
Tired-Maniac
Tired-Maniac
  • Member since: Jul. 7, 2011
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Submitting Swf's On Ng & Classes 2014-02-23 19:19:33 Reply

Been reading up on some AS3 recently and i've come to learn that classes are probably the most important thing when writing code in AS3, as they are fundamentally the building blocks for everything that's going to be programmed.

It's weird though because custom classes are saved as ".as" files in the same directory as the fla/swf, and therefore because these classes are the building blocks of the program it's going to need these ".as" files to run everything properly, because that's what the .swf is referring to so the code will function properly.

Thing is, you can't upload .as class files onto NG, just the .swf's so how do people who have created .as class files upload there shit without it screwing up? I know the question might be silly for some, but i'm really new to this stuff, thanks.


My sig? I have no idea.

BBS Signature
Etherblood
Etherblood
  • Member since: Apr. 14, 2013
  • Offline.
Forum Stats
Member
Level 12
Game Developer
Response to Submitting Swf's On Ng & Classes 2014-02-23 20:23:45 Reply

At 2/23/14 07:19 PM, Tired-Maniac wrote: Thing is, you can't upload .as class files onto NG, just the .swf's so how do people who have created .as class files upload there shit without it screwing up? I know the question might be silly for some, but i'm really new to this stuff, thanks.

The .swf file contains 'copies' of all your classes after compiling, the .as files are only used by the editor-program.
Try dragging/copying you .swf out of your project-folder and running it, it should work without all the .as files.

milchreis
milchreis
  • Member since: Jan. 11, 2008
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to Submitting Swf's On Ng & Classes 2014-02-23 20:25:56 Reply

The .as files are compiled. They are not required to run the .SWF file.

Tired-Maniac
Tired-Maniac
  • Member since: Jul. 7, 2011
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to Submitting Swf's On Ng & Classes 2014-02-23 20:32:54 Reply

So even if I was to upload a single .swf to ng, that used a whole bunch of .as files, just uploading that single file would still make everything work?


My sig? I have no idea.

BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to Submitting Swf's On Ng & Classes 2014-02-23 20:36:36 Reply

At 2/23/14 08:32 PM, Tired-Maniac wrote: So even if I was to upload a single .swf to ng, that used a whole bunch of .as files, just uploading that single file would still make everything work?

Yes, they don't give you options to upload anything else anyway.

Tired-Maniac
Tired-Maniac
  • Member since: Jul. 7, 2011
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to Submitting Swf's On Ng & Classes 2014-02-23 21:18:55 Reply

At 2/23/14 08:36 PM, MSGhero wrote:
At 2/23/14 08:32 PM, Tired-Maniac wrote: So even if I was to upload a single .swf to ng, that used a whole bunch of .as files, just uploading that single file would still make everything work?
Yes, they don't give you options to upload anything else anyway.

Thanks!


My sig? I have no idea.

BBS Signature