Jump to content
Search Community

kromek

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by kromek

  1. Thank you very much for such complete answer. I was aware that I really shouldn't post irrevelant questions here but the ones related directly to your products that's why I have highlighted the issues I have thought that are related to them. I got a little cornered because there is this small app that I have to make as soon as possible, and scheduled learning AS3 when I get more free time so thanks for the as3 link, looks like a really usefull content. Thanks again, I really enjoy your support and products.
  2. Hi I have some problems on setting up this "minigame" I would really appreciate some help. You can find a game's setup under this link http://postimage.org/image/bdnn0hzf9/ This is a basically a game where you click a button, it would take you to another frame and show some text, you click ok and then it would disappear from the main selection. I want to apply some transitions between these points keeping some elements like moving buttons etc. The code I'm talking about in A and 3 are It is on the frame1 of main scene root level mc is a movieclip with tween butonis is a button var myButton=this.mc.butonis; myButton.onRelease=function(){ TweenMax.to(this, 2, {_xscale:400, _yscale:400, _x:0, _y:0, ease:Elastic.easeOut});; } myButton.onRollOver=function(){ TweenMax.to(this, 1, {glowFilter:{color:0xffffff, alpha:1, blurX:30, blurY:30}}); } myButton.onRollOut=function(){ TweenMax.to(this, 1, {glowFilter:{color:0xffffff, alpha:0, blurX:0, blurY:0}}); } To describe the desired effect is simply when hovering over a moving button it would glow, and after clicking it would make all the other buttons fade out, it would move itself to the 100x and 100y (or even make a small sequence using delays etc.) and then show text etc etc. Thanks !
  3. thanks for everything have a great day
  4. ugh, my bad, It should be Here is how I understand this: There are 5 groups of buttons, for each of them I'd need a separate function like group1 group2 (...), and then make a Tweening with graph.bar1 { _height:group1value1+group2value1+group3value1} ? import com.greensock.*; function group1(graph, value1, value2, value3) { TweenLite.to(graph.bar1, .5, {_height:value1}); TweenLite.to(graph.bar2, .5, {_height:value2}); TweenLite.to(graph.bar3, .5, {_height:value3}); } function group2(graph, value1, value2, value3) { TweenLite.to(graph.bar1, .5, {_height:value1}); TweenLite.to(graph.bar2, .5, {_height:value2}); TweenLite.to(graph.bar3, .5, {_height:value3}); } button1.onRelease = function(){ group1(calciumDeposits, 80, 90, 30); } button1b.onRelease = function(){ group1(calciumDeposits, 45, 20, 5); } button2.onRelease = function(){ group2(calciumDeposits, 10, 20, 30); } button2b.onRelease = function(){ group2(calciumDeposits, 10, 80, 20); } It's just that, I need all the buttons to react to the same graph. It's like having a group of processors, group of graphic cards, a group of memory cards etc., and then a graph that would ilustrate how the Performance, Power Consumption etc. changes upon changing any of the components. in this case button1 could be intel's i7, button 1b - intel's i5, values are put manually using, group1(calciumDeposits, 80, 90, 30);, clicking on one of them changes only the group1value1, respecting the group2value1 thank you for your time edit: another solution could be a dynamic variable probably? var Bar1TotalWidth:Number = group1.value1+group2.value1; and put the Bar1TotalWidth instead of value1 TweenLite.to(graph.bar1, .5, {_height:Bar1TotalWidth});
  5. I don't want to cause any annoyance, someone said "give a finger, he'll take the whole hand", because the following topic isn't directly related to any of your products, but I would like an advice, or a direction where to look for a solution to this kind of problem. Basically, the buttons, has different categories, buttonA1, buttonA2, buttonA3 (..), buttonB1, buttonB2, buttonB3 each of the buttons refers to 3 Movieclips which represents a basic column graph, each of the button categories alters the graph's elements (et's call each element GE1, GE2 ...) let's say buttonA1 gives 80 to GE1. 100 to GE2 and 150 to GE1 buttonA2 gives 40 to GE1. 170 to GE2 and 100 to GE2. (they serve as a base for further modifications) buttonB1 would add 5 to GE1. 10 to GE2 and subtract 30 from GE3 and so on, switching between buttonA1 and A2 etc. would respect the choices made on other category. I have probably an idea how it would work, giving each of the buttons a value, GE's max width is 200px so giving buttonA1 value of (respectively) 80, 100, 150 giving ButtonB1 a 5, 10 and -30. Then writing a formula like GE1 width = ButtonA1 valueforGE1 + ButtonB1 valueforGE1 (...) is this even possible? I'm having a hard time switching from jQuery to AS2, at first glance I was surprised how similar the structure is to jQuery's, but in the practical way they're quite different...
  6. oh wow, lol, so easy, SO EASY, don't think I havent looked at the tips and tricks, just didn't had any idea that would be called "absolute" and "relative". thank you, that was a great one
  7. Hi I'm using your engine, it's so easy and powerful to work with. I have a question though, Since I was playing only with sequencing and with fixed values, I have realized It would help me a lot, if there was any way of adding or subtracting values from the actual _width or _height. Let's say I have 2 buttons and 1 MC button1 adds 10px to the actual width of the mc1 let's say 100, that gives us 110px in width button2 subtracts 5px from it, giving us 105 in width pressing button1 again gives us 115width. are these types of formulas available with tweenlite or twenmax? like currentwidth + value thank you
×
×
  • Create New...