Quick .swf player generation

  • ctrent
  • Born
  • Born
  • ctrent
  • Posts: 4

Post 3+ Months Ago

When I compressed my .flv files in Squeeze I didn't think I'd need to generate the .swf players also. I was wrong. Now I'm being forced to make hundreds of .swf players that can be linked to by url. The client doesn't have time to make a custom player that can "dynamically" call on .flv files. I'm having to enter the contentPath in Flash for each video and export a .swf file.

Does anyone know of an easier way?

A drag and drop app that would allow me to add the url+filename would be a great timesaver.

Thanks,
Chas
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Why don't you manipulate the contentPath variable in Flash through a query string extension in the src attribute of the embed tags...

for example...
<embed src="player.swf?contentPath=value">


What this will do is if the value of contentPath is not defined by default in the _root timeline of the .swf file it will import the variable and value to the _root timeline and can then be called from within Flash.


Is that a viable solution? If not, I don't really know what else to tell you :(
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

wb LIB
yes, that`s good.
even better would be to have all the flv movies (id, name and path on hard drive) stored inside a database and just one php/ asp file that will play the file with the given ID. And in that php file query the path from the database and pass it to the embeded source of the flash object.
<embed src="player.swf?contentPath=<? echo $retrived_path; ?>">
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Thanks Ice, though I'm not really back... just stopping by :)

Post Information

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

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.