Category: Flash CS5.5 and AS3

Let’s say that I initially passed a parameter called ‘Testee’ to my preloader flash application via the HTML param tag. Now I need to pass this same parameter value from the preloader to the main flash application. Here is the code that receives the parameter from the the HTML:

Say you want to restrict access to your flash application that is called by your aspx page. That is easy enough by adding the aspx page to your your web.config file’s location/authorization section. But what if you want to pass the user that is logged on to your ASP.Net application via the authentication process?

Here is how to pass a parameter called UserName to your flash application using the param name tag in your html of your aspx page.

This article explains in the most simpliest terms how to use action script to connect to SQL Server via an ashx (ASP.Net) file in order to extract data for display in your flash application.

First, you build a flash game that keeps track and stores the gamer’s score. Before we even discuss that (in another article: http://www.jamesandchey.net/?p=543),
we want to retrieve the top score from the database saved from a previous game and display it to the current gamer.

To retreive the top score, you need to add code to your action script to call an ashx file on your server.

First, define a URLLoader variable.

Next, define a URLRequest variable that contains the url location of your ashx file. Also, assign the GET method to your URLRequest variable.

You then need to define an event listener to your URLLoader so it can fire a function (that you define) once the data is returned to your flash application via the ashx file.
The function you define will take the data (built in XML format by the ashx file) and load it into textbox variables for display.

Lastly, execute the load method of the URLLoader passing as a parameter the URLRequest variable.

This article explains in the most simpliest terms how to use action script to connect to MySQL via a php file in order to extract data for display in your flash application.

First, you build a flash game that keeps track and stores the gamer’s score. Before we even discuss that (in another article: http://www.jamesandchey.net/?p=530),
we want to retrieve the top score from the database saved from a previous game and display it to the current gamer.

To retreive the top score, you need to add code to your action script to call a php file on your server.

First, define a URLLoader variable.

Next, define a URLRequest variable that contains the url location of your php file. Also, assign the GET method to your URLRequest variable.

You then need to define an event listener to your URLLoader so it can fire a function (that your define) once the data is returned to your flash application via the php file.
The function you define will take the data (built in XML format by the php file) and load it into textbox variables for display.

Lastly, execute the load method of the URLLoader passing as a parameter the URLRequest variable.

Flash defines two different types of points for every symbol. Both points are used for reference by Flash, but in different ways.

Transformation point is a tiny circle displayed on the symbol. This point is used when transforming the symbol. In other words, the point where you rotate the symbol. You can move this point around using the Transformation tool.

Registration point is a tiny cross-hair used to set the coordinate of the symbol on the stage. When a symbol is created, it defaults to the top left corner of the symbol. This is the same as a symbol’s current X/Y coordinate. X = Distance from the left of the stage. Y = Distance from the top of the stage. This point can be manipulated via ActionScript code. For example, the point, or X/Y coordinate is used to determine collision.