Posts by Tean

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says
..and yes, a delete update button would definitely be a good addition!

I dont get it…. I already have a delete update button :D

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

the code from the pastie is here, i dont really know how this forum formats this:

like I said in my first post, I event tried to go as simply as possible, and just made a shape rectange, converted it into a movieclip, gave an export name of “Box”, and added this code:

var s:Sprite = new Sprite();
addChild(s);

var _box:Box;

for (var i:int = 0; i < 20; i ++) {

    _box = new Box();
    _box.mouseChildren = false;
    _box.buttonMode = true;

    _box.y = i * (_box.height);

    s.addChild(_box);

}
addEventListener(Event.ENTER_FRAME, scroll, false, 0, true);
function scroll(e:Event):void {
    TweenLite.to(s, .5, {y:((stage.stageHeight - s.height)/stage.stageHeight * mouseY)});
}

even if i try like this: _box.y = i * (_box.height – 1); aka tuck the next thumb under the previous one, button mode is still breaking…

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

but if you add the space that brakes the button mode.

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says
I’ve been trying to improve the speed of a project and have done a lot of research but still have a few questions:

1) Is Dictionary ever faster than Array?

2) Are strong references ever faster than weak references?

3) What’s faster: myArray[index] or myArray[int(index)] ?

What kind of project you are making anyway that you need to ask these questions? Are you building a 3D engine?

Show us your code! :D

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says
If your file is is AS3 you can add the buttonMode to the holder that contains the thumnails, and leave the other actions on the thumbs. Have you tried that?

Yes, I have, and result is the same.

I have also tried making just a shape rectangle, wrapping it into a movieClip, give it an export name of “Box” and make it as simlpe as I can:

http://pastie.org/774544

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

I waited 6 days for my file to be rejected for not having enough code comments :D

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

I dont have an online example now so I am using a product from here. I hope the author doesnt mind :)

Anyway, go here: http://activeden.net/item/xml-gallery-with-thumbnail-scroller-v2/full_screen_preview/74687

Put a mouse over thumbnails, and let it scroll and watch button mode “breaks” when crossing from thumb to thumb. I am currently experiencing the same problem and its quite anoying…

One would think its happening because there is a space between thumbs, but I have tried even spacing the thumbs so that each one lies under the previous one (like thumb.x = i * (thumb.width – 1) ) so there cant possibly be any space between, so why is this happening?

Thank you!

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

I dont actually understand that language but I have it clicked for you :) Good luck!

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

I want this in my video player preview:

link

:D

1680 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

There are solutions to that like counter scalling children of maybe 9-slice scaling. But if you dont want for your children to inherit parents properties they probably shouldnt be its children in the first place..

by
by
by
by
by
by