Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-07 Thread Ron Wheeler

You might want to post some code.
At least from the start of the class with the imports to the constructor 
and the method.

The code that calls the shows the error would help.

Ron

Newsdee wrote:

Hi all,

A quick OOP question... is there a limit in AS2.0 on how many levels of
inheritance can be done?
My latest class is not recognizing any of the methods from it 
superclass',

even though the compiler doesn't raise any errors.

Here is the inheritance tree (I'm making a game, as you can guess):

- MovieClip (Flash built-in class)
- Sprite extends MovieClip
- Player extends Sprite
- Enemy extends Player

Sprite has a method called "render", Player has a method called "fire".
So I would expect that both render() and fire() are accessible to Enemy
without having to redeclare them (actually, render() works in Player 
without

defining it).

But nothing works in Enemy. I've tried redefining "render" and calling 
other

functions from it (in case the Enemy instance wasn't called).
And debugging I've found out that I do get to Enemy and my new render()
method, but any calls to other methods are just ignored [even using
super.method()].
Stranger still, every compiles without problems. So it seems like a 
problem

at runtime.

Has anybody seen this before, and hopefully has a way to work around it?

Thanks,
Gerard.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-07 Thread Newsdee

Hi all,

A quick OOP question... is there a limit in AS2.0 on how many levels of
inheritance can be done?
My latest class is not recognizing any of the methods from it superclass',
even though the compiler doesn't raise any errors.

Here is the inheritance tree (I'm making a game, as you can guess):

- MovieClip (Flash built-in class)
- Sprite extends MovieClip
- Player extends Sprite
- Enemy extends Player

Sprite has a method called "render", Player has a method called "fire".
So I would expect that both render() and fire() are accessible to Enemy
without having to redeclare them (actually, render() works in Player without
defining it).

But nothing works in Enemy. I've tried redefining "render" and calling other
functions from it (in case the Enemy instance wasn't called).
And debugging I've found out that I do get to Enemy and my new render()
method, but any calls to other methods are just ignored [even using
super.method()].
Stranger still, every compiles without problems. So it seems like a problem
at runtime.

Has anybody seen this before, and hopefully has a way to work around it?

Thanks,
Gerard.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] JOB - Lead Flash Developer - Boston - Full-time

2007-01-07 Thread Chris Pointon
OTOlabs offers marketers, agencies, and publishers a suite of innovative 
digital marketing technologies. Clients from entertainment, automotive and 
package goods to food, beverage, and professional services have all benefited 
from our innovative, proprietary technologies. With offices in Boston and 
London, OTOLabs' dynamic team-based work environment is creative, challenging 
and rewarding.

Lead Flash Developer

Based in our offices in Charlestown, Boston, MA.
This is a full-time position.
Salary commensurate with experience

Reporting to the SVP Technology, the Lead Flash Developer will build Flash 
components and functionality for applications that will be used by millions of 
people across desktop, web and mobile platforms.

Key responsibilities:
* Developing Flash movies and components with an emphasis on reliability, 
re-usability and good software design
* Collaborating with team members to share best practices for the use of Flash
* Working closely with project managers and designers to deliver the 
functionality required
* Working closely with OTOlabs and its clients' developers to ensure technical 
integration
* Providing time estimates and reporting against them to project managers
* Keeping abreast of developments in Flash and leveraging them where appropriate

Required skills:
* Batchelor's Degree in a technical field
* 2+ years experience of software development in Flash using ActionScript 1 and 
2
* Practical knowledge of object-oriented software design
* Experience of integrating Flash with XML driven web services and Flash 
remoting
* Strong troubleshooting and problem analysis/resolution skills
* Proven team player with good verbal and written communication skills
* Some client liaison experience

Desired skills:
* Development of Flash for non-browser platforms (desktop, handheld, embedded 
systems).
* Browser technology knowledge: HTML, XSL, JavaScript, CSS, AJAX
* Web development on the Microsoft platform (C#, .NET, IIS, SQL Server)
* Flash animation techniques
* Graphic/User Interface design and interface architecture
* OOD/UML
* Previous digital agency experience

Please send your resume and samples of your work to
[EMAIL PROTECTED]  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] JSFL writing a (Unicode) encoded text file

2007-01-07 Thread keith

Is it possible to write a Unicode encoded text file with JSFL?
If so how can I do it?

-- Keith H --
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] control the scroll of a scrollPane component V2

2007-01-07 Thread Omar Fouad

yes that is working fine

On 1/7/07, ntasky <[EMAIL PROTECTED]> wrote:


thanks very much, yes that helps :)
maxVPosition is not present in the documentation
And i had also the same bug for the layout, which now i can fix

Nicolas

- Original Message -
From: "Hans Wichman" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Sunday, January 07, 2007 10:18 AM
Subject: Re: [Flashcoders] control the scroll of a scrollPane component V2


> Hi,
> i used the following piece of code to scroll to the bottom of the
> scrollpane
> each time new content was added.
> Note that the scrollpane contained a textclip called answerclip. Each
time
> text was added to the answerclip, the scrollpane needs to scroll.
>
>  //next line is needed to fix layout bug in flash
>  var myHeight = this.answerClip._height;
>  this.scrollPane.invalidate();  //make sure scrollbars update
>  //ease to text new
>  this.onEnterFrame = function () {
>   if (Math.abs (this.scrollPane.vPosition - this.scrollPane.maxVPosition
)
>  >
> 5) {
>this.scrollPane.vPosition += (
> this.scrollPane.maxVPosition-this.scrollPane.vPosition)/4;
>   } else {
>this.scrollPane.vPosition = this.scrollPane.maxVPosition;
>delete this.onEnterFrame;
>   }
>  }
>
> Not the highest quality of code:) but it might help you.
> Look into the documentation for the events supported by the scrollpane.
>
> greetz
> JC
>
>
> On 1/7/07, ntasky <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> How can I can control the scroll of a scroll pane content ?
>> In V1 version i could use :
>> myScrollPane.vPosition = myScrollPane.maxVPosition;
>> but i found nothing on V2 version.
>> Plus because my content is dynamic, is there an event that allows me to
>> know
>> when the scrollBar appears in the scrollPane ?
>>
>> thanks by advance,
>> Nicolas
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Capturing FMS video streams from multiple cameras

2007-01-07 Thread Dennis - I Sioux

Hey Tomas,

Look at the Camera.get()..

Just like the Microphone class.. you can get a list of available devices.. 
and use the index in the list as an argument to give with the .get()


Hope this helps.

With kind regards,

Dennis
I Sioux

- Original Message - 
From: "Tomas Lehuta" <[EMAIL PROTECTED]>

To: ; 
Sent: Friday, January 05, 2007 8:10 PM
Subject: [Flashcoders] Capturing FMS video streams from multiple cameras



Hello,

does anybody know if it is possible to capture and record video on Flash
Media Server from multiple cameras on one system?

Our client needs to capture one video at a time but would like to be able 
to

select which camera will capture and record the live stream to FMS.
Is Flash capable to select which camera will capture the stream?
Or is there any other solution you would choose to achieve this?

thanks in advance

Tomas Lehuta
Flash Senior Developer
Kremsa Design (http://www.kremsadesign.com)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML.onLoad peculiarity

2007-01-07 Thread Ray Chuan

Quote XML.onLoad docs from FMX2004:

"Event handler; invoked by Flash Player when an XML document is
received from the server. If the XML document is received
successfully, the success parameter is true. If the document was not
received, or if an error occurred in receiving the response from the
server, the success parameter is false..."

So yes i think the end of a data stream could trigger it.

On 1/7/07, Miles Thompson <[EMAIL PROTECTED]> wrote:


So it's most likely that ii) - nothing to parse - is most likely, how long
does Flash wait / what triggers XML.onLoad?
Just the end of a data stream?

Miles

At 08:12 PM 1/5/2007, Ray Chuan wrote:

>Hi,
>
>a status code of '0' could either mean
>
>i) no errors parsing
>ii) no XML parsed --> no errors parsing (since there's nothing to parse)
>
>On 1/5/07, Miles Thompson <[EMAIL PROTECTED]> wrote:
>>
>>How or why can I have an XML Status Code of "0", but XML.onLoad is not
>>succeeding?
>>
>>My XML.onLoad has a "success" section, like so ..
>> xmlReceiver.onLoad = function( success:Boolean )
>>and if there is no success, the else part looks like this:
>> // Otherwise tell the user the vars couldn't be loaded.
>> txtNews.text = txtNews.text + "GetStories: Loading of news storys
>>failed.";
>> txtNews.text = txtNews.text + "GetStories: XML did not load.";
>> txtNews.text = txtNews.text + "GetStories: XML Status code: " +
>>xmlReceiver.status;
>>
>>Some users are not getting the news stories, which are sent as XML and
>>parsed within the success section,
>>but they report a status code of "0" - which indicates everything should
>>be OK.
>>
>>This is Flash MX, users are running Flash Player 7 in their browsers.
>>
>>Does anyone have any ideas? Suggestions will be most welcome.
>>
>>Regards - Miles Thompson
>>
>>
>>--
>>No virus found in this outgoing message.
>>Checked by AVG Free Edition.
>>Version: 7.1.410 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007
>>
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
>
>
>--
>Cheers,
>Ray Chuan
>___
>Flashcoders@chattyfig.figleaf.com
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>Brought to you by Fig Leaf Software
>Premier Authorized Adobe Consulting and Training
>http://www.figleaf.com
>http://training.figleaf.com


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.7/618 - Release Date: 1/6/2007


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Cheers,
Ray Chuan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] control the scroll of a scrollPane component V2

2007-01-07 Thread ntasky

thanks very much, yes that helps :)
maxVPosition is not present in the documentation
And i had also the same bug for the layout, which now i can fix

Nicolas

- Original Message - 
From: "Hans Wichman" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Sunday, January 07, 2007 10:18 AM
Subject: Re: [Flashcoders] control the scroll of a scrollPane component V2



Hi,
i used the following piece of code to scroll to the bottom of the 
scrollpane

each time new content was added.
Note that the scrollpane contained a textclip called answerclip. Each time
text was added to the answerclip, the scrollpane needs to scroll.

 //next line is needed to fix layout bug in flash
 var myHeight = this.answerClip._height;
 this.scrollPane.invalidate();  //make sure scrollbars update
 //ease to text new
 this.onEnterFrame = function () {
  if (Math.abs (this.scrollPane.vPosition - this.scrollPane.maxVPosition) 
 >

5) {
   this.scrollPane.vPosition += (
this.scrollPane.maxVPosition-this.scrollPane.vPosition)/4;
  } else {
   this.scrollPane.vPosition = this.scrollPane.maxVPosition;
   delete this.onEnterFrame;
  }
 }

Not the highest quality of code:) but it might help you.
Look into the documentation for the events supported by the scrollpane.

greetz
JC


On 1/7/07, ntasky <[EMAIL PROTECTED]> wrote:


Hi,
How can I can control the scroll of a scroll pane content ?
In V1 version i could use :
myScrollPane.vPosition = myScrollPane.maxVPosition;
but i found nothing on V2 version.
Plus because my content is dynamic, is there an event that allows me to
know
when the scrollBar appears in the scrollPane ?

thanks by advance,
Nicolas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] control the scroll of a scrollPane component V2

2007-01-07 Thread Hans Wichman

Hi,
i used the following piece of code to scroll to the bottom of the scrollpane
each time new content was added.
Note that the scrollpane contained a textclip called answerclip. Each time
text was added to the answerclip, the scrollpane needs to scroll.

 //next line is needed to fix layout bug in flash
 var myHeight = this.answerClip._height;
 this.scrollPane.invalidate();  //make sure scrollbars update
 //ease to text new
 this.onEnterFrame = function () {
  if (Math.abs (this.scrollPane.vPosition - this.scrollPane.maxVPosition) >
5) {
   this.scrollPane.vPosition += (
this.scrollPane.maxVPosition-this.scrollPane.vPosition)/4;
  } else {
   this.scrollPane.vPosition = this.scrollPane.maxVPosition;
   delete this.onEnterFrame;
  }
 }

Not the highest quality of code:) but it might help you.
Look into the documentation for the events supported by the scrollpane.

greetz
JC


On 1/7/07, ntasky <[EMAIL PROTECTED]> wrote:


Hi,
How can I can control the scroll of a scroll pane content ?
In V1 version i could use :
myScrollPane.vPosition = myScrollPane.maxVPosition;
but i found nothing on V2 version.
Plus because my content is dynamic, is there an event that allows me to
know
when the scrollBar appears in the scrollPane ?

thanks by advance,
Nicolas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] control the scroll of a scrollPane component V2

2007-01-07 Thread ntasky

Hi,
How can I can control the scroll of a scroll pane content ?
In V1 version i could use :
myScrollPane.vPosition = myScrollPane.maxVPosition;
but i found nothing on V2 version.
Plus because my content is dynamic, is there an event that allows me to know 
when the scrollBar appears in the scrollPane ?


thanks by advance,
Nicolas 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML.onLoad peculiarity

2007-01-07 Thread Miles Thompson


So it's most likely that ii) - nothing to parse - is most likely, how long 
does Flash wait / what triggers XML.onLoad?

Just the end of a data stream?

Miles

At 08:12 PM 1/5/2007, Ray Chuan wrote:


Hi,

a status code of '0' could either mean

i) no errors parsing
ii) no XML parsed --> no errors parsing (since there's nothing to parse)

On 1/5/07, Miles Thompson <[EMAIL PROTECTED]> wrote:


How or why can I have an XML Status Code of "0", but XML.onLoad is not
succeeding?

My XML.onLoad has a "success" section, like so ..
xmlReceiver.onLoad = function( success:Boolean )
and if there is no success, the else part looks like this:
// Otherwise tell the user the vars couldn't be loaded.
txtNews.text = txtNews.text + "GetStories: Loading of news storys
failed.";
txtNews.text = txtNews.text + "GetStories: XML did not load.";
txtNews.text = txtNews.text + "GetStories: XML Status code: " +
xmlReceiver.status;

Some users are not getting the news stories, which are sent as XML and
parsed within the success section,
but they report a status code of "0" - which indicates everything should 
be OK.


This is Flash MX, users are running Flash Player 7 in their browsers.

Does anyone have any ideas? Suggestions will be most welcome.

Regards - Miles Thompson


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



--
Cheers,
Ray Chuan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.7/618 - Release Date: 1/6/2007


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AS3 writing ByteArray hexadecimal data to a file(using Zinc)

2007-01-07 Thread Sascha
Yep you were right with the single digit hex chars! Thanks a lot Paul!
Here's the thread on the Zinc Forum where I posted some code in case you're
interested...
http://www.mdmforum.com/forum/index.php?showtopic=19351&st=0&gopid=86635&#en
try86635

As it turned out this way is a lot faster that using pipe delimiters!

Cheers,
Sascha


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Paul Evans
> Sent: Sunday, 07 January, 2007 00:44
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] AS3 writing ByteArray hexadecimal data to a
file(using
> Zinc)
> 
> On 5 Jan 2007, at 03:32, Sascha wrote:
> 
> > Obviously something is wrong with the way how I convert to hex data
> 
> Additionally, I suspect your code is returning values less than 16 as
> a single digit of hex, whereas a byte should be represented by two
> hex digits - i.e. prefix a zero!
> 
> Paul
> --
> [ http://www.creative-cognition.co.uk/ ]
> [ http://creacog.wordpress.com/ ]
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com