Jump to content
Search Community

muxa

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

muxa's Achievements

0

Reputation

  1. Hello , I managed to find solution to drag content of TextBox up and down but its not stable . once you hold down the scroll-bar and start dragging its working but if u leave the scroll and try to do it again its not working Can i use GreenScok draggable to do that professionally ? I really feel sad i bought green-sock membership thinking that draggable will work fine but its been few days no success this is the example code i hope someone with experiance can guide me how to drag content inside Movie Clip at the stage using same concept " am using Adobe animate cc Canvas Project is attached . --- tl = this; createjs.Touch.enable(tl); linesOfTextF(200); function linesOfTextF(n){ for(var i=0;i<n;i++){ tl.TextBox.text += 'this is line '+i+'\n'; } } paramF(0, 48, 146-20 , 48+146-tl.TextBox.getBounds().height); function paramF(x1,y1,x2,y2){ tl.m = (y1-y2)/(x1-x2); tl.b = y1-tl.m*x1; } //this tl.sb.thumb.addEventListener('mousedown',startdragF); function startdragF(e){ stage.addEventListener('stagemousemove',dragF); stage.addEventListener('stagemouseup',stopdragF); } function stopdragF(e){ stage.removeEventListener('stagemousemove',dragF); } function dragF(e){ if(e.stageY>=48 && e.stageY<=48+146-20){ tl.sb.thumb.y=Math.floor(e.stageY-tl.sb.y); tl.TextBox.y = Math.floor(tl.m*tl.sb.thumb.y+tl.; } } --- Thanks test2.zip
  2. Dear OSUblake, Please can you tell me if its possible to make something like this :- http://zimjs.com/code/bits/view/scrollbar.html using GreenSock draggable ? Thanks
  3. Thanks for you reply and the examples I tried to integrate PIXI example with adobe animate its working but very slow there is an error please review attached picture In Adobe animate CC we can create square symbol Movie clip then attach any item from Library to it My question can we make the item we attached drag gable inside the square symbol not inside the canvas ? can we add nice scroll bar http://manos.malihu.gr/jquery-custom-content-scroller/ to the items list and make them sortable ? i managed to create the attached example with adobe animate but still i can't attach slider or make the grid row move inside the bounds of the MC GridRowlib = new lib.GridRow(); var dragger = new createjs.Container(); dragger.addChild(GridRowlib); Any ideas are highly appreciated Thanks grid2.zip
  4. Hello Everyone, i am learning my way to move from Flash to HTML5 . GreenSock Forum is an amazing place . thank you all i was stuck for a few days trying to understand the Draggable and trying to integrate with Adobe animate cc in order to build Simple scroll-able Data grid I've done that with flash before but in the attached project Draggable always returning "Can't Tween a Null Object object ... var root = this, t; t.from(root.ExampleMC, 1, {y:"500", ease:Back.easeOut}); // working fine Draggable.create(root.ExampleMC); // returns error of null object Any help is highly appreciated i wanna add basic square to act as a holder of all rows and be able sort and load and scroll up and down same as any data grid Please review attached simple example Thanks Grid2_testing.zip
  5. Hello, i am new using Flash AS and i am facing problem requires experts help , i hope you dont mind provide me solution or hints in AS2 i am trying to do the following :- when clicking a button i will attach a MC dynamically inside another Main_MC 1)Attaching the dynamic MC named cipTemp inside the main Main_MC not at the root _root.Main_MC.attachMovie("cipTemp","cip1",100000000); // make the attached cip1 appear at x y set("_root.Main_MC .cip" + 1 + "._x", eval("_root.Main_MC .Seat" + 1)._x); set("_root.Main_MC .cip" + 1 + "._y", eval("_root.Main_MC .Seat" + 1)._y); 2) Then if want to move :- A normal flash move will work without any problem :- eval("_root.Main_MC.cip1")._y = 20; eval("_root.Main_MC.cip1")._x = 20; While greensock animation will not work any advice here will be highly appreciated i search all internet and forum but no change to find solution for my problem com.greensock.TweenMax.to(eval("_root.Main_MC .cip1"),3,{bezier:[{_x:266, _y:262}, {_x:300, _y:345}], orientToBezier:true, ease:Back.easeOut}); // no working or com.greensock.TweenMax.to("_root.Main_MC.cip1",3,{bezier:[{_x:266, _y:262}, {_x:300, _y:345}], orientToBezier:true, ease:Back.easeOut}); // not working.. knowing that attaching to root directly :- _root.attachMovie("cipTemp","cip1",100000000); then move directly will work with greensock Thank you very much.
×
×
  • Create New...