PDA

View Full Version : sending AMS5 variable to a flash movie



Martin_SBT
11-18-2003, 02:38 PM
Is it possible to send an AMS5 variable to a flash movie, assuming that the variable will be a character string?

thanks

Martin

Corey
11-18-2003, 02:45 PM
Absolutely, it's very easy too! I have prepared an example for you, attached here. it contains the flash source file .fla as well as the .swf and the AMS project file. Have a look and then if you have any questions I'll be happy to answer them. :)

BTW just as a review; In the example I created a flash file containing a dynamic text field and named it's variable "text". Then in AMS I set up my page to ask for your first name with a Dialog.Input action and then used a Flash.SetFlashVariable to set that "text" variable within the Flash movie to contain the input text. Very simple but you can easily extend this method and make your apps as complex as is needed.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Martin_SBT
11-19-2003, 09:37 AM
Koool!

Thanks a lot Corey. I am using the DataGrid component in FlashMX, and i want to fill in the cells with the data from a CSV file. I am learning the action script language as i am doing this! There is so many things to learn :)! Once done i wants to incorporate the SWF into my AMS page and have AMS variable sent to my swf and my swf send variables to my AMS...

It is very time consuming since i am trying to learn while i am building it! I wish i could have an "already made" action script that would do the basics (loading data from the csv, formating the table;Number of rows, etc...) but i didnt find one. Do you know of any plave where i could find something like that?

Thanks

Martin

Corey
11-19-2003, 09:40 AM
Hmmm, not sure on that, but I'm sure if you ask in the forums at flashkit.com you'll get some good answers. Better to learn to do it yourself though I think. :) You catch on fast, if you can learn AMS you can certainly leanr Flash. You'll be amazed how fast you start getting one you start using it everyday for a month or so...

The combination of Flash and AMS is so powerful it's boggles my mind.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)