Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I don't think testimonials would have enticed me to become a member, or even use the site for that matter. I use the site for a learning experience..."

Geography

Where in the world do Tek-Tips members come from?
K9logic (Programmer)
28 Apr 10 13:24
Hi

I need something very simple that in AS2 was very simple to make but with AS3 I'm not sure how to do.

Basically on the stage I have put the FLVPlayback component. I have selected a skin and put in the url to a video and uploaded it with the skin file. This works as intended.

However... I need to pass the video file to be played dynamically... In the past, with as2, I always loaded flash something like this: flash.swf?video=path/somefile.flv
and then in flash did something like player.source = _root.video. Worked great in AS2, not so much in AS3 :)

so basically I need help making an AS3 version of my above code, Please :)

Thomas


 

site | http://thomassmart.com
blog | http://weblog.thomassmart.com
iphones | http://cash-for-iphone.com
 

K9logic (Programmer)
29 Apr 10 3:39
yup, the last one did the trick :D

var vfile:String = String(stage.loaderInfo.parameters.vfile);
player.source = vfile;

thank you!

site | http://thomassmart.com
blog | http://weblog.thomassmart.com
iphones | http://cash-for-iphone.com
 

oldnewbie (TechnicalUser)
29 Apr 10 9:14
Grrrrrrrrreat! bigcheeks

Regards. CLICK HERE TO DONATE.

VISIT MY FORUM
TO GET YOUR OWN FREE WEBSITE HOSTING

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close