Re: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-28 Thread Ian Thomas
Method: public static function refExists(obj:Object,name:String):Boolean { try { if (obj[name]!=null) return true; } catch (e:ReferenceError) {} return false; } HTH, Ian On Tue, Oct 28, 2008 at 8:36 AM, Ian

RE: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-28 Thread Karim Beyrouti
This is great - thank you -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: 28 October 2008 08:46 To: Flash Coders List Subject: Re: [Flashcoders] AS3 - Checking if a Function Exists Method: public static function refExists

Re: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-28 Thread Ian Thomas
28, 2008 at 2:13 PM, Karim Beyrouti [EMAIL PROTECTED] wrote: This is great - thank you -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: 28 October 2008 08:46 To: Flash Coders List Subject: Re: [Flashcoders] AS3 - Checking

Re: [Flashcoders] AS3 associativ array length=0

2008-10-28 Thread Kevin Newman
It's normal behavior for AS3. In fact, there is no Associative Array in AS3 (that's a PHP term and convention). You'd want to look into using a Dictionary object or iterating over a dynamic object: var foo:Object ={item1: val, item2: val}; var count:int = 0; for (var bar:* in foo) {

Re: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-28 Thread Steven Sacks
Do not call return in a try catch. Ian Thomas wrote: Method: public static function refExists(obj:Object,name:String):Boolean { try { if (obj[name]!=null) return true; } catch (e:ReferenceError) {} return false; }

Re: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-28 Thread Paul Andrews
- Original Message - From: Steven Sacks [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 29, 2008 2:20 AM Subject: Re: [Flashcoders] AS3 - Checking if a Function Exists Do not call return in a try catch. Are you suggesting

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread Paul Andrews
If you want an associative array like that use Object, not Array. The length of an array is the number of elements in the array, so it's 0. obj[name] is referring to an attribute of an object not an element of an Array.. Do you really have to store values like that? Paul - Original

Re: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Zeh Fernando
The ethos of AS3 is that instead of watching something, you indeed setup events that are fired when they change. So instead you just do an .addEventListener() to the object created. Each object type has particular events it can fire. A LoaderInfo class dispatches complete, httpStatus, init,

Re: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Ashim D'Silva
Use classes and getters and setters. Getting into details with this would take a while, but look it up. It's far more efficient than a watch. 2008/10/27 Samuel Adu [EMAIL PROTECTED]: Hey guys, I need a little help here... I'm working on porting some existing AS2 code to AS3. A porting of the

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread Hans Wichman
Hi, I'm guessing the dictionary object allows you to retrieve the size of the keyset, might be of help. greetz JC On Mon, Oct 27, 2008 at 2:58 PM, Paul Andrews [EMAIL PROTECTED] wrote: If you want an associative array like that use Object, not Array. The length of an array is the number of

Re: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-27 Thread Hans Wichman
If ( currentSection[refresh] != null ) { currentSection[refresh](); } ? grtz JC On Mon, Oct 27, 2008 at 3:02 PM, Karim Beyrouti [EMAIL PROTECTED] wrote: Hello Group - This should be really easy. I am trying to find out how to check if a function exists

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread laurent
I have a static Caddy Class that needs defferent views to show its content. I think I really need to store them with a name, so I could make a viewsNum to store how many views I got. The thing is then I update all the views and need to iterate through the whole views array/object. For that

RE: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Merrill, Jason
Subject: Re: [Flashcoders] AS3 Object.watch equivalent Use classes and getters and setters. Getting into details with this would take a while, but look it up. It's far more efficient than a watch. 2008/10/27 Samuel Adu [EMAIL PROTECTED]: Hey guys, I need a little help here... I'm working on porting

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread Paul Andrews
need a dictionary. A lot of people try and write AS3 code using AS1/AS2 habits, so that's why I asked. Paul - Original Message - From: laurent [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, October 27, 2008 2:25 PM Subject: Re: [Flashcoders

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread laurent
something like that should do it: public function Caddy() { if ( getQualifiedClassName( super ) == ::Caddy ) { throw new ArgumentError( Use get instance pl0x. ); }else{ _listproduct = new Array(); _views = new Array();

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread jonathan howe
Hi, laurent, I'm missing why you can't just use the for (prop in views) { var view:Classname = views[prop] as Classname; } type syntax? On Mon, Oct 27, 2008 at 10:25 AM, laurent [EMAIL PROTECTED] wrote: I have a static Caddy Class that needs defferent views to show its content. I

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread laurent
you for sharing possibilities. L Paul - Original Message - From: laurent [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, October 27, 2008 2:25 PM Subject: Re: [Flashcoders] AS3 associativ array length=0 I have a static Caddy Class that needs

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread laurent
Hm yeah...I can't remember if I have memory problems or if I'm just ignorant. So I swap to object, don't need all the stuff stuffed with array. jonathan howe a écrit : Hi, laurent, I'm missing why you can't just use the for (prop in views) { var view:Classname = views[prop] as

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread laurent
Yes that makes everything more simple. Thanks everyone. L jonathan howe a écrit : Hi, laurent, I'm missing why you can't just use the for (prop in views) { var view:Classname = views[prop] as Classname; } type syntax? On Mon, Oct 27, 2008 at 10:25 AM, laurent [EMAIL PROTECTED] wrote:

Re: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-27 Thread Steven Sacks
if (currentSection.refresh) { currentSection.refresh(); } Karim Beyrouti wrote: Hello Group - This should be really easy. I am trying to find out how to check if a function exists or not in AS3 - I tried this: code If ( currentSection.refresh != null ) {

Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-23 Thread Kenneth Kawamoto
The other thing caught my eye is this bit: mobileNumber.text != NaN mobileNumber.text != undefined text property is ALWAYS String, therefore it cannot be a Number or undefined. The code should not compile. Kenneth Kawamoto http://www.materiaprima.co.uk/ - Original Message - From:

Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-22 Thread Paul Andrews
I'm surprised if it compiles. First look: trace(EnterFrame+(frame+)); should at least be trace(EnterFrame+(frame++)); Try that. I'd be tempted not to use enterframe at all and validate on submit. Paul - Original Message - From: FlashDev [EMAIL PROTECTED] To: Flash Coders List

Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-22 Thread jonathan howe
But he wants the button to be disabled until it passes validation. Maybe it's okay to do it the dirty way instead of assigning 4 different listeners to each of the validated fields but... I guess I would still have a single validation function that is called onchange of the various entry

Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-22 Thread sebastian
Assuming the form is also in the same flash file: I see no reason to use 'Event.ENTER_FRAME' Just have the other parts of your code 'activate' when you click the 'submit' button. Sebastian jonathan howe wrote: But he wants the button to be disabled until it passes validation. Maybe it's

Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-22 Thread Ashim D'Silva
I don't know why its crashing but: I don't see what your frame++ is doing because you reset it to 0 right before anyway, so you should keep getting EnterFrame 1 anyway. Secondly, your else should also carry code to disable the Submit button, so that if someone fills things in and then deletes it

Re: [Flashcoders] AS3 flash is treating static function call as property?

2008-10-14 Thread Cédric Tabin
Hello, Didn't you forget the 'public' before class ? :) Regards, Cedric On Tue, Oct 14, 2008 at 4:05 PM, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: hey guys quick question for you as3 coders: i have an old as2 class which i've converted to as3 that checks to see where the

Re: [Flashcoders] AS3 flash is treating static function call as property?

2008-10-14 Thread Allandt Bik-Elliott (Receptacle)
awesome - knew it was something stupid - i've been doing wy to much as2 recently :) thanks guys a On 14 Oct 2008, at 15:24, Cédric Tabin wrote: Hello, Didn't you forget the 'public' before class ? :) Regards, Cedric On Tue, Oct 14, 2008 at 4:05 PM, Allandt Bik-Elliott (Receptacle)

Re: [Flashcoders] AS3 flash is treating static function call as property?

2008-10-14 Thread Ian Thomas
Try replacing: class Path with: public class Path HTH, Ian On Tue, Oct 14, 2008 at 3:05 PM, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: hey guys quick question for you as3 coders: i have an old as2 class which i've converted to as3 that checks to see where

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-29 Thread Kostas Plastiras
2008/9/25 Merrill, Jason [EMAIL PROTECTED] What I don't get is why Adobe doesn't (or maybe they are working on it, but they haven't rolled it out yet) merge the two frameworks that compile into .swf format - Flash CS* and Flex. There are a lot of gotchas and workaround when using Flash

Re: [Flashcoders] [AS3] TextField Bug: Text outside of the TF

2008-09-26 Thread sebastian
Check alignment and check how you are creating the text fields. This sounds like an issue with how you are placing and coding the text fields. Benicio del Toro wrote: hi, I ve'got an input TextField. What I want to do is to reset the TF content and put some prompt text inside, which I set

Re: [Flashcoders] [AS3] TextField Bug: Text outside of the TF

2008-09-26 Thread eric e. dolecki
turn the border on for the TF and see where it really is. On Fri, Sep 26, 2008 at 1:06 PM, sebastian [EMAIL PROTECTED] wrote: Check alignment and check how you are creating the text fields. This sounds like an issue with how you are placing and coding the text fields. Benicio del Toro wrote:

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-25 Thread Michael William Ypes
To: Flash Coders List Subject: Re: [Flashcoders] AS3 additions/changes in CS4? Also autocompletion and member verification and such for IDEs like FDT and FlashDevelop since it already knows the type of each list item. It's a god-given once you get used to it. I've been using Vectors like

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-25 Thread Juan Delgado
] On Behalf Of Zeh Fernando Sent: Wednesday, September 24, 2008 10:21 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 additions/changes in CS4? Also autocompletion and member verification and such for IDEs like FDT and FlashDevelop since it already knows the type of each list item. It's

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-25 Thread Paul Andrews
- Original Message - From: Michael William Ypes [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, September 25, 2008 11:10 AM Subject: Re: [Flashcoders] AS3 additions/changes in CS4? I am curious. Why does the Adobe suite not come with Flex

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-25 Thread Merrill, Jason
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Thursday, September 25, 2008 7:32 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 additions/changes in CS4? - Original Message - From: Michael William Ypes [EMAIL PROTECTED

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Merrill, Jason
and technologies? Check out our internal  Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Tuesday, September 23, 2008 9:14 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 additions/changes

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Mendelsohn, Michael
Not sure what strongly typed arrays are. What are the advantages? OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Paul Andrews
- Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, September 24, 2008 8:44 PM Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Not sure what strongly typed arrays are. What

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Ian Thomas
The idea of strongly typed arrays is to catch errors at compile time that otherwise might crop up at runtime. Untyped: var arr:Array=[]; arr.push(new Button()); arr.push(123); for (var i:int=0;iarr.length;i++) { var b:Button=arr[i]; // Works fine when i=0. Runtime error when

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Zeh Fernando
, 2008 8:44 PM Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Not sure what strongly typed arrays are. What are the advantages? Being able to type the array means not having to cast array members and detecting problems at compile time rather run time. OOooh - strongly typed

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Merrill, Jason
PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 additions/changes in CS4? Also autocompletion and member verification and such for IDEs like FDT and FlashDevelop since it already knows the type of each list item. It's a god-given once you get used to it. I've been using Vectors like there's

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Radley Marx
http://labs.adobe.com/technologies/flashplayer10/ -r On Sep 23, 2008, at 10:14 AM, Mendelsohn, Michael wrote: Hi list... Anyone know of any additions or changes to AS3 in Flash CS4? I haven't been able to find any specifics online. - MM

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Pedro Kostelec
Check Adobe TV for all the new features of FL CS4 *Pedro D. Kostelec* [EMAIL PROTECTED] On Tue, Sep 23, 2008 at 1:50 PM, Radley Marx [EMAIL PROTECTED] wrote: http://labs.adobe.com/technologies/flashplayer10/ -r On Sep 23, 2008, at 10:14 AM, Mendelsohn, Michael wrote: Hi list...

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Merrill, Jason
? Check out our internal  Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Kostelec Sent: Tuesday, September 23, 2008 3:10 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 additions/changes in CS4? Check Adobe

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Merrill, Jason
Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, September 23, 2008 4:18 PM To: Flash Coders List Subject: RE: [Flashcoders] AS3 additions/changes in CS4? And this page: http://www.adobe.com

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Zeh Fernando
Anyone know of any additions or changes to AS3 in Flash CS4? I haven't been able to find any specifics online. Maybe because those have been known for a long while: those are Flash Player 10 (Astro) features. People have been working with it for a while, compilers are already available, and

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Mendelsohn, Michael
] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, September 23, 2008 4:23 PM To: Flash Coders List Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Sorry - you said AS changes - my mistake. ___ Flashcoders mailing list

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread eric e. dolecki
To: Flash Coders List Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Sorry - you said AS changes - my mistake. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Merrill, Jason
PROTECTED] On Behalf Of Mendelsohn, Michael Sent: Tuesday, September 23, 2008 4:52 PM To: Flash Coders List Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Yes, because what I'm concerned about is having to jump from AS2 to AS3 to some sort of AS3.1. My migration to AS3 is taking much

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Juan Delgado
: Tuesday, September 23, 2008 4:23 PM To: Flash Coders List Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Sorry - you said AS changes - my mistake. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Zeh Fernando
: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, September 23, 2008 4:23 PM To: Flash Coders List Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Sorry - you said AS changes - my mistake

Re: [Flashcoders] AS3 dynamic text fields and img

2008-09-09 Thread sebastian
hmmm, have you tried: textFieldName.text += img... if that is not working, then try building it all in one sentence: imgAtEnd = img... segment1 = some value + imgAtEnd; //segment2 = same as segment 1 and 3 and 4 only with new different values textFieldName.text = segment1 + segment2 + segment3

RE: [Flashcoders] AS3 dynamic text fields and img

2008-09-09 Thread Keith Reinfeld
Jessica, My problem is that it seems AS3 is always bumping the img down to a new line unless it's the first item in the string. This behavior hasn't changed from earlier versions of AS. Does anyone know any way around this other than calculating the text length and appending the

Re: [Flashcoders] AS3 Call a function from an array

2008-09-06 Thread Gerry
Thanks Mike! -Gerry On Sep 6, 2008, at 12:47 AM, Mike Chambers wrote: if fnct is a function: stepArray[0].fnct(); if it is a string: stepArray[0][fnct](); The 0 is the index from the array you want to retrieve. mike chambers [EMAIL PROTECTED] On Sep 5, 2008, at 8:30 PM, Gerry wrote:

Re: [Flashcoders] AS3 Call a function from an array

2008-09-06 Thread Mike Chambers
Where is the actual function? You cant store a function in XML, on the name. You can then use that name to construct a call to the function. Where is the function? mike chambers [EMAIL PROTECTED] mike chambers [EMAIL PROTECTED] On Sep 6, 2008, at 7:40 AM, Gerry wrote: Mike, Neither of

Re: [Flashcoders] AS3 Call a function from an array

2008-09-06 Thread jonathan howe
Mike asks an important question, but assuming for the moment the function is in the same class as playNextSection(): What you're retrieving from the XML is a String. So the line stepArray[stepCount][fnct](val); isn't going to call a function. It's going to try to treat a string as a function...

Re: [Flashcoders] AS3 Call a function from an array

2008-09-06 Thread Gerry
Crap... My bad, I sent a code sample that didn't have the function calls I was getting from the XML. Your sample is exactly what I was looking for. I never included the functions that the array contains because I figured that was assumed. They are just two functions right now that look like

Re: [Flashcoders] AS3 Call a function from an array

2008-09-05 Thread Mike Chambers
if fnct is a function: stepArray[0].fnct(); if it is a string: stepArray[0][fnct](); The 0 is the index from the array you want to retrieve. mike chambers [EMAIL PROTECTED] On Sep 5, 2008, at 8:30 PM, Gerry wrote: I have an array built from and XML file that I want to step through and

Re: [Flashcoders] AS3 Minimal Class Props + Methods ...

2008-09-03 Thread Mark Winterhalder
On Wed, Sep 3, 2008 at 10:36 AM, S0 F1 [EMAIL PROTECTED] wrote: Does anyone know how to find out the bare minumum Attributes and Methods of all built-in/intrinsic Classes being used in a SWF/AS3 application. Something perhaps that can parse a SWF, identify what intrinsic classes are being

Re: [Flashcoders] AS3 for each loop / splice issue

2008-08-28 Thread Kenneth Kawamoto
If you post your XML as well that'll help, but this: cue_points[cue].splice(1,1,cueIn); ...looks dodgy to me. cue needs to be an uint for this to work but it's an XML, also you set cueIn = cue ??? Kenneth Kawamoto http://www.materiaprima.co.uk/ noentourage wrote: Hey flashcoders... I'm

Re: [Flashcoders] AS3 for each loop / splice issue - RESOLVED

2008-08-28 Thread Gerry
I fixed it myself...I was staring at the code too long so after a long break I came up with this to be able to get through the cue_points array... // var count:Number = 0; for each (var cue:XML in xmlData..step.training.cuein){

Re: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-22 Thread Dennis - I Sioux
: [Flashcoders] AS3 replacing Textfield Constructor Yeah, sorry, you've lost me now. the textfields won't give a signal when they are initialized - can you explain that? What kind of signal - hand signals? Tornado siren? I can't go out with you because I need to stay home and wash my hair.? ;) I

Re: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-22 Thread Dennis - I Sioux
of the textfields already put on stage during development time (in the IDE) Thanks though :) Dennis Isioux - Original Message - From: Merrill, Jason [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, August 22, 2008 5:10 AM Subject: RE: [Flashcoders

Re: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-21 Thread Dennis - I Sioux
: Wednesday, August 20, 2008 5:37 PM Subject: Re: [Flashcoders] AS3 replacing Textfield Constructor Hello :) In AS2 or AS1 you can't override the TextField class... if you do that you destroy the native class :) You must use the prototype hack with the keyword __proto__ to change the nature

RE: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-21 Thread Merrill, Jason
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis - I Sioux Sent: Thursday, August 21, 2008 3:27 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 replacing Textfield Constructor Hey Jason and Ekameleon, Thanks for the reply. With the old AS2 code i used.. i could add extra code

RE: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-21 Thread Dave Watts
Yeah, sorry, you've lost me now. the textfields won't give a signal when they are initialized - can you explain that? What kind of signal - hand signals? Tornado siren? I can't go out with you because I need to stay home and wash my hair.? ;) I would guess it means they won't raise

RE: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-21 Thread Merrill, Jason
I would guess it means they won't raise an initialize event, because he's not invoking super() in his subclass's constructor. You mean, like I suggested in my example code? ;) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-20 Thread Merrill, Jason
Well, you can't actually alter the constructor - maybe some hacks in AS2 that appear to do that, but in AS3, I think maybe you would consider this inheritance approach: package { import flash.text.TextField; public class SuperTextField extends TextField {

Re: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-20 Thread ekameleon
Hello :) In AS2 or AS1 you can't override the TextField class... if you do that you destroy the native class :) You must use the prototype hack with the keyword __proto__ to change the nature of your instances Example : _global.MyTextField = function() { super(); // };

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread SJM - Flash
- Original Message - From: Merrill, Jason To: Flash Coders List Sent: Wednesday, August 13, 2008 10:14 PM Subject: RE: [Flashcoders] AS3 accessing functions from other classes Is main_site the name of the instance? It doesn't seem like it if you are getting that error

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread Kenneth Kawamoto
You should be able to do access the parent by using, parent. Kenneth Kawamoto http://www.materiaprima.co.uk/ SJM - Flash wrote: Hi guys, im having some trouble accessing a function from another class and I would like to know how its done. In my project i have 2 FLAs 'gallery.fla' and

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread SJM - Flash
doing it this way creates a load of problems! Thanks for your help! SJM - Original Message - From: H To: Flash Coders List Sent: Thursday, August 14, 2008 12:19 AM Subject: Re: [Flashcoders] AS3 accessing functions from other classes Call to a possibly undefined method

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread SJM - Flash
Again another solution i tried but this too does not work! Thanks SJM - Original Message - From: Kenneth Kawamoto To: Flash Coders List Sent: Thursday, August 14, 2008 1:36 PM Subject: Re: [Flashcoders] AS3 accessing functions from other classes You should be able to do

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread Kenneth Kawamoto
List mailto:flashcoders@chattyfig.figleaf.com *Sent:* Thursday, August 14, 2008 1:36 PM *Subject:* Re: [Flashcoders] AS3 accessing functions from other classes You should be able to do access the parent by using, parent. Kenneth Kawamoto http://www.materiaprima.co.uk/ SJM

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread Matt S.
List Sent: Wednesday, August 13, 2008 10:14 PM Subject: RE: [Flashcoders] AS3 accessing functions from other classes Is main_site the name of the instance? It doesn't seem like it if you are getting that error. Does it also import EventDispatcher or at least, extend it? Depending

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread SJM - Flash
Kenneth i get... [object Loader] when tracing parent SJM - Original Message - From: Kenneth Kawamoto To: Flash Coders List Sent: Thursday, August 14, 2008 2:11 PM Subject: Re: [Flashcoders] AS3 accessing functions from other classes What do you get if you do trace(parent

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread Kenneth Kawamoto
mailto:flashcoders@chattyfig.figleaf.com *Sent:* Thursday, August 14, 2008 2:11 PM *Subject:* Re: [Flashcoders] AS3 accessing functions from other classes What do you get if you do trace(parent);? Kenneth Kawamoto http://www.materiaprima.co.uk/ SJM - Flash wrote: Again

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread H
: [Flashcoders] AS3 accessing functions from other classes You should be able to do access the parent by using, parent. Kenneth Kawamoto http://www.materiaprima.co.uk/ SJM - Flash wrote: Hi guys, im having some trouble accessing a function from another class and I would like to know how

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread SJM - Flash
Think ive fixed my problems with this now! Many thjanks for your help! SJM - Original Message - From: H To: Flash Coders List Sent: Thursday, August 14, 2008 2:30 PM Subject: Re: [Flashcoders] AS3 accessing functions from other classes Sorry man I didn't read

Re: [Flashcoders] AS3 - Applying a skin to loaded FLV

2008-08-14 Thread Glen Pike
You can only apply a skin to the FLVPlayback component... Please start a new thread for a new subject - don't just hit reply to an email as it messes up the list threading... Thanks Glen SJM - Flash wrote: Hi guys, ive written some code to load FLVs into flash and then play them. The

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-14 Thread Matt S.
: Kenneth Kawamoto To: Flash Coders List Sent: Thursday, August 14, 2008 1:36 PM Subject: Re: [Flashcoders] AS3 accessing functions from other classes You should be able to do access the parent by using, parent. Kenneth Kawamoto http://www.materiaprima.co.uk/ SJM

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-13 Thread Eduardo Omine
Dispatch an event from the loaded SWF and let the parent SWF handle the action. * * * * * * * * * * MainSite.as dispatchEvent(new Event(myEventName)); * * * * * * * * * * Gallery.as mainSite.addEventListener(myEventName, myListener); private function myListener(e:Event):void { // call desired

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-13 Thread SJM - Flash
{ loadPhoto(randRange(1, 52)); } * * * * * * * * * * Thanks SJM - Original Message - From: Eduardo Omine To: Flash Coders List Sent: Wednesday, August 13, 2008 6:19 PM Subject: Re: [Flashcoders] AS3 accessing functions from other classes Dispatch an event from the loaded SWF

RE: [Flashcoders] AS3 accessing functions from other classes

2008-08-13 Thread Merrill, Jason
? Check out our internal GTO Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SJM - Flash Sent: Wednesday, August 13, 2008 1:47 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 accessing functions from other

Re: [Flashcoders] AS3 accessing functions from other classes

2008-08-13 Thread H
: Re: [Flashcoders] AS3 accessing functions from other classes Hi Eduardo, thanks for your help! Ive implimented this into my code but still does not work, i now get a couple of errors... Desc: 1061: Call to a possibly undefined method addEventListener through a reference with static type Class

Re: [Flashcoders] AS3 frustration - help get component working

2008-08-07 Thread Steven Sacks
The issue isn't Gaia. If you try to load that component living in a child swf into a parent swf it doesn't work. Many component authors never take into account the extremely common use case of loading their component into another swf. Many PV3D components I have seen suffer from this exact

Re: [Flashcoders] AS3 frustration - help get component working

2008-08-07 Thread H
Are you sure that the carousel is of type CarouselEvent? Also, make sure everything is consistent with whether you have autodeclare instances turned on or off... If you are new to AS3 and are working with Flash CS3 I think it's valuable to know about the effects of this option. File-Publish

Re: [Flashcoders] AS3 Destructors and Garbage Collection ...

2008-08-02 Thread Paul Andrews
- Original Message - From: S0 F1 [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, August 02, 2008 9:11 AM Subject: [Flashcoders] AS3 Destructors and Garbage Collection ... What is the point of a class (one that is instantiated and used via composition within

Re: [Flashcoders] AS3 Destructors and Garbage Collection ...

2008-08-02 Thread Steven Sacks
It's a dangerous business removing instances when there are still references to them. Check out as3 weak references. So dangerous that you can't do it. ;) The Flash 10 Player has a function to force the GC to run, btw. ___ Flashcoders mailing list

Re: [Flashcoders] AS3 Destructors and Garbage Collection ...

2008-08-02 Thread Paul Andrews
- Original Message - From: Steven Sacks [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Saturday, August 02, 2008 1:45 PM Subject: Re: [Flashcoders] AS3 Destructors and Garbage Collection ... It's a dangerous business removing instances when

Re: [Flashcoders] AS3: Video player scrubber doesnt work until reload?

2008-07-30 Thread Helmut Granda
I havent seen your code but for what you are describing the scrubber wont work because it doesnt have the information it needs in the initial load to scrub, that is why when you reload the page it works. You need to edit your code so that the scrubbing works in the initial load only in the section

RE: [Flashcoders] AS3 shop

2008-07-24 Thread Romuald Quantin
] On Behalf Of Steven Sacks Sent: 23 July 2008 19:48 To: Flash Coders List Subject: Re: [Flashcoders] AS3 shop Is you or ain't you a developer? If you know AS3, and you found an AS2 solution, why don't you port it to AS3? If you're making an online shop though, might I recommend Flex, which has lots

RE: [Flashcoders] AS3 shop

2008-07-23 Thread Romuald Quantin
Hi guys, strictly no hint for that? :/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Romuald Quantin Sent: 22 July 2008 09:38 To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AS3 shop Hi everyone, Do you know some solid flash cart /

Re: [Flashcoders] AS3 shop

2008-07-23 Thread allandt bik-elliott (thefieldcomic.com)
i worked with a back-end guy to produce a solution that all worked on xml produced by php with a mysql database. He built an app that would allow the client to do stock checking, product updates and that kind of thing and I built the front end for it by grabbing his xml files. I haven't seen any

Re: [Flashcoders] AS3 shop

2008-07-23 Thread Steven Sacks
Is you or ain't you a developer? If you know AS3, and you found an AS2 solution, why don't you port it to AS3? If you're making an online shop though, might I recommend Flex, which has lots of great libraries available for e-commerce. Here's a bonus - it's AS3! :)

Re: [Flashcoders] AS3 shop

2008-07-23 Thread Helmut Granda
You still the back end programming for interacting with the database to store inventory, passwords, information and such (PHP, ASP, CF..) or can you connect directly with Flex? On Wed, Jul 23, 2008 at 1:48 PM, Steven Sacks [EMAIL PROTECTED] wrote: Is you or ain't you a developer? If you know

RE: [Flashcoders] AS3 shop

2008-07-23 Thread Dave Watts
You still the back end programming for interacting with the database to store inventory, passwords, information and such (PHP, ASP, CF..) or can you connect directly with Flex? No, you can't connect directly with Flex. You still need an application server which can act as an intermediary

Re: [Flashcoders] AS3/Papervision - rotating 3d object with 'hot' areas

2008-07-21 Thread Ian Thomas
Hi SJM, I'd suggest you ask on the Papervision list: http://osflash.org/mailman/listinfo/papervision3d_osflash.org HTH, Ian On Mon, Jul 21, 2008 at 1:55 AM, SJM - Flash [EMAIL PROTECTED] wrote: Hi Guys im fishing for information on the best way to create a rotating 3d object with 'hot'

Re: [Flashcoders] AS3/Papervision - rotating 3d object with 'hot'areas

2008-07-21 Thread SJM - Flash
Already have, seams to be a little slow in replying! SJM - Original Message - From: Ian Thomas To: Flash Coders List Sent: Monday, July 21, 2008 2:00 PM Subject: Re: [Flashcoders] AS3/Papervision - rotating 3d object with 'hot'areas Hi SJM, I'd suggest you ask

RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-19 Thread Cor
Meinte, Bedankt, ik ben eruit. Groeten Cor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meinte van't Kruis Sent: zaterdag 19 juli 2008 1:19 To: Flash Coders List Subject: Re: [Flashcoders] AS3 - MovieClip in MovieClip not showing MovieClip.width

<    1   2   3   4   5   6   7   8   9   10   >