Guest User

Untitled

a guest
Apr 26th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. var answer:Answer = $event.answer;
  2.  
  3. if(answer.completeSeries)
  4. {
  5. for each(var product:Product in this._productArray)
  6. {
  7. product.alpha = .5;
  8.  
  9. if(product.completeSeries)
  10. {
  11. product.alpha = 1;
  12. }//end if
  13. }//end for each
  14. }//end if
  15.  
  16. if(!answer.completeSeries)
  17. {
  18. for each(var product:Product in this._productArray)
  19. {
  20. product.alpha = .5;
  21.  
  22. if(!product.completeSeries)
  23. {
  24. product.alpha = 1;
  25. }//end if
  26. }//end for each
  27. }//end if
  28.  
  29. if(answer.gel)
  30. {
  31. for each(var product:Product in this._productArray)
  32. {
  33. product.alpha = .5;
  34.  
  35. if(product.gel)
  36. {
  37. product.alpha = 1;
  38. }//end if
  39. }//end for each
  40. }//end if
Add Comment
Please, Sign In to add comment