LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2007, 02:15 PM   #1
leif_84
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Rep: Reputation: 15
PHP/Actionscript problem [MING]


Hi!
I'm trying to change color of the circle on mouseover event, but for some reason it doesn't change color when I mouse over it. As far as I understood, as long as I set the name for object, I can access it with that name thru actionscript. I'm using ming, swf php module. Thank you.

Code:
<?
$movie = new SWFMovie();
$movie->setRate(30);
$movie->setDimension(550, 400);
$movie->setBackground(0xFF, 0xFF, 0xFF);

$circle = new SWFShape();
$circle->setRightFill(33,66,99);
$circle->drawCircle(30);



$c1 = $movie->add($circle);
$c1->moveTo(100,100);
$c1->setName("circle");

$movie->add(new SWFAction("circle.onMouseOver=function(){ this._x = 10; };"));
$movie->save("1.swf");
?>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Actionscript editor or syntax highlighting? lhoff Linux - Software 2 06-23-2008 12:11 PM
Linux alternative for actionscript programming ? snakeleg Programming 1 06-29-2007 04:12 PM
LXer: ActionScript 3.0 and Mozilla's Tamarin LXer Syndicated Linux News 0 04-13-2007 09:16 PM
Trying to install ming for use with PHP kingfisher Linux - Newbie 1 01-06-2005 05:01 AM
problems compiling ming for php suprabeener Linux - Newbie 4 10-31-2001 04:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration