Re: [Flashcoders] checking url address hosting swf

2009-11-09 Thread Glen Pike
Pedro Kostelec wrote: Is there a way to search through the archives? There is no way to find a post with such presentation: http://chattyfig.figleaf.com/mailman/private/flashcoders/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread W.R. de Boer
Hello, I am currently working on a little flash project where I would like to place the sprites or elements on the line or circumference of a circle. Now I know how I can get x,y-position of each sprite using the cosinus and sinus functions together with the radius and angle. Only the

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Anthony Pace
it depends on your registration point for each clip. If it is at the bottom centre, than just set the x and y have it be rotated by degree - 90 W.R. de Boer wrote: Hello, I am currently working on a little flash project where I would like to place the sprites or elements on the line or

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Pedro Kostelec
If you put the circle and the sprites of building in a movieclip and then rotate the MC, they should stick to the circle, i think. Or, keep the variable of the angles and then keep increasing the angles of all the sprites for the same amount. (angle1++, angle2++, angle3++) Or, since the angle of

RE: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Steve Abaffy
database 4588 (20091109) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4588 (20091109) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

[Flashcoders] as3 dropdown

2009-11-09 Thread romain DR
Hi there, first message here! I m currently working on some dropdown. Get just a quick question! how do I can close a dropdown with a click outside of the sprite? I was thinking about adding a listener on holder_spr.stage but in that case the listener fire even if I click on one of the option...

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Tony Fouts
Weyert, Here's my approach. Set the registration of the sprites (buildings) to the bottom center and then use the following to determine the rotation: var rotation = (180 - angle); Hope this helps. Tony On Mon, Nov 9, 2009 at 10:41 AM, W.R. de Boer w...@innerfuse.biz wrote: Hello, I am

[Flashcoders] as3 progress bar?

2009-11-09 Thread Mendelsohn, Michael
Hi list... Why is this not working? Why can't I get a progress bar working correctly? Thanks, - Michael M. public function docClass() { loadingGraphic = new Logo(); loadingGraphic.x = 382; loadingGraphic.y

[Flashcoders] RE: as3 progress bar?

2009-11-09 Thread Mendelsohn, Michael
A little more info: My flash file is 600k, so it needs a progress bar. I am also trying stage.addEventListener(Event.ENTER_FRAME, showLoading); But that isn't working either. It's just showing my loading graphic when the whole swf is loaded. I think the issue is the loading graphic is

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread W.R. de Boer
Thanks, people. I am currently generating the movieclips at runtime based on an embedded png file so the origin is always the top left corner. I suppose I could descend from the Sprite-class and override the x,y settings to correct the given x, y position. I suppose I will first try out

Re: [Flashcoders] as3 dropdown

2009-11-09 Thread Henrik Andersson
romain DR wrote: Hi there, first message here! I m currently working on some dropdown. Get just a quick question! how do I can close a dropdown with a click outside of the sprite? I was thinking about adding a listener on holder_spr.stage but in that case the listener fire even if I click on

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Weyert de Boer
After a bike ride down hill to the supermarket and cooking I just tried out all your suggestions and I have to say it appears to work! Really nice, only the problem I am currently happening is the issue when I am creating sprites dynamically during runtime the origin is not in the bottom

RE: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Chris Foster
hi Wyert, If this is the kind of thing you might do more than once then I strongly recommend checking out the 'hype' AS3 framework from Joshua Davis and Branden Hall. http://hype.joshuadavis.com There's a very approachable set of intro videos here: http://www.vimeo.com/channels/hype C:

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Steven Sacks
I highly recommend pastebin for sharing code online: http://pastebin.com/ You can set the syntax highlighting to Actionscript. Makes it much easier to read. :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread David Hunter
hi this is the calculation i used for something very similar. dynamic text layed out round a circle (picture attached), although it doesn't take into account re-registering it so it is top left registration: function makeNames() { for (var i:int=0; ifilmNames.length; i++) {

RE: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Merrill, Jason
Before I am updating the positions as calculated the trigonometry formulas. I haven't been following this thread, but has using the Point.polar() method been mentioned yet? Jason Merrill Bank of America Global Learning Learning Performance Soluions Join the Bank of America Flash

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Steven Sacks
wow that came across as one big line with no breaks. i guess the good luck is in reference to being able to read it. David Hunter wrote: hi this is the calculation i used for something very similar. dynamic text layed out round a circle (picture attached), although it doesn't take into

RE: [Flashcoders] RE: as3 progress bar?

2009-11-09 Thread Mendelsohn, Michael
Thanks for responding Bob. I think this was my issue: Also, in this line if(p.bytesLoaded == p.bytesTotal), you may want to do this if(p.bytesTotal 4 p.bytesLoaded == p.bytesTotal), since bytesLoaded and bytesTotal will be equal before any bytes are loaded, which will kill your listener.

SV: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Mikael Wirén
Hi guys, Been following this thread all day at work. I dunno if i´m totally missing the point here, but to get the effect you look for you only have to add the height of your sprite as an ingredient. like: nx = Math.sin( Math.PI / 180 * angle ) * ( radius + (b.height ) ); ny =

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Weyert de Boer
Yeah, that's a nice big line of code. And yes, I have seen the HYPE framework and looks really interesting but I don't think it's having functionality for the thing I wanted. Jason, yes, indeed you should be able to use Point.polar() it should of course give the same result as long you

RE: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread David Hunter
not sure what went wrong there, terribly embarrassing! i'll try steven sacks suggestion of pastebin:http://pastebin.com/m3e6210bf(i've probably got that wrong too - its been one of those days) hope it helps, david Subject: Re: [Flashcoders] Placing sprites on the circumference of a circle

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Weyert de Boer
Yeah, I think it's working now! The final code for now (it's bedtime!) is as follows: http://www.friendpaste.com/23ImSCDq41zmXXmYUqtT0x Tomorrow, I will experiment with the code from David. Code on pastebin looks all fine. Thanks. Weyert ___