Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 01:36
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  Can PHP Generate ActionScript script?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Can PHP Generate ActionScript script?  (Read 2931 times)
Dr. Shim
Server what's that
*
Posts: 7


Check out our site. Tell me what you think!

65148233 ultimatezzz@hotmail.com ultimatezzz DoctShim
View Profile WWW Email
« on: 01/25/02, 14:51 »

As you probably know, PHP can generate HTML code.

echo("<BR>/n");

This would create an HTML linebreak - as well as a PHP linebreak too.

Now, I was wondering, can PHP also generate ActionScript code?

echo("stop();");
Roll Eyes
Logged

Signed and Scribbled,

Dr. Shim
psychlonex
Server what's that
*
Posts: 39


Flash-db Rules

PsxFive
View Profile WWW Email
« Reply #1 on: 01/25/02, 15:28 »

Hey,
I'm sure php can do it, but I don't think AS can handle it. I've tried something similar, like using a variable in your movie called "action" and then in php echo("action=gotoAndPlay(2);");

But flash doesn't execute the code.

Hope that helps!
Psx
Logged
Dr. Shim
Server what's that
*
Posts: 7


Check out our site. Tell me what you think!

65148233 ultimatezzz@hotmail.com ultimatezzz DoctShim
View Profile WWW Email
« Reply #2 on: 01/25/02, 15:32 »

Yeah, through variables. I was just asking if you can generate code. But, I don't think so.


Thanks for your help.


By the way, sorry for cross-posting. I pressed the "post" button accediently. The admin can delete the other post with the question mark.
Logged

Signed and Scribbled,

Dr. Shim
psychlonex
Server what's that
*
Posts: 39


Flash-db Rules

PsxFive
View Profile WWW Email
« Reply #3 on: 01/25/02, 15:42 »

np.

I guess you could use it somehow to generate code before you exported the swf, or maybe throw a ton of scripts into a database, and then be able to just print em out and copy/paste em into your movie.

Psx
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #4 on: 01/25/02, 17:05 »

Hi Dr. Shim,

welcome to the world of ming (There is even an extra forum for it)! This is not exactly like you asked, since swf cannot read actionscript source. Rather flash compiles (converts to some internal code) your actionscript when it publishes the movie.
Ming is a serverside tool that can create swf from scratch, and that includes a compiler as well. So you can actually have your php script create some actionscripts that depend on current data in some way (as a string), and by adding the code to the movie it will be compiled.
For an intro to ming see www.neuralust.com/~mingdocs as well as tutorials on www.opaque.net/ming

Musicman
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything