Passing inputs to flash

  • makhan
  • Novice
  • Novice
  • No Avatar
  • Joined: Jun 02, 2007
  • Posts: 31
  • Status: Offline

Post June 15th, 2007, 7:01 pm

My flash movie opens up an image and I can do some color picking on it. I want to provide an interface where I can define the number of colors which can be picked.

Can someone guide me should this input be on the html page containng the flash movie or the flash movie itself.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 15th, 2007, 7:01 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post June 15th, 2007, 7:20 pm

This seems like it should be taken care of in the colorpicker code of the Flash movie at the moment.

Perhaps you could be a little more specific about what you're trying to accomplish.
Strong with this one, the sudo is.
  • makhan
  • Novice
  • Novice
  • No Avatar
  • Joined: Jun 02, 2007
  • Posts: 31
  • Status: Offline

Post June 15th, 2007, 7:24 pm

Thanks joebert, actually my flash movie displays the color in a small box of the point where I click. I want to give user the option to select how many points.

Like

One input is background color(interger) e.g if background color is two I can select only two back ground color and pass the x and y values of those two points to php.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post June 16th, 2007, 1:50 am

Let me know if this helps you out at all.

It's a ZIP file that contains an FLA, & a PHP file.

Image

The PHP file is a basic flash embed HTML page that has a basic $_POST variable dump at the top of it to see what's going on.

The FLA is for version 8 of Flash, I tried to comment everything as much as possible.
There's Actionscript in three places.
  1. _root Timeline
  2. pickerUI MovieClip in the library
  3. picker MovieClip in the library


I wasn't sure what you meant by allowing the visitor to select how many points, & I wanted to do a colorpicker awhile ago anyway, so this seemed like a good idea to put together. :D
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 51 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.