Pure As3 View into Flex/Swiz?

80 views
Skip to first unread message

Nico

unread,
Feb 5, 2012, 6:44:22 AM2/5/12
to Swiz Framework
Hey,

i am planning a new Applikation for mobile Devices (Game) and want to
use Swiz/flex to handle the complex UI-situations and Data-Handling.

The raw game itself will use the starling framework to use the full
power of flash at the moment.



Now the question is, how to implement these things togehter. :P


My idea:

Built up a Flex-Mobile application, using swiz and than using
different As3 Views to handle the pure game stuff. Wich is the best
way to handle pure as3 Views into a Flex/Swiz application?


greets, Nico



(Are there any "typical flex-specific" performance issues on mobile
devices if the views are written in as3 only??)

Brian Kotek

unread,
Feb 6, 2012, 12:30:07 AM2/6/12
to swiz-fr...@googlegroups.com
I don't really know anything about Starling so I'm not sure how it integrates with a mobile AIR app. I've built some mobile AIR apps with Swiz but those were actual applications, not games. If you're just writing views as AS3 classes rather than MXML components then it should work the same way that MXML components work. If you build up the views as separate swfs and load them into your AIR app that should also work, though obviously you won't really have any interaction with Swiz since the loaded swfs would work in a standalone way. If Starling works in some other way you can try to explain further and I'll offer any other advice that I can.
 


--
You received this message because you are subscribed to the Google Groups "Swiz Framework" group.
To post to this group, send email to swiz-fr...@googlegroups.com.
To unsubscribe from this group, send email to swiz-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swiz-framework?hl=en.


Nico

unread,
Feb 6, 2012, 4:47:44 AM2/6/12
to Swiz Framework
Hey Brian, thanks for the quick answer.

i think loading new swf's isn't cool, like you said.



My goal is to built a game that uses Swiz for Data-Handling. Addional
i want to use flex Comps to display the Ui, Highscore Boards etc.

So the mainquestion (maybe) is, how to implement a as3 Class (based on
Spite etc.) to a mxml view on the coolest and "best" way. (Or is it
even better to create a Class extending UiComponent ?)

I'm not sure about all this, because i want to avoide large overhead
in my game.

Greetings, Nico

Brian Kotek

unread,
Feb 7, 2012, 11:21:51 AM2/7/12
to swiz-fr...@googlegroups.com
Well like I said, I've really only built mobile apps, not games. But Swiz will treat any DisplayObject added to the stage as a view, so as far as I know it should work if your view extends Sprite, UIComponent, or anything else that extends DisplayObject. So you should be able to use whatever makes the most sense for what you want to do.
Reply all
Reply to author
Forward
0 new messages