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: If ( currentSection.refresh != null ) { currentSect

Re: [Flashcoders] h264 video looks blurry/crappy in flash

2008-10-27 Thread Søren Christensen
The video i am using has the same size as the stage area so no scaling is taking place. smoothing = true normally activates antialiasing if the video is scaled up/down. However weird things hapens with h264 - with smoothing 'on' the image gets too soft and to some degree degrades the pi

Re: [Flashcoders] Re: Re: Passing text between SWFs

2008-10-27 Thread dr.ache
Hi Alan. The missing thing is you must let RTE2124BuserName (one of the most horrible class names I have seen so far :-) ) extend MovieClip. Therefore you have to import the movieclip class How this is accomplished you can see in the text. The errormessage tells you that you linked one of the

Re: [Flashcoders] Re: Re: Passing text between SWFs

2008-10-27 Thread Paul Andrews
- Original Message - From: "Alan Neilsen" <[EMAIL PROTECTED]> To: Sent: Monday, October 27, 2008 10:13 PM Subject: [Flashcoders] Re: Re: Passing text between SWFs Thanks for all your help dr.ache. I think I am very close now. I still get a number of errors, but I think the underlying

[Flashcoders] AS Quicktime animation & setup : 40min possible?

2008-10-27 Thread artur
need to know a few things: 1 - can i render/export to QT an AS based animation that will be 40min long? it will be incorporating an FLV ( soundtrack ) with Cuepoints..that will trigger different AS animations made from an XML file. is there a chance that the animation and sound can become out of

[Flashcoders] Re: Re: Passing text between SWFs

2008-10-27 Thread Alan Neilsen
Thanks for all your help dr.ache. I think I am very close now. I still get a number of errors, but I think the underlying problem is this one: 5000: The class 'RTE2124BuserName' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type. What is that trying to te

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 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 Classname

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread laurent
Paul Andrews a écrit : OK, I'm not sure if I follow, but.. You basically want named views onto a set of data, each view uses a separate object to hold the data for its own particular view. You could use an array of objects to store the view data and each view object could contain a view name

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
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 Paul Andrews
OK, I'm not sure if I follow, but.. You basically want named views onto a set of data, each view uses a separate object to hold the data for its own particular view. You could use an array of objects to store the view data and each view object could contain a view name. I'm not really sure

RE: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Merrill, Jason
And if you are interested in using the Flex framework, databinding is a really great solution for this kind of thing. Jason Merrill Bank of America  GCIB & Staff Support L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America

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 I

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 >> fu

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 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 t

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, ioErro

[Flashcoders] AS3 - Checking if a Function Exists

2008-10-27 Thread Karim Beyrouti
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: If ( currentSection.refresh != null ) { currentSection.refresh(); } But I get "ReferenceError: Error #1069: Property refresh no

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 Mes

[Flashcoders] AS3 associativ array length=0

2008-10-27 Thread laurent
Hi, I use an array to store object with their name like that: views[ "viewName" ] = Object then views.length return 0 ... It's normal behaviour ?? length work only on numerical indexes ? L ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf

Re: [BULK] Re: [Flashcoders] Is there a quick way to convert back to AS2?

2008-10-27 Thread Charles Parcell
All well and good, but the government wants business reasons and not technical abilities. As someone else noted, point out the security upgrades as a starting point. Then include tangible reasons such as better performance of course ware. More robust user experience because of better video support

[Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Samuel Adu
Hey guys, I need a little help here... I'm working on porting some existing AS2 code to AS3. A porting of the AS2 class watched _root variables which were updated by javascript (using setVariable) - When a change occurred the callback method would change instance properties, fire events etc etc...