_maxxy

Members
  • Content count

    12
  • Joined

  • Last visited

Community Reputation

0 Newbie

About _maxxy

  • Rank
    Member

Contact Methods

Profile Information

  • Gender
    Not Telling
  1. _maxxy

    insertMultiple with allFrom + single tweens

    haha, genious! Thanks
  2. _maxxy

    insertMultiple with allFrom + single tweens

    Well, I wanted to treat them as two bunches which start at the same time: 1st bunch = allFrom array 2nd bunch = the single tween ...and was trying to launch these simultaneously at a certain point in time of a timeline... Makes sense?
  3. _maxxy

    insertMultiple with allFrom + single tweens

    I love you guys, thanks for a great and a quick response from the both of ya >>>>> I suppose you could just use concat() like: TIM.appendMultiple( TweenMax.allFrom([mc1, mc2, mc3], 0.75, {x:600},2).concat( TweenMax.to(mc4,0.5,{x:150}) ),0, TweenAlign.START,2); Awesome, didn't know about this. That does make life a little easier, however, I was wondering if there was a way to use this in a sense that it will start the tweens concurrently (mc1,mc2,mc3 sequenced + mc4) rather than add everything into one big array...? At the moment, when I want at a particular time of a timeline to append an array of tweens which consists of allFrom array and 'single' tweens concurrently, I typically use the TIM.appendMultiple for the allFrom part and then TIM.insert with times delay to match the start of the allFrom tweens. I'm not aware of any other way this could be done. Cheers m.
  4. _maxxy

    insertMultiple with allFrom + single tweens

    also, for the initial use, which syntax should be used to gather the desired effect please? Both works, not quite sure what is the difference... //1: TIM.appendMultiple(TweenMax.allFrom([z2,z3,z4], 0.75, {x:600, ease:Expo.easeOut}),-.5, TweenAlign.START, 0.1); //2: TIM.appendMultiple(TweenMax.allFrom([z2,z3,z4], 0.75, {x:600, ease:Expo.easeOut, delay:-0.5},0.1)); in the first case, I'm not sure the TweenAlign needs to be present and in the second case I'm confident about the negative delay... Thanks!
  5. Typically I'd use this: TIM.insertMultiple([TweenMax.from(mc1, 1, {x:600}), TweenMax.from(mc2, 1, {x:600}), TweenMax.from(mc3, 1, {x:600})],0, TweenAlign.START, 2); ..for which I could use: TIM.appendMultiple(TweenMax.allFrom([mc1, mc2, mc3], 0.75, {x:600},2)) The question is: Is there a way to use TimelineMax's appendMultiple/insertMultiple with a combination of allFrom (with an array for targetted movieclips) and another 'single' tween, e.g. like something below? TIM.appendMultiple([TweenMax.allFrom([mc1, mc2, mc3], 0.75, {x:600},2), TweenMax.to(mc4,0.5,{x:150})],0, TweenAlign.START,2); //which doesn't work Otherwise I guess the only way to launch tweens for mc1,mc2,mc3 & mc4 at a specific time of a timeline at the same time is: TIM.insertMultiple([TweenMax.from(mc1, 1, {x:600}), TweenMax.from(mc2, 1, {x:600}), TweenMax.from(mc3, 1, {x:600}), TweenMax.to(mc4,0.5,{x:150})],0, TweenAlign.START, 2); ..and even then, I wouldn't be sure how to start the mc1, mc2, mc3 tweens (sequenced) along with the tween for mc4 as it's all part of a single sequence now. Hope that makes sense. Thanks a lot in advance! m.
  6. _maxxy

    Passing on the Object to the function

    I absolutely love ya, it works brilliantly! Although I get an error when trying to specify the "TweenEvent" and have to opt in for "Event" instead...
  7. _maxxy

    Passing on the Object to the function

    my bad. but yes, you are correct. M is the object i.e. "mainMC.mc2.mc3.mc4.M" The question is if instead of just copying and pasting this into the onCompleteParams i.e. onCompleteParams:[mainMC.mc2.mc3.mc4.M] (which does the job) I could write something universal which would pass on the tweened object's name to the CACHE function too. So instead of typing in the object's name, I would like to use something in the sense of "currentTarget" ...see what I mean? thanks again and sorry for causing you a headache, as you can tell, I'm not a programmer
  8. Hi, as usual, thanks so much for making life of the developers so much easier, you are a start Jack! My question: Imagine I have a multiple tweens for different objects which all have the same function called on onComplete. In this function, I would like to cache the previously tweened object. My problem lies in how to pass on the Object into the function so that it gets cached. I can simply copy the name of the object and that works but I was looking for a more dynamic way. Working example: TweenMax.to(M, 1,{x:500, onComplete:CACHE, onCompleteParams:[M]}); function CACHE(THIS:Object){ THIS.cacheAsBitmap = true; trace(M.cacheAsBitmap) } Now, I would like to substitute the "M" in the onCompleteParams with some sort of "variable" because M is a very long name of the path to the desired mc and is always quite different (unlikely to be shortened using a variable etc.) Thanks in advance everyone. m.
  9. _maxxy

    Reversing autoAlpha via TimelineMax

    Jack, you are an absolute superstar, Thanks a million! Sure, suggestions for simplification are welcome!
  10. _maxxy

    Reversing autoAlpha via TimelineMax

    Hey, here it is attached, pretty straightforward. To encounter the problem I'm having, go through 2 scenarios: 1) Without hovering anything but the green button, press it. s1-3 disappear and then the animation is reversed. All is good in the hood. 2) Publish again > First, rollOver the red rectangle and then press the button. s1-3 stay as they were.... ...if you went through 1) and then within the same swf running directly to 2), it works fine also, well sometimes...but if you hover over the red first and then press, screws up... thanks again Jack, I'm sure it will be something stupid as usual. Sorry about the confusion, but running the fla will do the job better I think... Appreciated!
  11. _maxxy

    Reversing autoAlpha via TimelineMax

    ok, problem solved, hit01 was initially with alpha:0 so it had nothing to reverse to hence I guess it didn't reverse the second (visible) attribute either... Another problem encountered within the same animation though: mcs Object(this.parent.parent).N1.S2, Object(this.parent.parent).N1.S1, Object(this.parent.parent).N1.S3 ..disappear as expected initially. However, when I first apply some tween on those and then play the timeline, they remain ignored by it, even if I wait for the tweens to be finished. First I thought it might be something to do with "overwrite" but since they are still, I'm not sure... thanks m.
  12. Hi, I have this code for TimelineMax, which includes autoAlpha. I play the timeline, and then reverse it. All works fine, however, for some reason autoAlpha of one MC is not being reversed. I trace objects' "visible" states before and after tweening. Any suggestions very much appreciated. The MC staying off is the first one in the array - "...hit01". var timelinen1Pressed:TimelineMax = new TimelineMax({paused:true, onComplete:TRACE, onStart:TRACE, onReverseComplete:TRACE}); timelinen1Pressed.insertMultiple(TweenMax.allTo([ Object(this.parent.parent).hit01, Object(this.parent.parent).N2, Object(this.parent.parent).N3, Object(this.parent.parent).N4, Object(this.parent.parent).N5, Object(this.parent.parent).N1.S1, Object(this.parent.parent).N1.S2, Object(this.parent.parent).N1.S3], 1, {autoAlpha:0})); timelinen1Pressed.insert(TweenMax.to(Object(this.parent.parent).N1.masker, 1.5, { rotation:90, delay:.5, scaleY:2,x:250, y:20 ,ease:Expo.easeInOut})); timelinen1Pressed.insert(TweenMax.to(Object(this.parent.parent).N1, 1.5, {x:0, delay:.5, ease:Expo.easeInOut})); timelinen1Pressed.insert(TweenMax.to(Object(this.parent.parent).N1.big1, 1.5, {rotation:90, x:0, y:220, scaleX:3.5, scaleY:3.5, delay:.5, ease:Expo.easeInOut})); timelinen1Pressed.play(); TweenMax.delayedCall(3, RR); function RR() { timelinen1Pressed.timeScale = 2; timelinen1Pressed.reverse(); } function TRACE(){ trace(Object(this.parent.parent).N1.S1.visible) trace(Object(this.parent.parent).hit01.visible) trace(Object(this.parent.parent).N1.S2.visible) trace("//////"); } this results in: Thanks m.