Not a single comment? Well, I’ll better stop developing this sh*t then
New Flow Framework examples
Some more Flow Framework examples. This time with 100% more scrollbars and scroll containers.
A few points of interest on this one: Try the text input on page two to see how layout is validated. Try and hold down the vertical scrollbar thumb on page 5. Scroll containers validate their context correctly even though the whole container is resizing.
13 Comments
First examples of Flow
Straight from the workbench, here are a few examples what the Flow Framework will enable developers to do. Nothing spectacular and very much work in progress, but I wanted to share this as early on as possible. Jump right in and check out the source on Github.
Also, check out Sofanatics, the first app that has been built with Flow. To get timely updates on the progress of the framework, follow me on Twitter.
7 Comments
-
-
Looks promising. Maybe you’ll team up with guy that creates as-ui-commons* and use some parts of it. Framework dev will be faster
-
Sure thing, I’ll look into AS3Commons. Thanks for the tip.
-
-
This is really nice, I think is pretty useful at the time to develop in iPhone, what do you think?
-
Yeah, Flow will be excellent for iPhone dev due to it’s speed!
-
-
Is there a mobile example of using Flow ?
Which are the steps to setup a mobile project with Flow, and publish to .apk ?
Thanks,
-
Haven’t made an example, but setting one up should be pretty straight forward. Just create a mobile project in Flex and copy the source code from the example over and add the Flow src to your source paths.
-
Flow Framework status
Flow (the fast and lightweight layout-, effects-, graphics-, data-binding-framework) is now up on GitHub. There’s no documentation, no examples, even no readme file, so it’s probably only interesting if you… hmm… no, there probably is no reason why you would want to dig through the source. Just wanted to let you know, though. Stay tuned.
2 Comments
-
Sounds really interesting. Hope there will be some examples soon..
What exactly didn’t you like about ReFlex?
Creating a lite Flex framework from scratch
A while ago, we at Sofanatics started to put together our new real-time sports event client for the Flash Player. We knew from the beginning that we didn’t want to go with Flex. While it’s a great framework for building RIA’s, it’s too monolithic and too slow for our needs, as we knew that we would need every CPU cycle to create a visually stunning application with lots of data flying around.
However, I still wanted to use many of the features that make developing with Flex so much faster than building out an app in pure ActionScript. In no particular order, these features are:
- MXML. Declarative programming is one big time-saver.
- Contraint-based layout. Our interface scales with the browser. Without a good layout-framework, putting the interface together would require a lot of extra effort.
- Data-binding. Once you hook up your data via data-binding, you swear never to go back again.
- States. Coupled with declarative layout, states provide a fast way of putting together the visual representation layer of the app.
- Transitions & Effects. I’m a sucker for smooth transitions in UI’s
- Declarative graphics. Declaring shapes, fills and borders in MXML is just cool.
In addition to these Flex-based features we had the following requirements
- Be fast. That’s a no-brainer.
- Be small. The Flex framework takes around 300kb without any components. I’ll target 30kb.
- Mix&match. You should be able to use any assets in your display list, not only instances derived from UIComponent, as is the case with Flex.
Searching the Internets, I did not find that many frameworks that supported these requirements. The best that I found was ReFlex, but I had some issues with it. While it provides most of the features I was looking for, I still found it to be a bit too slow. Most of the core code relies on anonymous objects, arrays and interfaces instead of using strongly typed parameters and vectors. I did not measure performance, but I’m sure its performance is not optimal. And although developing against interfaces makes your code more manageable, I opted for making my core code as fast as possible, even if it meant making it harder to read or modify (though creating components based on the framework should of course be easy and have a clean API).
So I decided to write my own. It currently powers all of the Sofanatics client’s UI, so check it out to see some of it’s features. Otherwise it’s still very much in the making. Once done, I’ll release it under the MIT license and put it up on Github. But even in its infancy, I do like it very much. It gives you a tenfold increase in productivity against building a UI via ActionScript, but gives the speed of a pure AS implementation.
Now all I need a great name for this cool little framework. Got any ideas?
14 Comments
-
Looking forward to see what u have implemented – tried something in the past – but did not get very far – have a GIT URL ?
-
FlexLite ? Looking forward to src/swc !
-
Called it µframework or µinterface. We feel it fit quite nicely to your project.
-
James, cool idea. Thanks. Altough that would make the package name a bit hard to write
-
-
Great point Tuomas. I think its the need of time, Flex empowers rapid development, but at the same time it’s too slow and heavy.
Also I think the post title itself can be a good name for this framework. “Flexlite”.
All the Best for further development, looking forward for it’s release
-
Tuomas, I guess you’ve already check out the project we did almost 2 years ago – FLit:
http://code.google.com/p/flit/
A brief introduction to FLit: http://npacemo.com/wordpress/2009/06/30/flit-a-light-weight-flex-for-flash-apps/
It does almost everything you target in your framework wish list, except for the declarative graphics. I see the value in having the ability to use graphic primitives in MXML – especially when you want to test a component without having to create its skin in Creative Suite.
Check it out. You might pick up some cool ideas. The overall size of the framework is 27K from Flex + approx. 40K from us.
Good luck and keep me updated on your progress,
Vladimir-
Hey Vladimir. Yeah, I’ve had a look at FLit years back. When I started developing “Flow” (that’s the official name now), I didn’t recall FLit. If I had, I probably wouldn’t have gone through all the trouble to create my own framework, cause FLit looks pretty good
-
-
-
[...] Creating a lite Flex framework from scratch [...]
-
[...] from the workbench, here are a few examples what the Flow Framework will enable developers to do. Nothing spectacular and very much work in progress, but I wanted to [...]
-
Brilliant work in regards to Flow framework. Just curious, how long would it take to develop something like this?
Thanks again for the effort.
-
It’s great effort by you….
Follow me on Twitter!
Other services
Lifestream
-
RT @robey: breaking news: ruby fanboys who think they invented coding are irritated by new wave of javascript fanboys who think they inv ...
-
Interesting read on the Flash roadmap. It's all about video and games going forward: http://t.co/NmDe5gya
-
Listened to 9 songs.
-
China to pass a billion mobile subscribers shortly. One-freakin-billion.
-
Did Adobe back down on their plans to remove Alchemy from 11.2 or why is all my stuff still working with it?
-
Listened to 62 songs.
-
RT @5tu: I just bought a $2 chocolate chip cookie. But your app is expensive.
-
Listened to 26 songs.
-
Prototype of the 7 inch iPad. #onlyinchina http://t.co/33j3zgXH
-
Listened to 47 songs.
-
Cool, my second patent approved: http://t.co/E02KrZli
-
Listened to 52 songs.
-
Totally missed this, Flash Player 11.2 removes Alchemy support, what the hell? http://t.co/F8g0mUyR
-
Oh sorry, was too quick to jump to conclusions. It's actually Flash Player running out of memory. hmm...
-
Oh damn, Resources.Load("Ships/Ship") causes Unity Flash to crash.
-
You know that the guys from Wowza are ex-Adobe employees, because all of their documentation is in f***ing PDF.
-
Oh, I was a bit optimistic before. Now I think I'll have to fix/hack about 2000 errors before my Unity app runs in Flash.
-
Ok, with serious hacking, got a portion of my Unity3D game compiled to Flash. Lots of cool trickery involved, should write a post about it…
-
Listened to 16 songs.
-
Got a Flash and a Unity client for my platform. Now I need a Flash-Unity hybrid that I can test in Unity but that'll also run in Flash.
-
Is there a way in AS3 to extend a class from a SWC package but still keep the same package & class name essentially overriding it?
-
I like it that you can just add your own ActionScript for all types not yet supported by the Unity3D compiler.
-
Browsing through the Unity3D AS3 classes and figuring out how I can hack them. Should be able to make it compile a swc instead of swf.
-
RT @jnbeck: Flex Developer Center | Adobe’s view of Flex and its commitments to Flex in the future; http://t.co/WQf0AVOs (via @SpoonProject)
-
RT @mattfraction: before twitter i just used to whisper weird shit to dogs
-
Listened to 3 songs.
-
Unity3.5 out. Thanks!
-
RT @mdowney: So - who else is completely sick of the constant updates from Adobe Reader Updater? How can a document viewer require so ma ...
-
Got a Unity3D scene from our designers with 68 lensflares. Now there's some serious flaring!
-
There's so little HTML in Cut the rope (the browser version) that you really can't argue that it's been made in HTML5.
-
Thought: wow, how did they get such smooth animations in Flash for the budget visualization. Then realized it was HTML.
-
Fantastic visualisation: Obama’s 2013 Budget Proposal - Interactive Feature - http://t.co/IK0ulq2n http://t.co/gSLaRuyW
-
Listened to 8 songs.
-
RT @AnttiIsokangas: Apple raises Whitney Houston album prices 30 mins after her death & delays people buying at original price http://t. ...
-
Listened to 22 songs.
-
I'm all for conserving energy, but it's 15°C at the office today.
-
I like Barak Obama, but not so sure anymore after listening to his 2012 Campaign Playlist;) http://t.co/prEX4Usy
-
Last year, Nokia outsourced 3000 Symbian devs to Accenture. Now Accenture is trying to get rid of them. Anyone surprised?
-
Whitney Houston is gone. R.I.P.
-
Fantastic stuff! Spray-on antenna revealed: http://t.co/iNvtyoCI
-
Creating - once again - a streaming video player. Still hating the NetConnection and NetStream API's.
-
Apparently someone on the Internet thinks Kim Jong-Un has been assassinated in Beijing. All I can say is that I was in Shanghai all week.
-
How the hell to build downloadable scenes in Unity? The docs are misleading and their examples don't work...
-
RT @stillgray: Fallout 3 and Skyrim Artist Adam Adamowicz passes away. RIP. http://t.co/HIUY3Iq3
-
Cool, @Unity3d's Asset Server caching is using NodeJS!
-
Only germans can name their company Powerflashers...
-
RT @thulme: Wow, Double Fine Adventure shatters @Kickstarter record with $1M raised in first 24 hrs: http://t.co/8jtWexNQ
-
RT @stefanrichter: This is gold. RT @wideawakewesley: Dad Shoots Teen's Laptop Over Facebook Post, Puts Video on YouTube - http://t.co/7 ...
-
Listened to 24 songs.
-
RT @taalto: Apple now worth more than Google and Microsoft combined http://t.co/a9Ka1k6A
-
.@unity3d And oh, saying that the "standard TEXT editor" is configurable really points out Unity's only weakness: Coding toolset.
-
I'm sorry, but Dropbox's website still looks like a quick prototype. Would expect more from a 10B$ company.
-
RT @TimOfLegend: $840,616... We could possibly hit a million dollars in the first 24 hours! If that happens... a lot of people are going ...
-
RT @isko: Apple worth more than Google, Goldman Sachs, General Motors, Ford, Starbucks and Boeing combined. http://t.co/Kfhv4yar
-
RT @mrdoob: Chrome 18 beta features a Software 3D renderer (SwiftShader) http://t.co/NdvJhfTo This should kill CanvasRenderer eventually ...
-
RT @jussil: I can't take this: games by the panelist are clones of FB games and now they are telling Zynga is back cloning them. Clone-C ...
-
Old but really nice. The size of the universe: http://t.co/HZOeK1tp. And soon someone is going to re-do this in HTML5, right?
-
Since the U.S. embassy is only tweeting about the air quality in Beijing, I'll do it for Shanghai. Today: Shit.
-
RT @aras_p: Your editor is not extensible enough until someone can implement a Tetris window. Unity can do that! http://t.co/iEizGbyW #u ...
-
How to teach people to be creative when the people you're trying to teach are the opposite?
-
RT @LeonBlank: Iron Sky official theatrical trailer is finally here! Help us beat Hollywood - spread it like HELL! http://t.co/Abcs0V8u
-
RT @halavais: Can't be real: http://t.co/98gVZNvA
-
Listened to 22 songs.
-
RT @sulka: This takes the fucking cake. "Patent covers displaying grammatically complete sentences while programming a thermostat" http: ...
-
Tried to publish our Unity3D game to Flash for the first time. Getting 250 errors from mxmlc. Mostly about iCallable, though.
-
HTML is the new Flash. Progress or what? http://t.co/dZ0YN8wC
-
Could somebody please create a UnityScript plugin for WebStorm? Pretty please?
-
eFax.com, bills your cc without notifications, you have to CALL them to cancel your account. Is that even legal?
-
RT @tommilaitio: @Haavisto undivisive presidential campaign made history. 1st true microfunding in FIN. Result: 1m votes (37,4%) to a gr ...
-
Listened to 29 songs.
-
RT @TweetsLMAO: Leonardo DiCaprio never died in Titanic. Last scene: him going underwater. 1st Scene in Inception: him waking up on a be ...
-
RT @alexstubb: Fantastic evening! Sauli Niinistö becomes 12th President of the Republic. Now on my way home. Need some sleep.
-
RT @_nomatter: If this is true it's really sad: “@nattylux: Wow, the App Store bot net scam goes public. http://t.co/lPIftcHk”
-
What's wrong with Flash's Camera? Trying to get square video, but it's distorting my preview. According to docs it should be possible.
-
Listened to 11 songs.
-
Facebook is not about making money, says Zuck, who even after IPO will hold majority of votes. So how the hell can it be worth 100B?
-
Listened to 5 songs.
-
Listened to 48 songs.
-
Unicode Character 'PILE OF POO' (U+1F4A9) http://t.co/ssDjU0wJ
-
RT @kyotux: America FUCK YEAH! http://t.co/5YalLLzA
-
RT @UnitZeroOne: Ultra realistic skin rendering. Looks convincing. http://t.co/1lhx4oni /via @kubacupisz
-
RT @gloom303: Did a german game company, Crytek, just revolutionize the social media and gaming spheres -- in one? http://t.co/DZVZAAoi
-
Still have no idea why @tinkercad uses WebGL. Too early for mass market. Hopefully they got 2-3 years of funding...
-
Listened to 16 songs.
-
Hey #GreatFirewall, found a bug. If a browser crashes and had a socket connection open, that conn will stay open between you and the server.
-
When I got my China Unicom plan I opted for 700GB/month. Surprisingly I'm spot on on that amount each month.
-
RT @Bill_Gross: RT @parislemon: Facebook has more profit than Google had revenue when they went public. Discuss.
-
Really nice campaign. Let Angry Birds destroy any website: http://t.co/nfsap7hv
-
Listened to 65 songs.
-
Seems that Amazon is betting big on Fire. Revenue up, profits drop 58%: http://t.co/IFvRtswo
-
Trying out buffer. Looking sleek: http://t.co/gt2bMXaM
-
If someone is throwing bricks at you, it's better to start building
-
RT @franticcom: W00t!! With all our designers in Dublin, we feel like a miniature sized Tieto. And that's NOT a good feeling.
-
The devil is in the details. Nobody seems to understand that here #china
-
Listened to 50 songs.
-
Listened to 20 songs.
-
RT @richardolsson: Innovation means creating something new. Not recreating something old using a different programming language.
-
Hong Kong citizens need to wait 4 months for a "coming back to your motherland"-visa to visit the mainland. Seriously?
-
Hong Kong. What China could be.
-
RT @sandraeeriksson: R.I.P journalism http://t.co/VejUvDX0
-
Listened to 26 songs.
-
Off to Hong Kong for a week
-
Wow. Just watched the Apple Special Event. iBook Author is amazing.
-
Listened to 32 songs.
-
Listened to 22 songs.
-
Writing shaders is hard. There's not much relying on previous programming experience...
-
Wow. The anti-SOPA-protest is huge: http://t.co/SLI3vDUE
-
When a 15 year old game is re-done in HTML5, everyone calls it… progress? http://t.co/bTsjQtiK
-
Really nice HTML port of Cut The Rope, but the behind the scenes is like a Microsoft infomercial: http://t.co/wrDfY0Tm
-
Listened to 5 songs.
-
RT @Bill_Gross: Bill Gates has given away 48% of his net worth for charity since 2007, has saved more than 5,000,000 lives: http://t.co/ ...
-
Listened to 12 songs.
-
RT @RianVDM: What a horrible, horrible project. Classic album covers remade with Clipart and Comic Sans: http://t.co/oaUQLGJ7
-
Uhh. Expect to create Unity3D games for China and export them in Flash? System fonts are not supported, bag of hurt!
-
Corel introduced AfterShot. Corel? Now there's a blast from the past. I thought that company was extinct loooong ago.
-
Listened to 9 songs.
-
Listened to 8 songs.
-
Listened to Outshined - Soundgarden.
-
Haha, Vermin Supreme for President. Everyone gets a free pony: http://t.co/Dxsna1Od
-
RT @mesh: U.S. Government Threatens Free Speech With Calls for Twitter Censorship : https://t.co/tBytZkdL
-
Cool, controlled quantum levitation used to create live wipeout track;) http://t.co/V8Gb4Of3
-
Listened to 11 songs.
-
Listened to 3 songs.
-
Listened to 77 songs.
-
Finished Battlefield 3. Great game, but ending was sort of an anti-climax.
-
RT @tapioaijala: This is for all you HTML5/CSS3 enthusiasts out there: A guy has rendered an iPhone 4 completely in CSS3 w/o any images: ...
-
RT @john__olson: Internet Explorer 6 usage in the US dips below one percent, Microsoft celebrates with a t-shirt http://t.co/d0HL0wQA
-
Listened to 2 songs.
-
Listened to 29 songs.
-
Listened to The Book - Sheryl Crow.
-
Skype tells me that _a lot_ of people have birthdays today;)
-
RT @TheFakeCNN: BREAKING NEWS: Apple has announced that there will be no 2012, only 2011S.
-
Listened to 10 songs.
-
Blaah. New year was sooo 13 hours ago...
-
Since when has flying become this expensive. Shanghai to Singapore on budget airliner: $1200
-
RT @Stammy: Loading 2012 ███████████████░ 99%
-
Listened to 42 songs.
-
RT @SocialBenjamin: the most annoying part of @Scobleizer is if you unfollow his big ego, others retweet him to my timeline.
-
RT @markonen: Here’s how you come up with a bogus 7,8" iPad rumor: assume the dpi of iPhone’s Retina display (330) with 1536x2048 pixels.
-
RT @Mazi: The Ten Most Annoying Management Terms Of 2011 http://t.co/vh1sJSmm
-
Amazon got itself a really cool domain name in china: z.cn
-
The best two things about 2011 (workwise): NodeJS and Unity3D.
-
Why does one need a separate heightmap (in addition to normal map) for a parallax texture?
-
Listened to 37 songs.
-
Oh, this is pure evil. My Chinese ISP sometimes adds interstitial-type ads onto web-pages I load. Just got one browsing to google.com.
-
Seems that good project managers are hard to find, no matter where in the world one is.
-
RT @dotsi: "Collapse", "infection", "illegal immigrants". Hello Echelon!
-
RT @bit101: Great post by @arpit on Android customization http://t.co/dPW8wi4O so sick of the mindless "android has bad UI" line.
-
Listened to 39 songs.
-
Listened to 12 songs.
-
From recent news on iCloud (there is none) one might thing that it has flopped, just like mobile.me.
-
RT @S_Peltomaki: In Helsinki it is +9,9C right now. It is the warmest day in HKI in December in ~160 years. Global warming anyone?! #finland
-
Is there really no option to pack textures with JPEG in @Unity3D when targeting the WebPlayer?
-
Listened to 10 songs.
-
Whereas Encharted 3 is a thing of beauty. Don't underestimate the power of having absolutely no loading sequences interrupt the gameplay
-
Skyrim is both good and disapointing. The engine hasn't much new to offer gameplay-wise and the long load times still suck.
-
RT @ljuti: SOPA supporter GoDaddy lost 72k domains this week http://t.co/81G3UEF3
-
Listened to 41 songs.
-
It's not a 3D game if there's no Bloom ;)
-
Listened to 20 songs.
-
Ouch. Unity3.5 Flash target doesn't support asset bundles. That makes it a non-option for bigger projects. cc: @UnitZeroOne
-
Listened to 29 songs.
-
Have a merry Christmas everyone!
-
Listened to 51 songs.
-
Yay, Unity3D 3.5 developer preview is out!
-
Listened to 89 songs.
-
Listened to 28 songs.
-
RT @jnack: Advertising watchdog bans excessive Photoshop use in cosmetics ads: http://t.co/BpwXCfPO
-
Always laughing when someone mentions North Korea's official name: Democratic People's Republic of Korea;)
-
Listened to 55 songs.
-
Listened to 5 songs.
-
RT @ceoStephenElop: Lumia is a perfect Christmas present. Nobody expects it.
-
RT @ecyrd: "sudo bring me a beer."
-
Listened to 29 songs.
-
Listened to 35 songs.
-
It's only after a month of heavy duty @unity3d work that I truly have come to appreciate the beauty of the tool.
-
-
Listened to 24 songs.







This is amazing… WELL DONE!!!!!!!!!!!!
very very nice, beautifull style, it is a promising framework. I’ll try to play with it
Thanks for the kind comments.
There is a chance that you will make it as3-signals based? It would be a neat feature
There’s not a lot of eventing going around to start with, but that might change once I finalize the API. I’ll look into signals and whether they would be a good fit. For the Binding part I still have to rely on Events, as these are compiled in by MXMLC.
You can use data binding with as3-signals:
http://www.ericfeminella.com/blog/2010/03/22/as3-signals-simulated-data-binding/
Signals are a little bit faster that native events, have lower memory footprint, adds useful helper methods, allows to create interfaces for event oriented components and works well with elements that only support native events like mouse clicks. Main drawback is that it isn’t native so it adds a dependency and few KB into app/framework but… its worth it
I think that there is currently no ui framework that implements as3 signals so it might be a strong point of Flow if this will be incorporated.
Anyway, I hope that you will not stop working on this project since flash world need a good, skinable, lightweight flex-like alternative. Good luck
Sure thing that you can use Binding with AS3-Signals, but it’s still requires some labour, as it’s not as easy as just to say [Bindable] on a property and then use curly braces to bind to that property.
Anyways, I’ll look if and how Flow could benefit from AS3 Signals. Stay tuned.
Good !!!
Take a look at the Flight Framework which as a package for AS3 data binding without mxml.
Could radically enhance your framework.
Don’t mind repeating this in twitter and here too.
I fetched “Flow” from github, compilation error with Flow Example, seems “avmplus” is not commited in GIT?
Flow only compiles when you target the Flex Framework 4.5. FF 4.5.1 will give you that error. Will fix
I have deployed the test you have above on iPhone 4S, using a Flex Mobile project.
The problem I’ve got, is that all content is smaller than normal to about 30-40%
All UI shrinks down for some reason when deployed as an app.
Any ideas ?
Thanks,
Interesting. Care to open a ticket on Github and share your project so that I could debug?