pass variables


i want pass variable represent filename swf file hypertext link in html document.

when user clicks on link has ?variablename=filename_to_use appended "normal" link page,

this variablename passed swf file.

i've created target swf file have actionscript flvplaycomponent filename hard-coded in actionscript. want actionscript use variable representing filename_to_use passed url line.

the following actionscript plays flv file taken flash help: creating application flvcomponent
original version:
import mx.video.*;
this.attachmovie("flvplayback", "my_flvplybk", 10, {width:320, height:240, x:100, y:100});
my_flvplybk.skin = "file:///install_drive|/program files/macromedia/flash 8/en/configuration/skins/clearoverplayseekmute.swf"
my_flvplybk.contentpath = " http://www.helpexamples.com/flash/video/water.flv";


version using filename passed variable instead of water.flv
import mx.video.*;
this.attachmovie("flvplayback", "my_flvplybk", 10, {width:320, height:240, x:100, y:100});
my_flvplybk.skin = "file:///install_drive|/program files/macromedia/flash 8/en/configuration/skins/clearoverplayseekmute.swf"
my_flvplybk.contentpath = " http://www.helpexamples.com/flash/video/variable";

i can play videos actionscript @ school website must make separate swf each video.
i want able have 1 swf file play video passed link in html page.
i using html page lower bandwidth users won't have load swf file see curricular material , perhaps choose video on topic.

http://www.wearekennedy.com/kent/whatsup.htm
click link spring curriculum map resources , click on e.g. the_food_web video

thank you,
kevin kent
educator, john f. kennedy h.s., bronx, ny



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62