Archive for March, 2005

[OT] Playstation PSP

Stood in line at 8am at the local Best Buy to get the new Sony PSP. I got it set up on the short drive to work (as passenger!) and managed a quick game of Wipeout. This thing absolutely rules – graphics, design, features, games, things it comes with. Absolutely blows the DS out of the water. There are already 13 games out (according to EB), and the Best Buy dude said another 30 by the end of the month.

Highly recommended. If you’re in 601, come check it out ;)

ColdFusion Macrochat

ColdFusion Event Gateways Macrochat
Wednesday, March 16, 2005
12:00 PM – 1:00 PM US/Eastern

Join Macromedia Senior Software Engineer Tom Jordahl who will lead this live technical discussion on ColdFusion Event Gateways. ColdFusion has long been the easiest way to create applications that respond to Web requests from web browsers. ColdFusion 7.0 opens up a whole new world of applications that can respond to events and messages from everything from Instant Messaging (such as XMPP/Jabber and Lotus Sametime) to mobile phone SMS text messages, to Internet socket requests, to system events, and much more.

What You Will Learn
– Writing your own event and messaging apps
– Understand the new ColdFusion Java Event Gateway API

Sign up for this free Macrochat :
HERE.

Avoiding sandbox messages

You might notice that, inconsistently, you see security sandbox errors when you create things in Flash. To clarify ‘odd time’ — if I load a JPEG into a Loader I don’t see the message, but if I load a JPEG into the ScrollPane I might see the message every 4/5 tests. Note: You only see the message in the Output panel (ie: in the test environment – when you Ctrl+Enter) – the SWF works in the test environment despite the message, and there is no message outside of the test environment.

I didn’t pay it much attention, but did run across this blog post recently:

http://www.visible-form.com/blog/000085.html

Therefore, if I load a JPEG from flash-mx.com and want to avoid seeing the message, I can add the following to the code:

System.security.allowDomain(“http://www.flash-mx.com”);

Then you won’t see anything in the Output panel.

So yes, pre-blogged but worthwhile nonetheless.

Using the menu component – part 1.

Earlier I had a request from a user for a Menu component example, because they were trying to create a menu and running into some problems. Given that it seemed like an area that did need a bit more “coverage”, the following examples might help.

Now, there are two ways you can work with the menu components – using inline or external XML. The following example shows how you can load Menu items based on an external XML file. Next blog, inline.

For the set up, do the following.

1. Add an instance of the MenuBar component to the Stage.
2. Give it the instance name myMenuBar (in hurry, forgot to use a suffix).
3. Add the following code to Frame 1 of the Timeline.

myMenuBar.setStyle(“fontSize”, 10);
//
var ds:XML = new XML();
ds.ignoreWhite = true;
ds.onLoad = function(success:Boolean) {
if (success) {
myMenuBar.dataProvider = ds.firstChild;
}
};
ds.load(“ds.xml”);
//
var menuListener:Object = new Object();
menuListener.change = function(evt:Object) {
switch (evt.menuItem.attributes.instanceName) {
case “file_new” :
trace(“File > New”);
break;
case “file_open” :
trace(“File > Open”);
break;
case “file_openFromSite” :
trace(“File > Open from Site”);
break;
case “file_openRecent” :
trace(“File > Open Recent”);
break;
case “file_openRecent_01″ :
case “file_openRecent_02″ :
case “file_openRecent_03″ :
case “file_openRecent_04″ :
case “file_openRecent_05″ :
case “file_openRecent_06″ :
case “file_openRecent_07″ :
case “file_openRecent_08″ :
trace(“File > Open Recent > “+evt.menuItem.attributes.fileName);
break;
case “file_close” :
trace(“File > Close”);
break;
case “file_closeAll” :
trace(“File > Close All”);
break;
default :
trace(“unknown instance name for: “+evt.menuItem.attributes.label);
}
};
myMenuBar.addEventListener(“change”, menuListener);

Before you test your code, save the following XML file into the same directory as the FLA: http://www.flash-mx.com/mm/xml/ds.xml. Or, you can target this XML file instead.

That’s it!

Macrochat on RoboHelp

A macrochat on … documentation! Befitting for this blog.

=======================
Conditional Build Tags Macrochat
Thursday, March 3, 2005
3:00 PM – 4:00 PM US/Eastern

Join Macromedia Product Support Engineer, Jason Price, for a presentation on
RoboHelp Conditional Build Tags: Creating Multiple Versions with different
content. This presentation will describe how using conditional build tags
will allow multiple help systems to be created from the same help project
Creating Multiple Versions with different content

What You Will Learn
– Creating Conditional Build Tags
– Apply Conditional Build Tags
– Create Build Expressions
– Best Practices for Conditional Build Tags

================