24
08
2009
Soma MVC tips and tutorials
Posted by: Romuald in SomaUI, talking, tags: as3, class, flash, framework, soma, SomaUI, tutorialBeside having Soma Protest to learn how Soma MVC is working, I will add in the future (to the Google code wiki) some tutorials and tips that will help you during your development.
I will also “centralized” any Video Tutorial I will make in this wiki.
First one today, how to control the page flow in Soma.
Romu


Entries (RSS)
August 27th, 2009 at 10:57 am
Im really enjoying the tool, but I miss some dynamic examples like a photo album loaded from an XML.
Also, what the xml assets do?
August 27th, 2009 at 11:34 am
Here you go:
http://www.soundstep.com/forum/viewtopic.php?f=18&t=243
http://code.google.com/p/somamvc/wiki/StartAPortfolio
Dont forget you can compile the site “Soma Protest” and see how things are done, sources are in the zip.
Romu
August 27th, 2009 at 10:31 pm
Thanks a lot! Your work is much appreciated
August 28th, 2009 at 5:39 am
I am enjoying soma very much. Thankyou! i hope to have meaningfull discussions on this space with every user!
September 1st, 2009 at 3:29 pm
Great framework, taking away alot of the time consuming tasks. One question how can I get custom fonts, I understand I will need to embed them in the swc how should I do this? Thanks, Scott
September 1st, 2009 at 3:49 pm
Hi Scott,
Starting a question on the forum would be better, comments are not great for answering questions.
Anyway, I use a SWC to embed the fonts (that’s the only role of Main.swc) but Soma is not handling any physical files. It means:
1. You compile with the Flash IDE: you can remove the Main.swc and just import the fonts in the Flash IDE library (and compile from it)
2. You compile with the Flex SDK: you can use Main.swc and the include-libraries parameter (as SomaUI is doing when exporting)
3. You compile with the Flex SDK: you can remove the Main.swc and use an Embed metadata tag to embed the font
To create the SWC with fonts, I usually use the Flash IDE, I import the fonts and before publishing I go in publish settings to tick export SWC.
I very often use a SWC compiled from a Flash IDE library as a workflow, I include the flash assets I might need to build in the Flash IDE and then I use FDT and the Flex SDK to compile + the parameter “-include-libraries PROJECT_PATH/source/front-end/libs/Main.swc”.
Note for FDT user: you can use “{project}” not to use an hard-coded path in your parameters, that’s the root of the FDT project.
Anyway, Main.swc only contains the Arial font. You are completely free, you can do whatever you want to embed the fonts with Soma.
Romu