Re: [Flashcoders] Fit browser around flash content

2010-03-23 Thread Paul Andrews
On 24/03/2010 02:08, Paul Andrews wrote: Usually I just center flash content in the browser window. I have a flash movie that navigates to a separate location in a new browser window. My client has requested that the new browser window fits the flash content. So far the new browser window has s

[Flashcoders] Fit browser around flash content

2010-03-23 Thread Paul Andrews
Usually I just center flash content in the browser window. I have a flash movie that navigates to a separate location in a new browser window. My client has requested that the new browser window fits the flash content. So far the new browser window has stubbornly refused to wrap the flash conte

Re: [Flashcoders] xml: counting parents

2010-03-23 Thread Karl DeSaulniers
Actually you can have a field in the employees dataset that lists the manager overseeing and when you query your employee you can pull that field and you can also use a wild card to find all employees under that manager. Best, Karl On Mar 23, 2010, at 9:17 AM, kennethkawam...@gmail.com w

Re: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Mark Winterhalder
On Tue, Mar 23, 2010 at 8:36 PM, Merrill, Jason wrote: >  You use @see > instead of @eventType when documenting an event? Not anymore, now that I've learned about @eventType. :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chat

RE: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Merrill, Jason
Yes, same docs - I switched mine back to the string, not the constant, more appropriate, but that's beside the point I guess. You use @see instead of @eventType when documenting an event? Jason Merrill Bank of America Global Learning Learning & Performance Solutions Join the Bank of Ameri

Re: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Mark Winterhalder
On Tue, Mar 23, 2010 at 5:18 PM, Merrill, Jason wrote: > like you see in the help docs. Are you looking at the same docs I'm looking at? Because mine only have the String, not the constant name listed under Events. Here's what I use: /** * Description * * @see

RE: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Merrill, Jason
OK, I found that it works if I embed the event as a metadata tag in my AS3 class, but is this really necessary? Unless someone tells me know, I guess I'll assume so. Not a big deal I guess... /** * My description goes here. * @eventType XMLFileLoaderEvent.LOAD_COMPLETE

[Flashcoders] RE: right-click triggers MOUSE_LEAVE?

2010-03-23 Thread Mattheis, Erik (MIN - WSW)
Elsewhere in the code I'd set the textfield's selectable property to false. When I set the selectable to true in the textfield.click handler, Event.MOUSE_LEAVE no longer fires on right-click. Problem solved! _ _ _ Erik Mattheis Senior Web Developer Minneapolis T  952 346 6610 C 612 377 2272 Web

Re: [Flashcoders] Distribute evenly over half a circle

2010-03-23 Thread Jiri
tnx Erik. Jiri On 23/03/2010 16:33, Mattheis, Erik (MIN - WSW) wrote: Half a circle is PI radians, so you'd increment by Math.PI / (totalNumbers - 1) Try - function plot():void { var totalNumbers:int = 5; var radius:Number = 30; var startAt:Number = Math.PI/2;

[Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Merrill, Jason
Google failing me on an ASDoc question, every article references how to document an event declared with a Metadata tag in the Flex framework, but not how to document that a regular old Flash AS3 class dispatches a certain event. I'm using FlashDevelop which is tied into the Flex 3 SDK's ASDoc a

RE: [Flashcoders] Distribute evenly over half a circle

2010-03-23 Thread Mattheis, Erik (MIN - WSW)
Half a circle is PI radians, so you'd increment by Math.PI / (totalNumbers - 1) Try - function plot():void { var totalNumbers:int = 5; var radius:Number = 30; var startAt:Number = Math.PI/2; var arc:Number = Math.PI / (totalNumbers - 1); for (var

[Flashcoders] Distribute evenly over half a circle

2010-03-23 Thread Jiri
Does someone know how to distribute a n number of sprite of a top half circumference of a cicrle. I have this, but cant figure out the offset. function plot():void { var totalNumbers:int = 5; var slice:Number = ( 180 / totalNumbers ); var p:Point; for (var n:N

Re: [Flashcoders] Recursive:Part II

2010-03-23 Thread mark . jonkman
Hi As Kenneth pointed out, E4X is very powerful by itself avoiding the need to break things down into arrays and multidimensional arrays etc. As yesterday's threads proved, there are many ways to approach and solve building an org chart from XML. Probably one of the simplest routes one could

Re: [Flashcoders] xml: counting parents

2010-03-23 Thread kennethkawam...@gmail.com
I am not a database person but I think in this case you would have 2 tables in the database: one for roles/report lines and one for employees - they are two completely different data sets. (And the 3rd table for the relationships between the two.) -- Kenneth Kawamoto http://www.materiaprima.co.uk/

RE: [Flashcoders] xml: counting parents

2010-03-23 Thread Gregory Boudreaux
In our organization, I can find any employee ID and their Manager's ID. Do you have that information available? I once built an AJAX app that functioned as a tree view of an organization by knowing who an employee's manager is. gregb -Original Message- From: flashcoders-boun...@chattyf

Re: [Flashcoders] xml: counting parents

2010-03-23 Thread Dave Watts
> The thing that's missing, so far, is the structure--who reports to > whom, whether it's a direct report or dotted-line, what the hierarchy > is. You have to have that information to have a usable org chart. The hierarchy of the XML document itself can provide that information. The only issue I c

Re: [Flashcoders] xml: counting parents

2010-03-23 Thread Kerry Thompson
Dave Watts wrote: > So if there's an organizational shuffle of roles, I'd have to rewrite > my XML schema? Because that sort of thing happens all the time, and a > rigid hierarchy simply won't be able to match that without frequent > changes. I thought of that, which is why I suggested using some

Re: [Flashcoders] Counting xml attributes

2010-03-23 Thread kennethkawam...@gmail.com
xml..*.(@attribute == "value").length() -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 23 March 2010 13:20, Lehr, Theodore wrote: > Is there a way to loop through xml and count how many times an attribute has > a given value? ___ Flashcoders ma

[Flashcoders] Counting xml attributes

2010-03-23 Thread Lehr, Theodore
Is there a way to loop through xml and count how many times an attribute has a given value? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Recursive:Part II

2010-03-23 Thread kennethkawam...@gmail.com
I won't - the beauty of E4X is to me is that you no longer need to translate XML into Array or Object like in AS2 days! -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 23 March 2010 11:13, Lehr, Theodore wrote: > So does it make sense to think that it would be easier to create an org > ch

RE: [Flashcoders] Recursive:Part II

2010-03-23 Thread Lehr, Theodore
So does it make sense to think that it would be easier to create an org chart/flow chart like look if I first put the xml into a multi-dimensional array? Or would I be dealing with the same issues? ___ Flashcoders mailing list Flashcoders@chattyfig.figl

Re: [Flashcoders] flv stop loading / close netconnection

2010-03-23 Thread Andrew Kenward
Hi David when you .close() the connection to the netstream object/video it stops the download and you lose the connection. I would also remove it from the displaylist. If you then want to go back to that same video after using .close() then you have to make a new connection to the video. So rel

RE: [Flashcoders] flv stop loading / close netconnection

2010-03-23 Thread Cor
Hi David, I didn't see it was you. :-) In fact it was you who gave me this solution a few days ago The FLVplayback has a reconnected() function. Called by the VideoPlayer object to ask for reconnection after the connection is lost. Once the connection is either successful or failed, call the Vide