RE: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Pete Miller
This will happen if elements.length is undefined. i will never equal undefined. Use i elements.length P -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of daniel Sent: Tuesday, July 10, 2007 11:52 PM To:

[Flashcoders] Buggy results with textfield.restrict attribute

2007-06-29 Thread Pete Miller
I needed a text field which only accepts letters, digits, spaces, or a dollar sign or underbar, so I set the restriction attribute as: textfield.restrict = A-Za-z0-9 _$ OK, then I needed to add accented characters, so I added: textfield.restrict = A-Za-z0-9 _$\u00C0-\u00d6 Now, the text

RE: [Flashcoders] copying text to clipboard?

2007-06-25 Thread Pete Miller
System.setClipboard() -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Monday, June 25, 2007 10:16 AM To: Flashcoders mailing list Subject: [Flashcoders] copying text to clipboard? Hey guys a client is wanting me

RE: [Flashcoders] onChanged and carriage return

2007-06-21 Thread Pete Miller
Are you testing this within the IDE? Just a guess, but perhaps you need to ControlDisable Keyboard Shortcuts -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: Thursday, June 21, 2007 7:11 AM To:

[Flashcoders] Does FLEX have web services?

2007-06-19 Thread Pete Miller
Does FLEX include a SOAP-based web services component? Does it work better than the buggy MX component (i.e. huge memory leak)? We have shied away from Flash Remoting for the time being; I'm simply looking to determine if there is support for SOAP web services. Pete Miller

RE: [Flashcoders] Class structure

2007-05-07 Thread Pete Miller
Sounds like the second class should be the base class. Extend the larger from the smaller. P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Monday, May 07, 2007 4:10 PM To: Flashcoders mailing list Subject:

RE: [Flashcoders] Datagrid sorting

2007-03-15 Thread Pete Miller
Is dataProvider.sortOn a proper method? Do you want dataProvider.sortItemsBy instead? P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, March 15, 2007 1:16 PM To: flashcoders@chattyfig.figleaf.com

[Flashcoders] Adding a function to the String prototype

2007-02-13 Thread Pete Miller
I thought this was as easy as: String.prototype.traceFoo = function():Void { trace(foo); } var s:String = new String(); s.traceFoo(); But that results in an error, There is no method with the name 'traceFoo'. Well, duh, traceFoo doesn't exist until the code executes, but how do you

RE: [Flashcoders] Adding a function to the String prototype

2007-02-13 Thread Pete Miller
the Adobe class and the Core2 class. eKA+ :) 2007/2/13, Pete Miller [EMAIL PROTECTED]: I thought this was as easy as: String.prototype.traceFoo = function():Void { trace(foo); } var s:String = new String(); s.traceFoo(); But that results in an error

RE: [Flashcoders] Coding Standards: Use of Get/Set

2007-02-13 Thread Pete Miller
Just to fuel your query, how does it affect the user to know whether they are 'get'-ing from a variable or a function call, encapsulation considered? P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Holth, Daniel C. Sent: Tuesday,

RE: [Flashcoders] XRay freezes controls?

2007-02-05 Thread Pete Miller
in the Xray UI, or rolling over it, gives you the same effect as clicking/rolling over the control on the stage. So the question is, what happens when you click the control on the stage? Karina -Original Message- From: Pete Miller [mailto:[EMAIL PROTECTED] Sent: 02 February 2007 20

RE: [Flashcoders] XRay freezes controls?

2007-02-05 Thread Pete Miller
in the Xray treeview generates a similar response as clicking on it in real. K. -Original Message- From: Pete Miller [mailto:[EMAIL PROTECTED] Sent: 05 February 2007 16:38 To: Flashcoders mailing list Subject: RE: [Flashcoders] XRay freezes controls? I'm publishing to AS2.0

RE: [Flashcoders] XRay freezes controls?

2007-02-05 Thread Pete Miller
: Pete Miller [mailto:[EMAIL PROTECTED] Sent: 05 February 2007 17:39 To: Flashcoders mailing list Subject: RE: [Flashcoders] XRay freezes controls? Therein is my problem. Once I click on an item in the treeview, the corresponding item in the movie becomes locked up; it no longer responds

[Flashcoders] XRay freezes controls?

2007-02-02 Thread Pete Miller
I'm trying out XRay for the first time, and it seems that after taking a snapshot, when I click on an item in the UI to examine its properties, that control becomes disabled (no longer responds to mouse events) anymore. If I examine the properties of an mc containing controls, the entire mc is

RE: Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Pete Miller
Without looking up the source of that formula (i.e., just based on what you wrote), I determine this: that in order for the result of multiplication to be negative, one of the terms containing subtraction must be negative. In order for that to occur, one side of your triangle is longer than the

RE: [Flashcoders] AS2 OOP Class Structure for simple pong type game

2006-12-13 Thread Pete Miller
Another possible strategy is for the ball to fire off an event every time it crosses certain vertical location thresholds. The target objects could then listen for the event which matches their vertical location to test for a collision. For example, when the ball descends to the row containing

RE: [Flashcoders] AS2 OOP Class Structure for simple pong type game

2006-12-13 Thread Pete Miller
an event system like this in games? It seems like a good idea, but for some reason I always thought this approach would introduce unnecessary latency, but now I'm not sure why! -Scott On 12/13/06, Pete Miller [EMAIL PROTECTED] wrote: Another possible strategy is for the ball to fire off

RE: [Flashcoders] problems with dataGrid.selectedIndex

2006-11-15 Thread Pete Miller
Are you by any chance trying to set the selectedIndex before the dataProvider array has been filled? Presumably myTrack_Pos is known immediately via the URL query-string, but the datagrid needs time to become populated (via XML?). -Original Message- From: [EMAIL PROTECTED]

RE: [Flashcoders] Need help from PHP coder

2006-11-10 Thread Pete Miller
=fopen(myxml.xml,w); fwrite($fp,$HTTP_RAW_POST_DATA); fclose($fp); ? ! -- END PHP -- On Nov 9, 2006, at 2:49 PM, Pete Miller wrote: Learn PHP is still on my to-do list, and now I'm fumbling my way through a few simple PHP scripts. I simply want to send an XML object to a PHP script

[Flashcoders] Best way to detect an idle user?

2006-11-09 Thread Pete Miller
My application starts with a user login/authentication. I want to implement an idle user process that logs the user out after X amount of time of no activity. The most obvious way I can think to do this is to start an interval timer, and keep reseting it any time a widget is used. That means

RE: [Flashcoders] Noob, basic questions on actionscript, with methodology suggestions

2006-11-09 Thread Pete Miller
Additionally, the reason you must create a function is because, as you put it, it is something that one will use again and again. Not in the way you understand it however. The XML class definition knows that there is (should be) a function called onLoad() that it must call when it successfully

RE: [Flashcoders] Noob, basic questions on actionscript, withmethodology suggestions

2006-11-09 Thread Pete Miller
You tripped, exactly the way I described earlier, by accessing external_xml right after calling Load(). Wait until onLoad() is called before doing anything with external_xml. You should trace the XML object inside the onLoad function: external_xml.onLoad = function(success:Boolean) { if

[Flashcoders] Need help from PHP coder

2006-11-09 Thread Pete Miller
Learn PHP is still on my to-do list, and now I'm fumbling my way through a few simple PHP scripts. I simply want to send an XML object to a PHP script that will write it to the server. What PHP function will catch the end result of a XML.send() function? No need for too many details, I'll read

RE: [Flashcoders] Noob, basic questions on actionscript, with methodology suggestions

2006-11-09 Thread Pete Miller
I wuz a noob once. I cured it by hanging out with non-noobs. P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, November 09, 2006 5:36 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Noob,

RE: [Flashcoders] Best way to detect an idle user?

2006-11-09 Thread Pete Miller
maxIdleTimeExceeded(nDiff:Number){ trace(Method 2: You've been idle for +nDiff+ seconds. Get Moving!!!); } */ // END USAGE On Nov 9, 2006, at 1:45 PM, Pete Miller wrote: My application starts with a user login/authentication. I want to implement an idle user process that logs the user

[Flashcoders] Complex data type in webservice call

2006-10-30 Thread Pete Miller
My backend server is changing its web service component from an RPC/encoded binding to document/literal, and Flash is producing an odd result when sending complex objects. The short story is this: the object that I'm sending as a parameter is complex; it contains an array of objects. It

RE: [Flashcoders] EventDispatcher and Delegate - where am I goingwrong...

2006-10-26 Thread Pete Miller
Pressing your button causes the code to create the delegate function, not execute it. You want the result of Delegate() to be stored as the onRelease function. Do this: this.mcButton.onRelease = Delegate.create(this.objRef, onClick) P. -Original Message- From: [EMAIL

RE: [Flashcoders] Q:Elementary Trig part 2

2006-10-22 Thread Pete Miller
Check your algebra, Since sin(a) = y/r, then y = r sin(a), etc. P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Jayson K Hanes Sent: Sunday, October 22, 2006 7:42 PM To: Flashcoders mailing list Subject: RE: [Flashcoders]

RE: [Flashcoders] incrementing a target?

2006-10-19 Thread Pete Miller
Get rid of the extra period _root.mainMC.auto.subMC.[textField+i].text = ^ ^ _root.mainMC.auto.subMC[textField+i].text = -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED]

RE: [Flashcoders] Alternative IDE for Flash Devel

2006-10-17 Thread Pete Miller
I'm having the same problem and I don't think it was answered. How do I tell FlashDevelop/MTASC what/where my packages are? If my class path is MyDirectory, and I import components.* from MyDirectory/components, how do I add this to the setup? I've tried several combinations, but haven't hit

RE: [Flashcoders] Alternative IDE for Flash Devel

2006-10-13 Thread Pete Miller
Hi Pete, check out the project page for flasc, there are video's available that demo it. In addition as mentioned before, FlashDevelop wraps around mtasc too. greetz JC On 10/13/06, Pete Miller [EMAIL PROTECTED] wrote: This looks great, but I can't figure out how to create a project

RE: [Flashcoders] Alternative IDE for Flash Devel

2006-10-12 Thread Pete Miller
This looks great, but I can't figure out how to create a project in FLASC. Specifically, it asks me to create a batch file first. What batch file? What it is looking for? P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Steven Sacks

RE: [Flashcoders] Class Problem + Bad attitudes

2006-10-06 Thread Pete Miller
RTFM has been an obligatory response since the day we started using the Internet to ask questions. Its not just programmers. P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of slangeberg Sent: Friday, October 06, 2006 1:11 PM To:

RE: [Flashcoders] How to create a preloader that plays in full

2006-10-05 Thread Pete Miller
A preloader by definition is a short, small movie that loops endlessly until the swf is completely loaded; the load-end stops the movie. You're describing a movie that wants to end when it reaches its last frame. What does it have to do with the load process? You cannot guarantee which will end

RE: [Flashcoders] How to create a preloader that plays in full

2006-10-05 Thread Pete Miller
And a preloader for the preloader's preloader...does Zeno's Paradox apply here? -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Aaron Roberson Sent: Thursday, October 05, 2006 1:57 PM To: Flashcoders mailing list Subject: Re:

RE: [Flashcoders] Array problem

2006-09-28 Thread Pete Miller
If someIndex != 0 then you have to foo[someIndex] = new Object(); foo[someIndex].typ = B; P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Thursday, September 28, 2006 1:26 PM To: Flashcoders mailing list

RE: [Flashcoders] Help debug a webservice issue

2006-09-25 Thread Pete Miller
Try putting a saveResultObj.onFault() handler in your code to see if you're getting a failure response. Note that if your server responds with a 505 HTTP header, your fault handler won't see it, as the Flash player filters these out. You need a TCP snoop utility to monitor the messages passed

RE: [Flashcoders] Label -- null

2006-09-25 Thread Pete Miller
I think you probably want parenthesis around your typecast, as var label:Label = (Label)(owner.attachMovie(Label.symbolName, instanceName, depth, initObj)); P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Lieven Cardoen Sent:

RE: [Flashcoders] ComboBox,Depth, Draw API - Bug?

2006-09-06 Thread Pete Miller
Try tracing the value that you get from getNextHighestDepth(). If the result is 1048575, you are incorporating v2.0 components, which causes getNextHighestDepth() to be less than useful. Use DepthManager instead. This pointer isn't entirely related, but might help explaining why:

[Flashcoders] (no subject)

2006-09-02 Thread Pete Miller
I picked this book up after thumbing through it and deciding that one or two chapters would solve a problem I had. Later, when I read the entire book, I realized that the XML layout framework described by the author is quite useful. I am currently using it in a next-gen version of a project