flv hi res low res toggle help!!!!!!!!!!!!!!

  • triad boy
  • Born
  • Born
  • triad boy
  • Posts: 2

Post 3+ Months Ago

I am trying to create a button for my custom flv player that gives the user the ability to toggle between a hi res or low res flv.
The button (instance name = res)will at first be visible but when clicked it will load hi-res.flv and button will disappear
A new button(instance name res2)will appear and when clicked play low res.flv and son like a toggle.

I have the code to toggle between the two flvs but how do i make the buttons function as mentioned above.

Cheers in advance.

Here is my flv toggle code

Code: [ Select ]
var hiVer:Boolean = true;

function playFlik(filmName:String){
ns.play(filmName);
}

res.onRelease = function(){
if(hiVer){
//play hi version
playFlik("hiResMovie.flv");
//toggle
hiVer = false;
}
res2.onRelease = function(){
if(hiVer){
//play hi version
playFlik("hiResMovie.flv");
//toggle
hiVer = false;
  1. var hiVer:Boolean = true;
  2. function playFlik(filmName:String){
  3. ns.play(filmName);
  4. }
  5. res.onRelease = function(){
  6. if(hiVer){
  7. //play hi version
  8. playFlik("hiResMovie.flv");
  9. //toggle
  10. hiVer = false;
  11. }
  12. res2.onRelease = function(){
  13. if(hiVer){
  14. //play hi version
  15. playFlik("hiResMovie.flv");
  16. //toggle
  17. hiVer = false;


[url]http://www.triaduk.co.uk] triad promotional merchandise and business gifts[/url]
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 22 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.