LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-19-2006, 10:40 AM
Pauline M Pauline M is offline
Registered User
 
Join Date: May 2005
Location: you're up
Posts: 83
Rep Power: 9
Pauline M is on a distinguished road
FLVPlayback nested in mc created with attachMovie

Ciao,

I'm having a problem with an mc created with attachMovie. The mc has an instance of FLVPlayback in it that is not displaying the flv movie assigned dynamically to it's contentPath property.

After using attachMovie, apparently the FLVPlayback's contentPath property is assigned correctly, but it's not displaying the flv.

When I was using an instance of the movie clip that is already on the stage I could assign contentPath without a problem and the video displays.

I'm working with XML and custom classes so I'll only show a few code snippets. Here's the code that works fine using an instance already on the stage:

Code:
this.mainTimeline.videoActivity.playback.contentPath = mediaActivity.getMediaFileURL() ;
(playback is the name of the FLVPlayback instance. mediaActivity.getMediaFileURL() returns the flv that gets played no problem.)

Here's the part that's not working, when I attach the movie clip. It looks like this (done within a loop):

Code:
var videoClip:MovieClip = mainTimeline.attachMovie( "VideoCaseHistory" , MCName,  (i + 10) ) ;
videoClip.playback.contentPath = mediaActivity.getMediaFileURL() ;
This works fine to create the movie clip and all it's parts, at least visually. A button can access the movie clip to change it's position no problem. But the video is not displaying.

While debugging, I did a for-in loop to check and see if I could find the nested component and it's properties. It finds the FLVPlayback instance fine and it finds it's contentPath property. The contentPath even shows the right value for the flv, but it's not displaying.

Is there something I'm missing, big DOH!, or something strange about using the FLVPlayback instance in connection with attachMovie?

Any tips are greatly appreciated,
Pauline
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping FLVPlayback, Help! milagre Newbies 3 08-04-2008 12:25 PM
Nested Shapes vs. Nested Sprites in AS 3.0 clem_c_rock ActionScript 3.0 2 05-23-2008 01:53 AM
Targeting programatically created Movie from within externally loaded swf gp_330 Flash MX 2004 2 11-08-2005 08:49 PM
Do data components not work on Nested Screens? Younify Actionscript 2.0 Components 0 08-12-2005 04:52 PM
assigning script to objects created with attachMovie Dark Abyss Flash MX ActionScript 9 02-24-2005 07:40 PM




All times are GMT. The time now is 09:14 AM.