Jump to content
Search Community

nursyamsi

Members
  • Posts

    6
  • Joined

  • Last visited

nursyamsi's Achievements

0

Reputation

  1. the fla file same as I post before, but without change the looping script from you , sorry I'm not in internet cafe anymore and just replied it from my phone and I can't upload again right now, hehe. Thanks in advance really appreciate
  2. Wow, the error is gone, thank you, it's work, but there's one more, hehe. In frame 5 line 53, I try to adding nextFrame() for each subject of movieclip in Array isiMateri, and jumlahFrame is number of each movieclip, and when I run, the object just move 3 steps of nextFrame, even I change the jumlahFrame with totalFrames, thanks in advance
  3. hi, again I have try it, and the object of bar_mc is existed and I try to debug the fla file I have an Eror TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenMax/init() at com.greensock::TweenMax/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() whe i try to access the button action that have to display another object according to the Array TweenLite.from(navi_mc, 1, {delay:4, y:700}); TweenLite.to(judulMateri[i], 1, {delay:3, x:89.45, y:36.45, ease:Back.easeOut}); TweenLite.to(isiMateri[i], 1, {delay:3.4, x:392.45, y:246.95, ease:Back.easeOut}); then the error TypeError: Error #1010: A term is undefined and has no properties. at MethodInfo-258() came up when I access the object with Array too, by the way, here is my fla theFla thanks in advance
  4. sorry fow slow respon , I don't get it with your explanation can I ask your email, so I can send the fla file?
  5. hi everyone I use TweenLite and TweenMax in my animation code, but there's error, I don't know where the error located, can you help me to find that . here is my error info TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenMax/init() at com.greensock::TweenMax/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1010: A term is undefined and has no properties. at MethodInfo-258() and for other clue here is my full code import com.greensock.*; import com.greensock.easing.*; import flash.display.MovieClip; import flash.events.MouseEvent; var tombolMenu:Array = [menu1, menu2, menu3, menu4, menu5, menu6, menu7, menu8, menu9]; var judulMateri:Array = [title_1,title_2, title_3, title_4, title_5, title_6, title_7, title_8, title_9] var isiMateri:Array = [materi_1, materi_2, materi_3, materi_4, materi_5, materi_6, materi_7, materi_8, materi_9] var jumlahFrame:Array = [10, 5, 6, 8, 4, 9,5, 5, 5]; TweenLite.from(bar_mc, 0.5, {x:5000}); TweenLite.from(subject_mc, 0.5, {delay:1, x:1000}); navi_mc.visible=false; for (var i:int = 0; i< tombolMenu.length; i++){ var gap:Number = i/4; var tombolMenunya = tombolMenu[i]; tombolMenunya.buttonMode = true; //muncul menu TweenLite.from(tombolMenu[i], 0.5, {delay:gap, scaleX:0, scaleY:0, ease:Circ.easeOut}); tombolMenunya.addEventListener(MouseEvent.CLICK, fl_menu_0); function fl_menu_0(e:MouseEvent):void{ TweenLite.to(bar_mc, 0.5, {delay:1,x:5000}); TweenLite.to(subject_mc, 0.5, { x:1000}); for (var i:int = 0; i<= tombolMenu.length; i++){ var gaps:Number = i/4; //menu hilang TweenMax.to(tombolMenu[i], 1,{delay:gaps,scaleX:0, scaleY:0, ease:Circ.easeIn}); //munculkan materi if (e.currentTarget == tombolMenu[i]){ trace(jumlahFrame[i]); navi_mc.visible=true; TweenLite.from(navi_mc, 1, {delay:4, y:700}); TweenLite.to(judulMateri[i], 1, {delay:3, x:89.45, y:36.45, ease:Back.easeOut}); TweenLite.to(isiMateri[i], 1, {delay:3.4, x:392.45, y:246.95, ease:Back.easeOut}); navi_mc.next_mc.addEventListener(MouseEvent.CLICK, fl_next); navi_mc.prev_mc.addEventListener(MouseEvent.CLICK, fl_prev); //navi_mc.home_mc.addEventListener(MouseEvent.CLICK, fl_home); navi_mc.prev_mc.alpha = 0.4; navi_mc.home_mc.alpha = 0.4; navi_mc.prev_mc.mouseEnabled = false; navi_mc.home_mc.mouseEnabled = false; //tombol next function fl_next(e:MouseEvent):void{ for(var i:int = 0; i<= isiMateri.length; i++){ isiMateri[i].nextFrame(); if(isiMateri[i].currentFrame == 2 ){ navi_mc.prev_mc.alpha = 1; navi_mc.prev_mc.mouseEnabled = true; } if(isiMateri[i].currentFrame == jumlahFrame[i]){ trace(isiMateri[i].currentFrame); navi_mc.next_mc.alpha = 0.4; navi_mc.next_mc.mouseEnabled = false; navi_mc.home_mc.alpha = 1; navi_mc.home_mc.mouseEnabled = true; } } } //tombol prev function fl_prev(e:MouseEvent):void{ for(var i:int = 0; i<= isiMateri.length; i++){ isiMateri[i].prevFrame(); if(isiMateri[i].currentFrame == 1){ navi_mc.prev_mc.alpha = 0.4; navi_mc.prev_mc.mouseEnabled = false; navi_mc.next_mc.alpha = 1; navi_mc.next_mc.mouseEnabled = true; } if(isiMateri[i].currentFrame==(jumlahFrame[i] - 1)){ navi_mc.next_mc.alpha = 1; navi_mc.next_mc.mouseEnabled = true; navi_mc.home_mc.alpha = 0.4; navi_mc.home_mc.mouseEnabled = false; } } } //tombol home } } } } thanks everyone, I really appreciate. thanks befor
×
×
  • Create New...