I've updated the debugger used in SomaCore. You can know click on everything to parse the objects and I've added a FPS + Memory meter. I'll continue to improve the debugger with my needs, next step might be a Garbage Collection monitor.
Click here to see the debugger in action.
Tips: if you close the debugger, type "debug" to get it back.
Here is a little bit of code in case you want to want to use the debugger without using the SomaCore Framework.
Actionscript:
-
package {
-
-
import flash.display.Sprite;
-
import com.soma.core.Soma;
-
import com.soma.core.interfaces.ISoma;
-
import com.soma.debugger.SomaDebugger;
-
import com.soma.debugger.vo.SomaDebuggerVO;
-
import com.soma.debugger.events.SomaDebuggerEvent;
-
-
public class Main extends Sprite {
-
-
function Main() {
-
// create soma application
-
var app:ISoma = new Soma(stage);
-
// create debugger options
-
var vo:SomaDebuggerVO = new SomaDebuggerVO(app, SomaDebugger.NAME_DEFAULT, [], true, false);
-
// create debugger
-
var debugger:SomaDebugger = app.createPlugin(SomaDebugger, vo) as SomaDebugger;
-
// use debugger
-
debug("Hello Debugger");
-
debug(this);
-
debug(app);
-
}
-
-
private function debug(obj:Object):void {
-
// use app.dispatchEvent() from a class that is not in the display list
-
dispatchEvent(new SomaDebuggerEvent(SomaDebuggerEvent.PRINT, obj));
-
// events available:
-
// SomaDebuggerEvent.SHOW_DEBUGGER;
-
// SomaDebuggerEvent.CLEAR;
-
// SomaDebuggerEvent.PRINT;
-
// SomaDebuggerEvent.HIDE_DEBUGGER;
-
// SomaDebuggerEvent.MOVE_TO_TOP;
-
}
-
-
}
-
-
}
No Comments »
A minor update for Soma and SomaUI, mostly bug fixes. The source are available available on the SomaUI page.
SomaUI v2.0.2
-bug fixed: page selection in the page tab wasn't working properly
-bug fixed: layout tab and layout properties wasn't correctly updating the XML
-bug fixed: Flash Player wasn't correctly updated in Page Settings tab when opening a project
-update: new page auto-name renamed to Page1, Page2, etc
-update: Soma v2.0.2
Soma v2.0.2
-bug fixed: layout with a background alpha 0 wasn't displayed
Note: to update sources already exported with a version 2.0.x, just grab the com.soma package (or SWC) and replace, or in SomaUI, in the export tab and under Soma Framework, select "overwrite all".
2 Comments »
Here is a new Video Tutorial about the MovieClip Page Mode in Soma, it might remind you the Flash Catalyst workflow. This mode is only for Flash IDE user. I'm creating a designed site in few minutes by importing Photohop Files in MovieClip that wll be managed by Soma.
The PageManager will instantiate MovieClip instead or pure actionscript class. It is a very useful mode if you want to build your site with the Flash IDE with a minimum of code, and very quickly.

No Comments »
New version available (v2.0.1), small bugs solved with the Page Manager.
Here is how I will update Soma and SomaUI. There is 3 numbers in the version number:
1. the first is a major update, where possibly everything change, probably not usable with previous sources.
2. the second is a medium update, the structure might slightly change and it might need refinement to match with a previous medium version.
3. the third is a minor update, totally transparent for the user, you can update the framework and the generator without breaking what you have already done.
So this is a minor update, meaning it doesn't change anything for what you are doing. You can just update the framework and the generator. SVN and source (zip) have been updated, you can get them in the SomaUI page.
Romu
3 Comments »
Beside 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
6 Comments »