[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Ming using to click event in SWF file

Posted on 2006-05-17
Medium Priority
Last Modified: 2006-11-18
i create one SWf file from one image file using  Ming,i want to click that swf file it redirect to another url with some parameters,how to add this click event operation to this SWF using Ming
any one help me
Question by:gstalin
1 Comment

Accepted Solution

topscoder earned 2000 total points
ID: 16702518
i never used Ming before, but know that you have to use some basic actionscript to redirect to an url.
i just read some documentation about Ming, and think you should try the next code:

// some typical movie variables
$movie = new SWFMovie();
$movie->setDimension(400, 398);

// mx actionscript
// this should do the trick to redirect to an URL
$strAction = "
var this.onPress:Function = function():Void {
    getURL("http://www.mydomain.com/index.php?redirect=ming", "_blank");
$movie->add(new SWFAction(str_replace("\r", "", $strAction)));


i hope this will help a bit, and i'm looking forward to the result ;)

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month18 days, 18 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question