11

Is there an alternative ActionScript 3 lightweight framework out there similar to Flex, but not as huge. Flex is fairly large, and SWF's being no less than 150Kb big, I'm just thinking it must be possible to get something that have smaller SWF files as an end result.

I've come accross AS Wing, and was curious if there's more.

Thanks for the replies in advance!

Josh
  • 10,961
  • 11
  • 65
  • 108
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157

9 Answers9

6

This may be what you're looking for :

http://code.google.com/p/flit/

I haven't tested it yet so I can't really say if it's worth it or not

Florian F
  • 8,822
  • 4
  • 37
  • 50
  • 1
    I have wrote major parts of this framework. It's definitely worth at least looking at the code from the samples. This website is written in FLit - http://oxleygin.com/ - this is from 2009. Another good sample of FLit in action is the new website of my company - http://obecto.com/ - this is from 2011 – Vladimir Tsvetkov Oct 03 '11 at 07:45
5

You can change some settings when compiling to reduce the size of your .swf. Here is a blog posting showing how.: Reduce Flex 3 File Size. Basically you compile the sdk into a separate .swf that gets cached by the flash player.

Shua
  • 1,315
  • 8
  • 10
  • As of Flex 4 Adobe is hosting these. They are cached by the Flash Player too, so even if a user clears their cache the framework remains cached. – Joel Hooks Jul 09 '09 at 23:33
5

http://www.openlaszlo.org/ is an open source alternative that can generate swf8, dhtml, or swf9.

  • 1
    +1: I didn't think much of it until I actually tried it, but it's a great framework. Not as good as Flex yet (IMO), but if you don't need all the bloat, OpenLaszlo is definitely a great alternative. – Sasha Chedygov Jul 08 '09 at 20:50
1

The GraniteDS framework provides a clean-room re-implementation of the MXML->SWF compiler, and it may possibly give you options to generate smaller SWF files. It can also do that compilation on the fly, which is pretty cool.

skaffman
  • 398,947
  • 96
  • 818
  • 769
1

Why don't just use Flash? You can dump your logic in AS class file. Swf from Flash can be pretty small, can down to 8kb, or even smaller.

Correct me if I am wrong, I see Flex as a Flash with XML Layout Manager (which can position components well during resizing). If you are willing to spend time on designing a Layout Manager for Flash, i think Flash is a good choice. Flash supports AS3, pureMVC.

Of course, Flex is free :)

janetsmith
  • 8,562
  • 11
  • 58
  • 76
  • Flex supplies a lot more than just the visual components. The declarative layout can be a real timesaver, but there are a lot of other aspects to the Flex toolkit. You can also use the Flex SDK to compile straight AS3 without the overhead of the actual Flex Framework. Flash, as of CS4 is actually using the Flex SDK (mxmlc) to compile also. I wouldn't be surprised if it gets rebranded Flash SDK soon. – Joel Hooks Jul 09 '09 at 23:37
1

Another component libary:

AS Data Provider Controls is a new set of standard UI components built with plain ActionScript. Open source.

Edit: self-plug

Kaken Bok
  • 3,395
  • 1
  • 19
  • 21
1

check out http://www.weaverfx.com/index.php?option=com_content&view=article&id=13&Itemid=6 they claim that applications built with there framework are of the tune of 20 to 100Kb

frank
  • 11
  • 1
1

AS3Commons UI Invalidation & LifeCycle provides an entire component life cycle framework similiar to that of Flex but written in pure AS3 an hence small and independent. If you are about to create your own components you should give this library a try.

Edit: self-plug

Kaken Bok
  • 3,395
  • 1
  • 19
  • 21
0

Thanks for all the helpful replies. I'm busy experimenting a bit with an ActionScript 3 project in Flex Builder, and I think I might just create the components I need myself and make them modular for re-use in other projects.

That way, I can include exactly and only that what my application is using, and not worry about an additional x00000Kb of data that gets dragged along either as an RSL, or merged in my code.

josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157