PDA

View Full Version : How to reformat PHP Flash Video



RobertB
07-09-2008, 07:30 PM
Someone sent this to me...

http://www.news3online.com/index.php?code=3zc21ifM5PY636FaV990

It looks like a javascript calls and embeds a persons name.....anyway to take the code and embed it into the flash file so I can embed it on my fav forums?

They do not have an embed feature so I want to reformat to embed.

AGRO
07-10-2008, 01:11 PM
This is the flash movie.

http://www.paltalk.com/marketing/media/vanksen/main.swf

It is not a .flv. It is a .swf. This way they can add dynamic text fields in the movie where they want. If you copy and paste the link above the movie will play, after you push the play button, and the names will be "undefined".

The way they get different names in the text fields is by using LOADVARS in the object tag in your html. You can view the code below.


<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="384" HEIGHT="304"><PARAM NAME=movie VALUE="http://www.paltalk.com/marketing/media/vanksen/main.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=flashvars VALUE="firstname=Eric&lastname=Bartlett&urlfin=http%3A%2F%2Fwww.news3online.com%2Fspread.p hp"><PARAM NAME="BGCOLOR" VALUE="#000000" /><PARAM NAME="allowScriptAccess" VALUE="always" /><EMBED src="http://www.paltalk.com/marketing/media/vanksen/main.swf" quality=high WIDTH="384" HEIGHT="304" ALIGN="" TYPE="application/x-shockwave-flash" FLASHVARS="firstname=John&lastname=Doe&urlfin=http%3A%2F%2Fwww.news3online.com%2Fspread.p hp" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BGCOLOR="#000000" ALLOWSCRIPTACCESS="ALWAYS"></EMBED></OBJECT>

Just change the FLASHVARS firstname and lastname to what ever you wish.

ex: FLASHVARS="firstname=Indigorose&lastname=Autoplay

If you need a little more help, watch the link with your name again and click the movie. :D

http://www.news3online.com/index.php?code=3zc21ifM5PY636FaV990

RobertB
07-10-2008, 05:53 PM
Thanks Eric for the help...perfect.:yes

RobertB
07-10-2008, 06:56 PM
I don't really understand the difference in application of javascript and action script....is there a way to convert to AS so that all I have to do is embed the file and call the variables up?

I tried your way on one of my motorcycle forums and it filters the javascript code....I am trying to basically use the same sort of text as YouTube but refer to the swf file on my server and then customize the text, etc.

TIA.

AGRO
07-10-2008, 10:21 PM
JavaScript is a scripting language most often used for client-side web development.

ActionScript is used primarily for the development of websites and software using the Adobe Flash Player platform.

I dont think there is a way to convert javascript to actionscript. They both have different functions.

I have uploaded the .swf and a .html file I whipped together to show you what settings need to be done. You can download them here (http://www.ericvision.com/autoplay).

You can click on the flashvarsSample.html and the name will be John Doe.

RobertB
07-11-2008, 09:54 AM
Thanks eric for the extra efforts.....that was great...now I can bypass their spam collector and still have some fun.

"Baldy" is the creator of this motorcycle forum...

http://advrider.com/forums/showthread.php?t=361643

AGRO
07-11-2008, 12:21 PM
No problem at all. :yes

RobertB
08-07-2008, 11:18 AM
Yo Eric,

Thanks for the help with this....I have been customizing this for all my customers who I host their websites.....and, I did this mockup for a buddy of mine. LONG LIVE VIRIL MARKETING. LOL

http://seanattebury.com/saprez.html

AGRO
08-07-2008, 11:51 AM
Anytime!!

Glad to hear your having fun with it.