Indeed, workaround :
videoDisplay.url = "";
videoDisplay.load();
 
Thanks Stefan.
 
Benoit Hediard


De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Stefan Richter
Envoyé : mardi 4 avril 2006 13:48
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Flex2 : how to stop media (down)loading?

Hi Benoit,
try loading a non-existent flv:
videoDisplay.load("this_flv_is_nonsense.flv");
 
Stefan
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benoit Hediard
Sent: 04 April 2006 12:31
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 : how to stop media (down)loading?

My objective is to get the videoHeight and the videoWidth of a video, just after the upload of a .flv file.
 
In oder to do that, I'm using a videoDisplay control to start loading the flv until I get the width and the height of the video.
It works fine.
 
The problem : how to stop the loading process once I got the required informations?
There is only a load() method...
I've tried to set videoDisplay.url to null or "", and to re-execute load() to cancel the previous one, but it generates an error...
 
I suppose this question is valid for all the "loader" components.
 
Any idea?
 
Benoit Hediard


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to