TwelvestoneFlash

video.clear() method bug. workarounds?


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
derrickito
 
2008-09-23

the video.clear() is something that i need use of, but it's an open and unfixed bug with adobe. anyone know of any workarounds?

system i have in place is a list of media playing in a player. if a vid is selected and watched all is good, but then if an audio file is watched directly afterwards, the last frame of the video does not clear out.

Storm
 
2008-09-23

fake video (black FLV?)

heading home d'ito....will be around tonight working on a project for some Frenchies (I'll have to ask ari if he knows them).

explain more of your app for me

derrickito
 
2008-09-30

ROUGH sample site. player is on the top. selections in first column call data from the database to populate a tilelist component in the middle. (the first one is currently working). selecting an item from the tile list will play it in the right player area.

problem im running into is when i select a video the video plays. then when i select an audio file the previous video last frame is stuck on the player screen. video.clear is a function built that usually clears this but does not work (documented bug)

im looking at solutions of either: 1. dumping the video player completely on each selection, then restarting 2. pulling in a blank filler 1 frame transparent video on each click, then playing the next selection

wondering if anyone has had success with those workarounds or knows of another. im currently trying the blank filler transparent clip idea.

thanks storm (and whoever else). this is the biggest video app ive built in flash up until this point, and im sure to have a few more questions along the way.

Storm
 
2008-09-30

IT LOOKS REALLY GOOD!! AND CAPS MEANS I"M EXCITED AND A.D.D.!!!

My thought would be to always load a MovieClip container and push the movie into that. Are you using the player component or your own? Anyway, delete the container MC each time you want to load something and reinsert it on a video click. It will stay blank for the audio link.

....or even better, have a small audio image replace the video in the container?

derrickito
 
2008-09-30

thanks. excited the direction this is taking so far, lots to do on it though.

a little unclear on the course you're talking about. load the video into a movie clip? you mean into a player correct?

im currently loading a video player component with the path to the vid/audio. are you saying that each time i load something i should kill the instance of the component, then put the component back on the stage? in effect deleting / turning back on to clear it out?

if so, you wouldnt happen to have any AS handy that i can view to see how you usually do that do you? can save me a bit of time rewriting it

derrickito
 
2008-09-30

if you want to see a source fla / as file to see how im building this, i can easily throw one together.

Storm
 
2008-09-30

as2 or 3?

I'm actually starting a new one for my brother's film company (AS2) and I'm going to try the player component. The last few vid players I've done are AS3 but I can send you that class too if you want.

info AT is my addy www.storm-studios.com

derrickito
 
2008-09-30

as3. want me to email you some source here and see if you have any suggestions?

derrickito@gmail.com will get to me if you have some source of what you've already done

JLM
 
2008-09-30

pm me if u need as2 or as3 vid class code. I agree with storm.

Storm
 
2008-09-30

I emailed you a file. I may have changed some things in it but pretty sure that one draws the video right to the screen.

derrickito
 
2008-09-30

got your email. thanks. i fixed my video problem above. so that's all good

workaround i did was that on each audio file call, i worked in a function that first plays a short 1 frame transparent video file, that basically clears out the leftovers of the last video. then i call in the audio file.

so this problem is all fixed. thanks all.

im starting up on working on my tilelist component issues. ill start a new thread for that one.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

video.clear() method bug. workarounds?