Archive for April, 2002

Extending Dreamweaver MX with Flash MX

Neil Clark has created a Dreamweaver MX extension that utilized XML and Flash MX to add functionality to Dreamweaver MX.
It was designed from the outset to not only fit into the style of Dreamweaver MX, but to allow a once-only download of the Panel which could be extented by the end-user by creating a new dictionary definition of anything they choose in the Panel’s declared XML format, which in turn will show up automatically in the Panel.
[macromedia.com]

Macromedia Does Weblogs

 One word of feedback: Bravo!
[davenet.userland.com]

Jeremy Allaire on Macromedia MX and Flash Remoting

On Flash and HTML:
We are absolutely focussed on establishing Flash as the premier rich client. We think that people building applications will find it very compelling. Its architecture is now better suited to interactive applications and we’re making it much easier than it has been in the past to build these.
However, there will be many applications where Flash is not the client. Obviously basic static content HTML is fantastic, dynamic documents are fantastic. We happened to supply the leading HTML authoring tool in the industry, so we have quite a franchise and commitment there. We expect to see a spectrum of things that people are building. We have a little chart that we’ve built that reflects this.
[ITWriting.com]

ServerSide ActionScript

I have gotten a couple of questions about support for Server Side ActionScript in ColdFusion MX.


  • Server Side ActionScript allows you to write server side code in ActionScript / ECMA script (it uses the Rhino parser).

  • You can only call this code from Flash MX via Flash remoting (you can’t use it like ASP or CFML).

  • There are some built in objects specific to ColdFusion available in the CF object.

I have posted an addendum to my:
Getting Started with ColdFusion MX and Flash Remoting article
that uses ServerSide ActionScript instead of a ColdFusion component.
You can view it here.

Getting Started with ColdFusion MX and Flash Remoting : ServerSide ActionScript

This is an addendum to the following article:
Getting Started with ColdFusion MX and Flash Remoting article
that uses ServerSide ActionScript instead of a ColdFusion component.
1. open the above article in your web browser.
2. download and install the ColdFusion MX preview release.
3. Download and install the Flash Remoting Addons for Flash MX.
4. create HelloWorld.asr (the tutorial will tell you where) and add the following code:

function sayHello()
{
 return “Hello World”;
}

open the example file in Flash MX and test your movie.
Of course, this is a really simple example. Play around with passing more complex data such as Arrays and RecordSets. Ill post more information later on how to make database calls, and load remote and local files into ServerSide ActionScript.

Macromedia MX News coverage

Matt Brown has a list of Macromedia MX news coverage thus far today. Mostly positive, with some interesting comments / predictions.

New Flash MX Resources at…

New Flash MX Resources at Macromedia.com
If you have stopped by Macromedia.com today, you probably noticed that we made some new products announcements for ColdFusion MX, Dreamweaver MX and Fireworks MX. Don’t worry though, we still have a lot of new Flash related resources at the Site:
*** Developer Centers *
***
Macromedia Flash MX Application Developer Center
http://www.macromedia.com/desdev/mx/flash/
Macromedia ColdFusion MX Application Developer Center
http://www.macromedia.com/desdev/mx/coldfusion/
** New Technology : Flash Remoting *
*
****
Macromedia Flash Remoting
http://www.macromedia.com/software/flash/flashremoting/
** New Tutorials, Articles, Columns, Resources *
*
Download Macromedia Studio MX Preview Release Software
http://www.macromedia.com/go/mxstudio_trial
Getting Started with ColdFusion MX and Flash Remoting : Mike Chambers
http://www.macromedia.com/desdev/mx/coldfusion/articles/startremoting.html
Connecting ColdFusion MX and Macromedia MX : Kevin Towes
http://www.macromedia.com/desdev/mx/coldfusion/articles/remoting.html
Macromedia MX: Components and Web Services : Jeremy Allaire
http://www.macromedia.com/desdev/mx/coldfusion/whitepapers/components_ws.pdf
Kevin Lynch, Chief Software Architect: The Story Behind Macromedia Studio MX
http://www.macromedia.com/desdev/mx/studio/articles/smx.html
JD’s Forum : Macromedia MX, Too good to be true? : John Dowdell
http://www.macromedia.com/desdev/jd_forum/
Macromedia MX : The future is already here : Tom Hale
http://www.macromedia.com/desdev/logged_in/
Trio Motor Company Sample Applications (multiple tutorials)
http://www.macromedia.com/desdev/mx/trio/
Macromedia Flash MX Accessibility
http://www.macromedia.com/macromedia/accessibility/features/flash/
Precision drawing with Macromedia Flash MX and Freehand : Bently Wolfe
http://www.macromedia.com/desdev/mx/studio/articles/fmx_fh_integration.html
Using Java and J2EE Elements in a ColdFusion MX Application : Terry Ford
http://www.macromedia.com/desdev/mx/coldfusion/articles/java.html

What is Macromedia Flash Remoting?

Find out here.

Catching server timeout errors when using Flash Remoting

When calling remote services / methods via Flash Remoting, any errors that occur will trigger the onStatus method to be called:

onStatus = function(error)
{
     trace(“Error : ” + error.description);
}

However, if Flash cannot connect to the server (network or server is down) onStatus will not be called. Using XML and LoadVars you have to manually keep a timer in order to time out the connection, however you do not have to do this using Flash Remoting. Just create a method like the following:
_global.System.onStatus = function(info)
{
trace(“details : ” + info.details);
trace(“description : ” + info.description);
trace(“code : ” + info.code);
trace(“level : ” + info.level);
}

This method will be called if Flash MX cannot connect to the Flash Remoting server.
Here is an example output (when the server is not running):
details: http://localhost:8500/flashservices/gateway/
description: HTTP: Failed
code: NetConnection.Call.Failed
level: error

Couple of notes :

  • The exact messages may depend on the browser.
  • This will only works when connecting to the server via Flash Remoting. It will not work when using the XML or LoadVars object.

Calling Web Services from Flash MX

There has been a lot of discussion within the Flash Community concerning calling web services from Macromedia Flash. This seems to have been prompted by google making available a web service for their search engine.
So i thought i would give a quick sneak peek of calling web services from Flash using Flash Remoting. The example linked below calls the google web service to do a search (i’ll let the code speak for itself).
The example is commented. Post any questions / comments in the comments section.
View Flash / Web Services example.