| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Don
Join Date: Feb 2003
Location: Akron, Ohio USA
Posts: 1,897
|
I am trying to get my flv to play in my video object. So I have been following the Help files and I must not be doing something correct cause nothing is playing.
I added a new video object to my Library and renamed it "my_video" . I then draged it to the stage, set the size properties I needed 320x240 and gave it an instance name of "my_video". Then I attached this code straight from the Help file and changed the file name to play my flv. PHP Code:
What am I doing wrong? ![]()
__________________
Damn the torpedoes! Full speed ahead. Last edited by CyanBlue; 06-11-2004 at 11:31 AM.. Reason: PHP tag is applied |
|
|
|
|
|
#2 |
|
Registered User
Join Date: May 2004
Posts: 14
|
You simply need to change the line:
var ns:NetStream = new NetStream(my_nc); to var ns:NetStream = new NetStream(nc); It's a known error in the help. |
|
|
|
|
|
|
|
|
#3 |
|
Don
Join Date: Feb 2003
Location: Akron, Ohio USA
Posts: 1,897
|
Ok, I changed that per your suggestion, but I still don't see my video.
PHP Code:
__________________
Damn the torpedoes! Full speed ahead. Last edited by CyanBlue; 06-11-2004 at 12:01 PM.. Reason: PHP tag is applied |
|
|
|
|
|
#4 |
|
Don
Join Date: Feb 2003
Location: Akron, Ohio USA
Posts: 1,897
|
Ok, thanks for the tip.
I read thru the help files and got things to work. However, I want to use the media controller and I don't think I understand how to link the controller to my_video. I would use the Media Playback component, but I don't see anywhere how to adjust the size of the component. If I change the property values, it defaults back to the component's original size. --- Oh... never mind. I think I figured that out too!
__________________
Damn the torpedoes! Full speed ahead. Last edited by Navarone; 06-11-2004 at 02:48 PM.. |
|
|
|
|
|
#5 |
|
Registered User
Join Date: May 2004
Posts: 14
|
I have found that changing the AS 2.0-specific syntax from:
ActionScript Code:
to ActionScript Code:
makes it alot more stable - the var declaration along with the object type (:NetStream) seems to make it fail sometimes |
|
|
|
|
|
#6 |
|
bleh.
Join Date: Jun 2004
Location: melbourne.aust
Posts: 303
|
Also you might want to try using the line
ns.play("Videos\\Intro.flv"); Being able to actually find the file helps ![]() -oka |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|