PHP->Flash communication

  • YvorL
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 12, 2006
  • Posts: 6
  • Status: Offline

Post January 21st, 2007, 6:23 am

Problem: Flash picture and it gets the coordinates (where to jump) from PHP.
For example: Picture is 1000*750 and the flash is only 200*100. So I don't know what I've to do.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 21st, 2007, 6:23 am

  • northstjarna
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Nov 14, 2006
  • Posts: 58
  • Loc: Chertsey, UK
  • Status: Offline

Post January 21st, 2007, 6:47 am

Hi there,

how are you parsing the pictures into php. Is it creating an xml schema for you.

create a movie clip in flash and have the regestration point in the top left corner. Export for actionscript and then attach each one for each picture onto the stage.

If the picture is bigger than your stage you could try using this in the instance of the movie clip which holds your picture..

Code: [ Select ]
this._xscale = 50;
this._yscale = 50;
  1. this._xscale = 50;
  2. this._yscale = 50;


where the values are the percentage in size. You could equate this to the original size

Code: [ Select ]
this._xscale = this._xscale / Stage.width;
this._yscale = this._yscale / Stage.height;
  1. this._xscale = this._xscale / Stage.width;
  2. this._yscale = this._yscale / Stage.height;


however I would create a thumbnail for each image and then load the image up when you click on each thumbnail.

Thanks

Andi
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post January 22nd, 2007, 12:28 am

if you want to display the whole pictures, then make the flash stage width big enough (i.e. : 1024), then use php to modify the stage height (from the html <object> code).
If you want only to display thumbnails ... then better read the upper post and use thumbnails .... faster load.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 38 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
 
cron
 

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