Potrebbero piacerti
how to use: AVProporcao(target, width, height)
aires = AVProporcao(mc, Stage.width, Stage.height); mc._width = aires.width; mc._height = aires.height;
see below the function that will be used to do this:
function AVProporcao(t,w,h){l=t._width;a=t._height;r=Math.max(l/w,a/h);nl=l/r;na=a/r;return {width:nl,height:na};}
After a long time without putting anything here, I bring a very simple way to duplicate columns.
let the variables needed for customization: n is the number of columns; q equals the number of items to be duplicated;
if you want to give spaces between them do the following, modify these lines, leaving them thus b._x=(b._width+10)*c;b._y=(b._height+10)*l;
Below is the code to duplicate columns How to use: add a movieclip to instantiate mc, and put this code in the frame that meets the mc
n=5;l=c=0;q=20;for(j=0;j<q;j++){b=mc.duplicateMovieClip("mc"+j,j);if(c==n){l++;c=0;}b._x=b._width*c;b._y=b._height*l;c++;}mc.unloadMovie();
this.createTextField("t",1,0,0,100,100); with(this.t){html=true;htmlText="<a href='asfunction:trace,@simplescript'>Click here!</a>";}
Cool News Readers for Your Website http://cg5zq.th8.us
Using the example:put on stage a movieclip with the instance of btn.
c=0;btn.onPress=function(){c++;if(c==1){setTimeout(function(){c=0;},250);trace("Single Click");}else if(c==2){c=0;trace("Double Click");}};
United States Tendenze
- 1. #hazbinhotelseason2 67.3K posts
- 2. Good Wednesday 22.2K posts
- 3. Peggy 20.9K posts
- 4. Hump Day 7,637 posts
- 5. #wednesdaymotivation 4,958 posts
- 6. #InternationalMensDay 28.5K posts
- 7. LeBron 90.1K posts
- 8. Baxter 2,642 posts
- 9. #DWTS 55.1K posts
- 10. Dearborn 257K posts
- 11. Kwara 192K posts
- 12. Tinubu 159K posts
- 13. Nigerians 140K posts
- 14. Grayson 7,343 posts
- 15. #MLBS6Spoilers 11.4K posts
- 16. Cory Mills 11.1K posts
- 17. Orioles 7,558 posts
- 18. Patrick Stump N/A
- 19. Whitney 16.8K posts
- 20. Ward 27.4K posts
Something went wrong.
Something went wrong.