Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(i = 0; i < info_xml.childNodes[6].childNodes.length; i++) {
  2.            
  3.             trace('ICON ---> '+info_xml.childNodes[6].childNodes[i].attributes.icon);
  4.            
  5.             mc_content.videobar_mc._alpha = 100;
  6.            
  7.             if(info_xml.childNodes[6].childNodes[i].attributes.icon == 'generell') {
  8.                
  9.                 if(info_xml.childNodes[6].childNodes[i].attributes.path != undefined) {
  10.                 trace(mc_content.videobar_mc.video_generell_mc._alpha);
  11.                
  12.                 mc_content.videobar_mc.video_generell_mc._alpha = 100;
  13.                
  14.                 trace(mc_content.videobar_mc.video_generell_mc._alpha);
  15.                
  16.                 flv = info_xml.childNodes[6].childNodes[i].attributes.path;
  17.                
  18.                 mc_content.videobar_mc.video_generell_mc.onPress = function() {
  19.                     show_video_card(info_xml, flv, mc_content.video_mc);
  20.                 }
  21.                
  22.             } else {
  23.                 delete mc_content.videobar_mc.video_generell_mc.onPress
  24.                 mc_content.videobar_mc.video_generell_mc._alpha = 0;
  25.             }
  26.            
  27.             if(info_xml.childNodes[6].childNodes[i].attributes.icon == 'traktor') {
  28.                
  29.                 trace(mc_content.videobar_mc.video_traktor_mc);
  30.                
  31.                 mc_content.videobar_mc.video_traktor_mc._alpha = 100;                  
  32.                 flv = info_xml.childNodes[6].childNodes[i].attributes.path;
  33.                
  34.                 mc_content.videobar_mc.video_traktor_mc.onPress = function() {
  35.                     show_video_card(info_xml, flv, mc_content.video_mc);
  36.                 }
  37.                
  38.             } else {
  39.                 delete mc_content.videobar_mc.video_traktor_mc.onPress
  40.                 mc_content.videobar_mc.video_traktor_mc._alpha = 0;
  41.             }
  42.            
  43.             if(info_xml.childNodes[6].childNodes[i].attributes.icon == 'skordare') {
  44.                
  45.                 trace(mc_content.videobar_mc.video_skordare_mc);
  46.                
  47.                 mc_content.videobar_mc.video_skordare_mc._alpha = 100;                 
  48.                 flv = info_xml.childNodes[6].childNodes[i].attributes.path;
  49.                
  50.                 mc_content.videobar_mc.video_skordare_mc.onPress = function() {
  51.                     show_video_card(info_xml, flv, mc_content.video_mc);
  52.                 }
  53.                
  54.             } else {
  55.                 delete mc_content.videobar_mc.video_skordare_mc.onPress
  56.                 mc_content.videobar_mc.video_skordare_mc._alpha = 0;
  57.             }
  58.            
  59.             if(info_xml.childNodes[6].childNodes[i].attributes.icon == 'hjullastare') {
  60.                
  61.                 trace(mc_content.videobar_mc.video_hjullastare_mc);
  62.                
  63.                 mc_content.videobar_mc.video_hjullastare_mc._alpha = 100;                  
  64.                 flv = info_xml.childNodes[6].childNodes[i].attributes.path;
  65.                
  66.                 mc_content.videobar_mc.video_hjullastare_mc.onPress = function() {
  67.                     show_video_card(info_xml, flv, mc_content.video_mc);
  68.                 }
  69.                
  70.             } else {
  71.                 delete mc_content.videobar_mc.video_hjullastare_mc.onPress
  72.                 mc_content.videobar_mc.video_hjullastare_mc._alpha = 0;
  73.             }
  74.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement