Re: [Flashcoders] Q: Performance of AS3 vs Java

2006-12-07 Thread Scott Hyndman

I ran the source locally, and the framerate is printed to standard
out. Try it yourself.

Scott

On 07/12/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:

I ran the source locally, and the framerate is printed to standard
out. Try it yourself.

Scott

On 7-Dec-06, at 5:19 PM, Christian Giordano wrote:

> Scott Hyndman wrote:
>> Oh, that was the Ruby version. I just tried the Java version and I'm
>> getting about 2000 fps. 4x faster doesn't "REALLY suck" in my book.
>> And what would you expect? Java's pretty speedy.
>
> 4x faster? well, it's also 11 times smaller :)
>
> where do u read 2000 frs? My eyes, that can see only 30 frs, see
> only a cranky animation. Probably it's only an animation synch issue.
>
> Best, chr
>
> --
> ___
> { Christian Giordano's site and blog @ http://nuthinking.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] Q: Performance of AS3 vs Java

2006-12-07 Thread Scott Hyndman

Oh, that was the Ruby version. I just tried the Java version and I'm
getting about 2000 fps. 4x faster doesn't "REALLY suck" in my book.
And what would you expect? Java's pretty speedy.

Scott

On 07/12/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:

I can't comment on someone else's code, but even in that example I was
getting 500 fps on my 4 year old computer. Doesn't seem too bad to me.

Scott

On 07/12/06, Christian Giordano <[EMAIL PROTECTED]> wrote:
>  > I recently completed a project using LWJGL (http://www.lwjgl.org) and it
> > was blistering fast. In fact, I'm going to be open-sourcing it
> > sometime today if you're interested. It was a game, but I wrote lots
> > of code that could be applied anywhere, including tweening and shape
> > primitive drawing tools.
>
> I had a look to the typical gear example, and I have to say that it
> REALLY sucks, comparing to the one I see recently done in Ruby + OpenGL
> (here the .exe: http://nuthinking.com/temp/gears.rar).
>
> The code seems fine but it is way too cranky, I'm wondering if it is a
> performance issue then. I didn't do the gear in Processing, but I don't
> think it can go worse than that.
>
> chr
>
> --
> ___
> { Christian Giordano's site and blog @ http://nuthinking.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] Q: Performance of AS3 vs Java

2006-12-07 Thread Scott Hyndman

I can't comment on someone else's code, but even in that example I was
getting 500 fps on my 4 year old computer. Doesn't seem too bad to me.

Scott

On 07/12/06, Christian Giordano <[EMAIL PROTECTED]> wrote:

 > I recently completed a project using LWJGL (http://www.lwjgl.org) and it
> was blistering fast. In fact, I'm going to be open-sourcing it
> sometime today if you're interested. It was a game, but I wrote lots
> of code that could be applied anywhere, including tweening and shape
> primitive drawing tools.

I had a look to the typical gear example, and I have to say that it
REALLY sucks, comparing to the one I see recently done in Ruby + OpenGL
(here the .exe: http://nuthinking.com/temp/gears.rar).

The code seems fine but it is way too cranky, I'm wondering if it is a
performance issue then. I didn't do the gear in Processing, but I don't
think it can go worse than that.

chr

--
___
{ Christian Giordano's site and blog @ http://nuthinking.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] Q: Performance of AS3 vs Java

2006-12-07 Thread Scott Hyndman

:) Some people still think that. Many professors at my school use
command-line mail clients. It's insanity!

On 07/12/06, hank williams <[EMAIL PROTECTED]> wrote:

This sounds to me like the unix guys who, way back in the day thought
the gui was just a waste and the command line ruled.

I am not saying every interface needs 3d,  but 3d will be an important
part of ui's in the future. Take, for example, apple's time machine ui
in the upcoming version of OSX. It takes something really complicated,
and by making it 3d, makes it really easy to understand. There will
ulimately be whole new types of applications that require an
additional deimension of expression that will be enabled by 3d.

Regards,
Hank.

On 12/6/06, eric dolecki <[EMAIL PROTECTED]> wrote:
> I'm not too keen on seeing 3D interfaces and spinning/whirling items anytime
> soon. That includes product items for the most part too.
>
> - e.
>
> On 12/6/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> >
> > That rocks.  I'm blown away.  I wonder if Adobe is working 3D into Flash
> > IDE 9.  Microsoft just released WPF/E and Expression Blend will be
> > available for purchase in Q2 2007 - the Flash competitor that does 3D.
> > I wonder if the Flash 9 IDE will be available before - say Q1 2007...
> >
> > Jason Merrill
> > Bank of America
> > Learning & Organizational Effectiveness
> >
> >
> >
> >
> >
> >
> >
> > >>-Original Message-
> > >>From: [EMAIL PROTECTED]
> > >>[mailto:[EMAIL PROTECTED] On Behalf
> > >>Of Christian Giordano
> > >>Sent: Wednesday, December 06, 2006 1:54 PM
> > >>To: Flashcoders mailing list
> > >>Subject: Re: [Flashcoders] Q: Performance of AS3 vs Java
> > >>
> > >>slangeberg wrote:
> > >>> Regarding performance, FP9 is showing some nice 3D potential (for a
> > >>> 1-2meg
> > >>> VM):
> > >>>
> > >>> http://www.papervision3d.org/demos/seahorse/
> > >>
> > >>Papervision is for Flash 8 and as far as i know, in terms of
> > >>graphics, the performance between AS2 + FP8 and AS3 + FP9 are
> > >>almost the same.
> > >>
> > >>Then of course all the Math computations (frequently used in
> > >>3D) are faster. So yes, probably for 3D AS3 could help. I'm
> > >>still waiting to make proper tests though.
> > >>
> > >>
> > >>Best, chr
> > >>
> > >>--
> > >>___
> > >>{ Christian Giordano's site and blog @ http://nuthinking.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
>
___
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] Q: Performance of AS3 vs Java

2006-12-07 Thread Scott Hyndman

I vote for Java/OpenGL. Skip on Processing -- it's way too limiting
unless you drop their IDE and directly import the related jars. I
recently completed a project using LWJGL (http://www.lwjgl.org) and it
was blistering fast. In fact, I'm going to be open-sourcing it
sometime today if you're interested. It was a game, but I wrote lots
of code that could be applied anywhere, including tweening and shape
primitive drawing tools.

Scott

On 07/12/06, Danny Kodicek <[EMAIL PROTECTED]> wrote:

> Which makes me ask:  if you're developing a visualization
> product that requires intense graphical animation with
> quality scripting abilitieswhat products are out their to
> do this?  Flash is close
> but is there something that provides more quartz-like animations?

I have no idea what Quartz is, but Director is a quality package with
excellent scripting capabilities and accelerated 3D.

Danny

___
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] when classes die...

2006-10-02 Thread Scott Hyndman

No. Write a method that does cleanup.

Scott

On 02/10/06, grimmwerks <[EMAIL PROTECTED]> wrote:

Ok, I've got an app that uses a static variable; I've got 'templates'
that use x instances of this class.

When the user loads in a new template when a previous template has
already existed, I get some 'leftover' variables.

Is there a function that is called when a class is 'killed', ie the
opposite of when a class is birthed with 'new'?

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [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@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] Ridiculous problem

2006-10-02 Thread Scott Hyndman

I've hit a couple problems like this in the past, which are truly
unexplainable. They're player (or compilation) bugs, without a doubt.
My experience showed that moving this code to around can shows that
assignment succeeds.

You could also do this:

userInterface.attachMovie("textForwarderMC","textForwarderClip",TEXTFORWARDERDEPTH);
textForwarder = userInterface.textForwarderMC;

It's a hack, but hey...if it works, right?

Scott
___
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: [flashmn] [flashcoders] Flash 8 - Custom databinding

2006-09-19 Thread Scott Hyndman

It isn't in the alpha release. If you grab from SVN you can see the
code in the org.actionstep.test.ASTestBinding class. The source root
can be found in the /test subdirectory.

Scott

On 19/09/06, slangeberg <[EMAIL PROTECTED]> wrote:

Scott,

Is there an example of where the databinding is used in ActionStep?

I have downloaded the sourcecode from the site.

Thanks,

Scott

On 9/19/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
>
> I wrote a databinding system for ActionStep that "wraps" setters with
> proxy functions that notify observers whenever a change is detected.
> All you have to do, you replace the setter method with your own that
> dispatches the change event, then call the original. This system is
> also reliant upon the use of the setters internally set things,
> otherwise it will not detect all changes. It's modelled after Cocoa's
> key-value observation framework, which is in my opinion the defacto
> standard for binding. It's a great system, and not nearly as
> complicated as MM's or other similar systems.
>
> Scott (Hyndman)
> ___
> 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
>



--

: : ) Scott
___
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: [flashmn] [flashcoders] Flash 8 - Custom databinding

2006-09-19 Thread Scott Hyndman

I wrote a databinding system for ActionStep that "wraps" setters with
proxy functions that notify observers whenever a change is detected.
All you have to do, you replace the setter method with your own that
dispatches the change event, then call the original. This system is
also reliant upon the use of the setters internally set things,
otherwise it will not detect all changes. It's modelled after Cocoa's
key-value observation framework, which is in my opinion the defacto
standard for binding. It's a great system, and not nearly as
complicated as MM's or other similar systems.

Scott (Hyndman)
___
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] specifying type of an array contents?

2006-09-16 Thread Scott Hyndman

for...in loops don't work the same as they do in Java or C#. Take a
look at the following code:

for (var key in btnClipArray) {
 btnClipArray[key].removeMovieClip();
}

The loop iterates over keys, not values This technique is not limited
to arrays and can be used on any object in Flash.

Flash assumes items held in arrays are objects. You can call any
method on them, without the compiler complaining. There is no way to
type arrays.

Scott

On 16/09/06, dc <[EMAIL PROTECTED]> wrote:

is there a way to tell flash what types an array contains?

eg given this:

var btnClipArray:Array;

--- later:

for (var btn in btnClipArray) {
   btn.removeMovieClip();
}

flash defaults to thiking the array contains only strings, so the
movieclip methods throw a compile error. of course, i can cast or
otherwise hack, but it would be nice not to...

var btnClipArray:Array:MovieClip;  ?

/dc
---
  David "DC" Collier
mailto:[EMAIL PROTECTED]
  +81 (0)80 6521 9559
  skype: callto://d3ntaku
---
  Pikkle 株式会社
  http://www.pikkle.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] Slow performance of Flash 7 content in Flash Player9

2006-09-05 Thread Scott Hyndman

Yes, that's what he's saying.

On 05/09/06, Aaron Haines <[EMAIL PROTECTED]> wrote:


No, I just mean playing a SWF published as Flash 7 in the F9 player.

So if the F9 player is actually two players 8 and 9 as you say then when you
play a F7 SWF in FP9 it should actually be the same as playing it in FP8?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: 05 September 2006 17:06
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Slow performance of Flash 7 content in Flash
Player9

no, we don't have this problem and afaik player 9 is basically two players 8
and 9 with their respective vm's. or do you mean loading player 7/8 content
into a 9 movie?

On 9/5/06, Aaron Haines <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Does anyone have any solid information about the performance of SWFs
> published as Flash 7 when playing in Flash Player 9?
>
> There seems to be some anecdotal evidence that it runs very slowly and
> we are seeing some eveidence of this.
> I heard somewhere that FP9 runs F7 content in emulation which accounts
> for the slow speed.
>
> Is this really true?
> Has anyone else had similar problems?
>
> Thanks
> Aaron.
> ___
> 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
>



--
j:pn
http://www.lennel.org
___
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] Slow performance

2006-09-04 Thread Scott Hyndman

I would also try to avoid string concatenation. It's usually a big
performance issue, since strings are immutable (so a sequential block
of memory has to be allocated, and the strings you are joining are
copied to the new location).

I would draw an entire page up front, then just reveal as you go
through masking or an mc overlaying the text.

Scott

On 04/09/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:

Are you ever calling dispose on the bitmap data? Because if not it
won't run for long.

Scott

On 04/09/06, kariminal <[EMAIL PROTECTED]> wrote:
> Thanks for the replies so far...
>
> I am now using BitmapData.draw() ( and source_mc._visible=false + moved
> offstage ): it run a little faster than before. And only seems to choke when
> the browser is maximized at higher resolution ( around 1280x1024 ), maybe I
> am knit picking?...
>
> But, I think something is not going right in my code and that the draw loop
> could be optimized. The code now looks something like this:
>
> // code
>
> private function animationLoop( ):Void{
>
> if ( lineCounter > code_lines.length ) lineCounter = 2
> if ( lineCounter == 0 ) {
> field_txt.text = code_lines[lineCounter]
> } else { field_txt.text = field_txt.text +
> code_lines[lineCounter] }
>
> myBitmapData = new BitmapData(source_mc._width,
> source_mc._height , false, 0x );
> target_mc.attachBitmap(myBitmapData, 10);
> myBitmapData.draw(source_mc);
>
> lineCounter ++
>
> }
> // code
>
> I am finding it a little odd, that I am making a new BitMapData object every
> interval and tried moving it outside the loop but got strange results (due
> to my ignorance): every time 'attachBitmap' ran, it seemed the old bitmap
> was not being cleared.
>
> + also changed the font to Verdana, tried various interval times, but
> neither of these did much to improve the situation. Anyone think I can
> squeeze a little more FPS out of this one?..
>
> http://www.kurst.co.uk/transfer/2/ - Using BitmapData
> http://www.kurst.co.uk/transfer/1/ - and not
>
>
>
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dan Rogers
> Sent: 04 September 2006 19:55
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Slow performance
>
> If you're looking to improve performance and keep the speed of your
> animation, you could experiment with BitmapData.draw() and render a bitmap
> copy of a hidden text movieclip.  I think the bottleneck is mostly due to
> the heavy font vectors.  If your font movieclip was hidden and/or moved
> off-stage, you could probably get away with a single BitmapData object set
> to the size of the screen, redrawing each time the text changes.
>
> -Danro
>
>
> On Sep 3, 2006, at 1:19 PM, Marc Hoffman wrote:
>
> > I'm seeing a window full of text (Firefox, Win XP Pro) -- is this what
> > you intended? If so, that's a HUGE number of vectors to redraw so
> > rapidly. Furthermore, by using a serif font you're probably doubling
> > or tripling the number of vectors, so try the simplest, non-serif,
> > mono-stroke (consistent stroke thickness) font you can, such as
> > Verdana. And of course lengthen the redraw interval.
> >
> > Marc
> >
> > At 12:24 PM 9/3/2006, you wrote:
> >> Hi,
> >> setInterval each 10ms might be a bit overkill.
> >> grtz
> >> JC
> >>
> >>
> >> On 9/3/06, kariminal <[EMAIL PROTECTED]> wrote:
> >>>
> >>> Hello All...
> >>>
> >>> My flash movie fills the whole browser window. If the window is kept
> >>> small performance is great, however when I maximize the browser
> >>> everything slows down. This is a simple effect which I think should
> >>> run at a good speed regardless. I've uploaded a sample here:
> >>> http://www.kurst.co.uk/ transfer/
> >>>
> >>> And the animation code is as follows:
> >>>
> >>> //CODE
> >>>
> >>>private function stopAnimation( ):Void{
> >>>
> >>>clearInterval( animationIID );
> >>>
> >>>}
> >>>private function restartAnimation( ):Void{
> >>>
> >>>stopAnimation();
> >>>animationIID = setInterval( this, "animationLoop" ,
> >>> 10 );
> >>>

Re: [Flashcoders] Slow performance

2006-09-04 Thread Scott Hyndman

Are you ever calling dispose on the bitmap data? Because if not it
won't run for long.

Scott

On 04/09/06, kariminal <[EMAIL PROTECTED]> wrote:

Thanks for the replies so far...

I am now using BitmapData.draw() ( and source_mc._visible=false + moved
offstage ): it run a little faster than before. And only seems to choke when
the browser is maximized at higher resolution ( around 1280x1024 ), maybe I
am knit picking?...

But, I think something is not going right in my code and that the draw loop
could be optimized. The code now looks something like this:

// code

private function animationLoop( ):Void{

if ( lineCounter > code_lines.length ) lineCounter = 2
if ( lineCounter == 0 ) {
field_txt.text = code_lines[lineCounter]
} else { field_txt.text = field_txt.text +
code_lines[lineCounter] }

myBitmapData = new BitmapData(source_mc._width,
source_mc._height , false, 0x );
target_mc.attachBitmap(myBitmapData, 10);
myBitmapData.draw(source_mc);

lineCounter ++

}
// code

I am finding it a little odd, that I am making a new BitMapData object every
interval and tried moving it outside the loop but got strange results (due
to my ignorance): every time 'attachBitmap' ran, it seemed the old bitmap
was not being cleared.

+ also changed the font to Verdana, tried various interval times, but
neither of these did much to improve the situation. Anyone think I can
squeeze a little more FPS out of this one?..

http://www.kurst.co.uk/transfer/2/ - Using BitmapData
http://www.kurst.co.uk/transfer/1/ - and not







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Rogers
Sent: 04 September 2006 19:55
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Slow performance

If you're looking to improve performance and keep the speed of your
animation, you could experiment with BitmapData.draw() and render a bitmap
copy of a hidden text movieclip.  I think the bottleneck is mostly due to
the heavy font vectors.  If your font movieclip was hidden and/or moved
off-stage, you could probably get away with a single BitmapData object set
to the size of the screen, redrawing each time the text changes.

-Danro


On Sep 3, 2006, at 1:19 PM, Marc Hoffman wrote:

> I'm seeing a window full of text (Firefox, Win XP Pro) -- is this what
> you intended? If so, that's a HUGE number of vectors to redraw so
> rapidly. Furthermore, by using a serif font you're probably doubling
> or tripling the number of vectors, so try the simplest, non-serif,
> mono-stroke (consistent stroke thickness) font you can, such as
> Verdana. And of course lengthen the redraw interval.
>
> Marc
>
> At 12:24 PM 9/3/2006, you wrote:
>> Hi,
>> setInterval each 10ms might be a bit overkill.
>> grtz
>> JC
>>
>>
>> On 9/3/06, kariminal <[EMAIL PROTECTED]> wrote:
>>>
>>> Hello All...
>>>
>>> My flash movie fills the whole browser window. If the window is kept
>>> small performance is great, however when I maximize the browser
>>> everything slows down. This is a simple effect which I think should
>>> run at a good speed regardless. I've uploaded a sample here:
>>> http://www.kurst.co.uk/ transfer/
>>>
>>> And the animation code is as follows:
>>>
>>> //CODE
>>>
>>>private function stopAnimation( ):Void{
>>>
>>>clearInterval( animationIID );
>>>
>>>}
>>>private function restartAnimation( ):Void{
>>>
>>>stopAnimation();
>>>animationIID = setInterval( this, "animationLoop" ,
>>> 10 );
>>>
>>>}
>>>private function animationLoop( ):Void{
>>>
>>>
>>>// make sure we always keep the counter within the
>>> length of the array
>>>if ( lineCounter > code_lines.length ) lineCounter =
>>> 2
>>>
>>>// print the text
>>>if ( lineCounter == 0 ) {
>>>
>>>field_txt.text = code_lines[lineCounter]
>>>
>>>} else { field_txt.text = field_txt.text +
>>> code_lines[lineCounter] }
>>>
>>>// ready counter for the next line
>>>
>>>lineCounter ++
>>>
>>>if (field_txt.maxscroll > 1 ){
>>>
>>>
>>>pageCounter ++;
>>>field_txt.text = "";
>>>stopAnimation();
>>>clearInterval( clearIID );
>>>clearIID = setInterval( this,
>>> "restartAnimation" , clearIntervalTime );
>>>
>>>}
>>>
>>>
>>>}
>>>
>>> //CODE
>>>
>>>
>>> And I've also uploaded a copy of the whole class here
>>> http://www.kurst.co.uk/transfer/textComponent.as
>>> Any tips on optimizing this one are welcome...
>>>
>>>
>>> Regards
>>>
>>>
>>>
>>>
>>> Karim
>>>
>>>
>>>
>>>
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>

Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Scott Hyndman

yes, you are. If you read the first two paragraphs of the wikipedia
article you'd see it has nothing to do with multiple inheritance.

It has to do with multiple objects (poly) being contrained by the same
interface (form, morph), whether the interface is quite literally an
interface, or whether it is an interface determined by a parent class.

Scott

On 25/08/06, Steve Krichten <[EMAIL PROTECTED]> wrote:

It sounds like you are confusing polymorphism with multiple
inheritance.  ActionScript and Java and pretty much any OOP language do
allow for polymorphism.

http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

-Steve
*
-

Meinte van't Kruis* meinte at gmail.com

/Fri Aug 25 09:14:16 EDT 2006/

* Previous message: [Flashcoders] OOP methodology and flash. I'm
  loosing my faith... <171797.html>
* Next message: [Flashcoders] OOP methodology and flash. I'm loosing
  my faith... <171794.html>
* *Messages sorted by:* [ date ]  [ thread ]
   [ subject ]  [ author ]
  



well, I get Interfaces, but thanks for explaining :).

I just don't think actionscript, or java, has any polymorphism,
since the definition of that is, in my opinion, a class having more
than one parent class (ie, can extend 2 or more classes), which
isn't the case. So I don't understand why people who are explaining
oop in actionscript talk about polymorphism, because it just
isn't there :), but perhaps I'm wrong.

cheers,
-Meinte

___
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] clone object

2006-08-24 Thread Scott Hyndman

If you had one circular reference, you'd hit the recursion limit.

On 24/08/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

If you're not willing to code a solution, then why are you bothering to
write out an explanation?  I have yet to encounter a recursion limit and
I've parsed some deep object models.
___
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] Regular Expressions

2006-08-24 Thread Scott Hyndman

Regex supports lazy matching as well using the '?' option on pretty
much any quantifier.

Scott

On 24/08/06, neo binedell <[EMAIL PROTECTED]> wrote:

RegEx performs greedy searches, so it would find
a first and move past it, which would break the second
pattern as it would just be "b". In general you want to
order your expressions from longer matching to shorter
if one contains the other.

Just think of it as gobbling up patterns before other
patterns get a look at it.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Miguel
Serrano
Sent: 23 August 2006 06:25 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Regular Expressions

Hi list!

I don't understand one issue of RegExp framework:

the illustrative example:

var pattern:RegExp = /(a)|(ab)/

pattern.exec("nnnabnnn");
trace (result[0]) // output a
pattern = /(ab)|(a)/
pattern.exec("nnnabnnn");
trace (result[0]) // output ab

Why this behaviour? shouldn't RegExp return the longest pattern founded in
the string?.

Calling exec several times with first expression never return "ab"

It's supossed that conditional operator "|" is conmutative.

Any idea?

thank you!
___
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] clone object

2006-08-24 Thread Scott Hyndman

I would mark each object (by actually assigning the cloned object as a
property of the original) as I go through each individual clone
operation, and keep a running array of what is being marked. If I hit
something that is already marked, I will use the clone instead of
copying the same object again (because it's hanging off the original).
When I'm finished, I'd remove all the temporary properties from the
originals.

This requires two method instead of one, and is a bit more CPU
intensive, but it won't break.

I'd also be sure to special case the handling of date objects.

The alternative is to shallow clone, which does not recursively copy
object properties, and instead assigns the reference held by the
original to the clone.

Scott

On 24/08/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

> Careful with circular references. Pretty easy to get that one in to
> exceed the 256 recursion limit.

Feel free to post an alternative.  :)

___
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 question

2006-08-24 Thread Scott Hyndman

You could remove the line breaks from your XML file. \r is a carriage
return. In Windows, it accompanies a newline character when someone
presses enter.

Scott

On 24/08/06, Wouter <[EMAIL PROTECTED]> wrote:

Thanx! But ignoreWhite = true

So that`s not it...any other ideas?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Hyndman
Sent: Thursday, August 24, 2006 4:14 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML question

Is your XML object set to ignoreWhite?

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=Flash_MX_2004&file=1896.html

Scott

On 24/08/06, Wouter <[EMAIL PROTECTED]> wrote:
>
> Hi list,
>
> I got an MS Acces database with data, which I converted to XML (direct
> export from Access) and I read that in flash.so far so good, but
> when I display the text in a textfield there are a lot of empty lines
> between the linesI found out that there are somehowe some "\r" in
> there that probably cause this.but how do I get them out? I tried
> to replace all the "\r" but that did not help
>
> Any ideas?
>
> ___
> 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] clone object

2006-08-24 Thread Scott Hyndman

Careful with circular references. Pretty easy to get that one in to
exceed the 256 recursion limit.

Scott

On 23/08/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

static function clone(obj:Object):Object {
var o = (null != obj.length) ? [] : {};
for (var i in obj) {
o [i] = (typeof obj[i] == "object") ? clone(obj[i]) :
obj[i];
}
return o;
}
___
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 question

2006-08-24 Thread Scott Hyndman

Is your XML object set to ignoreWhite?

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=1896.html

Scott

On 24/08/06, Wouter <[EMAIL PROTECTED]> wrote:


Hi list,

I got an MS Acces database with data, which I converted to XML (direct
export from Access) and I read that in flash.so far so good, but when I
display the text in a textfield there are a lot of empty lines between the
linesI found out that there are somehowe some "\r" in there that
probably cause this.but how do I get them out? I tried to replace all
the "\r" but that did not help

Any ideas?

___
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] Flash/Actionscript Coding conventions

2006-08-23 Thread Scott Hyndman

If you're using eclipse, just use Ctrl+7 to comment a block out using
double slashes. Doing it again removes them. This feature works in FDT
and JDT. CDT uses Ctrl+\ instead I believe.

So I do hear what you're saying, but tools can easily get around
problems like this.

And people do read docs. I do regularly. If you're ever dealing with a
complex framework (Swing, Eclipse...or anything really) you have to
read the docs to understand what's going on. Especially because in
some cases because warnings are made to not override this or that
(soft finals). Just look at the .NET framework. The code just isn't
available. How else can you understand what's going on?

Scott

On 23/08/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

> Experienced coders who don't want to take the time to trawl through
> possibly impenetrable code read those documents.

If you write impenetrable code, you need to reevaluate your career
choice.  If you're not willing to put forth the effort to be great at
what you do, especially in something as sensitive as programming, then
do something else for a living.  No amount of documentation can make up
for bad code, and a bad coder isn't going to write good documentation
anyway!  ;)

And to the point about Javadoc, I'm not going to ruin my code and
handicap my debugging ability to satisfy some poorly thought out
requirement of a 3rd party tool.  They require you to use block
commenting in your code to automatically write documentation and that's
counterproductive to actual coding.  It should work hand in hand with
not diametrically opposed to the coding process.  If they were smart
about it, they would support line commenting with non-asterisk
delimiters.  Say //! !//, or //| |// or //[ ]//, etc.  Exclamations,
pipes, and brackets are all better choices because they do not conflict
with anything.

I'm not going to make my process suffer nor am I going to litter my code
with ugly asterisks just to document my work when I can spend that
energy writing cleaner, easier to read code with light commenting in the
code itself.   :)

___
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] Possible Challenge: AS 3.0 Compiler :)

2006-08-05 Thread Scott Hyndman

Can flex compiler run inside the Flash 9 plugin? I didn't think so...


No need to be snappy. I didn't understand. I suppose you could write
it using the new byte array stuff, but I don't understand why it would
be of any use to anyone. If you want something compiled it would make
a lot more sense to get a serverside language to call the compiler.


Possibly for geek points?


A compiler is a lot of work. If you have time to kill, why not spend
it on something worthwhile.
___
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] Possible Challenge: AS 3.0 Compiler :)

2006-08-05 Thread Scott Hyndman

https://www.adobe.com/cfusion/tdrc/index.cfm?product=flex

The Flex compiler is free.

Scott

On 02/08/06, Keith Salisbury <[EMAIL PROTECTED]> wrote:

Why on earth would you want to?

On 8/2/06, John Giotta <[EMAIL PROTECTED]> wrote:
> It maybe too soon for anyone to have a full grasp on AMF or SWF specs
> of an AS3.0 SWF but I wonder if its possible to create a crude
> compiler from AS3.0.
>
> AS3.0 ouroboros of sorts.
> ___
> 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
>


--
[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@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] Mac IDE for AS !

2006-07-27 Thread Scott Hyndman

Eclipse with FDT.

On 27/07/06, f a r i d | s i l v a | a b o i d <[EMAIL PROTECTED]> wrote:

I'm not working actually in Mac, but a I used to. In those times the best
code editor I got was BBEdit by barebones.
Cause it's modular development, you could add support for any languages.
Check it.
Regards


--
SalU2


f a r i d | s i l v a | a b o i d
www.e-foco.com.ar
tel: +54 11 4300-1042
cel: 15-6475-3021

Moderador de Salas Dreamweaver y Programación
Multimedia User Group Adobe Argentina
http://www.mmug-ar.com.ar

___
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] ActionScript Application Framework

2006-07-21 Thread Scott Hyndman

I use ActionStep with ARP regularly. They're complimentary.

In fact, I have the ARP commands set up so they can be marked as being
"undoable", syncing right in with ActionStep's undomanager and menuing
system.

Scott

On 21/07/06, Ben Smeets <[EMAIL PROTECTED]> wrote:

Looking at the amount of reactions and my own personal questions, I
think this is a very wanted subject by developers. The funny thing is,
that I think there are already lots of different os frameworks which are
useable in projects and a developers life easier. It seems they are just
not well known enough or lack in documentation on how it can help
people. I also think that there are lot's of projects that help in
separate subjects. E.g. ARP/ASWING/ACTIONSTEP etc. It might help if
people can see how these frameworks can work together.

My 2 cents.

Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ujjwal
Kabra
Sent: donderdag 20 juli 2006 22:02
To: Flashcoders mailing list
Subject: Re: [Flashcoders] ActionScript Application Framework

After nearly two years of working in ActionScript, my company decided
that Flash development was too painful and just not worth the effort.

This happened just about the time that I was actually getting the hang
of things. In any case, I was the last Flash(AS2) Developer left here...

I'm in full support for building an app-development framework around
Flash/AS2 and/or AS3, which would make life easier for AS2 devs like me,
and make the decision to chose Flash as a development platform easier
for a mid-sized team than it currently is.

While I have little(none actually) idea about Ruby and Rails, I'll read
up soon... I would love to get started before my Flash skills actually
get rusted away.

- Ujjwal

PS: Is there a troll feature on mailing lists?
On 7/21/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
>
> James,
>
> Rails and Flex work very well together.  Maybe you should consider
> following that career path - a Flex/Rails developer.  Jesse Warden has

> gone that way and loves it.
>
> http://www.recentrambles.com/pragmatic/view/31
>
>
> BLITZ | Steven Sacks - 310-551-0200 x209
>
> ___
> 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] 50 stars blinking... app gets too slow

2006-07-03 Thread Scott Hyndman

It seems much more likely to me that it's alpha related. Remove the
alpha-related code and see if it still occurs.

Scott

On 03/07/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:

It´s random. While some are fading in, others are fading out and so on. I
used Fuse to iterate through the stars created and attach the onEnterFrame
event on each of them.

How I would animate each of them at different times using only one
onEnterFrame event?

Maybe the best solution would be to build this animation on the stars
timeline in Flash IDE...

Thanks,

Marcelo.

On 7/3/06, Michael Bedar <[EMAIL PROTECTED]> wrote:
>
> 50 onEnterFrames running at the same time could definitely be the
> problem.
>
> Maybe you could consider making one onEnterFrame script that controls
> all of your star animations.. do they all animate ALL the time, or
> are only some "on" at any given time? If nothing else, make sure that
> movieclips that are not actively doing something are not wasting cycles.
>
>
> On Jul 3, 2006, at 1:38 PM, Marcelo de Moraes Serpa wrote:
>
> > I´ve created 50 star movieclips with random sizes, rotation and
> > scale. Till
> > there, everything went fine, the sky´s got good looking, but the stars
> > needed some "life", so I thought in adding a fade-in / fade-out
> > tween to
> > each of them - and here comes the problem - I´ve attached a
> > onEnterFrame
> > event to each of them and have written a simple code that does the
> > blinking.
> > It works, but the app gets too slow. I don´t know if it´s becouse
> > of the
> > rendering engine that doesn´t manage to render 50 stars blinking or
> > if it´s
> > becouse of the 50 onEnterFrame events with code to do the fade-in/
> > fade-out.
> > Any ideas?
> >
> > Thanks in advance.
> > ___
> > 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] Progressivelly download (and show) a jpg image

2006-07-02 Thread Scott Hyndman

You can in Flash 8, along with GIFs and PNGs.

Scott

On 02/07/06, Marc Hoffman <[EMAIL PROTECTED]> wrote:

I might be wrong, but I don't think you can
download progressive jpgs, therefore you won't
have anything to display until the jpg is
completely loaded. If the jpgs are huge, you
might consider downloading a lower-res image
first, perhaps a .gif with fewer colors and/or a
grayscale image. That should load very quickly.
Once that's loaded, you could load the hi-res jpg
and then, using masking, show it progressively from top to bottom.

Marc

At 08:03 AM 7/2/2006, you wrote:
>Hi Cor, thanks for the reply.
>
>Yes, I would use a mask. But the question is, how could I progressively show
>only the image while it is being downloaded?
>
>Marcelo
>
>On 7/2/06, Cor <[EMAIL PROTECTED]> wrote:
>>
>>You could use a mask
>>
>>-Oorspronkelijk bericht-
>>Van: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] Namens Marcelo de
>>Moraes
>>Serpa
>>Verzonden: zaterdag 1 juli 2006 13:48
>>Aan: Flashcoders mailing list
>>Onderwerp: [Flashcoders] Progressivelly download (and show) a jpg image
>>
>>Is it possible somehow to progressivelly show a jpg being loaded via
>>loadMovie()? The topdown "effect" that is native in images loaded via
>>html... as far as I know, It´s only possible to show the image in the
>>flash
>>player after it has been completely loaded, but I remember seeing an
>>example
>>of such thing on flashkit once...
>>
>>Cheers,
>>
>>Marcelo.
>>___
>>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


___
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] Flash Player 9 Public Beta for Apple Intel-based Macintosh computers

2006-06-30 Thread Scott Hyndman

It does. It's just been updated.

The problem I was having was that SWT password boxes on Intel Macs
wouldn't let me enter characters. I couldn't get or put anything into
version control, making Eclipse pretty useless for me.

If you write any JSP/Servlets/J2EE stuff, be sure to check out WTP. It
makes life a lot easier. The deployment stuff is great.

Scott

On 29/06/06, hank williams <[EMAIL PROTECTED]> wrote:

Oh ok. Thats interesting. I run eclipse on a mac and pc and hadnt run
into any problems on the mac yet. I am trying to transition to the
mac, but at the moment I can only do my java stuff there, which is a
bummer. I hope they can get their flex2 issues worked out soon.

So does the new eclipse not use SWT?

Hank

On 6/29/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
> It's the simultaneous new version rollout of 10 Eclipse projects. A
> lot of the projects are very cool, but the important one for me is
> Eclipse 3.2. The current version of Ecilpse has some problems on Intel
> Macs due to its reliance on SWT (which relies on native code). These
> should be resolved in this new version.
>
> I'm also looking forward to the new TPTP (a plugin for testing the
> performance of applications, and not just ones that are written in
> Java). It will not work on the Intel Mac, but since our servers are
> not running OSX it doesn't matter. Support for the Mac is planned for
> the next version too.
>
> Scott
>
> On 29/06/06, hank williams <[EMAIL PROTECTED]> wrote:
> > Hey scott, what is that callipso thing all about. I mean I went to the
> > eclipse site and there seemed like alot of kind of esoteric stuff. But
> > I am not sure. Can you explain?
> >
> > Thanks
> > Hank
> >
> > On 6/29/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
> > > Awesome.
> > >
> > > This and the Eclipse Callipso release (which is compatible with Intel
> > > Macs) makes this a pretty good week.
> > >
> > > Scott
> > >
> > > On 29/06/06, hank williams <[EMAIL PROTECTED]> wrote:
> > > > yipeee!!!
> > > >
> > > > On 6/29/06, Francis Cheng <[EMAIL PROTECTED]> wrote:
> > > > > The Flash Player 9 Public Beta for Apple Intel-based Macintosh 
computers
> > > > > is now available:
> > > > >
> > > > >
> > > > >
> > > > > http://www.adobe.com/products/flashplayer/public_beta/
> > > > >
> > > > >
> > > > >
> > > > > Francis
> > > > >
> > > > > ___
> > > > > 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
> >
> ___
> 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] Flash Player 9 Public Beta for Apple Intel-based Macintosh computers

2006-06-29 Thread Scott Hyndman

It's the simultaneous new version rollout of 10 Eclipse projects. A
lot of the projects are very cool, but the important one for me is
Eclipse 3.2. The current version of Ecilpse has some problems on Intel
Macs due to its reliance on SWT (which relies on native code). These
should be resolved in this new version.

I'm also looking forward to the new TPTP (a plugin for testing the
performance of applications, and not just ones that are written in
Java). It will not work on the Intel Mac, but since our servers are
not running OSX it doesn't matter. Support for the Mac is planned for
the next version too.

Scott

On 29/06/06, hank williams <[EMAIL PROTECTED]> wrote:

Hey scott, what is that callipso thing all about. I mean I went to the
eclipse site and there seemed like alot of kind of esoteric stuff. But
I am not sure. Can you explain?

Thanks
Hank

On 6/29/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
> Awesome.
>
> This and the Eclipse Callipso release (which is compatible with Intel
> Macs) makes this a pretty good week.
>
> Scott
>
> On 29/06/06, hank williams <[EMAIL PROTECTED]> wrote:
> > yipeee!!!
> >
> > On 6/29/06, Francis Cheng <[EMAIL PROTECTED]> wrote:
> > > The Flash Player 9 Public Beta for Apple Intel-based Macintosh computers
> > > is now available:
> > >
> > >
> > >
> > > http://www.adobe.com/products/flashplayer/public_beta/
> > >
> > >
> > >
> > > Francis
> > >
> > > ___
> > > 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


___
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] Flash Player 9 Public Beta for Apple Intel-based Macintosh computers

2006-06-29 Thread Scott Hyndman

Awesome.

This and the Eclipse Callipso release (which is compatible with Intel
Macs) makes this a pretty good week.

Scott

On 29/06/06, hank williams <[EMAIL PROTECTED]> wrote:

yipeee!!!

On 6/29/06, Francis Cheng <[EMAIL PROTECTED]> wrote:
> The Flash Player 9 Public Beta for Apple Intel-based Macintosh computers
> is now available:
>
>
>
> http://www.adobe.com/products/flashplayer/public_beta/
>
>
>
> Francis
>
> ___
> 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] Programmatically instantiating a class that extends MovieClip.

2006-06-29 Thread Scott Hyndman

That's exactly what I mean. As a result you can do cool things like
reparenting -- like moving a button from one window to another. It
handles the MovieClip creation itself.

A code example really isn't too easy, because the framework that
allows this to be possible is quite large. If you were really
interested, you could look at the code. Here's a link:

http://tinyurl.com/jqtwv

It's a gigantic class...so it might be difficult to work through. The
important method is createMovieClips(), which is called when a view
(the type of object that encapsulates movieclips) moves to a new
superview.

Scott

On 29/06/06, Jim Kremens <[EMAIL PROTECTED]> wrote:

"Why not subclass object instead? Both ActionStep and ASwing work this
way, then create movieclips on the fly. It's very nice to work with."

So you never really subclass movieclip, you use composition instead.  In
other words, your class has a movieclip, but it isn't a movieclip.,,

Is that what you mean, or am I missing the point?  Can you give a small code
example?

Thanks,

Jim Kremens
___
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: RE: [SPAM?] RE: [Flashcoders] XPcomponents set

2006-06-29 Thread Scott Hyndman

Thinking about it again, I think you're right on one point.  There's
certainly no reason that using their framework should break native Flash
code.  That's just sloppy.  But, as it is a framework, I think it's totally
legit that it makes you do certain things certain ways.


I wouldn't say XPComponents _breaks_ native code...it just chooses not
to use it, abstracting it away into an API that they designed
themselves. In my opinion this is perfectly acceptable and maybe even
desirable if additional functionality is provided as a result.

Scott
___
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] Programmatically instantiating a class that extends MovieClip.

2006-06-29 Thread Scott Hyndman

Why not subclass object instead? Both ActionStep and ASwing work this
way, then create movieclips on the fly. It's very nice to work with.

Scott

On 29/06/06, Jim Kremens <[EMAIL PROTECTED]> wrote:

Google 'Ted Patrick' and 'MCE'.

You can't use 'new' but it's a lot better and you don't need a library
symbol.  I've been using a variant of it for about 18 months now with no
trouble.

Jim Kremens


On 6/29/06, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> To the best of my knowledge, no, unfortunately.
>
> That's one of the reasons that I'm looking forward to AS3. :-)
>
> Ian
>
> On 6/29/06, Jason Lutes <[EMAIL PROTECTED]> wrote:
> > Since this relates to some things that were brought up recently...
> >
> > Is it possible to have a class that extends MovieClip, but doesn't
> > relate/link to a Library symbol, FULLY instantiate itself without
> > additional Timeline code?
> >
> > I'd like to simplify object creation for some classes I created, so that
> I
> > can just use the "new" operator to instantiate them.
> >
> > I'm currently using the instatiating procedure that involves this
> general
> > code:
> >
> > FooClass(this.attachMovie(FooClass.pseudoSymbolName, 'fooInstance',
> > this.getNextHighestDepth()));
> >
> > I've looked around and haven't found a tidier way to accomplish this
> kind
> > of instantiating, so I presume it's not possible. Does anyone know
> > differently?
> ___
> 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
>



--
Jim Kremens
___
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: [SPAM?] RE: [Flashcoders] XPcomponents set

2006-06-29 Thread Scott Hyndman

I don't see why that matters exactly?

Scott

On 29/06/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

> I don't think it's a scam. I gave them a call when I was working with
> them and they were amazingly helpful and polite. I think it's 3 guys
> coding a component framework, and one that's not too shabby. Sure, it
> doesn't work with MM's framework, but who cares? V2 is garbage
> anyways.

It's not just MM's components it doesn't work with, it's Flash in
general.

When you put ANY of their components in your movie, the following Flash
native code no longer works.

Selection.setFocus
TextField.tabIndex

Like I mentioned before, they are amazingly helpful and polite.  It
doesn't change the fact that their components don't work standalone,
that you must code how they tell you to code and use their framework to
code all your Flash applications, that it's not made clear that this is
a requirement for using their components prior to purchase, and they and
everyone else here know full well that pretty much no one would buy
their components if they knew ahead of time about this restriction, yes,
it's a scam.

Just because you put a lot of hard work into something doesn't
automatically make it valuable.
___
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: [SPAM?] RE: [Flashcoders] XPcomponents set

2006-06-29 Thread Scott Hyndman

I don't think it's a scam. I gave them a call when I was working with
them and they were amazingly helpful and polite. I think it's 3 guys
coding a component framework, and one that's not too shabby. Sure, it
doesn't work with MM's framework, but who cares? V2 is garbage
anyways.

Scott

On 28/06/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

> My experience exactly :-(. Perhaps I will be able to use them in a
future
> project, but as for now, money down the drain. Had it been clearly
stated
> on
> the site that the comoponents can't be used stand-alone, I would not
have
> purchased them. Of course, they're non-refundable.

I somehow doubt he would sell his components if people knew ahead of
time they weren't meant to be used stand-alone.  Hence, they're not
really components, but pieces of a larger framework, which you are not
only purchasing, but must take the time to learn HIS way of coding which
means you can't work using your own methods, nor can you put his
components into an existing application.


> In my case, over last couple of weeks, I have received no response to
> multiple inquiries regarding the components. Initially I was very
polite
> and
> just asked for some examples/help, but I'm sure my later messages must
> have
> had a somewhat annoyed tone :->.

IMO, it's a scam.  But, that's just my opinion.  You can formulate your
own. By the way, the author is on Flashcoders (or at least was a year
ago).  Maybe if enough people start exposing his components for what
they are, he'll chime in.

-Steven





>
> Are the Ghostwire components still being developed further or added
to?
>
> Ville
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Steven
> Sacks
> | BLITZ
> Sent: Wednesday, June 28, 2006 12:01
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] XPcomponents set
>
> What is not entirely clear on the website is that the XPComponents are
> NOT designed to be used as standalone components in YOUR application,
> but are meant to be used when you build applications using the
> DEVELOPERS' EXACT framework.
>
> We paid for the components but found out very quickly that they
wouldn't
> work for us because they caused all kinds of issues with Selection,
> tabIndex, and other non-XP components.
>
> I don't want this to sound disparaging, as the author of the
components
> was very helpful when I asked him about the issues I was having,
> however, I disagree with his approach.  The website doesn't explain
> clearly that you cannot just throw one of his components in your movie
> and expect it to work, or that using his components in your movie can
> break your existing code and won't get along with other components
(MMs
> or other 3rd party ones) or even with Flash's native code (like
> Selection and tabIndex).  You MUST use the exact framework he has
> developed from the get go.  To me, it's kind of misleading to simply
> call them components, since you're actually purchasing a framework
which
> contains custom components to work within that framework.
>
> If you're looking for great, lightweight, skinnable components you can
> just throw into your existing code, I recommend the Ghostwire
components
> set.  I have had a lot of success with them.  They're written in AS1
but
> AS2 compiles as AS1 anyway and their ease of use, skinnability, and
> ability to get along with your existing code make them a winner in my
> book.
>
> http://www.ghostwire.com/
>
> HTH,
> Steven
>
> ___
> 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] is extending TextField usable with AS2?

2006-06-16 Thread Scott Hyndman

I'm not sure it's easily extensible...because how would you go about
creating a textfield subclass?

You're better off wrapping it in an MC and assigning a custom class to that.

Scott

On 16/06/06, Michael Stuhr <[EMAIL PROTECTED]> wrote:

Peter O'Brien schrieb:
> title says it all really, I'd prefer not to use prototype, is there anyway I
> can make an instance of my AS2 extension of TextField?

RTFM where it says all about classes.

micha
___
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] Java's wait(timeout) and notify() in ActionScript

2006-06-16 Thread Scott Hyndman

You could, but setInterval has an optional scope argument. I'd just use that.

Scott

On 16/06/06, Arul Prasad M L <[EMAIL PROTECTED]> wrote:

use mx.utils.Delegate class to solve the scope problem. simple!

On 6/16/06, Michael Stuhr <[EMAIL PROTECTED]> wrote:
>
> Scott Hyndman schrieb:
> > Yeah, sure.
> >
> > Use setInterval. If the user interacts before the time expires, call
> > clearInterval.
> >
> >
> jupp, and beware of the scope. this can be deadly with setInterval.
>
> micha
> ___
> 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] question SO class

2006-06-15 Thread Scott Hyndman

Just out of interest, what benefit exactly does this class provide?
You seem to offer the same methods that the shared object does with
different names (although the names are clearer, I'll give you that).

Scott

On 15/06/06, Caruso Canepari <[EMAIL PROTECTED]> wrote:


Hi.

I made up this little class to manage Shared Objects.
But there is something (or more than simply "something") in AS I don't 
perfectly understand.

The problem (I imagine there can be many more, but...) is that I can't add more 
than one data property. I post the code with some comment:



---
class
---

class com.FlashCookie extends SharedObject {
var _name:String;
var _data:Object;
var _so:SharedObject;
var _propName:Object;
//
function FlashCookie(name:String) {
if (name == undefined) {
trace("you must pass me something");
return;
}
this._name = name;
this._so = SharedObject.getLocal(this._name);
this._data = this._so.data;
}
// one problem could live here:
public function setData(_propName:Object, _value:Object):Void {
this._propName = _propName;
if (this._data[this._propName] == undefined) {
this._data[this._propName] = _value;
}
}
//
function deleteCookie():Void {
this._so.clear();
}
//
function writeCookie():Object {
var res = this._so.flush();
return res;
}
//
function getCookieSize():Number {
var num = this._so.getSize();
return num;
}
// I only get the array (A):
function getContent() {
trace("!");
//trace(this._data);
var i;
for (i in this._data) {
trace([i]+"--"+this._data[i]);
}
}
}

---
FLA code:

//
import com.*;
//
var coo:FlashCookie = new FlashCookie("foo_bar_baz");
//
var A:Array = [1, 2, 4];
var B:String = "string_";
var C:Number = 6;
//
coo.setData(_propA, A);
coo.setData(_propB, B);
coo.setData(_propC, C);

---


I hope you can help me understand.   :-)
Thanks in advance.
CC




 Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.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] Java's wait(timeout) and notify() in ActionScript

2006-06-15 Thread Scott Hyndman

Yeah, sure.

Use setInterval. If the user interacts before the time expires, call
clearInterval.

Scott

On 15/06/06, Alexander Farber <[EMAIL PROTECTED]> wrote:

Hello,

I'm trying to rewrite a web chat client written in Java,
which is performing the following in its main loop:

I have a variable called "url" and if after waiting TIMEOUT
seconds it is still unset, then I just retrieve the URL
http://myserver/mychat?event=keepalive, so that the
chat server knows, that the client is still connected.

BUT if during that waiting period the url-variable gets set
(for example, when the user types smth. into a textfield)
I want to interrupt the waiting IMMEDIATELY and retrieve
the URL http://myserver/mychat?event=chat&args=blah+blah.

In the Java client I do this by using the wait() and notifyAll().

Is there a way to do this in ActionScript? I.e. some MovieClip
with LoadVars should sleep for TIMEOUT seconds (so that
it doesn't poll and waste the CPU) and wake up when needed?

Thank you
Alex

--
http://preferans.de/
___
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] xls - xml mapping

2006-06-15 Thread Scott Hyndman

What server-side language are you dealing with? If it's a .NET
language, this kind of thing is very easy to accomplish. You can
access the contents of excel spreadsheets in one of two ways.

1. There is a ADO.NET data provider called Microsoft Jet
http://www.aspfree.com/c/a/Database-Code/Accessing-an-Excel-Spreadsheet-in-ASPNET-VB-and-C-by-Alex-Lowe/

2. You can use the Excel Object Library (I believe it's available just
by installing Excel)
http://www.codeproject.com/csharp/csharp_excel.asp

Scott

On 15/06/06, Ron Wheeler <[EMAIL PROTECTED]> wrote:

If you give the client an OpenOffice spreadsheet, the data is already
stored in XML and you may only need a minor transformation with XSLT to
get it into a format that you want for for your flash backend.
OpenOffice is free and looks a lot like Excel .
If your client will only deal with Excel, you can read the Excel
spreadsheet with OpenOffice, save it as an OpenOffice spreadsheet and
continue the process.
We used this to build a searchable database of Personal Protective
Equipment for First Responders that ran without any server(police cars
and firetrucks do not generally have their own on board servers.).

Ron

Kedar Mehendale wrote:
> Hi,
>
> I have designed a website in flash with a xml backend. All the products are 
called from the xml datasheet. Now the client wants a simpler way of updating the 
site. He finds xml difficult to work on.
>
> How can i map an xls to the xml backend. ie the client will update the xls file 
& upload it. From there the xml should read the xls file and update the site.
>
> Is that possible. Pls do help if anyone knows the solution or codes to do it.
>
> Thanks.
>
> Regards,
> Kedar Mehendale
> 
> Account Supervisor
> Tribal DDB India
> [EMAIL PROTECTED]
> Brindavan , 3rd Floor, Shree Ram Mills, Worli, Mumbai 18
> Tel: 022-30404055 /58
> Cell: 9820211838
> www.tribalddbindia.com
> 
>
> This email is intended only for the named person or entity to which it is 
addressed and contains valuable business information that is privileged, 
confidential and/or otherwise protected from disclosure. Dissemination, 
distribution or copying of this email or the information herein, by anyone other 
than the intended recipient or an employee or an agent responsible for delivering 
the message to the intended recipient, is strictly prohibited. All contents are 
the copyright property of Mudra Communications Pvt. Ltd. (Mudra) or its group 
Companies or its clients. If you are not the intended recipient, you are 
nevertheless bound to respect the sender's legal rights. We require that 
unintended recipients delete the email and destroy all electronic copies in their 
system, retaining no copies in any media. Information in this message that do not 
relate to the official business of sender or its group Companies shall be 
understood to be neither given nor endorsed by the Company. If you have received 
this e-mail in error, please notify us immediately by email to [EMAIL PROTECTED]
>
> The email has been successfully scanned for presence of virus.  It is 
recommended to scan along with attachment, if any, before launching. We do not 
accept any liability for any errors, omissions, viruses or computer problems 
experienced by any recipient as a result of this email.
>
>
>
>
>
>
>
>
> ___
> 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] Command line compile

2006-06-14 Thread Scott Hyndman

Oh, sorry about that. Didn't read carefully enough.

I don't think there is a solution given your contraints...but I'm
going to offer my two cents. Forget MM's compiler. It might as well be
unsupported. Tech support will cost a fortune to speak to and I'm
pretty sure they wouldn''t be able to fix your problems anyway.

Switch to MTASC. Convince whoever you're working for that it's a good
idea. Your life will be easier and consequently, so will everyone
elses. I've been using it for more than a year building major
libraries (ActionStep -- http://tinyurl.com/lupmv) and at this point
there is absolutely nothing to worry about. A large and well-versed
user base will be right at your fingertips. Lots of coders were fed up
with MMC a long time ago, and are now happily enjoying Flash
development again.

Hope you didn't mind the rant, good luck,
Scott

On 14/06/06, Sam Thorne <[EMAIL PROTECTED]> wrote:

Hi Scott,

Yeah, I've seen this, but the problem isn't making the compile call,
it's running Flash while not in a windowing environment.

All Mike's script really does is build a custom jsfl script on the
fly, open Flash and run the script.
It's the 'Open Flash' bit that we're stuck with, as we have no logged
in user.

On 14 Jun 2006, at 14:29PM, Scott Hyndman wrote:


> http://weblogs.macromedia.com/mesh/archives/2003/11/
> flashcommand_fl.html
>
> On 14/06/06, Éric Thibault <[EMAIL PROTECTED]> wrote:
>
>> Do your command line from a .bat wrapped with a SU command (substitut
>> user with the password).  I don't have an example with me but will
>> try
>> to get one from home.  I've used that trick a lot but it was over 6
>> years ago.
>>
>> A+
>>
>> Sam Thorne a écrit :
>> > Hi List,
>> >
>> > I'm working on a project where we're looking at switching to
>> nightly builds for the development process, building on MS Windows.
>> >
>> > At the moment a cron job attempts to run the compile and gets
>> stuck on our Flash compilation.
>> > This is probably because the build machine isn't running as a
>> logged in user, but as a system process. This means when Flash
>> tries to throw up a splash screen etc. it is probably falling over.
>> > We can't run it as a logged in user (and thus get the windowing
>> environment), as it breaches company security to have a dummy user
>> logged in all the time and the machine will auto logout after a
>> couple of minutes.
>> >
>> > We can't use mtasc, because of issues with using an unsupported
>> compiler for production code.
>> >
>> > Is there any way to do a command line compile with pure
>> actionscript 2.0 .as and .fla based source files without a
>> windowing environment?
>> > Is this something that Flex can do for us, or would we have to
>> rewrite into mxml?
>>
>>

Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971___
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] Command line compile

2006-06-14 Thread Scott Hyndman

http://weblogs.macromedia.com/mesh/archives/2003/11/flashcommand_fl.html

On 14/06/06, Éric Thibault <[EMAIL PROTECTED]> wrote:

Do your command line from a .bat wrapped with a SU command (substitut
user with the password).  I don't have an example with me but will try
to get one from home.  I've used that trick a lot but it was over 6
years ago.

A+

Sam Thorne a écrit :
> Hi List,
>
> I'm working on a project where we're looking at switching to nightly builds 
for the development process, building on MS Windows.
>
> At the moment a cron job attempts to run the compile and gets stuck on our 
Flash compilation.
> This is probably because the build machine isn't running as a logged in user, 
but as a system process. This means when Flash tries to throw up a splash screen 
etc. it is probably falling over.
> We can't run it as a logged in user (and thus get the windowing environment), 
as it breaches company security to have a dummy user logged in all the time and 
the machine will auto logout after a couple of minutes.
>
> We can't use mtasc, because of issues with using an unsupported compiler for 
production code.
>
> Is there any way to do a command line compile with pure actionscript 2.0 .as 
and .fla based source files without a windowing environment?
> Is this something that Flex can do for us, or would we have to rewrite into 
mxml?
>
>
> Regards,
>
> Sam Thorne
> Interaction Design
>
> Web: http://www.native.com/
> Tel: +44 (0)207 588 7970
> Fax: +44 (0)207 588 7971
>
>
> ___
> 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
>
>


--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de 
confidencialidad 

___
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] Double-rendered Text

2006-06-14 Thread Scott Hyndman

Sounds like you're recreating textfields without removing the old
ones. It may sound stupid, but in my personal experience it's one of
the most commonly encountered bugs while working in Flash. I've
already fixed two like that today!

If you're working in the IDE, step through the code to make sure
you're calling removeTextField() wherever necessary.

The other option is that there is a problem with your layout code and
the textfields overlap as a result. If this is the case, you may find
it helpful to give your textfields borders (just for debugging
purposes). If that doesn't help, trace out coordinates and do hit
tests. You'll get it.

Scott

On 14/06/06, Jason Lutes <[EMAIL PROTECTED]> wrote:

I have a "pop-up window" that remains always on the Stage, and is simply
shown/hidden as needed. The pop-up window has 3 text fields that get
populated with HTML-formatted text from an XML document each time it gets
shown. My problem is that when the pop-up window gets shown the text
fields display both the former text (for a prior showing) along with the
new text (for the current showing). The text is overlapping and garbled. I
can't figure it out. Has someone seen this and can help me with a
suggestion?

Thanks.


-
Jason

___
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] Text link on hover

2006-06-09 Thread Scott Hyndman

But that's a click David, not a hover.

Scott

On 6/9/06, David Bellerive <[EMAIL PROTECTED]> wrote:

You wish as been granted :)

You can call another actionscript function from within
a dynamic textfield by setting it's html property to
true and using asfunction within the anchor tag like
this :

tfMyTextField.html = true;
tfMyTextField.htmlText = "";

where fMyFunction is the name of the function you want
to call when the user clicks the link and sMyParameter
is a parameter to pass to that function. Only one
parameter can be passed to the function.

> I wish you were wrong too =[
>
> Thanks though Mick
>
> M.
>
> On 6/8/06, Jim Kremens <[EMAIL PROTECTED]> wrote:
>
> Wait, I know you can get hovers, but can you catch
the hover 'event'
and
> use
> it to, for example, call another function? I think
that was his
question,
> and as far as I know, there is no 'onHover' event.
I'd like to be
> wrong...
>
> Jim Kremens
>
>
> On 6/8/06, Mick G <[EMAIL PROTECTED]> wrote:
> >
> > Yes, you'll need to set up style in Flash...
> > A:hover is supported in Flash.
> >
> >
http://www.actionscript.org/tutorials/beginner/css_in_flash/index.shtml
> >
> >
> >
> > On 6/9/06, elibol <[EMAIL PROTECTED]>
wrote:
> > >
> > > Does anyone know if it's possible to trigger an
event with a text
link
> > > hover
> > > state?
> > > ___
> > > 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
> >
>
>
>
> --
> Jim Kremens
> ___
> 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
>

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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] Re: (very) small Flash contract work

2006-06-07 Thread Scott Hyndman

Hi guys,

We found somebody. Thanks for your responses.

Scott

On 6/5/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:

Hi there,

A company that I often deal with requires a bit of Flash help. This
mainly involved the tweaking of some pre-existing Flash animations.
Easy stuff like adding logos, changing some text here and there. All
the work is done for you. I just no longer have the time to help them
out.

The work might only ever take 30 minutes every month or so, but it's
easy and you can bill for it. If you're interested, let me know. There
may even be opportunity for some more significant work later.

It would be best if you lived in the Canada or the US for payment reasons.

So if you are interested please email [EMAIL PROTECTED] with
availability, rates and maybe a sample link or two (just to give some
idea of what youre capable of).

Thanks,
Scott Hyndman


___
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] How to hide SWF Assets from Internet users

2006-06-07 Thread Scott Hyndman

You could hold the swfs in a database (or in some datastore only
accessible to the server), then serve out the swfs through Java or PHP
(or any other serverside language). Authenticate each map request with
a username / password in the query string. If you wanted to prevent
that username / password from being seen (by people watching the
line), use HTTPS.

On 6/7/06, Bieniasz, Myles <[EMAIL PROTECTED]> wrote:

One way is to use the _url property, which will point to the .swf's
location on the file system, then just have each map check if it's
residing at the proper url.  If it is allow the map to be view and if
not don't display anything.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: Wednesday, June 07, 2006 12:51 PM
To: Flashcoders mailing list
Subject: [Flashcoders] How to hide SWF Assets from Internet users

Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
>From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
"D:\Documents", etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

Mike
___
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



MLB.com: Where Baseball is Always On


___
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] How do real developers do key handling?

2006-06-06 Thread Scott Hyndman

Not exactly a real hascode though.

In Java for example, two distinct yet identical (in composition)
objects will result in the same hashcode. In Vegas, the hashes will be
different because the number is generated incrementally.

Their map implementation is pretty strange as well and does not lend
itself to a large number of entries. Access would be very slow after
awhile.

Better off to use object instances as maps. Since the example you show
shows that you are mapping with String keys, it should be fine.

Scott

On 6/6/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote:

The open-source Vegas framework at osflash.org makes use of a hashmap.
Since every Object extends of CoreObject, a hashcode is added to every
object. A nice solution, I think.

static private var _initHashCode:Boolean =
HashCode.initialize(CoreObject.prototype) ;

2006/6/7, Kevin Aebig <[EMAIL PROTECTED]>:
> Well the code that your friend is suggesting is pretty straightforward and
> you could port it over to AS2 if you wanted. Instead of a hashMap, why not
> just use an associative array? I'm pretty sure that I've seen a hash class
> ripping around from either Brandan Hall or Samuel Wan based off of an
> associative array.
>
> All in all, the code could be ported over with minimal effort... but there
> would be some area's that you would need to be creative with.
>
> Cheers,
>
> Kevin
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of black59mga
> Sent: June 6, 2006 4:09 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] How do real developers do key handling?
>
> I have 10 apps that will controlled with a TV remote control (no mouse).
> There are only 12 keys on the remote, so the app that has focus will will
> have to do very different things with a given key press, depending on
> context.
>
> A java dev. friend suggested an approach using a hashMap, but we don't have
> hashMap in AS 2.0. And I'm a bit confused by his sample code:
>
> public class ChannelInputTest {
>   public static void main(String argv[]) {
>
> // Create a new ChannelInput object and add a few keys to its map
> ChannelInput ci1 = new ChannelInput();
> ci1.addKey("1", new SimpleKeyHandler());
> ci1.addKey("2", new AnotherSimpleKeyHandler());
>
> // Now handle some keys with this puppy
> ci1.processKey("1");
> ci1.processKey("2");
>
> // Create a SECOND ChannelInput object, and add some different
> keys/handlers
> ChannelInput ci2 = new ChannelInput();
> ci2.addKey("3", new AnotherSimpleKeyHandler());
> ci2.addKey("4", new SimpleKeyHandler());
>
> ci2.processKey("3");
> ci2.processKey("4");
>
> // Finally - should get an error if a ChannelInput gets unmapped key
> ci2.processKey("1");
>   }
> }
>
> import java.util.HashMap;
>
> public class ChannelInput {
>   private HashMap handlerMap = null;
>
>   ChannelInput() {
> handlerMap = new HashMap();
>   }
>
>   public void addKey(String key, KeyHandler handler) {
> handlerMap.put(key, handler);
>   }
>
>   public void processKey(String key) {
> KeyHandler handler = (KeyHandler) handlerMap.get(key);
>
> if (handler == null) {
>   System.out.println("ERROR: null handler for key \"" + key + "\"");
> } else {
>   handler.handleKey(key);
> }
>   }
>
> public class SimpleKeyHandler implements KeyHandler {
>   public void handleKey(String key) {
> System.out.println("SimpleKeyHandler Key " + key + " was pressed");
> // Action for this key goes here
>   }
> }
>
> interface KeyHandler {
>   public void handleKey(String key);
> }
>
> <><><>
> Kevin Aebig <[EMAIL PROTECTED]> wrote: Perhaps if you told us what you're
> trying to accomplish, we could offer
> suggestions around it, but as far as catching specific keys, I'm pretty sure
> you're doing it the only way possible.
>
> !k
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of black59mga
> Sent: June 6, 2006 3:01 PM
> To: flash Coders
> Subject: [Flashcoders] How do real developers do key handling?
>
> How do real actionscript developers do key handling? If you have several
> (like 10) apps that are loaded into MCs in 'Main.swf'... What's a good way
> to code the key handling?  Right now I'm drowning in multiple key.GetCode()
> switch statements that all live in my 'Main.as'. How do smart people do
> this??
>
> Any suggestions, sample code, links to tutes etc., very greatly appreciated.
>
> -mga
>
>
>
>
> -
> Sneak preview the  all-new Yahoo.com. It's not radically different. Just
> radically better.
> ___
> 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] (very) small Flash contract work

2006-06-05 Thread Scott Hyndman

Hi there,

A company that I often deal with requires a bit of Flash help. This
mainly involved the tweaking of some pre-existing Flash animations.
Easy stuff like adding logos, changing some text here and there. All
the work is done for you. I just no longer have the time to help them
out.

The work might only ever take 30 minutes every month or so, but it's
easy and you can bill for it. If you're interested, let me know. There
may even be opportunity for some more significant work later.

It would be best if you lived in the Canada or the US for payment reasons.

So if you are interested please email [EMAIL PROTECTED] with
availability, rates and maybe a sample link or two (just to give some
idea of what youre capable of).

Thanks,
Scott Hyndman
___
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] Conditional Import Statements

2006-06-05 Thread Scott Hyndman

You could also use haXe, which offers conditional compilation. The
language isn't so different than ActionScript either.

Scott

On 6/5/06, Christian <[EMAIL PROTECTED]> wrote:

Hrmmm... interesting.  I'll have to try that out, but seems like
potentially a lot of overhead no, with the subswf's, and then managing
naming, loading and possible deletion?

Thanks for the help though, this is at least a good start.

Tyler Wright wrote:
> The only way is to compile the classes into a seperate SWF's and at
> runtime
> when you make the check load in the appropriate SWF. Not a very simple
> solution.
>
> I've found that a good solution, if you can afford to combine the classes
> into one, is making a runtime check on functionality.
>
> jsConnection = (ExternalIntervace != null) ? callEI : callGetURL;
>
> function callEI()
> { ... }
>
> function callGetURL()
> { ... }
>
> make sense?
> Tyler
>
>
> On 6/5/06, Janis Radins <[EMAIL PROTECTED]> wrote:
>>
>> no there is no way
>> improts are executed at compile time all you can do is to define which
>> class
>> to use depending on player version
>>
>> 2006/6/5, Christian <[EMAIL PROTECTED]>:
>> >
>> > Hey Guys,
>> >
>> > So i'm in the process of writing a class that does a lot of JavaScript
>> > handling.  The tricky part is, I want to use External Interface for
>> > those files published in 8 and simple getURL calls for those published
>> > in 7 or below.
>> >
>> > For all intents and purposes, this is a private class that won't be
>> > exposed to the public, so I can't simply require the user to import
>> > version 8 of class or version 7 of class.
>> >
>> > Is there a way to do a conditional import based on published version,
>> > instead of runtime version?  I often use $version to detect major
>> > version of play to handle other functionality, but as you all know
>> > External Interface breaks if not published in 8.
>> >
>> > OR better yet, could I simply just copy the file to the FP7 folder and
>> > fake it?
>> >
>> > Does this make sense or am I smoking crack here?
>> >
>> > Christian
>> > ___
>> > 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


___
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] Flash/Eclipse Workflow

2006-06-04 Thread Scott Hyndman

If I'm understandung this...
You add the IDE generated swf (IDE.swf) to the project. You then
create an external class that has a 'main' entry point  and it loads
the IDE.swf. (with a preloader of course).


Correct


Do I have this right? Sounds good, though the test will be can I
impliment it myself. You could also break IDE.swf into several
library1.swf, library2.swf and load them seperately, to spread out the
load, couldn't you?


No, unfortunately not. Assets are only available to use from the
closest loaded parent. Let me explain with a little picture.

shell.swf (where all your classes most likely reside)
|
|-assets.swf (loaded by shell.swf)
  |
  |---movieclips that can access assets.swf library
  |
  |---assets2.swf
   |
   |movieclips that can access
assets2.swf (but not assets.swf)

It's limited by this parent cut-off idea, but it is still very useful
for getting IDE generated assets into my MTASC generated projects.

You can split this up a bit further even by including your classes in
a separate swf. The limitations shown above do not apply to loaded
classes. As soon as they are loaded, they are available.

Hope this helps,
Scott


this sounds similar to the "Natural Entry Point" method. Do you
instanciate the entry point class? If it extends MovieClip, then it
could also serve as _root, couldn't it? I'm searching for examples as
we speak...write?... I"m close, thankis for the help

On 6/3/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
> What I usually do is load in the assets swf through the MTASC
> generated swf and use it as the root in the movieclip hierarchy. By
> this I mean all movieclips created by my MTASC generated swf are
> descendants of the asset swf. By doing so you can access all symbols
> in the asset swf through attachMovieClip and you don't have to mess
> around with injection. An added benefit is that you can display a
> preloader on the asset swf which is quite likely large.
>
> Hope that helps,
> Scott
>
> On 6/3/06, Weldon MacDonald <[EMAIL PROTECTED]> wrote:
> > Ok, I installed Eclipse, spent a better part of a day downloading
> > plugins and configuring everything. I'm using Ant tasks to compile
> > with MTASC and send it to the standalone player.
> > I don't see the need for swfmill, since I own Flash. My plan was to
> > create vector graphics and any timeline stuff in flash (mostly done by
> > my wife) and then move to Eclipse to write the code.
> > But now I'm not at all sure how to structure a project. I read about
> > several methods, but am at a loss as to how to proceed. What's best
> > practise?
> > Can I use one swf as a symbol library and compile it with the class
> > files and a 'main' entrypoint? Do I inject all the code into the
> > library swf?
> > I've been experimenting with a class that's tied to a symbol in an
> > .fla and would like to switch over to the new workflow, if I can
> > figure out what that is. The symbol is a movieclip with nested
> > movieclips. The class extends MovieClip and uses an init function
> > rather than a constructor. The code I've been using to test is in the
> > .fla  but the class file is external. How can I restructure this to
> > include Eclipse in the workflow?
> >
> >
> > Weldon MacDonald
> > ___
> > 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
>


--
Weldon MacDonald
___
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] Flash/Eclipse Workflow

2006-06-04 Thread Scott Hyndman

Yes you can, as long as you attach your movieclips BELOW the loaded clip.

Scott

On 6/4/06, Adam Pasztory <[EMAIL PROTECTED]> wrote:

I've had a lot of success with the "Code Injection" method, which I've
describe here: http://www.pasz.com/articles/workingWithFame/

You can still load external assets as needed, but you have full access to
the library of your main SWF.  It works well too if you need to create
projects that need to be compiled with *both* MTASC and Flash IDE.

On 6/3/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
> What I usually do is load in the assets swf through the MTASC
> generated swf and use it as the root in the movieclip hierarchy. By
> this I mean all movieclips created by my MTASC generated swf are
> descendants of the asset swf. By doing so you can access all symbols
> in the asset swf through attachMovieClip and you don't have to mess
> around with injection.

Not sure I folow how you're doing this.  When you load an external clip, you
can't do attachMovieClip, etc.
___
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] Flash/Eclipse Workflow

2006-06-03 Thread Scott Hyndman

What I usually do is load in the assets swf through the MTASC
generated swf and use it as the root in the movieclip hierarchy. By
this I mean all movieclips created by my MTASC generated swf are
descendants of the asset swf. By doing so you can access all symbols
in the asset swf through attachMovieClip and you don't have to mess
around with injection. An added benefit is that you can display a
preloader on the asset swf which is quite likely large.

Hope that helps,
Scott

On 6/3/06, Weldon MacDonald <[EMAIL PROTECTED]> wrote:

Ok, I installed Eclipse, spent a better part of a day downloading
plugins and configuring everything. I'm using Ant tasks to compile
with MTASC and send it to the standalone player.
I don't see the need for swfmill, since I own Flash. My plan was to
create vector graphics and any timeline stuff in flash (mostly done by
my wife) and then move to Eclipse to write the code.
But now I'm not at all sure how to structure a project. I read about
several methods, but am at a loss as to how to proceed. What's best
practise?
Can I use one swf as a symbol library and compile it with the class
files and a 'main' entrypoint? Do I inject all the code into the
library swf?
I've been experimenting with a class that's tied to a symbol in an
.fla and would like to switch over to the new workflow, if I can
figure out what that is. The symbol is a movieclip with nested
movieclips. The class extends MovieClip and uses an init function
rather than a constructor. The code I've been using to test is in the
.fla  but the class file is external. How can I restructure this to
include Eclipse in the workflow?


Weldon MacDonald
___
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] How to serialize key events?

2006-05-15 Thread Scott Hyndman
The array class does not have addElement or removeElement methods.

Read the docs for push and splice.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of black59mga
Sent:   Mon 5/15/2006 6:16 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] How to serialize key events?

Ron, 
Thanks very much for your response. You asked " What is wrong with this?". 
Probably nothing.. Just lack of experience on my part. The class is now 
actionscript. I'm trying to figure out what's the right kind of Object to pass 
to the insert(obj:Object) method. Thoughts?

Thanks!

The class:

class Mailbox {
  private var  numMessages:Number = 0;
  private var mailbox:Array = new Array();

  public function insert(obj:Object):Void {
  trace("Mailbox:: Insert")
mailbox.addElement(obj);
numMessages++;
   // notify();
  }

  public function remove() {
while (numMessages == 0) {
  try {
//wait();
  } catch (e:Error) {
  }
}

var obj:Object = mailbox.firstElement();
mailbox.removeElementAt(0);
numMessages--;
return obj;
  }

  public function numobj():Number {
return numMessages;
  }

  public function flush():Array {
var array:Array = null;
if (numMessages > 0)
  array = new Array();
while (numMessages > 0) {
  var obj:Object = mailbox.firstElement();
  array.addElement(obj);
  mailbox.removeElementAt(0);
  numMessages--;
}
return array;
  }
}

Ron Wheeler <[EMAIL PROTECTED]> wrote:
The code is pretty simple. Have you tried to code and test it under 
ActionScript?
It looks like you add objects  to a list and take the first one off the 
list. It provides a function to find out if there are any objects in the 
queue. What is wrong with this?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] HashMap?

2006-05-13 Thread Scott Hyndman
Well, yes.

Now that I think about it my test didn't make much sense, since there would be 
no way of determining how keys are generated by insertions alone...I was 
assuming a uniform distribution, and it can't be done without knowing more.

But I believe that the Flash uses a tree to implement its map, for some of the 
same reasons you mentioned. It's just a way more efficient structure to use if 
your data is unknown, grows well, and stays balanced.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ron Wheeler
Sent:   Sat 5/13/2006 2:25 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] HashMap?

Wouldn't it be true to say that hash maps will get slower as the 
probability of collisions increase? As the primary area fills up, there 
will be more occasions when the new key to be added, hashes to a storage 
location already occupied and a link structure will be needed to store 
the key(s) in the overflow.
Similarly, lookups will start to hit links rather than data which will 
require that the links into the overflow area be followed.

This is where tuning comes in.

The fact that there are no tuning options makes it unlikely that hashing 
is used.
Defaults would be hard to set without wasting space or turning the whole 
thing into a small set of linked lists which work be long to search.
It would not be seem to be a very good choice for a default 
implementation of Arrays.

Ron

Scott Hyndman wrote:
> You could figure out how it's implemented by doing some experiments.
>
> Dynamic hash maps have constant insertion (amortized) and lookup time. If the 
> map is implemented using a B-Tree, then you'll see O(log(n)) times (so just 
> see if the more properties you add increase the amount of time it takes to 
> add them).
>
> Scott
>
> -Original Message-
> From: [EMAIL PROTECTED] on behalf of Ron Wheeler
> Sent: Sat 5/13/2006 10:43 AM
> To:   Flashcoders mailing list
> Cc:   
> Subject:  Re: [Flashcoders] HashMap?
>
>
>
> Bernard Poulin wrote:
>   
>> I cannot say for AS3 implementation because I never tried it. (Which 
>> is the
>> original subject of this topic.)
>>
>> In AS1, AS2 and javascript, I am pretty sure that all objects (including
>> Arrays) are key/value maps. (i.e. Associative arrays)
>> http://en.wikipedia.org/wiki/Associative_array#JavaScript
>>
>> It is very possible that the internal implementation is not a "hashmap",
>> but I still think it is a highly efficient map of some sort because 
>> this is
>> so central to the language.
>>
>> 
> I would hope that it is efficient but hashing adds a lot of overhead and 
> wasted space for small arrays and really needs to be tuned to get the 
> desired results for larger arrays.
> If the arrays are stored in sorted order, then the normal key lookup can 
> be done as a binary lookup which will be a lot quicker than an 
> exhaustive search. The price is paid when a new associative entry is added.
>
> Nothing is free.
>
> None of my work has required has involved large associative arrays where 
> hashing would add a significant improvement in speed but it would be 
> nice to have such a class available for those who need it.
>
> In the early days (1960s) when I was taking Computer Science at 
> University, we spent a lot of time worrying about these things since 
> memory was scarce (64K word (36 bits per word) computer cost a million 
> dollars and supported 16 users) and CPU speeds where not very fast (a 
> 1MIP computer was state of the art).
>
>   

"If really had to look carefully at how things got stored and retrieved, 
it you had a large number of them."

should have been written as

"One really had to look carefully at how things got stored and retrieved, 
if you had a large number of them."

>> ...at least this is what I think.  I might be completely wrong.
>> B.
>>
>> 2006/5/12, Ron Wheeler <[EMAIL PROTECTED]>:
>> 
>>> I would be a little surprised. There does not seem to be any way to
>>> control the hash parameters and every array would have a lot of wasted
>>> space for nothing and without any way to control the hash size and the
>>> percent utilization, you would not get a lot of advantage for the big
>>> arrays.
>>>
>>> The Java HashMap defaults are pretty modest and would yield less than
>>> optimal performance with a big array.
>>> You can set the parameters if you have a big array and know a bit about
>>> the "randomness" of your keys to get fast lookups with a reasonable
>>> trade-off in wasted space
>>>
>>> Perhaps someone who knows the Flash P

RE: [Flashcoders] HashMap?

2006-05-13 Thread Scott Hyndman
You could figure out how it's implemented by doing some experiments.

Dynamic hash maps have constant insertion (amortized) and lookup time. If the 
map is implemented using a B-Tree, then you'll see O(log(n)) times (so just see 
if the more properties you add increase the amount of time it takes to add 
them).

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ron Wheeler
Sent:   Sat 5/13/2006 10:43 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] HashMap?



Bernard Poulin wrote:
> I cannot say for AS3 implementation because I never tried it. (Which 
> is the
> original subject of this topic.)
>
> In AS1, AS2 and javascript, I am pretty sure that all objects (including
> Arrays) are key/value maps. (i.e. Associative arrays)
> http://en.wikipedia.org/wiki/Associative_array#JavaScript
>
> It is very possible that the internal implementation is not a "hashmap",
> but I still think it is a highly efficient map of some sort because 
> this is
> so central to the language.
>
I would hope that it is efficient but hashing adds a lot of overhead and 
wasted space for small arrays and really needs to be tuned to get the 
desired results for larger arrays.
If the arrays are stored in sorted order, then the normal key lookup can 
be done as a binary lookup which will be a lot quicker than an 
exhaustive search. The price is paid when a new associative entry is added.

Nothing is free.

None of my work has required has involved large associative arrays where 
hashing would add a significant improvement in speed but it would be 
nice to have such a class available for those who need it.

In the early days (1960s) when I was taking Computer Science at 
University, we spent a lot of time worrying about these things since 
memory was scarce (64K word (36 bits per word) computer cost a million 
dollars and supported 16 users) and CPU speeds where not very fast (a 
1MIP computer was state of the art).

If really had to look carefully at how things got stored and retrieved, 
it you had a large number of them.
> ...at least this is what I think.  I might be completely wrong.
> B.
>
> 2006/5/12, Ron Wheeler <[EMAIL PROTECTED]>:
>>
>> I would be a little surprised. There does not seem to be any way to
>> control the hash parameters and every array would have a lot of wasted
>> space for nothing and without any way to control the hash size and the
>> percent utilization, you would not get a lot of advantage for the big
>> arrays.
>>
>> The Java HashMap defaults are pretty modest and would yield less than
>> optimal performance with a big array.
>> You can set the parameters if you have a big array and know a bit about
>> the "randomness" of your keys to get fast lookups with a reasonable
>> trade-off in wasted space
>>
>> Perhaps someone who knows the Flash Player internals could tell for 
>> sure.
>>
>> Ron
>>
>>
>> Bernard Poulin wrote:
>> > mmm... Are you implying that ActionScript objects are not hashmaps?
>> > I thought they were *all* hashmaps (even Arrays are hashmaps). Every
>> > method
>> > call that you do involves at least one hash lookup.
>> >
>> > B.
>> >
>> > 2006/5/10, Ron Wheeler <[EMAIL PROTECTED]>:
>> >>
>> >> It appears that a HashMap is a Java class that uses a hash on the 
>> "key"
>> >> to store its keys and values.
>> >> http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html
>> >> This would speed up lookup if you have a large set of keys.
>> >> If you do not need the speed or do not have a large collection of 
>> keys
>> >> to store, an array object would seem to give the same 
>> functionality in
>> >> ActionScript.
>> >> This leaves the implementation of the array to Flash and it is 
>> likely a
>> >> simple structure that has to be searched sequentially (by the 
>> Flash VM)
>> >> to get the associated value.
>> >>
>> >> It you really need a hashing array that can handle large numbers of
>> >> key/value pairs, you probably have to write one. This is an old 
>> concept
>> >> and you can likely find a few design ideas and probably some code if
>> you
>> >> search for it.
>> >>
>> >> If you are converting code and want to create a HashMap class that 
>> has
>> >> the same methods as HashMap in Java, you could fake the internal
>> storage
>> >> technology with a simple Array. it would be faster for a small set of
>> >> values and would get a bit slower as the number of keys increased.
>> >> You could start with a dumb HashMap class and then make it a true
>> >> hashing data store later without having to rewrite your code.
>> >> HashMap was only added to Java in Java 1.1 and they lived without it
>> >> before then.
>> >>
>> >> Ron
>> >>
>> >> Joshua Graham wrote:
>> >> > Bit strange, but that works, thanks.
>> >> >
>> >> > Joshua
>> >> >
>> >> > On 10 May 2006, at 12:06, Lee McColl-Sylvester wrote:
>> >> >
>> >> >> Well, in AS2, it's called an object ;)
>> >> >>
>> >> >> Lee
>> >> >>
>> >> >>
>> >> >>
>> >> >> -Original Message-
>> >> >> 

RE: [Flashcoders] sprouts data structure

2006-05-11 Thread Scott Hyndman
Wow, great question.

Needless to say, you can't figure these things out with vertices and edges 
alone, you're going to have to assign location to each vertex and use that to 
calculate the intersection...but that's where things get hazy. You probably 
don't want to brute force it, because your worst case gets bad. I'm sure there 
is some sort of clever math solution, but I've never been much of a 
mathematician.

So maybe you could do something visual. If your edges are drawn in one color, 
maybe you could check all the pixels in a line between the desired end points, 
and see if any of the pixels contain the edge color, in which case, don't allow 
the connection to be made.

I'll keep thinking about it though.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Weldon MacDonald
Sent:   Thu 5/11/2006 8:48 AM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] sprouts data structure

I have a request for a game called sprouts. The game starts with a few
randomly distributed dots. There is one move and 2 restrictions.
Move:   draw a line for a dot to itself (a loop) or to another dot.
Any line drawn has a new dot on it.
Restriction 1: no more than 3 lines from any dot.
Restriction 2: no lines can cross.

Simple game, but the data structure to keep track of the game and in
particular to handle restriction 2 is a bear. How do you tell when a
dot has been encircled by a line?

The game is, of course based on graph theory, and you can represent a
graph in several ways, but how to determine that it remains planar?

I haen't begun to think about the visual part of this, if I don't have
a reasonable data structure I can't teach a computer to play the game.

Any ideas? Hints? Wildly improbable ideas?

-- 
Weldon MacDonald
___
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] Casting a string to a number ...

2006-05-08 Thread Scott Hyndman
or parseFloat() for floating point numbers.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Thomas Fowler
Sent:   Mon 5/8/2006 8:24 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Casting a string to a number ...

parseInt is the preferred way to get a number from a string.

On 5/8/06, Ramon Miguel M. Tayag <[EMAIL PROTECTED]> wrote:
>
> You can use parseInt
>
> number = parseInt(string);
>
> --
> Ramon Miguel M. Tayag
> Managing Director
> Quirkworks
> ___
> 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] Unity vs Flashcom for chat and messaging

2006-05-08 Thread Scott Hyndman
I think that there is still valuable early work to be done on a port to C#, 
including feasibility studies.

As I recall, Red5 leverages Spring. I know Spring.net exists, but it would be 
useful to find out how closely they resemble each other.

I would also imagine the underlying Red5 framework is (mostly) set, so you 
could start from a high-level and just work down.

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Lee McColl-Sylvester
Sent:   Mon 5/8/2006 3:48 AM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Unity vs Flashcom for chat and messaging

I'm one of those.  A port of Red5 to C# is a must, but there's no way
I'd even consider starting the project until Red5 matures to at least
0.6, though tbh, I'm likely to wait til 0.9 - 1rc1.  Red5 is being
developed at such a staggering pace, that porting to C# at this stage
would be pointless and just create more work in the long run.

Lee




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Allen
Sent: 08 May 2006 02:46
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Unity vs Flashcom for chat and messaging

Hi Weyert,

A .NET version will more than likely be built once the Java version is
more stable. There are quite a few people interested in seeing it
happen and are actually going to work on it; I believe it's just a
matter of time. If you are interested in helping with the .NET version
of Red5, please join our mailing list and let everyone know there.

-Chris

On 5/7/06, Weyert de Boer <[EMAIL PROTECTED]> wrote:
> > We are also planning on adding JavaScript, Ruby, Python, and other
> > scripting languages  so that the Red5 API is accessible through
these
> > as well. That should be out in the 0.7 release. Please take a look
at
> > our roadmap if you are interested in the current and proposed
> > features: http://osflash.org/red5/roadmap
>
> Suppor tfor the dot net platform would be nice, so that you can use
any of
> the available .NET languages to access the Red5 API. As far as I know
this
> isn't possible yet by the current version, I think is more interesting
> then supporting Ruby etc.
>
> Yours,
>
> Weyert de Boer ([EMAIL PROTECTED])
> innerfuse*
>
> http://www.innerfuse.biz/
> ___
> 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] Unity vs Flashcom for chat and messaging

2006-05-07 Thread Scott Hyndman
FMS has web service support. Was this offered in FCS?

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of ryanm
Sent:   Fri 5/5/2006 12:40 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Unity vs Flashcom for chat and messaging

> FMS is limited insofar as serverside scripts must be written in
> a dialect of ActionScript that resembles AS1. You might not
> even consider that a limitation, as it is quite functional and
> scripts don't have to be too big most of the time, just don't
> expect a rich OOP language to work with.
>
The other thing that should be mentioned here is that FCS didn't play 
well with other servers (may have changed in FMS, I haven't upgraded yet). 
There are ways to interact with other servers, like databases and web 
servers, but none of them are easy or convenient. So the chat server is 
effectively in a sandbox, which may or may not matter at all for your 
purpose.

ryanm 

___
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] Unity vs Flashcom for chat and messaging

2006-05-04 Thread Scott Hyndman
Hey Jim,

Unity, and similar socket servers (WebORB's messaging framework, ElectroServer, 
etc) all use XMLSocket to perform communication AFAIK. This can pose problems 
with firewalls between the client box and the server unless communication 
occurs on open ports. Also, communication is limited to text. Serialization of 
objects into text is quite possible, but you won't be able to transmit 
media-related data such as images (unless encoded), video or audio.

FMS not only allows the ability to broadcast text to other users and the 
server, but also supports video (incl. webcams) and audio (incl. microphones). 
Many of the native ActionScript objects have special features that work with 
FMS, and are documented quite well. The server supports storing objects, media 
and session data in files so they can persist between sessions. FMS is limited 
insofar as serverside scripts must be written in a dialect of ActionScript that 
resembles AS1. You might not even consider that a limitation, as it is quite 
functional and scripts don't have to be too big most of the time, just don't 
expect a rich OOP language to work with. 

FMS has a free version (up to 10 users) and other pricing plans exist to scale 
with any project you may have planned. Some see the prices as too expensive, 
but for any serious project they're really quite reasonable.

Hope that helps,
Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent:   Thu 5/4/2006 4:32 PM
To: flashcoders@chattyfig.figleaf.com
Cc: 
Subject:[Flashcoders] Unity vs Flashcom for chat and messaging

Hi
Developing an online chat system and am considering using either flashcom or 
Moock's Unity server.

other than the price, ca anyone tell me what the pro's and cons are for the two 
options?

Thanks in advance
Jim Bachalo

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'
___
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] I no longer need your mail. I wish to donot sendme mail

2006-04-28 Thread Scott Hyndman
Hi Shiju,

Follow this link: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Enter your email into the last textbox and press enter.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Steve Rachels
Sent:   Sat 4/29/2006 12:45 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] I no longer need your mail. I wish to donot 
sendmemail

Uh... okay sure


shiju oommen wrote:

>Dear SIr:
>
>i don't need your mail no longer. so don't send any
>mailt to me.
>
>best regards
>

___
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] Calling a function by name stored in a stringvariable

2006-04-26 Thread Scott Hyndman
Sorry, I should have mentioned that

func.call(Something, arg0, arg1, ...);

and

func.apply(Something, [arg0, arg1, ...]);

and

Something[functionNameAsString](arg0, arg1, ...);

are all functionally equivalent.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Thu 4/27/2006 12:07 AM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Calling a function by name stored in a 
stringvariable

var func:Function = Something[functionNameAsString];
func.call(Something, arg0, arg1, ...);
func.apply(Something, [arg0, arg1, ...]);

or

Something[functionNameAsString](arg0, arg1, ...);

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Guillaume Maury
Sent:   Thu 4/27/2006 12:04 AM
To: flashcoders@chattyfig.figleaf.com
Cc: 
Subject:[Flashcoders] Calling a function by name stored in a string 
variable

Hi,

I'm doing some automated testing component to test my software and I will
be using some test scenarios script in xml.

Among the different commands in those script I want to be able to write
for example
processInput
and have my component read the script and call the processInput() function.

How would I do this ?
Is there a way to call a function when the name of the function you want
to call is stored in a string? Something callFunction(functionName[,
parameters])

Hope somebody can answer me(I never got any answers to my question to
[EMAIL PROTECTED])...

Thanks
Guillaume Maury

___
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] Calling a function by name stored in a string variable

2006-04-26 Thread Scott Hyndman
var func:Function = Something[functionNameAsString];
func.call(Something, arg0, arg1, ...);
func.apply(Something, [arg0, arg1, ...]);

or

Something[functionNameAsString](arg0, arg1, ...);

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Guillaume Maury
Sent:   Thu 4/27/2006 12:04 AM
To: flashcoders@chattyfig.figleaf.com
Cc: 
Subject:[Flashcoders] Calling a function by name stored in a string 
variable

Hi,

I'm doing some automated testing component to test my software and I will
be using some test scenarios script in xml.

Among the different commands in those script I want to be able to write
for example
processInput
and have my component read the script and call the processInput() function.

How would I do this ?
Is there a way to call a function when the name of the function you want
to call is stored in a string? Something callFunction(functionName[,
parameters])

Hope somebody can answer me(I never got any answers to my question to
[EMAIL PROTECTED])...

Thanks
Guillaume Maury

___
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] Accessibility and MSAA - Is this documentedanywhere?

2006-04-26 Thread Scott Hyndman
I have read both those links previously. They offer no information about the 
IAccessible methods that I see in the mx.accessibility package.

Most information about these methods can be gleaned from the MSAA docs, 
replacing the pointer params with returns...but others, which seem to be 
specific to the Flash player's communication with screen readers, are 
completely undocumented. Still others have return types that don't easily map 
to the return types (or pointer params) of the corresponding IAccessible method.

> (I'm not sure I could answer any question that starts with "What's the 
idea behind"... would involve mindreading on my part, guessing the true 
question too.)

Well does anyone know at Adobe?

Simply put, there is this whole world of functionality the Flash player exposes 
that I'd like to get my hands on. I'd really appeciate it if you guys could 
help me out on this.

>Are whose docs?

Read the followup emails ;)

Thanks,

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of John Dowdell
Sent:   Wed 4/26/2006 8:07 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Accessibility and MSAA - Is this 
documentedanywhere?

Scott Hyndman wrote:
> Are their docs?
> What methods are exposed to MSAA?
> What's the idea behind methods like getChildIdArray()? I can't seem to
> find any reference to them anywhere else in the framework, so I can only
> assume the Flash player invokes this at some point.

Are whose docs?

For "Where can I learn more about Microsoft Active Accessibility?" try
http://www.microsoft.com/enable/

For "Where can I learn more about MSAA and Flash?" try
http://www.macromedia.com/resources/accessibility/

(I'm not sure I could answer any question that starts with "What's the 
idea behind"... would involve mindreading on my part, guessing the true 
question too.)

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
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] Accessibility and MSAA - Is this documented anywhere?

2006-04-26 Thread Scott Hyndman
Are there* docs?

:)

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Tue 4/25/2006 11:02 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Accessibility and MSAA - Is this documented 
anywhere?

I've been looking through MM's accessibility implementations for their
V2 components because I'm trying to figure out how they work. I've
noticed they follow the MSAA IAccessible interface quite closely, but I
have a few questions.
 
Are their docs?
What methods are exposed to MSAA?
What's the idea behind methods like getChildIdArray()? I can't seem to
find any reference to them anywhere else in the framework, so I can only
assume the Flash player invokes this at some point.
 
Can anyone help? If an Adobe dev could pipe in I'd really appreciate it.
 
Scott
___
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] Accessibility and MSAA - Is this documented anywhere?

2006-04-26 Thread Scott Hyndman
Oh, and one more thing.

accLocation(childId:Number) returns movieclips (or textfields) that define 
boundaries. What movieclip methods are used to determine the bounding rect? I 
would like to return something other than movieclip.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Tue 4/25/2006 11:02 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Accessibility and MSAA - Is this documented 
anywhere?

I've been looking through MM's accessibility implementations for their
V2 components because I'm trying to figure out how they work. I've
noticed they follow the MSAA IAccessible interface quite closely, but I
have a few questions.
 
Are their docs?
What methods are exposed to MSAA?
What's the idea behind methods like getChildIdArray()? I can't seem to
find any reference to them anywhere else in the framework, so I can only
assume the Flash player invokes this at some point.
 
Can anyone help? If an Adobe dev could pipe in I'd really appreciate it.
 
Scott
___
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] Accessibility and MSAA - Is this documented anywhere?

2006-04-25 Thread Scott Hyndman
I've been looking through MM's accessibility implementations for their
V2 components because I'm trying to figure out how they work. I've
noticed they follow the MSAA IAccessible interface quite closely, but I
have a few questions.
 
Are their docs?
What methods are exposed to MSAA?
What's the idea behind methods like getChildIdArray()? I can't seem to
find any reference to them anywhere else in the framework, so I can only
assume the Flash player invokes this at some point.
 
Can anyone help? If an Adobe dev could pipe in I'd really appreciate it.
 
Scott
___
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] Instantiate a class by string - SOLVED

2006-04-12 Thread Scott Hyndman
SWF is more flexible than you give it credit for. A swf can reference external 
resources just as a jar can. You can, in effect, write your own class loader 
that satisfies dependencies at runtime just by splitting all your classes into 
multiple swfs. A swf IS a jar, just not so nice to work with.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Julian 'Julik' Tarkhanov
Sent:   Wed 4/12/2006 12:59 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Instantiate a class by string - SOLVED


On 12-apr-2006, at 17:05, Ian Thomas wrote:

> Import doesn't actually use the class per se - a solid reference of
> some sort (such as the declaration of a variable or the creation of an
> object) of that class suddenly means that it's actually been used, and
> so the compiler notes that it needs to be compiled and included in the
> output .swf.
>
> The same, as far as I can recall (it's been a while now), is true  
> of Java.

It seems logical that import makes the classes available in the  
context into which they are imported. What seems un-logical to me is  
that it's impossible to force "burn-in" of these classes even if they  
are not being called explicitly (with standard Flash means).

As for Java - I don't see how this is relevant because every class  
gets compiled into a .class file and you can describe which classes  
a .jar contains (so they can be looked up inside the jar). Not so  
with an SWF which is an all-or-nothing :-)
___
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] Any Montreal-based companies around?

2006-04-06 Thread Scott Hyndman
Hi everyone,

I realize I run the risk of becoming very unpopular by posting this. I
apologize. I'm in a bit of a bind, and I thought that since I am pretty
involved with the community you'd find it in your hearts to let this
slide. :)

I was wondering if any Montreal-based companies were looking for summer
employees. A job that I was relying on fell through, so I'm a bit stuck.
Full-time, part-time or contract work are all fine.

So now a bit about me.

I attend the University of Toronto and am working towards a computer
science degree. I'm well-versed in all that is Flash. I've worked on
successful major projects, have built many custom components, and have
been working on an OSS application framework called ActionStep for the
past year. I'm also experienced in popular backend technologies
(ASP.NET, Java Servlets and JSP, PHP) as well as common RDBMSes. I love
Flash and I'd love to help you work on your Flash-based projects (or
just about anything else).

That's about it. If you're interested please email me off-list.

Thanks,

Scott Hyndman
___
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] Split Pane component??

2006-04-06 Thread Scott Hyndman
You can't even compile this using the Flash IDE. ActionStep only works
with MTASC (and it's a good thing, it would probably take MMC a few
minutes to compile the framework).

Unfortunately, it is incompatible with V2 or any other
MovieClip-inherited components. Maybe not impossible, but it would make
your life quite a bit tougher. ActionStep works in a very different way,
but it's far more flexible. If you're comfortable with code, you should
definitely check it out on your next project. We're still in alpha, but
very close to breaking out!

If you need more information, feel free to contact me.

Scott

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: April 5, 2006 11:08 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Split Pane component??

Thanks for the reply Scott - 

Actually, I work very little using the Flash IDE - just long enough to
position some of my visual controls - but the rest is 100% Class Files
external to Flash.

So, if you have something that you could throw my way that could help
out, I'd be very grateful.  I am no stranger to code - in fact, I make a
point of doing everything in code whenever possible.

Thanks again - and if you want to post back to the list, or directly to
me, I'd greatly appreciate it.

Take Care,

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Hyndman
Sent: Wednesday, April 05, 2006 9:45 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Split Pane component??

ActionStep has one...but it probably isn't usable from your prespective,
since you won't be able to use it from within the Flash IDE like you
would be familiar. Code only. :)

If you (or anyone else reading this thread) would like to see it in
action, here is something I'm writing that uses it. It even supports
more interesting things (like collapsing).

http://scottyh.is-a-geek.net/actionstep/ASExplorer.swf (it's big so give
it a second to load)

Scott

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: April 5, 2006 10:17 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Split Pane component??

Yes, this is the one I was talking about in my initial post.

It looks as if it's really mature, and has LOTS of great comments
regarding it.  But when you have certain animated controls within each
Pane (i.e. accordion) it flips out.

I should e-mail the person who wrote the app, but I know there is a
slight language barrier.  I was just hoping that I could track down
another control, written by another developer.

I am amazed though, that this is the ONLY control of this type floating
around.  Especially since this is such a unique and beneficial control -
usually only found inside of Flex or other advanced programming
environments (VB, Java, Delphi, etc.)

If anybody knows of another one, please let me know - 

Thanks!!

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ing.
Mario Falomir
Sent: Wednesday, April 05, 2006 7:16 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Split Pane component??

here is a good one:

http://www.joangarnet.com/blog/archives/2005/07/release_v2_fram_1.php

On 4/5/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I am trying like crazy, to find a Split Pane Component that works as 
> well as Flex's version.
>
> I found one (and only ONE) somewhere on the Flash Exchange, but the 
> docs are mostly in another language, and it's really buggy.  The one I

> found is actually free, and has a high rating level - but I am just 
> not having good luck with it.
>
> Thanks for all your help on this,
>
> Mike
>
> ___
> 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@ch

RE: [Flashcoders] Split Pane component??

2006-04-05 Thread Scott Hyndman
ActionStep has one...but it probably isn't usable from your prespective,
since you won't be able to use it from within the Flash IDE like you
would be familiar. Code only. :)

If you (or anyone else reading this thread) would like to see it in
action, here is something I'm writing that uses it. It even supports
more interesting things (like collapsing).

http://scottyh.is-a-geek.net/actionstep/ASExplorer.swf (it's big so give
it a second to load)

Scott

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: April 5, 2006 10:17 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Split Pane component??

Yes, this is the one I was talking about in my initial post.

It looks as if it's really mature, and has LOTS of great comments
regarding it.  But when you have certain animated controls within each
Pane (i.e. accordion) it flips out.

I should e-mail the person who wrote the app, but I know there is a
slight language barrier.  I was just hoping that I could track down
another control, written by another developer.

I am amazed though, that this is the ONLY control of this type floating
around.  Especially since this is such a unique and beneficial control -
usually only found inside of Flex or other advanced programming
environments (VB, Java, Delphi, etc.)

If anybody knows of another one, please let me know - 

Thanks!!

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ing.
Mario Falomir
Sent: Wednesday, April 05, 2006 7:16 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Split Pane component??

here is a good one:

http://www.joangarnet.com/blog/archives/2005/07/release_v2_fram_1.php

On 4/5/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I am trying like crazy, to find a Split Pane Component that works as 
> well as Flex's version.
>
> I found one (and only ONE) somewhere on the Flash Exchange, but the 
> docs are mostly in another language, and it's really buggy.  The one I

> found is actually free, and has a high rating level - but I am just 
> not having good luck with it.
>
> Thanks for all your help on this,
>
> Mike
>
> ___
> 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] Flowing Text in Flash

2006-03-29 Thread Scott Hyndman
> If maxscroll equals 1 then subtract the last token.

I suspect you mean if maxscroll is inequal to 1.

I think this is a fine solution. Never done anything like it, but it will 
definately work.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Chris Hill
Sent:   Wed 3/29/2006 2:44 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Flowing Text in Flash

I've searched a lot on google and the list and haven't found much, so 
maybe I'm missing something obvious again.

Basically I need to fill a text field, and when that text field is full, 
i should start filling the next one. My current idea is:

Break the text into space delimited tokens.
Keep adding tokens and checking maxscroll to see if it is equal to 1.
If maxscroll equals 1 then subtract the last token.
Move on to the next text field.

Not an ideal solution, but the only one that I think will work. Has 
anyone done anything similar?

Thanks
Chris
___
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] Using onRollOver and onRollOut inside a Class File??

2006-03-28 Thread Scott Hyndman
It's not really up to the component developer to decide what may or may not be 
done with any control. Of course there are limits to this, but I would expect 
that with any visual component a roll over event is a reasonable thing to 
expect. Swing (MouseMoveListener), Cocoa (tracking rects), and the .NET 
framework (the MouseEnter event) all have support for this functionality.

I'm not coming down on V2. It's a basic framework for basic needs...I'm just 
saying.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Charles Parcell
Sent:   Tue 3/28/2006 5:54 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Using onRollOver and onRollOut inside a Class 
File??

My question to you would be, why would you expect a button to broadcast that
it being rolled over?  There is no standard UI reason for it. The only real
action that a standard button is good for is clicking.

Charles P.


On 3/28/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello Michael - thanks for the reply -
>
> I guess my real question is, why isn't "onRollOver" and "onRollOut"
> natively part of the Events that the Button Components can broadcast?
>
> In the help docs, there is only 1 mentioned Event - which is "click" -
>
> It just seems odd, that I have to use one method of adding an Event
> Listener for Click, and a totally different type of "Add Event Listener"
> method for adding other types of events.
>
> Do you know why that is?
>
> Is it for the purpose of not reinventing the wheel, and borrowing events
> that already exist in other components, and applying it to others?  I
> know that all the components in Flash are reduced to their lowest common
> denominators - and that they import their core functions from other core
> classes - again, for the purpose of not having any redundant code & not
> reinventing the wheel.
>
> Thanks for your help on this, and to help me further understand how this
> all works.
>
> Mike :)
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Michael
> Bedar
> Sent: Tuesday, March 28, 2006 2:32 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Using onRollOver and onRollOut inside a Class
> File??
>
> Whats wrong with this?
>
> myButton.onPress=function(){
> //
> }
>
> Alternatively, use delegate to call a function from the correct scope.
>
> myButton.onPress=Delegate.create(this, myButton_Click)
>
>
> On Mar 28, 2006, at 1:06 PM, Mike Anderson wrote:
>
> > Hello All,
> >
> > I am getting very confused here, on how to get the "onRollOver" and
> > "onRollOut" events to be broadcasted whenever the mouse moves over a
> > Flash Component, contained within a MovieClip using a Class File.
> >
> > The component in this particular instance, is the Push Button.  When
> > reading the documentation, the only "events" that are mentioned is the
>
> > "click" event.  To my knowledge, when using a Class File attached to a
>
> > MovieClip containing a Push Button component, there is only one type
> > of syntax that can be used for adding listeners.
> >
> > For example:
> >
> >   myButton.addEventListener( "click", myButton_Click );
> >
> > And you usually place this statement inside of the onLoad function of
> > the MovieClip class itself.
> >
> > Then the function that handles the event, conforms to the method of
> > how functions must be written inside of a Class File:
> >
> >   private function myButton_Click( evtObj:Object ):Void
> >   {
> >   //code here...
> >   }
> >
> > Since you can't use a listener object (like you would if you were
> > simply putting functions in the root of the movie itself), and then
> > have a statement of listenerObject.onRollOver = function() within a
> > Class File, I am wondering how I can force the onRollOver and
> > onRollOut events to get properly broadcasted.
> >
> > Please keep in mind, I am trying to keep 100% of my code inside of my
> > Class Files.  I know a simple solution could be simply highlighting
> > the actual Push Button within the MovieClip, and then directly apply
> > an "on(event)" function to temporarily accomplish my goals - but this
> > totally defeats the purpose of creating a separation between Flash App
>
> > and Source Code.
> >
> > I also looked at the SimpleButton.as Class File in which the Button.as
>
> > Class is based on.  Oddly enough, there are "onRollOver" and
> > "onRollOut"
> > functions in there, but it doesn't Dispatch Events - it simply
> > activates the "highlight" option when the user rolls over the button.
>
> > I thought that was pretty weird...  I manually edited the Class File,
> > so that a Dispatch Event of "onRollOver" and "onRollOut" would be
> > broadcasted, but still no dice...
> >
> > Could any of you point me in the right direction, on how to accomplish
>
> > this using only Class Files?  Since V2 components, AS 2.0, and Class
> > Files are being pushed so hard as the preferred way of doing things,

RE: [Flashcoders] Architecture opinion...

2006-03-28 Thread Scott Hyndman
yeah, sure. Any combination of numbers you want. Just make sure all of your 
CONFIG_* variables are ascending 2^n numbers (hence the bitwise, we're dealing 
with binary number reps here). So...

1
2
4
8
16
32
...and so on

You'll find that this technique is used frequently in many frameworks and 
standard libraries, so it's a good thing to understand if you ever choose to 
move away from Flash. The V2 Alert component even uses it to determine what 
buttons an Alert should display. And not to mention it's fast as hell. No 
lengthy array scans to determine configuration. :)

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of eric dolecki
Sent:   Tue 3/28/2006 2:57 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Architecture opinion...

would that work with combinations of 3 or 4?

aAndCAndDAndE = A | C | D | E ?

On 3/28/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
>
> Bitwise arithmentic would be much more appropriate (if I understand
> correctly)
>
> var CONFIG_A:Number = 1;
> var CONFIG_B:Number = 2;
> var CONFIG_C:Number = 4;
> var CONFIG_D:Number = 8;
>
> So a configuration of A and C would be.
>
> var aAndC:Number = A | C;
>
> To detect config numbers, do the following:
>
> if (configNumber & CONFIG_D) {
>   // do something to do with D
> }
> else if (configNumber & CONFIG_B) {
>   // do something to do with B
> }
>
> This is way more extensible, as it's easy to add new configs.
>
> -Original Message-
> From:   [EMAIL PROTECTED] on behalf of eric
> dolecki
> Sent:   Tue 3/28/2006 2:44 PM
> To: Flashcoders mailing list
> Cc:
> Subject:[Flashcoders] Architecture opinion...
>
> I'm about to create an uber-class that is basically something that
> controls
> walkthroughs of various situations.
>
> I have configuration states... (sets of three basically)
>
> var CONFIG_1A :Number = 0;  // Has item A
> var CONFIG_1B:Number = 1;   // Has item A and B
> var CONFIG_1C:Number = 2;   // Has item A and B and C
> var CONFIG_2A:Number = 3;   // Has item A and D
> var CONFIG_2B:Number = 4;   // has item A and D and B
> ... etc. for quite a number of different configuration options. 15 of them
> in total.
>
>
> I am using CONFIG_ for use in if/else statements, etc. but I don't think
> this is a very elegant way of doing things. I'd like the code to be
> readable
> & this isn't much better than using simple numerals to set this up. I am
> looking for opinions on how to best set this up. Something where if I
> wanted
> to later could add CONFIG_1D and wouldn't have to renumber things. An
> array
> of configs?
>
> Each config setting will have different paths throughout a "tutorial".
> What
> might be the best way to avoid having switches or if/else statements
> galore
> at each step of the process?
>
> Thanks - I know this is a strange request :)
> ___
> 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] Architecture opinion...

2006-03-28 Thread Scott Hyndman
Here's a little tutorial that seems to cover it, if you don't understand my 
example.

http://www.nwnlexicon.com/compiled/primer.bitwiseoperators.html

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Tue 3/28/2006 2:48 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Architecture opinion...

Bitwise arithmentic would be much more appropriate (if I understand correctly)

var CONFIG_A:Number = 1;
var CONFIG_B:Number = 2;
var CONFIG_C:Number = 4;
var CONFIG_D:Number = 8;

So a configuration of A and C would be.

var aAndC:Number = A | C;

To detect config numbers, do the following:

if (configNumber & CONFIG_D) {
  // do something to do with D
}
else if (configNumber & CONFIG_B) {
  // do something to do with B
}

This is way more extensible, as it's easy to add new configs.

-Original Message-
From:   [EMAIL PROTECTED] on behalf of eric dolecki
Sent:   Tue 3/28/2006 2:44 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Architecture opinion...

I'm about to create an uber-class that is basically something that controls
walkthroughs of various situations.

I have configuration states... (sets of three basically)

var CONFIG_1A :Number = 0;  // Has item A
var CONFIG_1B:Number = 1;   // Has item A and B
var CONFIG_1C:Number = 2;   // Has item A and B and C
var CONFIG_2A:Number = 3;   // Has item A and D
var CONFIG_2B:Number = 4;   // has item A and D and B
... etc. for quite a number of different configuration options. 15 of them
in total.


I am using CONFIG_ for use in if/else statements, etc. but I don't think
this is a very elegant way of doing things. I'd like the code to be readable
& this isn't much better than using simple numerals to set this up. I am
looking for opinions on how to best set this up. Something where if I wanted
to later could add CONFIG_1D and wouldn't have to renumber things. An array
of configs?

Each config setting will have different paths throughout a "tutorial". What
might be the best way to avoid having switches or if/else statements galore
at each step of the process?

Thanks - I know this is a strange request :)
___
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] Architecture opinion...

2006-03-28 Thread Scott Hyndman
Bitwise arithmentic would be much more appropriate (if I understand correctly)

var CONFIG_A:Number = 1;
var CONFIG_B:Number = 2;
var CONFIG_C:Number = 4;
var CONFIG_D:Number = 8;

So a configuration of A and C would be.

var aAndC:Number = A | C;

To detect config numbers, do the following:

if (configNumber & CONFIG_D) {
  // do something to do with D
}
else if (configNumber & CONFIG_B) {
  // do something to do with B
}

This is way more extensible, as it's easy to add new configs.

-Original Message-
From:   [EMAIL PROTECTED] on behalf of eric dolecki
Sent:   Tue 3/28/2006 2:44 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Architecture opinion...

I'm about to create an uber-class that is basically something that controls
walkthroughs of various situations.

I have configuration states... (sets of three basically)

var CONFIG_1A :Number = 0;  // Has item A
var CONFIG_1B:Number = 1;   // Has item A and B
var CONFIG_1C:Number = 2;   // Has item A and B and C
var CONFIG_2A:Number = 3;   // Has item A and D
var CONFIG_2B:Number = 4;   // has item A and D and B
... etc. for quite a number of different configuration options. 15 of them
in total.


I am using CONFIG_ for use in if/else statements, etc. but I don't think
this is a very elegant way of doing things. I'd like the code to be readable
& this isn't much better than using simple numerals to set this up. I am
looking for opinions on how to best set this up. Something where if I wanted
to later could add CONFIG_1D and wouldn't have to renumber things. An array
of configs?

Each config setting will have different paths throughout a "tutorial". What
might be the best way to avoid having switches or if/else statements galore
at each step of the process?

Thanks - I know this is a strange request :)
___
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] Fw: Multiuser A/V Chat ? Which Server?

2006-03-26 Thread Scott Hyndman
Read his code more carefully.

 if(currentCoder.identifiedServer.serverName.toLowerCase()!="red5"){

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of John Grden
Sent:   Sun 3/26/2006 6:59 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Fw: Multiuser A/V Chat ? Which Server?

Red5 - Open source Flash server

www.osflash.org/red5

It's in beta, we're at 0.3, soon to release .4 - not ready for production,
but you should check it out anyway ;)

On 3/26/06, Yehia Shouman <[EMAIL PROTECTED]> wrote:
>
> Come on people !
> for
> imports flashcoders.brains.servers
> function informMeWithServerName()
> {
> var supportsAudioVideoStreaming:Boolean=true;
> var isOpenSource:Boolean =true;
> var Server:DotNetBasedServer= new
> DotNetBasedServer(supportsAudioVideoStreaming, isOpenSource)
> var i:Number=0; var loopLength:Number=Flashcoders.length;
> for (i;i var currentCoder:FlashCoder=Flashcoders[i];
>  if(currentCoder.haveInformationOf(Server) )
> {
> if(currentCoder.identifiedServer.serverName.toLowerCase
> ()!="red5"){
> //share information!
> trace(Server.serverName);
>  }
> }
> }
> }
>
> informMeWithServerName();
>
>
> - Original Message -
> From: "Yehia Shouman" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Sunday, March 26, 2006 2:23 PM
> Subject: Multiuser A/V Chat ? Which Server?
>
>
> > Dear Coders,
> >
> > I have to create an Audio/Video Flash multiuser Chat, with text
> messaging.
> >
> > What are my options as for the server ? I don't want to use any of
> > Macromedia's Servers. I would love to hear there is an open source
> dotNet
> > server as well. Are there any ?
> >
> > Please advice me on which way to go
> >
>
> ___
> 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
>



--
John Grden - Blitz
___
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] RE: Classes and setInterval ... (Stephen Ford)

2006-03-26 Thread Scott Hyndman
Those "inverted commas" are called quotes. :)

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Stephen Ford
Sent:   Sun 3/26/2006 5:19 AM
To: flashcoders@chattyfig.figleaf.com
Cc: 
Subject:[Flashcoders] RE: Classes and setInterval ... (Stephen Ford)

Thanks Stacey,
 
Yes it seems you need to pass in the parameter of 'this' before the function 
name and time, although I couldn't find reference to this in any of the manuals 
I looked in. Maybe they all just speak of AS1 and not class use of setInterval.
 
_nInt = setInterval(this, "myFunction", 100)  --- works in the class
nInt = setInterval(myFunction, 100) --- is how the manual describes the use of 
setInterval
 
Also, note the use of inverted commas around the function name in the first 
example above, they aren't required in a straight up .fla (non-class) like the 
second example above.
 
Thanks again,
Stephen.
 
 
 
 ___
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: [Spam][Flashcoders] Flash and Servlet

2006-03-24 Thread Scott Hyndman
In Flash you mean?

No need. All parts of the request will be filled out for you by Flash. Just set 
your variable, and call the method. :)

In fact, on the servlet side I don't think it's even necessary to specify 
content-length all the time (just so you know).

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:34 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Spam][Flashcoders] Flash and Servlet

Well...considering I have a XML file. This string might be really long. I will 
have to set the Content-length ot a high number I guessAm I right?
 
Thanks,
Tarun



From: [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent: Fri 3/24/2006 12:31 PM
To: Flashcoders mailing list
Subject: RE: [Spam][Flashcoders] Flash and Servlet



With LoadVars, you dynamically assign a property

So basically,

var lv:LoadVars = new LoadVars();
lv.xmlContents = xmlString;
lv.sendAndLoad(...);

The doPost method will be passed the request containing the "xmlContents" 
variable.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:23 PM
To: Flashcoders mailing list
Cc:
Subject:[Spam][Flashcoders] Flash and Servlet


Hi:

Really new to Servlet and Flash functionality. So, the doubt may seem basic. 
Any help would be great.

I am trying to call a Java Servlet that supports doPost method. It uploads an 
XML file on the application server and names that file based on certain details 
(userid, etc).

I can use the servlet using html form.

In Flash, I know that we need to use LoadVars. But what function/ method I use 
for specifying the file that needs to be uploaded before actually doing 
LoadVars.sendAndLoad?

Thanks for considering,
Tarun







___
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: [Spam][Flashcoders] Flash and Servlet

2006-03-24 Thread Scott Hyndman
Just so you know, XML.sendAndLoad() maybe more appropriate for what you are 
doing.

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary856.html

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:23 PM
To: Flashcoders mailing list
Cc: 
Subject:[Spam][Flashcoders] Flash and Servlet

 
Hi:
 
Really new to Servlet and Flash functionality. So, the doubt may seem basic. 
Any help would be great.
 
I am trying to call a Java Servlet that supports doPost method. It uploads an 
XML file on the application server and names that file based on certain details 
(userid, etc).
 
I can use the servlet using html form.
 
In Flash, I know that we need to use LoadVars. But what function/ method I use 
for specifying the file that needs to be uploaded before actually doing 
LoadVars.sendAndLoad?
 
Thanks for considering,
Tarun
 


___
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: [Spam][Flashcoders] Flash and Servlet

2006-03-24 Thread Scott Hyndman
With LoadVars, you dynamically assign a property

So basically,

var lv:LoadVars = new LoadVars();
lv.xmlContents = xmlString;
lv.sendAndLoad(...);

The doPost method will be passed the request containing the "xmlContents" 
variable.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:23 PM
To: Flashcoders mailing list
Cc: 
Subject:[Spam][Flashcoders] Flash and Servlet

 
Hi:
 
Really new to Servlet and Flash functionality. So, the doubt may seem basic. 
Any help would be great.
 
I am trying to call a Java Servlet that supports doPost method. It uploads an 
XML file on the application server and names that file based on certain details 
(userid, etc).
 
I can use the servlet using html form.
 
In Flash, I know that we need to use LoadVars. But what function/ method I use 
for specifying the file that needs to be uploaded before actually doing 
LoadVars.sendAndLoad?
 
Thanks for considering,
Tarun
 


___
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] Simple date comparison bug?

2006-03-23 Thread Scott Hyndman
Good to know. Thanks Francis.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Francis Cheng
Sent:   Thu 3/23/2006 7:27 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Simple date comparison bug?

This is due to the ECMAScript algorithm for determining equality. You'll find 
that JavaScript behaves the same way. Date objects are not primitives, so they 
will only compare as equal if both Date variables reference the same Date 
object (i.e. var d2 = d1;)

The ECMAScript algorithms for <= and >=, however, convert both operands to 
Number before the comparison. Date objects converted to the Number data type 
gives you the number of milliseconds since the epoch.

The upshot is that to test for equality of Date objects, either convert them to 
numbers first or use valueOf():

trace (Number(d1) == Number(d2));
trace (d1.valueOf() == d2.valueOf());

Francis

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, March 23, 2006 3:40 PM
> To: 'Flashcoders mailing list'
> Subject: [Flashcoders] Simple date comparison bug?
> 
> Don't know why I haven't come across this before, but can anyone confirm
> this for me (and maybe give an explanation)?
> 
> 
> var d1:Date = new Date( 1970, 0 );
> var d2:Date = new Date( 1970, 0 );
> trace( d1 == d2 ); // false
> trace( d1 <= d2 ); // true
> trace( d1 >= d2 ); // TRUE?!
> 
> 
> Umm… If something is both >= *and* <= the only possibly is that it is
> equal. So… WTF?
> 
> 
> dave myron
> principal, technical director
> 
> contentfree
> ? 206.855.5580 phone | 206.774.2767 fax
> ? [EMAIL PROTECTED]
> ? 337 1st ave ne. suite 100, issaquah, wa 98027
> 
> 
> ___
> 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: [Bulk] [Flashcoders] Extending a singleton

2006-03-23 Thread Scott Hyndman
Kind of flamebaity, but I'll bite.

I read that article, but this is just one man's opinions. I'm not saying he's 
wrong, but some of his points largely depend on the usage of the singleton 
itself (specifically #4). #2 kind of sounds like bullshit to me too. Sure, you 
can split a singleton into two classes, fine, one for creation and one for the 
class itself. I just don't see the point. Single responsibility deals with 
required changes. I don't see how the "singleton" aspect of the class would 
ever require a change (correct me if I'm wrong).

In fact, if you look at a lot of windowing toolkits for operating systems, you 
will see singleton usage scattered throughout.

Just a few I can think of offhand in Apple's Cocoa (a beautifully designed 
framework in my opinion):

Color panel
Font panel
...in fact, all panels
Application
User Defaults

It seems to me (because I've never run into any problems) that careful use of 
singletons is an okay thing to do. I agree that alot of people overuse them and 
try to force everything and anything into a singleton. I don't agree with that. 
I just think they have a place.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of varfoo
Sent:   Thu 3/23/2006 5:42 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Bulk] [Flashcoders] Extending a singleton

Hey,

It's not considered good practice to use singetons.  For reasons why, here's
a good article:
http://blogs.msdn.com/scottdensmore/archive/2004/05/25/140827.aspx

I don't think the protected keyword exists in AS2, but if you have AS3, I'd
trying using the protected keyword for the singleton's superclass
constructor.  I'd recommend trying this as an experiment only.

-vf

- Original Message - 
From: "Christophe Herreman" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 23, 2006 7:38 AM
Subject: [Bulk] [Flashcoders] Extending a singleton


> Hi guys,
>
> I was wondering if anyone of you ever had a situation where it would be
> good to extend a singleton. The first question is: Is it good practice or
> should it be avoided at all cost?
>
> Anyway, I have been trying to extend one, but the problem is that instance
> variables are not accessible in the class that extends the singleton (and
> which is also a singleton).
>
> So for instance, take a class A that has a "properties" instance variable
> that holds key/value pairs. That var is initialized in the constructor.
>
> A.getInstance() gives me the single instance.
>
> B extends A, and B.getInstance() gives me the single instance of B. But
> since it extends A, A's constructor is called (although it is private, a
> camouflaged protected in AS2) and the properties var is instantiated
> again. Get the picture? B will have a properties instance var but it will
> not be the same as the one in the singleton of A.
>
> Am I overlooking something very obvious here or is this actually hard to
> accomplish? I changed it from inheritance to using A.getInstance()
> internally which works; but now I have to add wrapper methods for every
> method in A/ /I want to make available.
>
> thx in advance,
> Christophe
> ___
> 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] Browse folders from flash

2006-03-22 Thread Scott Hyndman
> I am worried about using socket communication, while I have never tested it,
I am afraid some people's software firewalls might flag or block the
communication.

As I understood it, this application will be running locally...in which case, 
firewalls don't even come into it.

In any case, the suggestions to use the swf wrappers are good ones if you don't 
know Java.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of David Rorex
Sent:   Wed 3/22/2006 1:59 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Browse folders from flash

On 3/21/06, Felipe Fernandez <[EMAIL PROTECTED]> wrote:
>
> Thanks again.
>
> Scott, I'm not sure java could explore local client machine directories.
> Could you send me any link?


Java can have full control over your local machine, but the user has to
approve the access first (You have to sign the applet, and then the user
will see a security warning dialog). One this access is approved, you can do
ANYTHING. You could download an arbitrary .exe file from some url and
execute it silently. You could delete random files off their hard drive. So,
make sure your users trust you.
I believe there is also a way to grant only specific privlidges,

To link java code with flash...Could I use flash remoting?


Maybe...but it would be a lot of work.
I am worried about using socket communication, while I have never tested it,
I am afraid some people's software firewalls might flag or block the
communication.

What we have done with sucess in the past, is to use javascript to bind the
two.

Java Applet <--> Javascript <--> Flash movie

On the flash side, we just used ExternalInterface (Flash 8+ only, but on <=
7, you can use the Flash/JS Integration kit)

On the java side, there is documented ways to communicate out to javascript.
Here is a page that shows some examples, you can find more via
searching: http://www.rgagnon.com/javadetails/java-0172.html


-David R


> On 3/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > My two cents - I would highly recommend SWFStudio ( www.northcode.com) -
> > browsing directories is a total breeze and you get tons of file I/O
> > functionality. You could check out the site and check tutorials or
> sample
> > files, I am sure they have onethat does exactly what you need it to do.
> :)
> >
> > > I'm not sure if anyone mentioned this but have you looked at
> > > screenweaver?
> > >
> > > http://osflash.org/screenweaver
> > >
> > > I have not tried it myself, still using Zinc, maybe someone else has?
> > >
> > >
> > > On 3/21/06, Felipe Fernandez <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Well, butI need directories on local machine, not in server
> > >> machine
> > >>
> > >> Thanks, anyway
> > >>
> > >> On 3/21/06, Ettwein, Josh <[EMAIL PROTECTED]> wrote:
> > >> >
> > >> > You could use PHP (or whatever serverside lang you've got) to do a
> > >> directory listing and use "is_dir" to build youreslf a list of
> > >> directories. Pass that into flash using
> > >> > remoting/loadvars/xml/whathaveyou and display a list of dirs in
> > >> flash with the full paths as properties of the dir objects you
> > >> display. Clicking on one would allow you to grab that path var.
> > >> Something like that, maybe?
> > >> >
> > >> > -Original Message-
> > >> > From: [EMAIL PROTECTED]
> > >> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > >> Felipe Fernandez
> > >> > Sent: Tuesday, March 21, 2006 11:07 AM
> > >> > To: Flashcoders mailing list
> > >> > Subject: Re: [Flashcoders] Browse folders from flash
> > >> >
> > >> > Yes, I'm agree with you, Rich. I know about FileReference but
> > >> > FileReference works with files, not directories.
> > >> > Any suggest?
> > >> >
> > >> > Thanks all.
> > >> >
> > >> > On 3/21/06, Rich Rodecker < [EMAIL PROTECTED]> wrote:
> > >> > >
> > >> > > as far as I know you cant just select a folder...flash needs to
> > >> create
> > >> >
> > >> > > a FileReference object for each file in a directory, and it will
> > >> only do that for each individual item that the user selected.  Why
> > >> they couldnt just create one for every file in a directory I don't
> > >> know, but I would imagine it was a security concern.
>
>
___
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] Browse folders from flash

2006-03-21 Thread Scott Hyndman
File class in Java. Represents files and directories.

http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

You can do some searches and find a ton of tutorials on this I imagine, 
although the API is fairly straight-forward. The list() method is what you're 
interested in.

As far as communication goes, you're going to have to use the Socket and 
ServerSocket classes. They make the task of communication between Flash and 
Java near painless. I can send a little sample socket server over if you want.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Felipe Fernandez
Sent:   Tue 3/21/2006 5:56 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Browse folders from flash

Could you tell me more details?
So, how could I access local machine directories using java?

Thanks.

On 3/21/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
>
> Write a Java application that talks to Flash through a socket, and request
> file lists that way.
>
> It's a bit of work, but it does work.
>
> Scott
>
> -Original Message-
> From:   [EMAIL PROTECTED] on behalf of Ettwein,
> Josh
> Sent:   Tue 3/21/2006 3:01 PM
> To: Flashcoders mailing list
> Cc:
> Subject:RE: [Flashcoders] Browse folders from flash
>
> Right... I am an idiot. :) I was doing 5 things at once and lost track
> of what you needed. Sorry!
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Felipe
> Fernandez
> Sent: Tuesday, March 21, 2006 11:46 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Browse folders from flash
>
> Well, butI need directories on local machine, not in server machine
>
> Thanks, anyway
> ___
> 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] Browse folders from flash

2006-03-21 Thread Scott Hyndman
Write a Java application that talks to Flash through a socket, and request file 
lists that way.

It's a bit of work, but it does work.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ettwein, Josh
Sent:   Tue 3/21/2006 3:01 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Browse folders from flash

Right... I am an idiot. :) I was doing 5 things at once and lost track
of what you needed. Sorry!  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Felipe
Fernandez
Sent: Tuesday, March 21, 2006 11:46 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Browse folders from flash

Well, butI need directories on local machine, not in server machine

Thanks, anyway
___
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] Inconsistent Constant

2006-03-20 Thread Scott Hyndman
Just a quick note on this. There are ways to prevent variables from being 
overwritten. ASSetPropFlags.

Here is a description as to its usage.

http://www.flashguru.co.uk/assetpropflags/

It's kind of strange, but it's useful once and awhile.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Jim Tann
Sent:   Mon 3/20/2006 1:27 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Inconsistent Constant

I agree with that. I set constants like that so I cant overwrite them on
accident.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Webster
Sent: 20 March 2006 17:36
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Inconsistent Constant

Ian,

> Flash doesn't have the concept of constants, so you couldn't
> enforce a constant even if you wanted to (except by a hack like
> defining a null set() function, but that's beside the point a bit)...
> you can only suggest that specific things should be constant by
> convention

It's not really beside the point. We define constants in this way...

class Test {
public static function get SOME_CONSTANT():String {
return "value";
}
}

...which works perfectly.

-- 
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
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] DataGrid Component Performance

2006-03-15 Thread Scott Hyndman
>It might be interesting to try delegating sorting to the server and getting a 
>permutation vector back...but even then, it might give you trouble.

I rethought this. I imagine the issue surrounding the sort is related to the 
calculations done by the grid, and probably not the sort itself.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Wed 3/15/2006 8:33 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] DataGrid Component Performance

Expand rows? Like a tree/table idea? No, it can't.

It is build to handle thousand of rows, but there a couple of issues. 
Population of the datagrid is slow as molasses. You might be able to short 
circuit your way into some better performance, but it's a crapshoot. Also, 
don't even bother trying to sort. It might be interesting to try delegating 
sorting to the server and getting a permutation vector back...but even then, it 
might give you trouble.

Also, column sorting is limited to string sorts. When I needed more complex 
sorting behaviour, I achieved it by subclassing DataGridColumn (might be named 
differently, it's been awhile) and hooking into the header's press handler.

Hope this helps,

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of varfoo
Sent:   Wed 3/15/2006 8:17 PM
To: Flashcoders Mailing List
Cc: 
Subject:[Flashcoders] DataGrid Component Performance

Anyone have a feel for how this component performs.  Can you expand rows?  Can 
it handle thousands of rows?
___
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] DataGrid Component Performance

2006-03-15 Thread Scott Hyndman
Expand rows? Like a tree/table idea? No, it can't.

It is build to handle thousand of rows, but there a couple of issues. 
Population of the datagrid is slow as molasses. You might be able to short 
circuit your way into some better performance, but it's a crapshoot. Also, 
don't even bother trying to sort. It might be interesting to try delegating 
sorting to the server and getting a permutation vector back...but even then, it 
might give you trouble.

Also, column sorting is limited to string sorts. When I needed more complex 
sorting behaviour, I achieved it by subclassing DataGridColumn (might be named 
differently, it's been awhile) and hooking into the header's press handler.

Hope this helps,

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of varfoo
Sent:   Wed 3/15/2006 8:17 PM
To: Flashcoders Mailing List
Cc: 
Subject:[Flashcoders] DataGrid Component Performance

Anyone have a feel for how this component performs.  Can you expand rows?  Can 
it handle thousands of rows?
___
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] ActionStep, help compiling examples.

2006-03-14 Thread Scott Hyndman
Oh, and part of the reason that people don't have to talk about this stuff is 
that Apple's Interface Builder is pretty incredible.

Once we're finished AIB (ActionStep Interface Builder), people are going to 
have a much easier time.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Tue 3/14/2006 4:07 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] ActionStep, help compiling examples.

I can't actually. Sorry, I just don't know of any.

You know, if you have any problems, you just just post in our forum. You really 
aren't bugging us when you ask questions.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of cornel
Sent:   Tue 3/14/2006 12:06 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] ActionStep, help compiling examples.

I'm looking forward to it, as i'm having quite a hard time getting a
grasp of actionstep. While working with some widgets is
straightforward, some are (for me) obscure. Earlier i've spent a
couple of hours trying to populate a nsbrowser with some data, to no
avail.
Could someone point me to some good cocoa tutorials, that are
meaningful for learning actionstep? I've read some docs
(http://developer.apple.com/documentation/Cocoa/index.html), but some
samples would be useful.

thanks
cornel

On 3/11/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
> By the way. We're getting close to a second release, and this one will
> be launched alongside a new website with some great tutorials on getting
> started.
>
> Scott
___
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] ActionStep, help compiling examples.

2006-03-14 Thread Scott Hyndman
I can't actually. Sorry, I just don't know of any.

You know, if you have any problems, you just just post in our forum. You really 
aren't bugging us when you ask questions.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of cornel
Sent:   Tue 3/14/2006 12:06 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] ActionStep, help compiling examples.

I'm looking forward to it, as i'm having quite a hard time getting a
grasp of actionstep. While working with some widgets is
straightforward, some are (for me) obscure. Earlier i've spent a
couple of hours trying to populate a nsbrowser with some data, to no
avail.
Could someone point me to some good cocoa tutorials, that are
meaningful for learning actionstep? I've read some docs
(http://developer.apple.com/documentation/Cocoa/index.html), but some
samples would be useful.

thanks
cornel

On 3/11/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:
> By the way. We're getting close to a second release, and this one will
> be launched alongside a new website with some great tutorials on getting
> started.
>
> Scott
___
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] ActionStep, help compiling examples.

2006-03-11 Thread Scott Hyndman
Actually, I'm going to give a quick answer here (but you should join our
list):

The calculator sample needs you to have the ActionStepLib swf compiled,
as well as calculator.asml in the test subdirectory. So for the pathing
to be correct, here's how it needs to look:

Calculator.swf <- (This could be named anything)
ActionStepLib.swf
test/calculator.asml

But I imagine you just want to get this thing up and running, am I
right? You should use this build script:

mtasc -cp "src" -cp "test/src" -swf ActionStep.swf -header 800:600:20
-version 8 -trace org.actionstep.ASDebugger.debugPanelTrace -pack
org/actionstep -pack org/actionstep/constants -pack
org/actionstep/images org/actionstep/test/ASTestMain -main

To change the output of this test, open up
org.actionstep.test.ASTestMain (in the test/src classpath), and change
line 21 to point to another test class. There's tons of stuff in there,
so it should keep you busy for awhile.

By the way. We're getting close to a second release, and this one will
be launched alongside a new website with some great tutorials on getting
started.

Scott

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Smith
Sent: March 11, 2006 4:54 AM
To: Flashcoders mailing list
Subject: [Flashcoders] ActionStep, help compiling examples.

i'm having some troubles compiling the examples in 'test/src'

I downloaded alpha 1 from actionstep site. I then followed the
quickstart guide on OSFlash. I had everything already. except the ruby
debugger.. but i'm not worrying about that until I can at least get
these examples and something on my own working. The problem i'm having
is just trying to figure out what all needs to be compiled an how to do
it all with mtasc. I looked at the build.bat and buildExample.bat files.

Those are simple mtasc commands and the output swf works. I tried just
doing an mtasc command on 'calcSample'. it spits out a swf but the only
thing the swf has is a text field that says 'loading...' i'm missing
something somewhere

here is the mtasc command i'm trying for the calc example:

mtasc -header 600:500:31 -version 8 -main -strict -trace
org.actionstep.ASDebugger.debugPaneITrace -swf calc.swf -cp "src" -cp
"test\src" calcSample\Main

I can't figure out what i'm missing.. calc.asml?

Also, I did manage to build the ActionStep.swf library swf but not sure
how to use it in combination with the above. I think i'm supposed to..

sorry about the newbie question, i'm just new to actionstep any help
or other tutorials would be sweet..


..not sure if neccessary.. but I do have ANT. the OSFlash stuff was 
using ANT.. but everything so far is just basic mtasc commands.. i'm 
just trying to get something working first before I use ANT.
___
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] ActionStep, help compiling examples.

2006-03-11 Thread Scott Hyndman
Please post this on the ActionStep list and we'll help you out.

http://sourceforge.net/mail/?group_id=130597

Scott

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Smith
Sent: March 11, 2006 4:54 AM
To: Flashcoders mailing list
Subject: [Flashcoders] ActionStep, help compiling examples.

i'm having some troubles compiling the examples in 'test/src'

I downloaded alpha 1 from actionstep site. I then followed the
quickstart guide on OSFlash. I had everything already. except the ruby
debugger.. but i'm not worrying about that until I can at least get
these examples and something on my own working. The problem i'm having
is just trying to figure out what all needs to be compiled an how to do
it all with mtasc. I looked at the build.bat and buildExample.bat files.

Those are simple mtasc commands and the output swf works. I tried just
doing an mtasc command on 'calcSample'. it spits out a swf but the only
thing the swf has is a text field that says 'loading...' i'm missing
something somewhere

here is the mtasc command i'm trying for the calc example:

mtasc -header 600:500:31 -version 8 -main -strict -trace
org.actionstep.ASDebugger.debugPaneITrace -swf calc.swf -cp "src" -cp
"test\src" calcSample\Main

I can't figure out what i'm missing.. calc.asml?

Also, I did manage to build the ActionStep.swf library swf but not sure
how to use it in combination with the above. I think i'm supposed to..

sorry about the newbie question, i'm just new to actionstep any help
or other tutorials would be sweet..


..not sure if neccessary.. but I do have ANT. the OSFlash stuff was 
using ANT.. but everything so far is just basic mtasc commands.. i'm 
just trying to get something working first before I use ANT.
___
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] .curveTo question

2006-03-06 Thread Scott Hyndman
Oops, I should have read this reply first.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tom Rhodes
Sent:   Mon 3/6/2006 12:41 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] .curveTo question
curveTo takes 4 args, not 2. have a look in the help for curveTo, you 
need to specify the control points and the anchor points...

___
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] .curveTo question

2006-03-06 Thread Scott Hyndman
I believe the curveTo() method take four arguments. Anchor coords and control 
coords. Just something I noticed offhand. I haven't tested the code.

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of murder design
Sent:   Mon 3/6/2006 12:32 PM
To: Flashcoders mailing list; Flashnewbie Mailing List
Cc: 
Subject:[Flashcoders] .curveTo question
i am trying to draw a rectangle, with only three out of four curves. the
rectangle has only one straight edge, the top right. by my calculations, the
rectangle should be 50 pixels high, and 150 wide. for some reason, this code
produces a weird polygon with no curves. any ideas?

function drawBar(xx, yy) {
 _root.createEmptyMovieClip("bar", 1);
 with("bar") {
  beginFill(myMenuColors[0], 100);
  moveTo(15, 0);
  lineTo(150, 0);
  lineTo(150, 35);
  curveTo(135, 50);
  lineTo(15, 50);
  curveTo(0, 35);
  lineTo(0, 15);
  curveTo(15, 0);
  endFill();
  _x = xx;
  _y = yy;
 }
}

regards,
murderd
___
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] MD5 Class in AS2.0?

2006-03-02 Thread Scott Hyndman
http://www.meychi.com/archive/31.php

You really should search on google or through the archives before asking. 
People ask for this often.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Chris Hill
Sent:   Thu 3/2/2006 11:53 AM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] MD5 Class in AS2.0?

I see a couple older MD5 classes in 1.0. Is there a 2.0 version floating 
around somewhere?

Thanks
Chris
___
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] removing a treenode which is selected

2006-02-24 Thread Scott Hyndman
Nope. You're thinking of removeTreeNodeAt().

Scott 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Stuhr
Sent: February 24, 2006 2:13 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] removing a treenode which is selected

Scott Hyndman schrieb:
> This an event handler that receives notification of a selection
change.
> 
> tree_change(eventObj:Object):Void {
>   var selection:Object = eventObj.target.selectedNode;
>   // remove node
>   selection.removeTreeNode();
> }
> 
i just closed flash, at least for the neaxt 12 hours i'm off, but isn't
removeTreeNode expecting an index ?


micha
___
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] removing a treenode which is selected

2006-02-24 Thread Scott Hyndman
This an event handler that receives notification of a selection change.

tree_change(eventObj:Object):Void {
  var selection:Object = eventObj.target.selectedNode;
  // remove node
  selection.removeTreeNode();
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Stuhr
Sent: February 24, 2006 1:55 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] removing a treenode which is selected

i'm braindead, after progging for the last 2 weeks for an
intranet-projekt, mostly 12hours a day ... so i need some input:
i need to remove a treeNode, which is selected, but couldn't find
anything in the help files, or the archive. this is a neeb q, but i'm
kinda in a hurry 
how would you do it ?

micha

___
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] how to make single cell in the grid non editable?

2006-02-22 Thread Scott Hyndman
> And it's not fully working in case when user navigates trough datagrid using
> arrows or enter key. I REALLY REALLY start to hate  this  v2 standard
> DataGrid and can't wait until I can use  Flex2 components.

Are you sure they're so different? It's a very similar framework. I'm sure 
there is a lot of code reuse...or at least reuse of architectural ideas.

Scott
___
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] Re: When singletons go bad

2006-02-20 Thread Scott Hyndman
The big difference is that singleton classes have an instance. By having an 
instance, the singleton class can inherited functionality as well as 
subclasses. There are many more benefits...but it really comes down to how 
you're using it. If you don't need inherited functionality, static classes are 
fine.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Judah
Sent:   Mon 2/20/2006 1:22 PM
To: 'Flashcoders mailing list'
Cc: 
Subject:RE: [Flashcoders] Re: When singletons go bad


Slightly off the subject but why does he have to use getInstance()?
Isn't there a way to use a singleton without calling getInstance? Why can't
he directly use the class like this:

import MyManager;

MyManager.doSomething();

The Math class, Delegate class and other classes let you use methods without
calling getInstance() first. 

Judah

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jack Doyle
Sent: Monday, February 20, 2006 11:53 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: When singletons go bad

Just curious if this works better for you:

private function MyManager() {
 // constructor
 return getInstance();
}

public static function getInstance() : MyManager{
 if(_myManager == undefined){
 _myManager = new MyManager();
 _myManager.init();
 }
 return _myManager;
}

Sorry, I haven't had the time to follow the whole discussion, but I figured
I'd throw this your way and see if it helps. 

Good luck.

Jack



___
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

  1   2   >