Jump to content
GreenSock

Search the Community

Showing results for tags 'for'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. I need to tween five movieclips that are contained in the links_menu array. I want them to tween on onRollOver event. i used a for loop which seems to work fine, because when i put trace (this._name) it returned the name of the movieclip i was rollingover to, so until this point, it's all fine. However, when i put a TweenMax.to(this._name, 1, {anything}); nothing happens. clues? I am just begining to crawl in tweenlite as well as actionscript... sorry if this is too basic guys. for (i=0; i<links_menu.length; i++) { links_menu.onRollOver = function (){ TweenMax.to(this._name, 1, {_x:"19", _y:"-4.75"}); }}
  2. I need some help. I'm new to ActionScript and my code looks too long. If I make more button and checkbox, it would be much longer. I'm sure there is some way to make it shorter. So if anyone can help me, it would be much appreciated. Here is my code. var checks:Array = [check01,check02,check03,check04,check05,check06,check07,check08,check09,check10,check11,check12,check13,check14,check15,check16,check17,check18,check19]; var btnENums:Array = ["btnE01","btnE02","btnE03","btnE04","btnE05","btnE06","btnE07","btnE08","btnE09","btnE10","btnE11","btnE12","btnE13","btnE14","btnE15","btnE16","btnE17","btnE18","btnE19"]; addEventListener(Event.ENTER_FRAME, checkBoxHandler_1); function checkBoxHandler_1(event:Event):void { if (btnspeak.currentLabel == "btnE02" && check02.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE03" && check03.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE04" && check04.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE05" && check05.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE06" && check06.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE07" && check07.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE08" && check08.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE09" && check09.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE10" && check10.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE11" && check11.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE12" && check12.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE13" && check13.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE14" && check14.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE15" && check15.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE16" && check16.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE17" && check17.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE18" && check18.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } else if (btnspeak.currentLabel == "btnE19" && check19.selected == false) { btnspeak.gotoAndStop("btnS01-1"); MovieClip(parent).control.playandstop.gotoAndStop(1); } if (btnspeak.currentLabel == "btnS01-1") { removeEventListener(Event.ENTER_FRAME, checkBoxHandler_1); } }
×