PDA

View Full Version : FLV Conversion


andy3
09-05-2007, 03:24 PM
thanks for the quick reply but got this error:

1119: Access of possibly undefined property g through a reference with static type flash.display:DisplayObject.

any ideas? thanks

panel
09-05-2007, 03:30 PM
var szFilepath:String = './myvideos/files/' + root.g + '.flv';

webPlayer.source = szFilepath;
webPlayer.play();

stop();

andy3
09-05-2007, 04:35 PM
hey thanks for the quick response, tried compiling but got this error:

1119: Access of possibly undefined property g through a reference with static type flash.display:DisplayObject.

dont suppose you have any ideas? thanks

panel
09-05-2007, 06:47 PM
It is good practice to define variables before asigning values. For deafult AS3 won't allow you to cerate dynamic varialbes, so you have create one.

//put it in root
var g:String;


You can change this setting, but it will affect application efficiency (especially big apps, so I suggest not to learn bad habbits with new AS3)

andy3
09-06-2007, 07:16 AM
but i'd need to get g from the HTML, any ideas on that? thanks

panel
09-06-2007, 09:03 AM
Are you talking about getting by flashvars?

loaderInfo.parameters.g;