Re: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Mark Walters
This is a good format to follow for date and time in XML:
http://www.w3.org/TR/NOTE-datetime .

Eg:

   Year:
   (eg 1997)
   Year and month:
  -MM (eg 1997-07)
   Complete date:
  -MM-DD (eg 1997-07-16)
   Complete date plus hours and minutes:
  -MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00)
   Complete date plus hours, minutes and seconds:
  -MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00)
   Complete date plus hours, minutes, seconds and a decimal fraction of a
second
  -MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)

where:

  = four-digit year
 MM   = two-digit month (01=January, etc.)
 DD   = two-digit day of month (01 through 31)
 hh   = two digits of hour (00 through 23) (am/pm NOT allowed)
 mm   = two digits of minute (00 through 59)
 ss   = two digits of second (00 through 59)
 s= one or more digits representing a decimal fraction of a second
 TZD  = time zone designator (Z or +hh:mm or -hh:mm)

There's even a method in the DateUtil class included in the AS3CoreLib that
parses this format.

- Mark


On Tue, Aug 26, 2008 at 5:48 AM, allandt bik-elliott (thefieldcomic.com) <
[EMAIL PROTECTED]> wrote:

> hi guys
>
> i'm speccing an xml file for a server side dev that needs to return a
> target
> date and time and i wanted to make sure i wasn't doing anything stupid
>
> what would a php dev be expecting to use for time / date and how would that
> be supplied in an xml file? And what would the best way of converting the
> return string for flash to use?
>
> I was thinking something along the lines of
> 
>
> and using something like
>
> var sDate:String = node.attributes.date;
> var sTime:String = node.attributes.time;
>
> var arDate:Array = sDate.split(",");
> var nYear:Number = Number(arDate[0]);
> var nMonth:Number = Number(arDate[1]-1); // months start at 0
> var nDate:Number = Number(arDate[2]);
>
> var arTime:Array = sTime.split(",");
> var nTimeHours:Number = Number(arTime[0]);
> var nTimeMinutes:Number = Number(arTime[1]);
> var nTimeSeconds:Number = Number(arTime[2]);
>
> var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
> nTimeMinutes, nTimeSeconds);
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LocalConnection Framework

2007-04-23 Thread Mark Walters

No specific questions, just looking for a framework (which I assumed would
have already been written since LC has been used for so long. Especially
since Central had a nice API setup, I figured that someone out there would
have already tried to take the bits and pieces that could be pulled from it
and write it to work in Flash.

Thanks.

On 4/23/07, Zárate <[EMAIL PROTECTED]> wrote:


Hi there,

I built one small framework for the company i work for and all the
communication between applications is via LocalConnection, as we have
a bunch of different Flash objects in the same HTML page.

We run across some funny issues but it's roughly working ok. Do you
have more specific questions?

Cheers,

Juan

On 4/22/07, Mark Walters <[EMAIL PROTECTED]> wrote:
> Does anyone know of an existing AS2 framework for working with
> LocalConnection?
> Central had a nice api with LCService and client creation, etc and I
didn't
> know if anyone had done something similar without Central.
>
> (Sorry for the double post if you're on the OSFlash mailing list as
well)
>
> Thanks,
>
> --
> Mark Walters
>
> [EMAIL PROTECTED]
> http://digitalflipbook.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
>


--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.com





--
Mark Walters

[EMAIL PROTECTED]
http://digitalflipbook.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] LocalConnection Framework

2007-04-22 Thread Mark Walters

Does anyone know of an existing AS2 framework for working with
LocalConnection?
Central had a nice api with LCService and client creation, etc and I didn't
know if anyone had done something similar without Central.

(Sorry for the double post if you're on the OSFlash mailing list as well)

Thanks,

--
Mark Walters

[EMAIL PROTECTED]
http://digitalflipbook.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] remoting with as3 (not flex)

2007-04-16 Thread Mark Walters

Is there any class that you know of like RecordSet or ArrayCollection for
AS3 only projects (not flex)?
I'm looking for a class to handle database query results a little easier.

--
Mark Walters

[EMAIL PROTECTED]
http://digitalflipbook.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 is it done? coca-cola creator

2007-04-13 Thread Mark Walters

Add in SVG to the mix of what Andrés said above... stir..., cook..., and
serve. :)

Although you still should look around out there... there are some great
examples of flash and svg mixing.
ie: http://flash-creations.com/notes/sample_svgtoflash.php


On 4/13/07, Weyert de Boer <[EMAIL PROTECTED]> wrote:


SVG and Flash? Are you saying you just had a list of SVG xml code which
you send to your server?
I am not aware of any Flash artwork to SVG converts libraries for Flash.


___
[EMAIL PROTECTED]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 is it done? coca-cola creator

2007-04-13 Thread Mark Walters

Hey guys,

It is AS2 and we did it by creating an svg representation of the flash
vector artwork on flash's side and passing that to Java. Java in turn takes
the svg data and creates a bitmap representation. Doing it this way was
actually much faster for us than going the BitmapData route.

--
Mark Walters

[EMAIL PROTECTED]
http://digitalflipbook.com


On 4/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Flash is uploading a bitmapData object representing the final image to the
server. This is a Flash 8 AS 2.0 solution


> I'm sure is JSP server merging predefined images, client-side tells
> server-side only the position, orientation, text, color, etc of the
image.
> You can do it with php, coldfusion, aspx, etc too.
>
> --
> Andrés González Aragón
> Desarrollador Multimedia
> http://www.quantium.com.mx
>
>
> 2007/4/13, T. Michael Keesey <[EMAIL PROTECTED]>:
>>
>> The sniffer is looking for Flash 8, so I highly doubt it's an AS3
>> solution.
>>
>> I believe it's a highly optimized server-side solution.
>>
>> On 4/13/07, Mick G <[EMAIL PROTECTED]> wrote:
>> > Does anyone know how this is done? (The saving as JPG option)
>> >
>> > http://coca-colacreator.coca-cola.com/creator.html?country=US&lang=EN
>> >
>> > My guess is AS3 and some type of AS3 JPG encoder? It seems too fast
>> and
>> > responsive to be doing any server side image encoding.
>> > ___
>> > [EMAIL PROTECTED]
>> > To change your subscription options or search the archive:
>> > http://chattyfig.figleaf.com/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]
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/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]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FlashPaper

2006-10-24 Thread Mark Walters

Hey Eric,

I've done alot of work with FlashPaper (with my FlashPaper component,
etc) and as far as I know, its not possible to change the theme
colors. The colors don't seem to be created dynamically to set, but
instead are part of the individual pieces of the FlashPaper object in
the library when decompiled. If someone else knows a workaround, I'd
love to know it as well. But FlashPaper has been out for a while, and
I've never seen another color besides that green in anyone's examples.

If you want to play around with my component that controls much of the
other FlashPaper logic, you can check that out here:
http://www.digitalflipbook.com/archives/2006/07/flashpaper_comp_3.php

Thanks,

- markW

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

I've managed to remove the logo of the flashpaper and change certain
colors... but not the theme colors (halo green)...

Here's the link : http://www.lastashero.com/blog/2006/05/

If someone has any luck...

A+

Éric Thibault a écrit :
> Hello all!
>
> Is there a way to change the styles of a flashPaper instance on stage,
> like setStyle("themeColor","0xff")?
>
> I would like to remove the halo green effects!
>
> Thanks a million
>
> Éric Thibault
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Tweening ColorTransform objects?

2006-09-23 Thread Mark Walters

When I updated Penner's color classes from his Programming Flash MX
book to AS2, I also translated all of the methods and classes to work
with the ColorTransform object.

There's one class in particular the ColorTransformClip that adds
several getters and setters to a MovieClip or all MovieClips that you
could then use the Tween class or any other tween classes on.

You can view and download these classes and documentation from here:
http://www.digitalflipbook.com/archives/2006/08/penner_as2_prof_7.php

or all of Penner's classes updated to AS2 from here:
http://www.digitalflipbook.com/downloads/flash/penner/Penner_AS2_ProFMX.zip

- Mark Walters
www.digitalflipbook.com


On 9/23/06, Dan Rogers <[EMAIL PROTECTED]> wrote:

Thanks for the suggestion.  I took a look at their code, and it looks
like they are still using the older Color object syntax.

I am simply looking to see if it's possible to tween using the
ColorTransform class.

-Danro


On Sep 23, 2006, at 5:32 PM, Charles Parcell wrote:

> I am going to point you to the API I was recently introduced to.
> Fuse Kit.
>
> http://www.mosessupposes.com/Fuse/
>
>
> Charles P.
>
>
>
> On 9/23/06, Dan Rogers <[EMAIL PROTECTED]> wrote:
>>
>> Hey Flashcoders,
>>
>> Has anyone here attempted to tween the Flash 8 ColorTransform class?
>> I am having some strange issues while trying to tween some
>> ColorTransform objects using Grant Skinner's MultiTween class.  Seems
>> that whenever I tween a ColorTransform object which contains yellow
>> (?), I get a random spectrum of colors before the tween reaches it's
>> target value.  I've posted the source and have included the AS
>> below.  I realize there are other color-tweening scripts out there,
>> but I was trying to use the ColorTransform class to see if it could
>> be done.
>>
>> Source:
>> http://download.danro.net/flashcoders/color_tween_test.zip
>>
>> Thanks,
>> -Danro
>>
>>
>> code follows --
>>
>> import com.gskinner.transitions.MultiTween;
>> import flash.geom.Transform;
>> import flash.geom.ColorTransform;
>> import mx.transitions.easing.*;
>> import mx.transitions.Tween;
>> import mx.utils.Delegate;
>>
>> // color transform objects
>> var originColor:ColorTransform = new ColorTransform();
>> var currentColor:ColorTransform = new ColorTransform();
>> var rollOverColor:ColorTransform = new ColorTransform();
>> rollOverColor.rgb = 0xFFCC00;
>> var rollOutColor:ColorTransform = new ColorTransform();
>> rollOutColor.rgb = 0x0066CC;
>>
>> // movieclip transform
>> var trans:Transform = new Transform(test_mc);
>>
>> // update color function
>> function updateColor () {
>> trans.colorTransform = currentColor;
>> debug("DEBUG >> " + trans.colorTransform);
>> }
>>
>> // set vars
>> var colorTween:Tween;
>> var mTween:MultiTween;
>>
>> // rollover tween
>> function buttonRollOver () {
>> mTween = new MultiTween(currentColor, rollOverColor);
>> colorTween.stop();
>> colorTween = new Tween(mTween, "position",
>> Regular.easeOut, 0, 1,
>> 20);
>> colorTween.onMotionChanged = Delegate.create(this,
>> updateColor);
>> debug("DEBUG >> - roll over ---");
>> }
>>
>> // rollout tween
>> function buttonRollOut () {
>> mTween = new MultiTween(currentColor, rollOutColor);
>> colorTween.stop();
>> colorTween = new Tween(mTween, "position",
>> Regular.easeInOut, 0,
>> 1,
>> 20);
>> colorTween.onMotionChanged = Delegate.create(this,
>> updateColor);
>> colorTween.onMotionFinished = Delegate.create(this, reset);
>> debug("DEBUG >> - roll out ---");
>> }
>>
>> // reset color to original
>> function reset () {
>> mTween = new MultiTween(currentColor, originColor);
>> colorTween.stop();
>> colorTween = new Tween(mTween, "position",
>> Regular.easeInOut, 0,
>> 1,
>> 30);
>> colorTween.onMotionChanged = Delegate.create(this,
>> updateColor);
>> debug("DEBUG >> - reset ---");
>> }
>>
>> // button events
>> test_mc.onRollOut = Delegate.create(this, buttonRollOut);
>> test_mc.onRollOver = Delegate.create(this, buttonRollOver);
>>
>> // debug function
>> function debug (txt:String) {
>&g

Re: [Flashcoders] Penner AS2 ProFMX: Complete

2006-09-08 Thread Mark Walters

done...

you can now download all of the classes and documentation in one zip:
http://www.digitalflipbook.com/downloads/flash/penner/Penner_AS2_ProFMX.zip


On 9/8/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:

cool, nice work.  you might want to offer them all packaged up into one zip
file too.



On 9/8/06, Mark Walters <[EMAIL PROTECTED]> wrote:
>
> I just wanted to let everyone know that I finally completed converting
> all of Robert Penner's AS1 classes from his book to AS2.
>
> You can view the last post here:
> http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_20.php
>
> You can download each set of classes here:
> http://www.digitalflipbook.com/downloads/
>
> Some examples from the book now using AS2:
>
> Cyclone:
> http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_19.php
>
> Fractal Dancer:
> http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_17.php
>
> MotionCamera:
> http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_16.php
>
> Snowstorm:
> http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_14.php
>
> Aurora Borealis:
> http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_12.php
>
> PhysicsParticle:
> http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_11.php
>
> Vector3d:
> http://www.digitalflipbook.com/archives/2006/07/penner_as2_prof_3.php
>
> Thanks and Enjoy!
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Penner AS2 ProFMX: Complete

2006-09-08 Thread Mark Walters

I just wanted to let everyone know that I finally completed converting
all of Robert Penner's AS1 classes from his book to AS2.

You can view the last post here:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_20.php

You can download each set of classes here:
http://www.digitalflipbook.com/downloads/

Some examples from the book now using AS2:

Cyclone: http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_19.php

Fractal Dancer:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_17.php

MotionCamera: 
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_16.php

Snowstorm: 
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_14.php

Aurora Borealis:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_12.php

PhysicsParticle:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_11.php

Vector3d: http://www.digitalflipbook.com/archives/2006/07/penner_as2_prof_3.php

Thanks and Enjoy!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Most efficient way to set a ColorTransform property on a MovieClip

2006-08-04 Thread Mark Walters

So I guess what we're coming down to, is the fact that you have to
have at least 3 lines of code: one for initializing the ColorTransform
object, another for setting the ColorTransform value, and still
another for setting the MovieClip's colorTransform property to the new
ColorTransform object.

For example:

var ct:ColorTransform = new ColorTransform();
ct.rgb = 0x00;
my_mc.transform.colorTransform = ct;


Seems so odd that there's no way of combining these lines.

Let me know if I'm missing something. It's not a problem to go this
route, I just want to make it as efficient as possible.

Thanks.


On 8/2/06, Marcos Neves <[EMAIL PROTECTED]> wrote:

This is a classic object oriented problem. The MovieClip can´t know
that the rbg property has changed from his ColorTransform property.
There ar 3 solutions:
The first is the easier for Macromedia but worst for us programers.
The movieClip, update its ColorTransform when you set it, like this
mc.colorTransform = new ColorTransform

The second solution would be with listeners. When you assign
mc.colorTransform = new ColorTransform, the movie clip do
colorTransform.addEventListener(COLOR_CHANGE, 

The third would be the color transform has a reference to the
movieClip and do the same done on the first situation, so when you
assign colorTransform.rbg = 0xFF the color transform do:
parentMovieClip.colorTransform = this (where this is the
colorTransform)

Those solutions are fine if you want to change only one property, but
if you change 6 properties, the movieClip would be updated 6 times on
the last two solutions. Unless the movieClip waits to update only at
some internal refresh frame event (but this is with macromedia).

My suggestion is create a helper class that would do the follow?

new HelperColorTransform(movieClip).rgb = 0xFF;
and inside you would do what you can´t do with one line of code.

Let´s extends the discussion, since this problem exists in many places of Flash.

On 8/2/06, Mark Walters <[EMAIL PROTECTED]> wrote:
> What would be the quickest most efficient way to apply a
> ColorTransform and set the rgb property on a MovieClip?
>
> With the Color object, you could use the following line:
>
> (new Color(my_mc)).setRGB(0x00);
>
> ... and if you extended the Color class and added an rgb getter
> setter, the following would work as well:
>
> (new XColor(my_mc)).rgb = 0x00;
>
> ... but with ColorTransform, I can't seem to find a single line
> solution. I've tried:
>
> (my_mc.transform.colorTransform = new ColorTransform ()).rgb = 0x00;
>
> ... which doesn't work, although it also doesn't throw an error.
> I know that I can pass in all the parameters (rm, gm, bm, etc) into
> the ColorTransform constructor and get it to work on a single line,
> but I've extended the ColorTransform class and want to be able to call
> the methods and properties the most efficiently.
>
> If anyone could help, that would be very much appreciated.
>
> 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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Most efficient way to set a ColorTransform property on a MovieClip

2006-08-02 Thread Mark Walters

What would be the quickest most efficient way to apply a
ColorTransform and set the rgb property on a MovieClip?

With the Color object, you could use the following line:

(new Color(my_mc)).setRGB(0x00);

... and if you extended the Color class and added an rgb getter
setter, the following would work as well:

(new XColor(my_mc)).rgb = 0x00;

... but with ColorTransform, I can't seem to find a single line
solution. I've tried:

(my_mc.transform.colorTransform = new ColorTransform ()).rgb = 0x00;

... which doesn't work, although it also doesn't throw an error.
I know that I can pass in all the parameters (rm, gm, bm, etc) into
the ColorTransform constructor and get it to work on a single line,
but I've extended the ColorTransform class and want to be able to call
the methods and properties the most efficiently.

If anyone could help, that would be very much appreciated.

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] FlashPaper Component 0.7 Released

2006-06-14 Thread Mark Walters

A new version of my FlashPaper component has been released.

http://www.digitalflipbook.com/archives/2006/06/flashpaper_comp_1.php

- markW
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Animation Engine

2006-05-20 Thread Mark Walters

You might also want to look at Fuse (in final steps of beta right
now). http://www.mosessupposes.com/Fuse/ .

On 5/20/06, Adam Pasztory <[EMAIL PROTECTED]> wrote:

Yeah, I think that's great.  Didn't mean to sound critical about the
filesize.  I'm just wary of any hidden impacts.  I will be trying it out
this weekend...

On 5/20/06, Ron Wheeler <[EMAIL PROTECTED]> wrote:
>
> 16 Kb is a pretty small size when compared to a photo or image - nothing
> when compared to a sound file.
>
> Ron
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] trace inside the browser

2006-03-07 Thread Mark Walters
or if you just like using trace, follow my post here:
http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php

- markW

On 3/7/06, Chris Hill <[EMAIL PROTECTED]> wrote:
> Use the luminic box logger.
> http://www.luminicbox.com/blog/default.aspx?page=post&id=2
>
> Rodrigo Guerra wrote:
> > hi,
> >
> > i'm trying to figure out a way to implement a debug that i can see online 
> > (in the browser) and not just inside the flash environment. just like 
> > trace, but it must work when the swf is online.
> >
> > i thought about a list component that appear and desapeear on a X keypress, 
> > and a function that could add my traces outputs to it
> > i was wondering what other methods/ways you are doing this.
> >
> > thanks in advice.
> > rodrigo
> >
> >
> > 
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] Easing equations - explanation of parameters

2006-02-27 Thread Mark Walters
Taken from Robert Penner's book ...

t = time
b = begin
c = change
d = duration

- markW


On 2/27/06, Keith Salisbury <[EMAIL PROTECTED]> wrote:
> Does anyone have a explanation of the parameters used in the class
>
> mx.transitions.easing.Elastic
>
> (t:Number, b:Number, c:Number, d:Number, a:Number, p:Number)
>
>
> t = Current Timer
> b = Initial Value
> c = End Value - Initial Value
> d = Duration
>
> a = ?
> p = ?
>
>
>
> tia
> keith
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Select all text onSetFocus of a TextField

2006-02-13 Thread Mark Walters
This seems like it should be easily solved, but I keep running into an
issue so I was hoping I could get some fresh ideas from you guys.

I want to have default text in a TextField, and when a user clicks
into it I want all of the text to be selected as if it was tabbed
into.

I currently have added an onSetFocus method to the TextField which in
turn calls a setInterval for another method called "selectText". The
selectText method calls Selection.setSelection (0, field.text.length);

Now this works wonderfully if you click to the right of the text, but
if you click in the middle of the text, when the mouse lets up the
text that is selected is 0 to the caret index.

Does anyone know of a way to get around this?

Thanks in advance,

- markW
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Debugging Flash Online

2006-02-10 Thread Mark Walters
... xray is a great product, but sometimes overkill if you just want
to trace from the browser ... if tracing is more what you are looking
for, check out my post here:
http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php

- markW


On 2/10/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:
> Hey,
>
> Probably an easy one.
>
> Are there any debugers out there that allow some kind of debugging of Flash
> apps when actually online and you can't use the trace command or regular Flash
> debugger.
>
> I've some vague recollection of some ActiveX things I read about ages ago, but
> can't find it now,
>
> Thanks,
>
> - Kevin
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Naming conventions for AS2.0 ...

2006-02-01 Thread Mark Walters
The extensions _mc, _txt, etc, were originally recommended by
Macromedia to trigger the context sensitive autocompletion in Flash
MX. With strict datatyping it's no longer required and is really just
preference. Personally, I add a $ in front of my private variables and
just make everything else named well enough to be understood by anyone
reading my code.


On 2/1/06, Ramon Tayag <[EMAIL PROTECTED]> wrote:
> I use
>
> oListener:Object;
> bIsReady:Boolean
> sText:String;
> tf:Textfield;
> mcHolder:MovieClip;
> mcl:MovieClipLoader;
>
> Yeah I don't think prefixes are recognized elsewhere but it takes a
> bit of effort to type _ (underscore) because it's out of the way for
> me
>
> Mon
>
> On 2/2/06, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:
> > listener_obj
> > answer
> >
> > I hate mcImage, I don't think that prefix is recognized in any dev app.
> > I know image_mc works in Flash and I think sepy for code hinting
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Ford
> > Sent: Thursday, 2 February 2006 12:53 PM
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: [Flashcoders] Naming conventions for AS2.0 ...
> >
> >
> > Does anyone have an opinion, or a preferred method, in regards to
> > naming conventions for AS2.0 objects ?
> >
> > For example, Macromedia recommends:
> >
> > clip_mc (movie clip)
> > comm_lc (local connection)
> > names_array (array)
> > beep_sound (sound)
> > field_txt (text field)
> > etc, etc, etc
> >
> > but what if I wanted to use an generic object or a boolean datatype:
> >
> > listener_???:Object = new Object();
> > answer_???:Boolean = false;
> >
> > These are just two datatypes Macromedia doesn't list in terms of
> > suffixes (search for 'About using suffixes to trigger code hints' in the
> > official Flash help documentation built into Flash).
> >
> > So another technique I have seen is prefixing variables, like:
> >
> > mcClip (movie clip)
> > lcComm (local connection)
> > aNames (array)
> > etc, etc, etc
> >
> > Someone must have a foolproof way to do this, there must be
> > a technique that covers all possibilities for naming variables ???
> >
> > Thanks,
> > Stephen.
> >
> >  ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> Ramon Miguel M. Tayag
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Duplicating an object without pointing to original one

2006-01-09 Thread Mark Walters
If you download the FlashRemoting source code, (
http://download.macromedia.com/pub/flashremoting/mx2004/components/actionscript_2.0/flashremoting_comp_sourcecode.zip
), you will have a new class mx.utils.ObjectCopy ... this will make a
new object, instead of a reference to the first.


On 1/9/06, JesterXL <[EMAIL PROTECTED]> wrote:
> For shallow copies, you can use a for in loop.
>
> var o:Object = {label: "test", data: 5};
> var copy:Object = {};
> for(var p in o)
> {
> copy[p] = o[p];
> }
>
> However, if the o has properties that are objects, or arrays, you'll have
> problems because your copy will still contain references.  You need to
> utilize a recursive algorithm to continually dig down on the object.
> Recursion in Flash, however, is dangerous since you have a limit of 256, and
> adjusting this in Flex only further increases the danger of locking up the
> comp.
>
> My suggestion is to provide a clone (or duplicate) method to those data
> objects you use to copy, and leave the implementation details to that object
> rather than creating a catch-all method.
>
> Example:
>
> class MyObject
> {
> public var label:String;
> public var data:Number;
>
> public function clone():MyObject
> {
> var o:MyObject = new MyObject();
> o.label = label;
> o.data = data;
> return o;
> }
> }
>
> - Original Message -
> From: "Mendelsohn, Michael" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Monday, January 09, 2006 12:05 PM
> Subject: [Flashcoders] Duplicating an object without pointing to original
> one
>
>
> Hi list...
>
> How do you duplicate an object {bool:true, val:5} in another variable
> without pointing to the original one, and without having to create a
> constructor.  In Director, there's a duplicate() method in Lingo.  Is
> there an equivalent way to do this in Flash?
>
> Something like this, but which would actually work:
>
> var h = {a:true};
> var g = h;
> trace(h.a); // true
> g.a = false;
> trace(h.a); // false, but want to be true, so it's separate from g
> object.
>
> - MM
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Generating XML file from projector

2006-01-08 Thread Mark Walters
OS version of Screenweaver works too, I actually just got done using
it for the same purpose.

On 1/8/06, JesterXL <[EMAIL PROTECTED]> wrote:
> mProjector, Zinc, not sure about the OS version of Screenweaver.
>
> - Original Message -
> From: "dls" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Saturday, January 07, 2006 10:27 PM
> Subject: [Flashcoders] Generating XML file from projector
>
>
> Other than SWF Studio from Northcode, does anyone know of any other
> flash to .exe software that allows your projector to create XML files?
>
> Thanks in Advance,
> Dan Sherman
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Anyone have a current link to XMLSA for AS2?

2006-01-04 Thread Mark Walters
http://www.ifdnrg.com/XMLSA.as


On 1/4/06, Chris Whiteford <[EMAIL PROTECTED]> wrote:
> I have been looking and can't find any current links.
>
>
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> This email is intended only for the person or entity to which it is addressed
> and may contain information that is privileged, confidential 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 agent responsible for delivering the message to the intended
> recipient, is prohibited. If you have received this email in error, please
> immediately notify us by calling our Help Desk at (415) 581-5552 or
> by e-mailing us at [EMAIL PROTECTED]
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] POST form data and receive XML?

2005-12-14 Thread Mark Walters
var dataOut:LoadVars = new LoadVars ();
var dataIn:XML = new XML ();
dataIn.ignoreWhite = true;
dataIn.onLoad = function (success:Boolean)
{
 // actions on load
}

//gather all of the form data into the dataOut object

dataOut.sendAndLoad("url", dataIn, "GET"); // or "POST"



On 12/14/05, Roman Blöth <[EMAIL PROTECTED]> wrote:
> Hello flashcoders,
>
>
> isn't it possible to use a LoadVars.sendAndLoad(...) and specify an
> XML-object as the receiving object?
>
> I've just tried it, but the XML object always seems to receive a FALSE
> on "onLoad" and all the childs are empty...
>
> Before I try every variety I just wanted to ask whether someone alsready
> did this before?!
>
>
> Regards,
> Roman.
> --
>
> ---
>   gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
>   t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
> ---
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Very basic question: calling MC from a frame

2005-11-19 Thread Mark Walters
wow ... telltarget ... it has been a long time, hasn't it ?

I assume you mean a frame label ...

MovieClip.gotoAndPlay ("label");

you might also want to use the flashnewbie mailing list instead:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie



On 11/19/05, Blake Kritzberg <[EMAIL PROTECTED]> wrote:
> Forgive me for asking such a basic question, but there's a long space
> between my flash projects and during that interval I always forget
> everything I ever learned.
>
> Now, all in a rush, I have to do something pretty simple (forgive my
> total lack of jargon):
>
> I need to call a specific label within an on-stage MC from an
> actionscript in one of the frames.
>
> I know this should be simple but I can't seem to find a refresher
> tutorial on how to do that. (I found one ages ago, but ...) I think
> I'm missing the right lingo. I can't even figure out what basic script
> command is called for here. TellTarget? Something else? Any
> suggestions?
>
> thanks,
> - blake
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Mark Walters
Hey Chris, you're right that onSoundComplete only gets fired when the
sound has completely finished playing. The Class you wrote is handling
it the way I currently am, which is great ... the only thing I'm
noticing is that on some slower machines, when you start each loop
onSoundComplete there is a tiny pause that doesn't seem to be there
when it loops on its own ... basically I wanted to see what ideas
everyone would come up with, and it seems like I'm on the right track.

Thanks a lot,

- markW

On 11/17/05, Chris Wilcox <[EMAIL PROTECTED]> wrote:
> Isn't onSoundComplete called when the sound has stopped playing, not when it
> loops??
>
> In which case you could create a SoundLoop class which uses onSoundComplete
> to increment the loopCount and fire next loop. Not sure how it being called
> on next frame affects this (seemed fine to me in the past)
>
> Here's a quick look at a SoundLoop class (beware severely untested and prone
> to being written better.. ;)
>
> 
>
> class com.bouncedigital.SoundLoop extends Sound
> {
> private var __secOffset:Number
> private var __loops:Number
> private var __loopsElapsed:Number = 0
>
> public function SoundLoop(arg)
> {
> }
> public function start(secOffset, loops)
> {
> if (__loopsElapsed == 0)
> {
> __secOffset = secOffset
> __loops = loops
> __loopsElapsed = 0
> }
> super.start(__secOffset,1)
> }
> private function onSoundComplete()
> {
> __loopsElapsed ++
> onLoopComplete()
> trace("loopsElapsed: " + __loopsElapsed)
> if (__loopsElapsed <= __loops)
> {
> start(0,1)
> } else
> {
> __loopsElapsed = 0
> onAllLoopsComplete()
> }
> }
> public function onLoopComplete()
> {
>
> }
> public function onAllLoopsComplete()
> {
>
> }
> }
>
> --
> In fla...
>
> import com.bouncedigital.SoundLoop
>
> var mySoundLoop = new SoundLoop(this)
>
> mySoundLoop.attachSound("__bass_lib")
> mySoundLoop.start(0,3);
>
> mySoundLoop.onLoopComplete = function ()
> {
> trace("loopcomplete")
> }
>
> mySoundLoop.onAllLoopsComplete = function ()
> {
> trace("allloopscomplete")
> }
>
>
> HTH
>
> C
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Tobias
> Fendel [Die ActionScripter]
> Sent: 17 November 2005 18:50
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] onLoop event for sound
>
>
> hi,
>
> imho a better solution is to use the sound.onSoundComplete event:
>
> mySound.onSoundComplete = function() { loopCount++ }
>
> it is fired next frame after the sound ends. if you start your sound using a
> script like mySound.start(0,) it may be your sound restarts (and resets
> sound.position) before the next frame events calls your check.
>
>
> greetings
> tobias
>
> ps: sorry about my bad english :)
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> > Of Alain Rousseau
> > Sent: Thursday, November 17, 2005 7:17 PM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] onLoop event for sound
> >
> >
> > Hi Mark,
> >
> > you could monitor the position of the sound comparred to it's
> > duration,
> > that way you know when it arrives at the end of the sound.
> >
> > if (sound.position == sound.duration) {
> > loopCount++;
> > }
> >
> > In this case, the loop count will be made at the end of the sound.
> >
> > HTH
> >
> > Alain
> >
> > Mark Walters wrote:
> >
> > >Does anyone know of a good way to create an onLoop event that gets
> > >fired everytime a sound loops. I need to keep track of how
> > many loops
> > >are left. ___
> > >Flashcoders mailing list
> > >Flashcoders@chattyfig.figleaf.com
> > >http://chattyfig.figleaf

[Flashcoders] onLoop event for sound

2005-11-17 Thread Mark Walters
Does anyone know of a good way to create an onLoop event that gets
fired everytime a sound loops. I need to keep track of how many loops
are left.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders