Archive

Archive for the ‘Work’ Category

Gaia : Accessing custom page attributes from site.xml

March 17th, 2010

More a mental note for myself than anything else, but it’s just taken me an hour of Googling to find this simple solution.

Problem : You want to add & access custom attributes to a page node in the site.xml of a Gaia Flash site.

Solution :

[Site.xml]

<?xml version="1.0" encoding="UTF-8"?>
<site title="Gaia Framework Site: %PAGE%" menu="false">
    <page id="index" src="index.swf" 
    		remotingGateway="http://www.foo.com/services/amfphp"
	        <page id="nav" src="nav.swf" depth="top">
	            <page id="home" title="Home" src="home.swf" menu="true" />
	        </page>
    </page>
</site>

…note the custom ‘remotingGateway’ attribute on the index node. Adding a custom property is as simple as adding it as an attribute to the node. But how to read it?

Well, Gaia pages have a property called ‘node’ that contains the xml node for that page, so to access a property you can simply use AS3’s lovely XML functionality to do…

[AS Code]

//get gateway url from index page attributes
gatewayUrl = Gaia.api.getPage(Pages.INDEX).node.@remotingGateway;
//auto connect
connect( gatewayUrl );

As always, simple when you know how :)

oldskool73 Adobe/Flash/Flex, hints & tips , ,

Gaikai – flash based streaming console gaming

July 4th, 2009

There’s an interesting video up of Gaikai, the new venture from David Perry (the man behind Shiny Entertainment & games such as Earthwork Jim). It will apparently allow anyone with a fast enough connection to play a wide catalog of 3d console and PC games, without needing any fancy 3d hardware. The games are hosted on the Gaikai servers and apparently streamed to the player in real time via the Flash player.

Gaikai – Video Demo

It will be interesting to see how they work around various technical obstacles… getting Flash to work with various console controllers for one.

oldskool73 Adobe/Flash/Flex, games

Unity for Flash Developers – Great Video Series

March 29th, 2009


Unity 3D is ‘a multiplatform game development tool, designed from the start to ease creation.’

If you are a Flash developer interested in getting started with Unity 3D there’s a great series of video tutorials from Richard Hart available on Vimeo…

Unity for Flash Developers

oldskool73 Adobe/Flash/Flex, links

FDT Pure released

March 18th, 2009

Flash Game – GlobetrotterXL

February 28th, 2009

Nice simple little flash game, test your geography knowledge, my best so far’s 3981 5208.

http://games.dschini.org/play/6/globetrotterpremium/

game

oldskool73 Adobe/Flash/Flex, links