Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function scrollerMouseWheel (e:MouseEvent):void
- {
- if (e.stageX > Marketplace.Mask.x &&
- e.stageX < Marketplace.Mask.x + Marketplace.Mask.width + 45 &&
- e.stageY > Marketplace.Mask.y &&
- e.stageY < Marketplace.Mask.y + Marketplace.Mask.height)
- {
- var dist:Number = (Marketplace.Slots.height - Marketplace.Mask.height) / 177; // 177 edit this
- var h = Scroller.Field.height - Scroller.Trigger.height + 26; // 177 edit this
- dist = h / dist;
- if (e.delta > 0)
- handleScrollerUpDown(-dist);
- else
- handleScrollerUpDown(dist);
- }
- }
- public function scrollerMouseWheel2 (e:MouseEvent):void
- {
- if (e.stageX > Marketplace.PopupTransactions.Mask.x &&
- e.stageX < Marketplace.PopupTransactions.Mask.x + Marketplace.PopupTransactions.Mask.width + 45 && // 177 edit this
- e.stageY > Marketplace.PopupTransactions.Mask.y &&
- e.stageY < Marketplace.PopupTransactions.Mask.y + Marketplace.PopupTransactions.Mask.height)
- {
- var dist:Number = (Marketplace.PopupTransactions.Slots.height - Marketplace.PopupTransactions.Mask.height) / 48; // 177 edit this
- var h = Scroller2.Field.height - Scroller2.Trigger.height + 26; // 177 edit this
- dist = h / dist;
- if (e.delta > 0)
- handleScrollerUpDown2(-dist);
- else
- handleScrollerUpDown2(dist);
- }
- }
- /// search for this in somewhere
- Marketplace.Slots.y = 284.45; // play with the number comparing from flash design mask height size
- public function scrollItems(e:Event)
- {
- var a = Scroller.Field.y;
- var b = Scroller.Trigger.y;
- var dist = (Scroller.Field.y - Scroller.Trigger.y);
- var h = Marketplace.Slots.height;
- var h1 = Scroller.Field.height - Scroller.Trigger.height;
- var mh = Marketplace.Mask.height;
- h -= mh;
- h /= h1;
- var dest:Number = dist * h;
- var step:Number = int (dest / 173); // 173 edit this
- if (Marketplace.Slots.y != (284.45 + (174 * step))) // 173 edit this
- {
- Tweener.addTween(Marketplace.Slots, {y:(284.45 + (174 * step)), time:0.25, transition:"linear"}); // 174 edit this
- }
- }
- public function scrollItems2(e:Event)
- {
- var a = Scroller2.Field.y;
- var b = Scroller2.Trigger.y;
- var dist = (Scroller2.Field.y - Scroller2.Trigger.y);
- var h = Marketplace.PopupTransactions.Slots.height;
- var h1 = Scroller2.Field.height - Scroller2.Trigger.height;
- var mh = Marketplace.PopupTransactions.Mask.height;
- h -= mh;
- h /= h1;
- var dest:Number = dist * h;
- var step:Number = int (dest / 48); // 48 edit this
- if (Marketplace.PopupTransactions.Slots.y != (329+(48 * step))) // 48 edit this
- {
- Tweener.addTween(Marketplace.PopupTransactions.Slots, {y:329+(48 * step), time:0.25, transition:"linear"}); // 48 edit this
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement