Neutron Logo
Neutron Logo
SharpStyle Neutron is a Visual Studio 2005 plug-in for ActionScript development. IntelliSense™, code highlighting and completion, integration with Team System and upcoming Flex/ActionScript 3.0 support makes this product an ideal IDE for .NET developers looking to build next generation Rich Internet Applications, Flash games, client-side apps, and Web2.0 sites

Tutorials



Hello World

This tutorial will provide a quick introduction to compiling a very simple ActionScript application using SharpStyle Neutron.

Tutorial will present the following concepts:

  • Creation of a simple “Hello World” ActionScript 2.0 Application
  • Default files includes in a new ActionScript Project
    • _SwfHtmlTemplate.htm — template used to create HTML file containing SWF
    • Main.as — default ActionScript file
    • swfobjects.js — JavaScript Flash Player detection and embed script (more information here: http://blog.deconcept.com/swfobject)
  • Displaying output within Visual Studio and in a default web browser
  • Visual Studio IntelliSense support
  • Error list integration
  • “Go To Definition” functionality

Click the image on the left to launch.


 ActionScript and Web Application Solution

This tutorial will build upon the one above.

A few concepts:

  • Please review our blog post for information about swfobject.js and _SwfHtmlTemplate.htm: Files included in default project (Neutron)
  • You might also find the following post useful: SharpStyle Neutron Project Properties
  • This tutorial starts with an existing ActionScript project
  • We will add to the solution an ASP.NET Web Application
  • We will then configure "output path" of the ActionScript project to output compiled SWF into a subfolder of the Web Application
  • We will copy necessary HTML code from _SwfHtmlTemplate.htm into Default.aspx. This will allow us to display SWF

 

Click the image on the left to launch.

Source files are here.

Loading resources from another SWF

 This tutorial will demonstrate how to create “resources” SWF that might contain required UI elements and then load them into your ActionScript application.

This tutorial will demonstrate the following steps:

  • Create new Flash Document using Macromedia Flash Professional 8
  • Create new Movie Clip (Linkage: Export for ActionScript, Export in first frame)

  • Add an image and create a simple motion tween
  • Publish to produce SWF
  • Create new ActionScript Application
  • Specify “input SWF” pointing to the produced SWF
  • Show code required to load needed Movie Clip

Click the image on the left to launch.

Source code is here.


 Trace with Powerflasher SOS

This tutorial will demonstrate how to setup a project in order to easily trace your code.

We will be using Powerflasher SOS.

Powerflasher SOS (SocketOutputServer) is an XML Socket server with a graphic user interface. Connected clients can send messages to SOS. These messages are shown in SOS. Further on commands from SOS to Client can be sent. These are freely configurable.

It requires JavaVM starting from 1.3: http://java.com/en/download/index.jsp

This tutorial will demonstrate the following steps:

  • Download and run Powerflasher SOS
  • Create new ActionScript Application
  • Write code that will allow our application to "trace" to Powerflasher SOS using XMLSocket
  • Specify additional compilation parameter: -trace "Main.myTrace". Compiler will replace all "trace()" statements with a call to Main.myTrace which will send messages over XMLSocket to SOS
  • We will then add
    • new ActionScript Class
    • two SWF files that will serve as ON/OFF states
  • We will then show the following
    • Loading resources
    • MovieClip.onRollOver, MovieClip.onRollOut events

Click the image on the left to launch.

Source code is here.

 
Home   |    Features   |    Download   |    Support   |    Blog   |    Contact Us
Copyright © SharpStyle, . All Rights Reserved






Printable View