Re: [Flashcoders] isseu with a custom function in AS2

2009-04-03 Thread Geografiek

Hi Jimmi,
I made a class that does just that (and a little bit more).
I can send it to you off list if you wish.
HTH,
Willem van den Goorbergh
Op 3-apr-2009, om 10:19 heeft jimmi het volgende geschreven:


Good morning,

I have made a function that adds interpunction marks to a value, for
example the value 1 gets changed to 10.000, 10 to 100.000 and
so forth.

The function work fine, but I'm trying to make it reusable so that i
can use it in a large scale project. That's where the problem comes
up.

This is what the working code looks like:

// 
//

var outputNumber:Number = 1 // input value
var outputString:String = new String();

function init ()
{
outputString = String(Number(outputNumber));
interpunk (outputString);

trace(outputNumber); // output is 1
trace(outputString); // output is 10.000
}

function interpunk (par1):Void
{
trace(par1)
switch (par1.length)
{
case 4 :
outputString = String(par1.charAt (0) + "." + 
par1.slice (1))
break;

case 5 :
outputString = String(par1.charAt (0) + par1.charAt (1) + 
"." +
par1.slice (2))
break;

case 6 :
outputString = String(par1.charAt (0) + par1.charAt (1) 
+
par1.charAt (2) + "." + par1.slice (3))
break;

default :
outputString = String(par1)
break;
}
}

init ();

// 
//


So i tried to make it reusable, so i tried this(changed  
outputString to par1).

But now the value comes out unchanged so 1 stays 1, while i
expected it to become 10.000.


I hope someone can help i the right direction.

This is what the non working code looks like :

// 
//

function interpunk (par1):Void
{
trace(par1)
switch (par1.length)
{
case 4 :
par1 = String(par1.charAt (0) + "." + par1.slice (1))
break;

case 5 :
			par1 = String(par1.charAt (0) + par1.charAt (1) + "." +  
par1.slice (2))

break;

case 6 :
par1 = String(par1.charAt (0) + par1.charAt (1) + 
par1.charAt (2) +
"." + par1.slice (3))
break;

default :
par1 = String(par1)
break;
}
}

// 
//

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OT - Running windows with bootcamp

2009-05-07 Thread Geografiek

Hi,
I tried bootcamp some time ago and couldn't get it working.
Just a few days ago I bought Parallels, installed Windows XP. Works  
like a charm alingside MacOS 10.5.

hth,
Willem van den Goorbergh
(not a windows power user though ;-))

Op 4-mei-2009, om 21:46 heeft Patrick Matte het volgende geschreven:

I’m about to buy a new laptop and I was thinking of getting a  
macbook pro to

run windows. Has anybody ever had any problems running windows with
bootcamp? I’m a little worried about driver problems with  
peripherals. I’m
also using some MIDI controllers and a DMX interface regularly.  
Basically I
just want to know if getting a macbook pro is safe for a Windows  
power user..



This e-mail is intended only for the named person or entity to  
which it is addressed and contains valuable
business information that is proprietary, privileged, confidential  
and/or otherwise protected from disclosure.


If you received this e-mail in error, any review, use,  
dissemination, distribution or copying of this e-mail
is strictly prohibited. Please notify us immediately of the error  
via e-mail to disclai...@tbwachiat.com and
please delete the e-mail from your system, retaining no copies in  
any media. We appreciate your cooperation.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Link reference issue

2009-08-03 Thread Geografiek

Hi Karl,
I would say
quote_mc.close_btn.gotoAndPlay("close"); works from the time line of  
stage_mc
stage_mc.quote_mc.close_btn.gotoAndPlay("close"); works from the main  
time line

HTH
Willem van den Goorbergh

On 3-aug-2009, at 9:52, Karl DeSaulniers wrote:


Hello all,
Quick question. I have a swf loaded into a movieclip on another swf

we'll say Movie1 and Movie2

and I have to use the link reference that starts in Movie1.. kinda  
weird,
but it wouldn't work any other way. I end up having to write the  
path to the button like this:

Eg:
_root.stage_mc.quote_mc.close_btn.gotoAndPlay("close");

Where "_root.stage_mc" is in Movie1 and ".quote_mc.close_btn" is  
inside Movie2 swf.

_root.stage_mc is what Movie2 is loaded into.

Am I missing something here? Shouldn't the button in Movie2 work  
with a relative path?

Eg:
this.quote_mc.close_btn.gotoAndPlay("close");

?
Perplexedly yours,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Extra information in classes

2009-09-08 Thread Geografiek

Hi Allandt,
I always include a to-do list, which holds comments about future  
enhancements and additions which didn't make it in this version.

HTH
Willem van den Goorbergh

On 8-sep-2009, at 12:32, Allandt Bik-Elliott (Receptacle) wrote:


hi guys

Something I've been thinking about for the last couple of days -  
what extra information do you add to a class when you're writing it?


My headers always include


/**
 * @filename: Main.as
 * @version : Actionscript 3.0
 * @author  : Allandt Bik-Elliott
 * @company : thereceptacle.co.uk
 */

and more recently a changelog

/**
 * @changelog:
 * 2009_09_03 : reason : change
 */

but I've been thinking about refreshing my practises.

I think I'll be using @version to track the class version number in  
the header and revising my @version with @ASversion. I also think i  
might need an @usage


do you add similar headers to each method (i've seen this done a  
few times)? do you add any other information?


thanks
alz

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Access dynamically created MovieClip from class?

2009-09-11 Thread Geografiek
icked(e:MouseEvent):void{
trace("You have clicked drawingSign");
}


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com]
On Behalf Of ktt
Sent: vrijdag 11 september 2009 15:40
To: Flash Coders List
Subject: [Flashcoders] Access dynamically created

MovieClip

from class?

Hello,

I have created Movieclip in main actionscript file

main.as

:

var drawingSign:Movieclip = ne MovieClip();
drawingSign.x = 40;
drawingSign.y = 40;

How could I access it (add listeners etc.) from a

class

file?
Is it possible?

Thank you in advance,
kioshin



___
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

___
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




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Searching all ActionScript in an FLA

2009-09-24 Thread Geografiek

Hi list,
I have a .fla with symbols in the library and a docClass.as going  
with it.

When I publish, I get the following waring message:
"WARNING: Actions on button or MovieClip instances are not supported  
in ActionScript 3.0. All scripts on object instances will be ignored."


But I can't find any. Not with Edit -> Find and Replace. And also the  
tree in the actions panel contains just 1 frame with one empty line 
(I'm absolutely sure, also no invisible characters).

What can I do to get rid of the annoying warning?
Thanks,
Willem van den Goorbergh

On 17-sep-2009, at 13:32, Glen Pike wrote:


F9 brings up the Actionscript editor for an open FLA file.

You can "toggle" the toolbox screen  (left of  2 column view) by  
clicking the rightmost icon in the icon bar of the Actions tab.


Glen

Karl DeSaulniers wrote:

If you need a screen shot I can send you one off list.

Best,

Karl


On Sep 17, 2009, at 6:14 AM, Karl DeSaulniers wrote:


You  can.
Try using "find and replace", just make sure your not selecting  
anything. No frames, no MCs.
Click off stage once just to make sure before you use "find and  
replace". It should search everything.


You can also find actions for everything in your FLA by looking  
at the window on the left of your actionscript pane (where you  
type your AS).
There are usually two windows just to the left. One on top with  
pre-written stuff and then a tree of all the frames and symbols  
that have AS on them.
If you select one it will take you to that spot in your AS pane  
so you can edit it. the AS you select will move to the top of the  
tree and be called "Current Selection".


EG:  (a frame icon) Layer 1 : Frame 1

you may have to open these two windows up. they are not by  
default opened up (I think) but if you do, just look at the left  
edge of your AS pane.
on the edge in the middle of it, there will be a small box with a  
triangle in it. click it and you'll see what I mean,
then look at the bottom of that windows edge for another box with  
a triangle pointing up. this is the window you want.


HTH,

Karl


On Sep 17, 2009, at 5:53 AM, Arka Roy wrote:


I have FLA files from a client with numerous MovieClips and buttons
containing ActionScript all over the place.  I am not used to  
this, I only
started using Flash with AS3 and have always used a Document  
Class and

placed my ActionScript in external .as files.
I am trying to search through the ActionScript to find some  
text.  Is their
any way (tool etc.) to search through all ActionScript in a  
FLA?   Why
doesn't Adobe put in such a search function, it sounds so basic  
to me.  Or

am I not understanding something about Flash usage?

Thanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Searching all ActionScript in an FLA

2009-09-28 Thread Geografiek

Hi Chris,
Thanks.
I'm on CS4.
The line "WARNING: Actions on button or MovieClip instances are not  
supported in ActionScript 3.0. All scripts on object instances will  
be ignored." appears as the first line in the output panel with no  
clue as to where that code would reside.

The compile errors panel is blank.
The project includes some library items from an older project that  
had actionscript attached to limelines, but I carefully stripped all  
of it.
The warning seems not to have any consequences up to now. But it's  
kind of gloomy you know. As if a problem might haunt me in the  
future, grinning: "Didnt I warn you long time ago?"

regards,
Willem van den Goorbergh

On 26-sep-2009, at 7:27, Chris Velevitch wrote:

On Thu, Sep 24, 2009 at 18:20, Geografiek  
 wrote:
I have a .fla with symbols in the library and a docClass.as going  
with it.

When I publish, I get the following waring message:
"WARNING: Actions on button or MovieClip instances are not  
supported in

ActionScript 3.0. All scripts on object instances will be ignored."


Are you using Flash CS3 or Flash CS4?

In CS4, the errors panel should be showing you location of the warning
and you should be able to double click the message line to goto the
action panel and see and edit the code in question.


Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au

Adobe Platform Users Group, Sydney
September meeting: Experiences with Flash Catalyst and Flex 4
Date: Mon 28th September 6pm for 6:30 start
Details and RSVP on http://groups.adobe.com/posts/4a145446c3
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Searching all ActionScript in an FLA

2009-09-29 Thread Geografiek

Hi,
Thanks for all the hints.
Couldn't find a blank line though, so I just try to live with it.
Willem
On 28-sep-2009, at 16:34, Margo Powell wrote:

I had this error also but it was due to a blank line on a movie  
clip. Check your movie clips and make sure there are no blank lines  
embedded - flash  interprets more than one blank line as a line of  
script


regards
Margo

On 9/28/2009 9:29 AM, Geografiek wrote:

Hi Chris,
Thanks.
I'm on CS4.
The line "WARNING: Actions on button or MovieClip instances are  
not supported in ActionScript 3.0. All scripts on object instances  
will be ignored." appears as the first line in the output panel  
with no clue as to where that code would reside.

The compile errors panel is blank.
The project includes some library items from an older project that  
had actionscript attached to limelines, but I carefully stripped  
all of it.
The warning seems not to have any consequences up to now. But it's  
kind of gloomy you know. As if a problem might haunt me in the  
future, grinning: "Didnt I warn you long time ago?"

regards,
Willem van den Goorbergh

On 26-sep-2009, at 7:27, Chris Velevitch wrote:

On Thu, Sep 24, 2009 at 18:20, Geografiek  
 wrote:
I have a .fla with symbols in the library and a docClass.as  
going with it.

When I publish, I get the following waring message:
"WARNING: Actions on button or MovieClip instances are not  
supported in

ActionScript 3.0. All scripts on object instances will be ignored."


Are you using Flash CS3 or Flash CS4?

In CS4, the errors panel should be showing you location of the  
warning

and you should be able to double click the message line to goto the
action panel and see and edit the code in question.


Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au

Adobe Platform Users Group, Sydney
September meeting: Experiences with Flash Catalyst and Flex 4
Date: Mon 28th September 6pm for 6:30 start
Details and RSVP on http://groups.adobe.com/posts/4a145446c3
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Margo Powell
Applications Analyst
MS Computer Science
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu

___
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] add properties to Event object

2009-10-27 Thread Geografiek

Hi Andew,
Just a month ago Jason posted a very very usefull note on how to  
write custom events.


See below:



Here is how you write a custom event:

package
{
import flash.events.Event;

public class MyEvent extends Event
{
public static var SOUND_REQUESTED:String =
"sound_requested";

public function MyEvent(type:String,
bubbles:Boolean=false, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);

}

public override function clone():Event
{
return new MyEvent(type, bubbles, cancelable);
}

public override function toString():String
{
return formatToString("MyEvent", "type",
"bubbles", "cancelable", "eventPhase");
}

}

}

Here is how you would dispatch that event with bubbling:

dispatchEvent(new MyEvent(MyEvent.SOUND_REQUESTED, true));

Here is how you would listen for it and handle it anywhere in the
display chain:

addEventListener(MyEvent.SOUND_REQUESTED, onSoundRequested);

function onSoundRequested(event:MyEvent):void
{
//Code to play sound here.
}



HTH
Willem van den Goorbergh
On 27-okt-2009, at 17:56, Dave Watts wrote:

Why can't I add any properties to an AS3 Event object?  I get a  
1056: cannot

create property prop-name on Event
Event extends Object, right?


Event is not a dynamic class. In AS3, you can only add properties to
dynamic classes. So, as everyone else has mentioned, you have to
extend Event to create a custom event class. Don't forget to override
the clone method and create a new event!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextField with image...

2009-12-20 Thread Geografiek

Hi Sander,
How do you load the image? as a HTML  tag?
I think you shouldn't look for an event fired  when the image is  
loaded, but the event fired when the textField changes size.  
TextFieldEvent.CHANGE I guess.

HTH
Willem van den Goorbergh

Op 20 dec 2009, om 23:46 heeft Sander Schuurman het volgende geschreven:


Hi cool list,

I'm encountering a problem with TextFields... I want to embed an  
image into a TextField, and position other content underneath the  
TextField.


The Image is loaded after a short while, and thus the height of the  
TextField increases. But no event is fired when the img is loaded.


How can I position something underneath the TextField after the img  
is placed inside the TextField?


I've tried first loading it so it is in cache, but no success... is  
there a way to insert the loaded Bitmap directly into the TextField?  
It can contain external images or linkage identifiers from the  
library. But can't get my head around getting a loaded Bitmap in...


Anyone?

Thanks!

Sander Schuurman
sentoplene.com
@sentoplene
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone:  
(+31)30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Rotation

2010-01-26 Thread Geografiek

Hi Beno,
This might help:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
Willem

On 26-jan-2010, at 13:11, beno - wrote:

On Mon, Jan 25, 2010 at 9:06 PM, jared stanley  
wrote:



Beno, there's a list on here called 'flash newbies' or something -
despite the name there are great resources. The level of questions
you're asking are definitely pointed more to that list, please start
posting there I think you and everyone else will have a better
experience.



It took forever to find this list. If you can help me find a newbie  
list
that is __active__, fine, I'll be more than happy to do that. I  
still ask
some questions of the Adobe list, but I've learned which ones  
they'll answer

and which they'll ignore. Tricky business, this.
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Geografiek

Hi Beno,
What fails?
Is checkFrame never called? or doTween? Do you get any error messages?
Put some traces in your code to see what's actually happening.
Willem


On 2-feb-2010, at 14:38, beno - wrote:


OOPS! I spoke too soon!!

Here's the revised code:

package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;

   public class Main2 extends MovieClip
   {
  //Import Library Assests
public var myThumb:CloseThumb;

  public function Main2()
  {
 init();

  }

  public function init():void
  {
theThumb();
}

public function doTween():void {
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});

}

//If you want to get rid of the thumb after the tween has finished,  
then add

the "onComplete handler above to point here...
public function onFinishTween():void {
  removeChild(myThumb);
}
//Then in your theThumb function:


public function theThumb():void
  {
  myThumb = new CloseThumb();
  myThumb.x = 365;
  myThumb.y = 355;
myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
}
 public function checkFrame(e:Event):void {
if (e.target.currentFrame == 10) {
   doTween();
}
}

   }
}

I still need to target the frame I want to use. Again, when I  
change the

value to anything other than 1, it fails. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Geografiek

Hi Glen,
I don't think it's possible to embed a range of characters through AS3.
It's all or nothing I'm afraid/
Willem van den Goorbergh

On 10-feb-2010, at 17:52, Glen Pike wrote:


Hi,

   I am working on some runtime font embedding with Flash CS3 by  
loading in a SWF at runtime with font symbols defined in library,  
exported for Actionscript, but not for sharing.


   I wish to use Arabic and Chinese characters in my fonts, so I  
have symbols for Arial and MingLiU Bold fonts.


   The problem I am having is that the Arabic / Chinese characters  
do not seem to be included in the Font Symbol / SWF.  I have tried  
putting a text field on stage and embedding the character ranges  
for each symbol, but still no luck.
   In my "Loader", I am loading the fonts, then some XML and using  
Font.hasGlyphs(string) to see if my Chinese / Arabic / other  
characters can be rendered with any of my loaded fonts, then  
defaulting to system fonts if they are not.


   I can get that far, but I would really like to embed / anti- 
alias the fonts better, etc.


   So, is it possible to ensure that the CS3 IDE embeds a range of  
characters, or would I have to do the fonts using Flex / Flash  
Develop and [Embed] with unicode ranges to create my font swfs?


   Thanks in advance.
 Glen
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Runtime Font embedding

2010-02-19 Thread Geografiek

Ah, that's nice.
Using [Embed...] is only possible from Flash CS4, not CS3 right?
Willem

On 11-feb-2010, at 14:45, Jon Bradley wrote:

You can embed a range of characters through AS3. The unicodeRange  
property of the embed directive handles this.


[Embed(source='pathToFond', fontName='NameOfFont',  
unicodeRange='Range1Start-Range1End,, RangeNStart-RangeNEnd')]


- jon


On Feb 11, 2010, at 6:35 AM, Geografiek wrote:


Hi Glen,
I don't think it's possible to embed a range of characters through  
AS3.

It's all or nothing I'm afraid/
Willem van den Goorbergh

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Finding and Removing a Sprite

2010-02-23 Thread Geografiek

Hi Theodore,
When you say 'addChild(mySprite)' mySprite *is* the child of  
something: the instance you call addChild on (addChild(mySprite) is  
equal to this.addChild(mySprite))
To remove mySprite you have to call removeChild(mySprite) on the same  
instance.
From the error it seems that myChild is not a child of the instance  
you call removeChild on.


Did you trace mySprite.parent to see if mySprite is actually a child  
of an instance? (traces null if mySprite is not a child of anything,  
traces the parent if mySprite is added as a child)

parentName.removeChild(mySprite) does the trick then.
HTH
Willem van den Goorbergh

On 23-feb-2010, at 14:23, Lehr, Theodore wrote:


I am trying to remove a Sprite via:

removeSchild(mySprite);

but I get the error: 1120: Access of undefined property mySprite);

The Sprite is created ina function and is not neccessarily the  
child of anything - although it is created via addChild(mySprite)  
so I guess it is the child of something...


How can I find it an remove it?

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Finding and Removing a Sprite

2010-02-23 Thread Geografiek

Hi Theodore,
In your case try
root.removeChild(mySprite);
btw: the use of root is not recommended though. There was a  
discussion lately why. Maybe Jason is willing to illustrate in the  
case of this example?

Willem

On 23-feb-2010, at 15:31, Lehr, Theodore wrote:


I tried:

removeChild(root.mySprite);

and I get another error:

1119: Access of possibly undefined property mySprite through a  
reference with static type flash.display:DisplayObject



From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders- 
boun...@chattyfig.figleaf.com] On Behalf Of Geografiek  
[geograf...@geografiek.nl]

Sent: Tuesday, February 23, 2010 8:45 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Finding and Removing a Sprite

Hi Theodore,
When you say 'addChild(mySprite)' mySprite *is* the child of
something: the instance you call addChild on (addChild(mySprite) is
equal to this.addChild(mySprite))
To remove mySprite you have to call removeChild(mySprite) on the same
instance.
 From the error it seems that myChild is not a child of the instance
you call removeChild on.

Did you trace mySprite.parent to see if mySprite is actually a child
of an instance? (traces null if mySprite is not a child of anything,
traces the parent if mySprite is added as a child)
parentName.removeChild(mySprite) does the trick then.
HTH
Willem van den Goorbergh

On 23-feb-2010, at 14:23, Lehr, Theodore wrote:


I am trying to remove a Sprite via:

removeSchild(mySprite);

but I get the error: 1120: Access of undefined property mySprite);

The Sprite is created ina function and is not neccessarily the
child of anything - although it is created via addChild(mySprite)
so I guess it is the child of something...

How can I find it an remove it?

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)
30-2719512 or cell phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
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] Finding and Removing a Sprite

2010-02-23 Thread Geografiek

Hi Theodore,
var mySprite:Sprite;
Do this:
function createBar(dfile:String):void {
...
mySprite = new Sprite();

function createGraph():void {
   mySprite.graphics.
   addChild(mySprite);
}
}

You declared mySprite inside the function, so it's not accessible  
outside that function.
Declaring mySprite outside the function makes it accessible to other  
functions.

HTH
Willem


On 23-feb-2010, at 16:21, Lehr, Theodore wrote:


I can not paste it but this should give you a general idea:

function createBar(dfile:String):void {
...

var mySprite:Sprite = new Sprite();


function createGraph():void {
   mySprite.graphics.

   addChild(mySprite);
}
}

function clearBar():void {
  removeChild(mySprite);
}



From: Nathan Mynarcik [nat...@mynarcik.com]
Sent: Tuesday, February 23, 2010 10:17 AM
To: Lehr, Theodore; Flash Coders List
Subject: Re: [Flashcoders] Finding and Removing a Sprite

Ok, I'm sure you are setting your variable inside the function that  
creates the sprite. This will in turn not allow you to target the  
sprite correctly. Can you paste the code you are using to create  
your sprite?



Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: "Lehr, Theodore" 
Date: Tue, 23 Feb 2010 10:12:41
To: nat...@mynarcik.com; Flash Coders  
List

Subject: RE: [Flashcoders] Finding and Removing a Sprite

I am new to as3 so all of this is in the main .fla in functions...  
the Sprite is created in one function and I am trying to remove it  
in another... I tried the getChildByName and the movie loaded  
properly - then when the event that calls the removeChild gets  
fired, I am given: 2007: parameter child must be non-null



Ted


From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders- 
boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik  
[nat...@mynarcik.com]

Sent: Tuesday, February 23, 2010 9:49 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Finding and Removing a Sprite

You could try root.removeChild(mysprite);

Or you can try removeChild(getChildByName("mySprite"));

Where is your code that is calling this method located? External  
Doc Class? On the main timeline? Inside or on a movieclip?



Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: "Lehr, Theodore" 
Date: Tue, 23 Feb 2010 09:31:19
To: Flash Coders List
Subject: RE: [Flashcoders] Finding and Removing a Sprite

I tried:

removeChild(root.mySprite);

and I get another error:

1119: Access of possibly undefined property mySprite through a  
reference with static type flash.display:DisplayObject



From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders- 
boun...@chattyfig.figleaf.com] On Behalf Of Geografiek  
[geograf...@geografiek.nl]

Sent: Tuesday, February 23, 2010 8:45 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Finding and Removing a Sprite

Hi Theodore,
When you say 'addChild(mySprite)' mySprite *is* the child of
something: the instance you call addChild on (addChild(mySprite) is
equal to this.addChild(mySprite))
To remove mySprite you have to call removeChild(mySprite) on the same
instance.
 From the error it seems that myChild is not a child of the instance
you call removeChild on.

Did you trace mySprite.parent to see if mySprite is actually a child
of an instance? (traces null if mySprite is not a child of anything,
traces the parent if mySprite is added as a child)
parentName.removeChild(mySprite) does the trick then.
HTH
Willem van den Goorbergh

On 23-feb-2010, at 14:23, Lehr, Theodore wrote:


I am trying to remove a Sprite via:

removeSchild(mySprite);

but I get the error: 1120: Access of undefined property mySprite);

The Sprite is created ina function and is not neccessarily the
child of anything - although it is created via addChild(mySprite)
so I guess it is the child of something...

How can I find it an remove it?

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)
30-2719512 or cell phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://

Re: [Flashcoders] Finding and Removing a Sprite: PART II

2010-02-23 Thread Geografiek

You could create an empty array (outside the functions)
And add each newly created bar to the array.
Afterwards, say in another function, you can reference the array  
indexes.

Something like:

myBarsArray = new Array();
function createBars():void
{
 for (var i:int=0; iSo here is my next issue... One of the functions creates a dynamic  
amount sprites based on an xml feed, like so



function createBars():void
{
 for (var i:int=0; iAnd see this this is where my ears start to bleed... this is  
seemingly creating, say, 9 Sprites ALL with the same name "bar"  
I need to keep the new Sprite() line in the loop for them to be  
created... but then I need some way to access them to delete them


Any ideas?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] removeChild Question

2010-02-24 Thread Geografiek

Well,
You could at least give a hint as to what _does_ work:
trace(my_obj.parent);
HTH,
Willem

On 24-feb-2010, at 13:28, Henrik Andersson wrote:


Susan Day wrote:

Ok, I'm embarrassed, but the following doesn't work:

addChild(my_obj);
trace(my_obj(parent));



Ok, sounds like you need to learn what a property is. I will leave  
it up to other people to explain such a fundamental thing.


Your error is treating my_obj as a Function. It clearly is not a  
Function. So the second line is just garbage logic wise. Your  
syntax is simply way bellow the minimum requirements for this task.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] removeChild Question

2010-02-24 Thread Geografiek

Susan,
Coming from a non-coders background I learned a lot from Colin Moocks  
books. Essential ActionScript 3 and Actionscript for Flash MX. (the  
last one is AS2 but very readable if you want an understanding of  
concepts like variables, properties, methods, functions, arrays etc.)  
Also Actionscript 3.0 cookbook is very handy.

Al books are published by O'Reilly.
Feel free to ask for directions on lists like these though. I learned  
a lot here and don't mind sharing.

Willem van den Goorbergh

On 24-feb-2010, at 14:48, Susan Day wrote:

On Wed, Feb 24, 2010 at 8:28 AM, Henrik Andersson  
wrote:



Susan Day wrote:


Ok, I'm embarrassed, but the following doesn't work:

addChild(my_obj);
trace(my_obj(parent));


Ok, sounds like you need to learn what a property is. I will leave  
it up to

other people to explain such a fundamental thing.

Your error is treating my_obj as a Function. It clearly is not a  
Function.
So the second line is just garbage logic wise. Your syntax is  
simply way

bellow the minimum requirements for this task.



Yes, I knew that when I wrote my last email. Can you at least point  
me in
the right direction? There is nothing in your response that  
indicates what I
should research, other than "property" and "function", which I feel  
is way

too general.
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] removeChild Question

2010-02-24 Thread Geografiek
I don't think a class can have children, only instances of classes  
can. (skating on thin ice now ;-))
Also I don't know by heart all the error codes. So please, if you  
refer to an error code give the full text.


I bet your trace resulted in something like [object, MyClass],  
litteraly meaning that the parent is an object and an instance of  
MyClass.

Somewhere you have created that instance with myVar = new MyClass();
so the parent is accessible through myVar.

Also: somewhere you have added my_obj to myVar with myVar.addChild 
(my_obj)

Remove it with myVar.removeChild(my_obj)
If you did just 'addChild(my_obj)' (that is within myVar) you can say  
'removeChild(my_obj)' (of course also within myVar)

HTH
Willem

On 24-feb-2010, at 15:24, Susan Day wrote:

On Wed, Feb 24, 2010 at 9:44 AM, Geografiek  
wrote:



Well,
You could at least give a hint as to what _does_ work:
trace(my_obj.parent);



Thanks. That traced out the name of the class/*.as file, but when I  
put that

value in, as in:

MyClass.removeChild(my_obj);

it throws an error (1061). What do?

With respect to Moock, yeah, got it, and it's the only reason I still
haven't pulled out all the hair in my head. Maybe get the cookbook  
too.

TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] finding x of sprite

2010-02-25 Thread Geografiek

No,
mSprite.x = 0 refers to the x-position of mSprite in the coordinate  
space of mSprite's parent (which is (0,0) by default if you never set  
it).
The expected x=15 is the position of the newly drawn rectangle in the  
coordinate space of mSprite.
localToGlobal does not refer to Points per se (as mentioned in your  
earlier post) but it lets you swap the local coordinate space of an  
object with the global coordinate space (i.e. the coordinate space of  
the stage)

Willem

On 25-feb-2010, at 13:28, Lehr, Theodore wrote:


given the following:

var msprite:Sprite = new Sprite();

mSprite.graphics.beginFill(0x00,.1);
mSprite.graphics.drawRect(15,337,646,207);
mSprite.graphics.endFill();

addChild(mSprite);

trace("mSprite.x = "+mSprite.x);

I would think that I should be tracing "mSprite.x = 15" instead I  
get "mSprite = 0"


Anyone know why?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] (no subject)

2010-02-26 Thread Geografiek

Hi list,
Suppose I have an associative array like this:
var myArray:Object = new Object();
myArray.item1 = item1;
myArray.item2 = item2;
myArray.selected = false;

item1 and item2 are 2 mc's living on the stage. Selected is a newly  
created property on myArray.
Now I want to change myArray.selected by clicking on one of both item  
and change the appearance of both items based on the value of  
myArray.selected. Is this possible?
In other words: myArray knows it contains item1 but does item1 have a  
way of knowing it is part of myArray.

Thanks,
Willem van den Goorbergh


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (no subject)

2010-03-01 Thread Geografiek

Thanks Paul,
Sorry for forgetting the subject line. Won't happen again ;-)
You're right about the Object as an Array I guess I can just create  
an associative array instead of an object, althoug Moock states that  
both approaches are common practice.
I solved (or rather circumvented) my problem by comparing the names  
of myObj and the item clicked

Your idea was nice, but it didn't solve my problem.
Maybe I wasn't clear enough, but I have a lot of 'myArray''s and I  
need to know which property 'select' to set when clicking an item ->  
the 'select' that is in the same array as the item clicked on.


The theoretical problem remains: myArray knows it contains item1 but  
does item1 have a way of knowing it is part of myArray?

thanks
Willem van den Goorbergh


On 26-feb-2010, at 18:39, Paul Andrews wrote:


Geografiek wrote:

Hi list,
Suppose I have an associative array like this:
var myArray:Object = new Object();
myArray.item1 = item1;
myArray.item2 = item2;
myArray.selected = false;

var myObj:Object = new Object();
myObj.itemGroup=[];
myObj.itemGroup.push( item1);
myObj.itemGroup.push( item2);
myObj.selected = false;

item1.addEventListener(MouseEvent.CLICK, onClick);
item2.addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:Event):void {
for (var idx:uint=0; idx


item1 and item2 are 2 mc's living on the stage. Selected is a  
newly created property on myArray.
Now I want to change myArray.selected by clicking on one of both  
item and change the appearance of both items based on the value of  
myArray.selected. Is this possible?
In other words: myArray knows it contains item1 but does item1  
have a way of knowing it is part of myArray.

Thanks,
Willem van den Goorbergh


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
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




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (no subject)

2010-03-02 Thread Geografiek

Thanks all,
I was afraid of that Henrik.
Up the MVC path then (br feel like Little Thumbling in the fairy  
tale ;-))

cheers
Willem van den Goorbergh

On 1-mrt-2010, at 19:41, Henrik Andersson wrote:


Geografiek wrote:

The theoretical problem remains: myArray knows it contains item1 but
does item1 have a way of knowing it is part of myArray?


The thing is, it is not. The array only holds a reference to the  
object.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] addEventListener Problem

2010-03-02 Thread Geografiek

Hi Susan,
In DisplayPicLoaded you add displayObject as a child of container.
So in navToURL you can reference it as e.currentTarget.displayObject
HTH
Willem van den Goorbergh

On 2-mrt-2010, at 13:59, Susan Day wrote:


2010/3/1 Beatrix Krümmer-Frau 


Did you check the spelling?



Thank you all. Yes, yesterday's lesson was brought to me by the  
letter 'N'

lol.
Today's lesson is different. Here's my code:

function DisplayPicLoaded(evt:Event):void
{
var container:Sprite = new Sprite();
var myXArray:Array = new Array(10,176,342,508,674,840);
var loaderInfo:LoaderInfo = evt.target as LoaderInfo;
var displayObject:DisplayObject = loaderInfo.content;
displayObject.width = 150;
displayObject.height = 150;
displayObject.x = myXArray[countRounds];
displayObject.y = 10;
displayObject.filters = [createBevel()];
container.addChild(displayObject);
addChild(container);
navPics.push(displayObject);
container.addEventListener(MouseEvent.CLICK, navToURL);
if (countRounds < 5)
{
countRounds++;
init();
}
}

function navToURL(e:Event):void
{
e.currentTarget.removeEventListener(MouseEvent.CLICK, navToURL);
Navigate.to("test.html");
}

The above code works fine, but it's only a baby-step toward what I  
need. I'm
confused how to change "test.html" into a dynamic url that depends  
on which
iteration of the displayObject is created in DisplayPicLoaded. I  
believe I'm
supposed to use "e.currentTarget.???" and that's where I'm lost. Of  
course,
e.currentTarget refers to "container", not displayObject. Perhaps I  
could
add an URL element to "container" in DisplayPicLoaded, then  
reference it in

navToURL. Please advise.
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] addEventListener Problem

2010-03-02 Thread Geografiek

Hi Susan,
Didn't you attach that url in DisplayPicLoaded in the line  
displayObject.url = myURLs[countRounds];?
Error 1119 has to do with referring to a non-existent property. Do  
you know which?

Tracing is your friend here I would say.
To be honest I don't know if the Navigate.to line is correct AS3.
HTH
Willem

On 2-mrt-2010, at 14:28, Susan Day wrote:

On Tue, Mar 2, 2010 at 9:15 AM, Geografiek  
 wrote:



Hi Susan,
In DisplayPicLoaded you add displayObject as a child of container.
So in navToURL you can reference it as e.currentTarget.displayObject



Half-way there. I now have this code:

function DisplayPicLoaded(evt:Event):void
{
var container:Sprite = new Sprite();
var myXArray:Array = new Array(10,176,342,508,674,840);
var loaderInfo:LoaderInfo = evt.target as LoaderInfo;
var displayObject:DisplayObject = loaderInfo.content;
displayObject.width = 150;
displayObject.height = 150;
displayObject.x = myXArray[countRounds];
displayObject.y = 10;
displayObject.url = myURLs[countRounds];
displayObject.filters = [createBevel()];
container.addChild(displayObject);
addChild(container);
navPics.push(displayObject);
container.addEventListener(MouseEvent.CLICK, navToURL);
if (countRounds < 5)
{
countRounds++;
init();
}
}

function navToURL(e:Event):void
{
e.currentTarget.removeEventListener(MouseEvent.CLICK, navToURL);
Navigate.to(e.currentTarget.displayObject.url);
}

This throws an error 1119 on this line:

displayObject.url = myURLs[countRounds];

How do I attach that url?
TIA,
Susan
___
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] OOP Books (OT)

2010-03-08 Thread Geografiek

Hi Susan,
I liked 'The Object-Oriented Thought Process' by Matt Weisfeld (not  
Actionscript)

and of course Colin Moock's 'Essential Actionscript 3.0'
HTH
Willem van den Goorbergh

On 5-mrt-2010, at 18:55, Susan Day wrote:

I'm going to start another thread on this, a bit OT. What are the  
best books

for learning OOP?
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing Symbol inside of loaded SWF

2010-03-09 Thread Geografiek

No you can't reference something that is not ther yet.
You need to add an eventlistener to imageloader to listen for the  
loading to complete.
Inside that event listener you can call  
imageLoader.content.testMovie.gotoAndStop(2)

HTH
Willem van den Goorbergh
ps please post your questions to 1 list only

On 9-mrt-2010, at 12:12, Fahim Akhter wrote:


I'm using AS3 here is a little more detail.

I'm loading an swf say "test.swf" which gets loaded in  
imageLoader , so I

can get its content by :

imageLoader.content

So if I wanted one of the movieClips inside it I would do this :

imageLoader.content.testMovie.gotoAndStop(2);

But when I do this, since the movie is not loaded the file is not  
compiled
and gives me an error your referring to something that is not  
there. How

else am I supposed to reference a content that will be loaded later?



On Tue, Mar 9, 2010 at 3:30 PM, Geografiek  
 wrote:



Hi Fahim,
Can be anything.
To give you something to proceed we really need more information.
What are you doing exactly? (what is the code you use to tell the  
symbol to

do an action)
What would you expect to happen?
What is actually happening (error codes etc.)
Willem van den Goorbergh


On 9-mrt-2010, at 9:59, Fahim Akhter wrote:

 Hi,


I have a swf which I load using a customized swf loader. The  
problem I'm
facing is after I load the swf, I want to tell one of its symbol  
to do an

action. But this does not seem to work . Any word on that?



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing Symbol inside of loaded SWF

2010-03-09 Thread Geografiek

Oké, now I understand,
In that case you have to make sure that the user can click only when  
the ball is loaded.
I guess you have an eventListener somewhere that listens for users to  
click.
When you trace for the ball in that eventlistener, do you get the  
expected reference to it?
Maybe your problem arises not from the ball not being loaded but from  
a wrong referencing path.

So you need something like:
myButton.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
and:
private function mouseUpHandler(event:MouseEvent):void {
trace(myLoadedSwf.myBall.myStripeToRecolor);
//do recoloring stuff
}
HTH
Willem

On 9-mrt-2010, at 13:23, Fahim Akhter wrote:


Willem,.

Here is the full scenario. I have a swfLoading class which loads  
SWF for me.
Once the swf is loaded say a ball. I want to click on different  
colors and

change the color of the stripes on the ball.

Now, with what you said I can access things once they are loaded.  
The load
complete function is in my swfLoading class. But at that time, I do  
not want
to change the colors. But I need to change the colors of the ball  
at some

later time.


On Tue, Mar 9, 2010 at 5:07 PM, Glen Pike  
 wrote:


You would probably want to either set a flag, or store a variable  
in your
class / outside your event handler function that is null before  
the content
is loaded.  In other functions that manipulate that clip, you  
should test

that the variable is not null before manipulating it.

Alternatively, you would write a beautiful class that encapsulated  
all of

this after reading up on OOP in AS3.  but for GTD, the above may do.



Fahim Akhter wrote:

I posted it on flexcoders accidently. Then had to update the  
question

there
too. I apologize for that.

Hmm what if I do not want to reference it from inside that event
Listener but a another movie clip who would be later its parent?

On Tue, Mar 9, 2010 at 4:24 PM, Geografiek  


wrote:




No you can't reference something that is not ther yet.
You need to add an eventlistener to imageloader to listen for  
the loading

to complete.
Inside that event listener you can call
imageLoader.content.testMovie.gotoAndStop(2)
HTH
Willem van den Goorbergh
ps please post your questions to 1 list only


On 9-mrt-2010, at 12:12, Fahim Akhter wrote:

 I'm using AS3 here is a little more detail.


I'm loading an swf say "test.swf" which gets loaded in  
imageLoader , so

I
can get its content by :

  imageLoader.content

So if I wanted one of the movieClips inside it I would do this :

  imageLoader.content.testMovie.gotoAndStop(2);

But when I do this, since the movie is not loaded the file is not
compiled
and gives me an error your referring to something that is not  
there. How
else am I supposed to reference a content that will be loaded  
later?




On Tue, Mar 9, 2010 at 3:30 PM, Geografiek  


wrote:

 Hi Fahim,



Can be anything.
To give you something to proceed we really need more information.
What are you doing exactly? (what is the code you use to tell the
symbol
to
do an action)
What would you expect to happen?
What is actually happening (error codes etc.)
Willem van den Goorbergh


On 9-mrt-2010, at 9:59, Fahim Akhter wrote:

 Hi,



I have a swf which I load using a customized swf loader. The  
problem

I'm
facing is after I load the swf, I want to tell one of its  
symbol to do

an
action. But this does not seem to work . Any word on that?




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512

or
cell phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
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


___
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] Accessing Symbol inside of loaded SWF

2010-03-09 Thread Geografiek

So, what's your problem?

On 9-mrt-2010, at 15:33, Fahim Akhter wrote:


testVar.ball.myStripeToReColor.transform can be written as
testVar.someMovieClip.myStripeToReColor.transform

On Tue, Mar 9, 2010 at 7:11 PM, Geografiek  
 wrote:



Fahim,
I think testVar already references 'ball'
so testVar.ball in your last line is wrong.

HTH
Willem van den Goorbergh

On 9-mrt-2010, at 14:36, Fahim Akhter wrote:

 Basically the myLoadedSwf is a child of a class called  
LoadingClass , if I
access myLoadedSwf.myBall.myStripeToReColor inside that class it  
works.


But when I make an instance of the class and myLoadedSwf is a  
child in

that
class. I'm unable to reference the child

var testLoader:LoadingClass = new LoadingClass("ball.swf");
var testVar:MovieClip = testLoader.getChildByName("ball") as  
MovieClip;

testVar.ball.myStripeToReColor.transform = someTransformation

The last line does not work.

On Tue, Mar 9, 2010 at 5:41 PM, Geografiek  


wrote:

 Oké, now I understand,
In that case you have to make sure that the user can click only  
when the

ball is loaded.
I guess you have an eventListener somewhere that listens for  
users to

click.
When you trace for the ball in that eventlistener, do you get the
expected
reference to it?
Maybe your problem arises not from the ball not being loaded but  
from a

wrong referencing path.
So you need something like:
myButton.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
and:
private function mouseUpHandler(event:MouseEvent):void {
  trace(myLoadedSwf.myBall.myStripeToRecolor);
  //do recoloring stuff
}
HTH
Willem


On 9-mrt-2010, at 13:23, Fahim Akhter wrote:

 Willem,.



Here is the full scenario. I have a swfLoading class which  
loads SWF for

me.
Once the swf is loaded say a ball. I want to click on different  
colors

and
change the color of the stripes on the ball.

Now, with what you said I can access things once they are  
loaded. The

load
complete function is in my swfLoading class. But at that time,  
I do not

want
to change the colors. But I need to change the colors of the  
ball at

some
later time.


On Tue, Mar 9, 2010 at 5:07 PM, Glen Pike  


wrote:

 You would probably want to either set a flag, or store a  
variable in

your

class / outside your event handler function that is null  
before the

content
is loaded.  In other functions that manipulate that clip, you  
should

test
that the variable is not null before manipulating it.

Alternatively, you would write a beautiful class that  
encapsulated all

of
this after reading up on OOP in AS3.  but for GTD, the above  
may do.




Fahim Akhter wrote:

 I posted it on flexcoders accidently. Then had to update the  
question



there
too. I apologize for that.

Hmm what if I do not want to reference it from inside that event
Listener but a another movie clip who would be later its parent?

On Tue, Mar 9, 2010 at 4:24 PM, Geografiek  


wrote:



 No you can't reference something that is not ther yet.

You need to add an eventlistener to imageloader to listen  
for the

loading
to complete.
Inside that event listener you can call
imageLoader.content.testMovie.gotoAndStop(2)
HTH
Willem van den Goorbergh
ps please post your questions to 1 list only


On 9-mrt-2010, at 12:12, Fahim Akhter wrote:

 I'm using AS3 here is a little more detail.


 I'm loading an swf say "test.swf" which gets loaded in  
imageLoader ,



so
I
can get its content by :

 imageLoader.content

So if I wanted one of the movieClips inside it I would do  
this :


 imageLoader.content.testMovie.gotoAndStop(2);

But when I do this, since the movie is not loaded the file  
is not

compiled
and gives me an error your referring to something that is  
not there.

How
else am I supposed to reference a content that will be  
loaded later?




On Tue, Mar 9, 2010 at 3:30 PM, Geografiek <
geograf...@geografiek.nl>
wrote:

 Hi Fahim,


 Can be anything.

To give you something to proceed we really need more  
information.
What are you doing exactly? (what is the code you use to  
tell the

symbol
to
do an action)
What would you expect to happen?
What is actually happening (error codes etc.)
Willem van den Goorbergh


On 9-mrt-2010, at 9:59, Fahim Akhter wrote:

 Hi,



 I have a swf which I load using a customized swf loader. The
problem


I'm
facing is after I load the swf, I want to tell one of its  
symbol

to
do
an
action. But this does not seem to work . Any word on that?



 =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=



 Geografiek is a Dutch, Utrecht-based map and chart design  
company.



Willem van den Goorbergh can be contacted by telephone:
(+31)30-2719512
or
cell phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@cha

Re: [Flashcoders] Accessing Symbol inside of loaded SWF

2010-03-09 Thread Geografiek

Hi Fahim,
Can be anything.
To give you something to proceed we really need more information.
What are you doing exactly? (what is the code you use to tell the  
symbol to do an action)

What would you expect to happen?
What is actually happening (error codes etc.)
Willem van den Goorbergh

On 9-mrt-2010, at 9:59, Fahim Akhter wrote:


Hi,

I have a swf which I load using a customized swf loader. The  
problem I'm
facing is after I load the swf, I want to tell one of its symbol to  
do an

action. But this does not seem to work . Any word on that?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing Symbol inside of loaded SWF

2010-03-09 Thread Geografiek

Hi Fahim,
I'm afraid I don't understand your question. What are you trying to  
accomplish?
afaik this is not a matter of 'wanting to'. You just have to wait to  
address something until it is loaded.

Willem

On 9-mrt-2010, at 12:51, Fahim Akhter wrote:

I posted it on flexcoders accidently. Then had to update the  
question there

too. I apologize for that.

Hmm what if I do not want to reference it from inside that event
Listener but a another movie clip who would be later its parent?

On Tue, Mar 9, 2010 at 4:24 PM, Geografiek  
 wrote:



No you can't reference something that is not ther yet.
You need to add an eventlistener to imageloader to listen for the  
loading

to complete.
Inside that event listener you can call
imageLoader.content.testMovie.gotoAndStop(2)
HTH
Willem van den Goorbergh
ps please post your questions to 1 list only


On 9-mrt-2010, at 12:12, Fahim Akhter wrote:

 I'm using AS3 here is a little more detail.


I'm loading an swf say "test.swf" which gets loaded in  
imageLoader , so I

can get its content by :

   imageLoader.content

So if I wanted one of the movieClips inside it I would do this :

   imageLoader.content.testMovie.gotoAndStop(2);

But when I do this, since the movie is not loaded the file is not  
compiled
and gives me an error your referring to something that is not  
there. How

else am I supposed to reference a content that will be loaded later?



On Tue, Mar 9, 2010 at 3:30 PM, Geografiek  


wrote:

 Hi Fahim,

Can be anything.
To give you something to proceed we really need more information.
What are you doing exactly? (what is the code you use to tell  
the symbol

to
do an action)
What would you expect to happen?
What is actually happening (error codes etc.)
Willem van den Goorbergh


On 9-mrt-2010, at 9:59, Fahim Akhter wrote:

 Hi,



I have a swf which I load using a customized swf loader. The  
problem I'm
facing is after I load the swf, I want to tell one of its  
symbol to do

an
action. But this does not seem to work . Any word on that?





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or

cell phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
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] Accessing Symbol inside of loaded SWF

2010-03-09 Thread Geografiek

Fahim,
I think testVar already references 'ball'
so testVar.ball in your last line is wrong.
HTH
Willem van den Goorbergh

On 9-mrt-2010, at 14:36, Fahim Akhter wrote:

Basically the myLoadedSwf is a child of a class called  
LoadingClass , if I
access myLoadedSwf.myBall.myStripeToReColor inside that class it  
works.


But when I make an instance of the class and myLoadedSwf is a child  
in that

class. I'm unable to reference the child

var testLoader:LoadingClass = new LoadingClass("ball.swf");
var testVar:MovieClip = testLoader.getChildByName("ball") as  
MovieClip;

testVar.ball.myStripeToReColor.transform = someTransformation

The last line does not work.

On Tue, Mar 9, 2010 at 5:41 PM, Geografiek  
 wrote:



Oké, now I understand,
In that case you have to make sure that the user can click only  
when the

ball is loaded.
I guess you have an eventListener somewhere that listens for users to
click.
When you trace for the ball in that eventlistener, do you get the  
expected

reference to it?
Maybe your problem arises not from the ball not being loaded but  
from a

wrong referencing path.
So you need something like:
myButton.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
and:
private function mouseUpHandler(event:MouseEvent):void {
   trace(myLoadedSwf.myBall.myStripeToRecolor);
   //do recoloring stuff
}
HTH
Willem


On 9-mrt-2010, at 13:23, Fahim Akhter wrote:

 Willem,.


Here is the full scenario. I have a swfLoading class which loads  
SWF for

me.
Once the swf is loaded say a ball. I want to click on different  
colors and

change the color of the stripes on the ball.

Now, with what you said I can access things once they are loaded.  
The load
complete function is in my swfLoading class. But at that time, I  
do not

want
to change the colors. But I need to change the colors of the ball  
at some

later time.


On Tue, Mar 9, 2010 at 5:07 PM, Glen Pike  


wrote:

 You would probably want to either set a flag, or store a  
variable in your

class / outside your event handler function that is null before the
content
is loaded.  In other functions that manipulate that clip, you  
should test

that the variable is not null before manipulating it.

Alternatively, you would write a beautiful class that  
encapsulated all of
this after reading up on OOP in AS3.  but for GTD, the above may  
do.




Fahim Akhter wrote:

 I posted it on flexcoders accidently. Then had to update the  
question

there
too. I apologize for that.

Hmm what if I do not want to reference it from inside that event
Listener but a another movie clip who would be later its parent?

On Tue, Mar 9, 2010 at 4:24 PM, Geografiek  


wrote:



 No you can't reference something that is not ther yet.

You need to add an eventlistener to imageloader to listen for the
loading
to complete.
Inside that event listener you can call
imageLoader.content.testMovie.gotoAndStop(2)
HTH
Willem van den Goorbergh
ps please post your questions to 1 list only


On 9-mrt-2010, at 12:12, Fahim Akhter wrote:

 I'm using AS3 here is a little more detail.


 I'm loading an swf say "test.swf" which gets loaded in  
imageLoader ,

so
I
can get its content by :

 imageLoader.content

So if I wanted one of the movieClips inside it I would do this :

 imageLoader.content.testMovie.gotoAndStop(2);

But when I do this, since the movie is not loaded the file is  
not

compiled
and gives me an error your referring to something that is not  
there.

How
else am I supposed to reference a content that will be loaded  
later?




On Tue, Mar 9, 2010 at 3:30 PM, Geografiek  


wrote:

 Hi Fahim,


 Can be anything.
To give you something to proceed we really need more  
information.
What are you doing exactly? (what is the code you use to  
tell the

symbol
to
do an action)
What would you expect to happen?
What is actually happening (error codes etc.)
Willem van den Goorbergh


On 9-mrt-2010, at 9:59, Fahim Akhter wrote:

 Hi,



 I have a swf which I load using a customized swf loader.  
The problem

I'm
facing is after I load the swf, I want to tell one of its  
symbol to

do
an
action. But this does not seem to work . Any word on that?



 =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


Geografiek is a Dutch, Utrecht-based map and chart design  
company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512

or
cell phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
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] Passing Call To Child

2010-03-10 Thread Geografiek

Hi Susan,
The error means that 'e.currentTarget.getChildByName(aChild).text'  
dies not exist.
I think the syntax should read e.currentTarget.getChildByName 
("aChild").text (quotes around aChild as the name of an object is a  
string)

HTH
Willem van den Goorbergh

On 10-mrt-2010, at 15:22, Susan Day wrote:

On Wed, Mar 10, 2010 at 10:20 AM, Susan Day  
wrote:



On Wed, Mar 10, 2010 at 9:31 AM, kennethkawam...@gmail.com <
kennethkawam...@gmail.com> wrote:

If "aChild" is a public property of your currentTarget, your code  
would

work.

If not you can use getChildByName()/getChildAt()



It isn't, so I tried this code:

trace(e.currentTarget.getChildByName(aChild).text);

and while it didn't error, it didn't trace anything when I moused  
over :(




Oops. My bad. Moused over the wrong widget. It threw this error:

1009: Cannot access a property or method of a null object.

Now, aChild is generated anew with every iteration; however, it's  
obviously

bound to the currentTarget. Please advise.
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-10 Thread Geografiek

Yes I sent that to the wish list, to make AS4 fairer. ;-)
Did you try the quotes?
Willem

On 10-mrt-2010, at 15:58, Susan Day wrote:

On Wed, Mar 10, 2010 at 10:38 AM, Geografiek  
wrote:



Hi Susan,
The error means that 'e.currentTarget.getChildByName(aChild).text'  
dies not

exist.



But it does too exist! Not fair! :(



I think the syntax should read
e.currentTarget.getChildByName("aChild").text (quotes around  
aChild as the

name of an object is a string)



That made sense, but it still threw the same error. So I tried this:

trace(e.currentTarget.numChildren);

and that, too, threw the same error, collaborating with your  
evaluation.
However, I have these lines in the code that calls the function  
wherein the

trace is defined:

mySprite.addChild(aChild);
addChild(mySprite);

so clearly, mySprite, which is the currentTarget:

mySprite.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverHandler);

does indeed have a child. (This is beginning to remind me of certain
deadbeat fathers who divorce their wives and don't pay alimony  
lol.) What

do?
Susan
___
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] Counting xml attributes

2010-03-26 Thread Geografiek

Hi Theodore,
Something like (code not tested):
var counter:uint = 0;
for each (node in myXml..*) {
if(no...@myatt == givenValue) {
counter++;
}
}
trace(counter);
HTH
Willem van den Goorbergh

On 23-mrt-2010, at 14:20, Lehr, Theodore wrote:

Is there a way to loop through xml and count how many times an  
attribute has a given value?


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] text to array

2010-12-30 Thread Geografiek
Hi Natalia,
Take a look at the String.split() method in the help docs.
HTH,
Willem van den Goorbergh

On 30 dec 2010, at 17:12, natalia Vikhtinskaya wrote:

> Hi
> I need convert text that loads from txt file to array.
> Text looks like these lines:
> ;Start;End;Event;Location;Sponsor;
> ;Start;End;Event;Location;Sponsor;
> ;Start;End;Event;Location;Sponsor;
> …
> I need array of lines [line1,line2,line3,…] How I can do that?
> Thank you in advance.
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] test

2011-01-12 Thread Geografiek
I'm afraid that's not the case.
Willem van den Goorbergh

On 11 jan 2011, at 19:06, Merrill, Jason wrote:

> Perhaps we're all gurus now. :)<\snip>
> 
> Jason Merrill
> Instructional Technology Architect
> Bank of America  Global Learning 

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] checking for properties AS3

2011-02-16 Thread Geografiek
Hi list,
I posted this question a week ago on flash tiger, but never got an answer. So I 
try my luck here.

I create an object and dynamically assign properties to it, values from 
xml-nodes.
If an xml-node has child nodes the property assigned is an object and the 
values of the child nodes are assigned as properties to that object:

private function createProperties(node:XML, container:*):void {
for each (var childNode:XML in node.*) {
if(childNode.children().length() == 0) {
container[childNode.localName()] = null;
} else if(childNode.children().length() == 1) {
container[childNode.localName()] = childNode.*;
} else {
container[childNode.localName()] = new Object();
createProperties(childNode, container[childNode.localName()]);
}
}
}

Now I want to trace what properties are created with the following function:
private function traceProperties(object:Object):void {
for (var prop:* in object) {
trace(prop + " is: " + object[prop]);
traceProperties(prop);
}
if(object.hasOwnProperty("layers")) {
trace("this.layers.gemeenteNaam.title is: " + 
this.layers.gemeenteNaam.title);
trace("this.classes.class1.keyText is: " + this.classes.class1.keyText);
}
}

This traces:
source is: null
note is: null
subTitle is: null
copyright is: Geografiek, 2011
mapType is: chorochromaat
classes is: [object Object]
key is: [object Object]
layers is: [object Object]
this.layers.gemeenteNaam.title is: gemeentenamen
this.classes.class1.keyText is: Noord-Nederland

>From this I gather that all properties are actually created on their desired 
>level (last 2 traced lines).
But the function traceProperties() does not automatically catch all properties. 
At least not the properies inside the objects
How do I check if an object has properties at all and how do I trace them?
TIA
Willem van den Goorbergh

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Geografiek
Hi Cor thanks, but that won't do.
If I write a part out in a tree structure you'll see why:
map
map.classes
map.classes,class1
map.classes,class1.areaColor
map.classes,class1.value
...
map.classes,class2
map.classes,class2.areaColor
map.classes,class2.value
...
...
...
map.layers
...
...
...

With the node..* syntax all properties would be assigned to the same level
But within the classes part class1 and class2 both have a property 'value'.
class2.value would overwrite class1.value.
What I basically want is to transform the xml structure into an object 
structure.
Any other takers?
Tanks
Willem van den Goorbergh

On 16 feb 2011, at 12:50, Cor wrote:

> Hi Willem,
> 
> Not sure, but what if you change this:
>for each (var childNode:XML in node.*) {
> 
> into:
>for each (var childNode:XML in node..*) {
> 
> Groeten,
> Cor van Dooren
> www.codobyte.com
> --
> "There are only 10 types of people in the world:
>   Those who understand binary and those who don't."
> 
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Geografiek
> Sent: woensdag 16 februari 2011 12:44
> To: Flash Coders List
> Subject: [Flashcoders] checking for properties AS3
> 
> Hi list,
> I posted this question a week ago on flash tiger, but never got an answer.
> So I try my luck here.
> 
> I create an object and dynamically assign properties to it, values from
> xml-nodes.
> If an xml-node has child nodes the property assigned is an object and the
> values of the child nodes are assigned as properties to that object:
> 
> private function createProperties(node:XML, container:*):void {
>for each (var childNode:XML in node.*) {
>if(childNode.children().length() == 0) {
>container[childNode.localName()] = null;
>} else if(childNode.children().length() == 1) {
>container[childNode.localName()] = childNode.*;
>} else {
>container[childNode.localName()] = new Object();
>createProperties(childNode, container[childNode.localName()]);
>}
>}
> }
> 
> Now I want to trace what properties are created with the following function:
> private function traceProperties(object:Object):void {
>for (var prop:* in object) {
>trace(prop + " is: " + object[prop]);
>traceProperties(prop);
>}
>if(object.hasOwnProperty("layers")) {
>trace("this.layers.gemeenteNaam.title is: " +
> this.layers.gemeenteNaam.title);
>trace("this.classes.class1.keyText is: " +
> this.classes.class1.keyText);
>}
> }
> 
> This traces:
> source is: null
> note is: null
> subTitle is: null
> copyright is: Geografiek, 2011
> mapType is: chorochromaat
> classes is: [object Object]
> key is: [object Object]
> layers is: [object Object]
> this.layers.gemeenteNaam.title is: gemeentenamen this.classes.class1.keyText
> is: Noord-Nederland
> 
>> From this I gather that all properties are actually created on their
> desired level (last 2 traced lines).
> But the function traceProperties() does not automatically catch all
> properties. At least not the properies inside the objects How do I check if
> an object has properties at all and how do I trace them?
> TIA
> Willem van den Goorbergh
> 
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> Geografiek is a Dutch, Utrecht-based map and chart design company.
> Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or
> cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail:
> Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: www.geografiek.nl
> twitter: @wvdgoorbergh
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> 
> 
> 
> 
> 
> ___
> 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

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Geografiek
Hi Jens,
What I basically want is to transform the xml structure into an object 
structure.
xml:




0xEBDBAA

RA01


0xEBDBAA

RA01



false







flash object:
map
   map.classes
   map.classes,class1
   map.classes,class1.areaColor
   map.classes,class1.value
   ...
   map.classes,class2
   map.classes,class2.areaColor
   map.classes,class2.value
   ...
   ...
   ...
   map.layers
   ...
   ...
   ...

Things seem to work, but I want to traverse the properties tree of the flash 
object and can't get that part working.
Thanks,
Willem van den Goorbergh

On 16 feb 2011, at 13:10, Jens Struwe wrote:

> Having an example XML could be pretty useful.
> 
> And, actually, I don't understand the problem. What should be the output? 
> Please hand over all necessary info required to be able to help you.
> 
> Am 16.02.2011 12:43, schrieb Geografiek:
>> Hi list,
>> I posted this question a week ago on flash tiger, but never got an answer. 
>> So I try my luck here.
>> 
>> I create an object and dynamically assign properties to it, values from 
>> xml-nodes.
>> If an xml-node has child nodes the property assigned is an object and the 
>> values of the child nodes are assigned as properties to that object:
>> 
>> private function createProperties(node:XML, container:*):void {
>> for each (var childNode:XML in node.*) {
>> if(childNode.children().length() == 0) {
>> container[childNode.localName()] = null;
>> } else if(childNode.children().length() == 1) {
>> container[childNode.localName()] = childNode.*;
>> } else {
>> container[childNode.localName()] = new Object();
>> createProperties(childNode, container[childNode.localName()]);
>> }
>> }
>> }
>> 
>> Now I want to trace what properties are created with the following function:
>> private function traceProperties(object:Object):void {
>> for (var prop:* in object) {
>> trace(prop + " is: " + object[prop]);
>> traceProperties(prop);
>> }
>> if(object.hasOwnProperty("layers")) {
>> trace("this.layers.gemeenteNaam.title is: " + 
>> this.layers.gemeenteNaam.title);
>> trace("this.classes.class1.keyText is: " + 
>> this.classes.class1.keyText);
>> }
>> }
>> 
>> This traces:
>> source is: null
>> note is: null
>> subTitle is: null
>> copyright is: Geografiek, 2011
>> mapType is: chorochromaat
>> classes is: [object Object]
>> key is: [object Object]
>> layers is: [object Object]
>> this.layers.gemeenteNaam.title is: gemeentenamen
>> this.classes.class1.keyText is: Noord-Nederland
>> 
>>> From this I gather that all properties are actually created on their 
>>> desired level (last 2 traced lines).
>> But the function traceProperties() does not automatically catch all 
>> properties. At least not the properies inside the objects
>> How do I check if an object has properties at all and how do I trace them?
>> TIA
>> Willem van den Goorbergh
>> 
>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>> Geografiek is a Dutch, Utrecht-based map and chart design company.
>> Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or 
>> cell phone: (+31)6-26372378
>> or by fax: (+31)302719687
>> snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
>> Visit our website at: www.geografiek.nl
>> twitter: @wvdgoorbergh
>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Geografiek
Thanks so much Jens!
Willem van den Goorbergh

On 16 feb 2011, at 14:33, Jens Struwe wrote:

> To recusively dump your complex object you might use:
> 
> function traceProperties(object : Object, depth : uint = 0) : void {
>for (var prop : String in object) {
>   trace (prefix(depth), prop, object[prop]);
>   if (object[prop] is Object) traceProperties(object[prop], depth + 1);
>}
> 
>   function prefix(depth : uint) : String {
>   var prefix : String = "";
>   for (var i : uint = 0; i < depth; i++) prefix += "";
>   return prefix;
>   }
> }
> 
> Anyway, there is also an error in createProperties. Look at the attached test 
> file to compare with my fixes. Hope the list allows me to pass files.
> 
> map [object Object]
> classes [object Object]
> class2 [object Object]
> value RA02
> areaColor 0xFF
> keyText Noord-Nederland2
> class1 [object Object]
> value RA01
> areaColor 0xEBDBAA
> keyText Noord-Nederland
> subTitle k
> layers [object Object]
> gemeenteNaam [object Object]
> visible false
> ....title [object Object]
> nl gemeentenamen
> 
> Best,
> 
> Jens
> 
> Am 16.02.2011 13:29, schrieb Geografiek:
>> Hi Jens,
>> What I basically want is to transform the xml structure into an object 
>> structure.
>> xml:
>> 
>> 
>> 
>> 
>> 0xEBDBAA
>> 
>> RA01
>> 
>> 
>> 0xEBDBAA
>> 
>> RA01
>> 
>> 
>> 
>> false
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> flash object:
>> map
>>map.classes
>>map.classes,class1
>>map.classes,class1.areaColor
>>map.classes,class1.value
>>...
>>map.classes,class2
>>map.classes,class2.areaColor
>>map.classes,class2.value
>>...
>>...
>>...
>>map.layers
>>...
>>...
>>...
>> 
>> Things seem to work, but I want to traverse the properties tree of the flash 
>> object and can't get that part working.
>> Thanks,
>> Willem van den Goorbergh
>> 
>> On 16 feb 2011, at 13:10, Jens Struwe wrote:
>> 
>>> Having an example XML could be pretty useful.
>>> 
>>> And, actually, I don't understand the problem. What should be the output? 
>>> Please hand over all necessary info required to be able to help you.
>>> 
>>> Am 16.02.2011 12:43, schrieb Geografiek:
>>>> Hi list,
>>>> I posted this question a week ago on flash tiger, but never got an answer. 
>>>> So I try my luck here.
>>>> 
>>>> I create an object and dynamically assign properties to it, values from 
>>>> xml-nodes.
>>>> If an xml-node has child nodes the property assigned is an object and the 
>>>> values of the child nodes are assigned as properties to that object:
>>>> 
>>>> private function createProperties(node:XML, container:*):void {
>>>> for each (var childNode:XML in node.*) {
>>>> if(childNode.children().length() == 0) {
>>>> container[childNode.localName()] = null;
>>>> } else if(childNode.children().length() == 1) {
>>>> container[childNode.localName()] = childNode.*;
>>>> } else {
>>>> container[childNode.localName()] = new Object();
>>>> createProperties(childNode, container[childNode.localName()]);
>>>> }
>>>> }
>>>> }
>>>> 
>>>> Now I want to trace what properties are created with the following 
>>>> function:
>>>> private function traceProperties(object:Object):void {
>>>> for (var prop:* in object) {
>>>> trace(prop + " is: " + object[prop]);
>>>> traceProperties(prop);
>>>> }
>>>> if(object.hasOwnProperty("layers")) {
>>>> trace("this.layers.gemeenteNaam.title is: " + 
>>>> this.layers.gemeenteNaam.title);
>&

[Flashcoders] AlivePDF + high resolution

2011-03-02 Thread Geografiek
Hi list,
I use AlivePDF to create PDF files from a display container.
All works well, except that the image in the pdf (created from vectors in the 
display container) is only 72dpi.
I searched the web and found that the way to go is to create a high resolution 
(300dpi) image from the display container first and feed that image to AlivePDF.
In Flex this is done using the mx.graphics.ImageSnapshot class.
But my project is flash AS3 only and mx.graphics seems not to be available in 
Flash.

Also AlivePDF supports high resolutions from v1.5. But the example I got from 
their website (code below) also seems to be Flex-only.
[Embed( source="/assets/cover_300dpi.jpg", mimeType="application/octet-stream" 
)]
private var jpgBytes:Class;
myPdf.addImageStream( new jpgBytes() as ByteArray, 0, 0, 0, 0, 1, 
ImageResize.RESIZE_PAGE );

My question:
Are there any alternatives for Flash or is it possible to implement one of the 
previously mentioned Flex solutions in Flash anyway.
Thanks,
Willem van den Goorbergh


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] currency issue

2011-03-02 Thread Geografiek
Hi Cor,
I would say:
1) convert all the floating points in the currency values to points (I have a 
class that can do that if you need)
2) iterate through all the arrays, convert the items to number and if that 
value !NaN, push the currency values to a new array
3) sort the resulting array numerically and ... voila
HTH
Willem van den Goorbergh

On 26 feb 2011, at 17:39, Cor wrote:

> I read in a txt file with different formats which can be interpreted as
> columns.
> There are 3 types of text files where every line of text is formatted like
> this:
> 
> text - text - currency - currency - text - text - text
> 
> or this:
> 
> text - text - text - currency - currency - currency - text - text - text -
> text
> 
> or this:
> 
> text - text - text - text - currency - currency -  currency - currency -
> text - text - text - text - text
> 
> I trim of all the spaces and put every line in an multidimensional array
> with every item in its sub-array
> I then would like to detect which currency item is the lowest.
> There are empty currency fields, so those have to be discarded.
> All the items are String data type and the "floating point" is a comma
> because it is a European format.
> 
> How can I iterate through these items with the lowest price as result?
> Also any better approach is appreciated!
> 
> 
> regards,
> Cor
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Simple encapsulation question

2011-03-16 Thread Geografiek
Hi Erik,
Can't you use the array of references to tabs to reset the focused state of all 
tabs but the one just clicked?
HTH
Willem van den Goorbergh

On 16 mrt 2011, at 18:00, Mattheis, Erik (MIN-WSW) wrote:

> I have a typical tabbed layout and am trying to figure out the simplest/best 
> way to reset the focused state on the focused tab when another is clicked.
> 
> Classes:
> 
> Tab - contains graphics and a public variable referencing the MovieClip of 
> the over state.
> 
> Header - creates tabs, adds event listeners, contains array of references to 
> tabs and a function to loop through them and remove the over state child.
> 
> Is there a better way - to somehow add an event listener to each tab 
> listening for a click on each other tab? Even if I don't know how many tabs 
> there will be?
> 
> _ _ _
> Erik Mattheis | Weber Shandwick
> P: (952) 346.6610
> M: (612) 377.2272
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is een in Utrecht gevestigd kartografisch bureau
Willem van den Goorbergh is telefonisch bereikbaar onder nummer 030-2719512
of mobiel: 06-26372378
Per fax is Geografiek bereikbaar onder nummer: 030-2719687
postadres: Hooghiemstraplein 89 3514 AX UTRECHT
Bezoek onze website op: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] E4X question: finding parent

2011-05-05 Thread Geografiek
Hi Michael,
how about the following (not tested):
var petsList:XMLList = pets.*;
var sugarDaddy:XMLList = petsList.(pet name == "Sugar");
trace(sugarDaddy@group);
HTH
Willem van den Goorbergh

On 5 mei 2011, at 17:32, Mendelsohn, Michael wrote:

> Hi list...
> 
> I'm trying to find some xml's parent attribute.
> 
> I have  and I want to find "B".
> 
> var pets:XML = 
>   
>   
> 
> 
>   
>   
> ;
> 
> I can't seem to find it.  Anyone know how?
> 
> Thanks,
> - Michael M.
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] using "this" in AS3 classes?

2011-06-08 Thread Geografiek
Hi Micky,
Colin Moock (in EAS3) explicitly advises agains the redundant use of 'this' to 
avoid visual clutter.
When you work in the Flash IDE though (sorry Jason) it has the advantage that 
all variables and methods of 'this' are available in the code hinting 
contextual menu. So I think it's really up to your own preference.
HTH
Willem van den Goorbergh

On 8 jun 2011, at 06:55, Micky Hulse wrote:

> Hi,
> 
> Stupid question, but...
> 
> Let's say I have some class properties:
> 
> private var _mc1:MovieClip;
> private var _mc2:MovieClip;
> 
> ... and methods:
> 
> private function baz():void { ... }
> private function foo():void { ... }
> 
> In my code, would it be overkill to always reference the above
> examples with a prefix of "this"?
> 
> For example:
> 
> this._mc1 = ...;
> this._mc2 = this.mc1;
> this.baz();
> this.foo();
> 
> I could easily do this instead:
> 
> _mc1 = ...;
> _mc2 = mc1;
> baz();
> foo();
> 
> Sorry if silly question, I am just kinda wondering what the pros do. :)
> 
> Best practices?
> 
> Thanks!
> Micky
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] as3 component screen redraw

2011-06-08 Thread Geografiek
Hi list,
In a large project I encounter a strange problem, which I don't know how to 
tackle.
The project is almost done and only now it appears that a significant part of 
the targetted users view the project on a thin client with NX (? completely out 
of my league here).
On 'normal' computers the project behaves as expected but on thin clients 
somethimes (not always) there are problems:
>From what I have seen this is what happens:
- the project loads properly, pulling in all external assets
- regular Flash AS3 components do not redraw properly but behave as expected 
(e.g.: a button is not drawn on screen but for its label (with wrong font). But 
clicking the button label results in expected behaviour.
I know nothing about thin clients, except from what wikipedia learns me (one of 
their drawbacks is poor multimedia performance) and, of course trouble shooting 
is next to impossible as I have no access to a thin client.

My questions:
Does this sound familiar to anybody?
Is there anything I can do from the flash side?
TIA
Willem van den Goorbergh
ps
I put 2 screenshots online at 
www.geografiek.nl/anderen/test/test110608thinClient
The lower image is what most users see, the upper image is what some thin 
client users see




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] as3 component screen redraw

2011-06-08 Thread Geografiek
Hi Hendrik,
Thanks for your quick response but:
a) what might 'something' be?
b) what is the delay rendering system?
Anything I can influence?
Thanks,
Willem van den Goorbergh

On 8 jun 2011, at 14:31, Henrik Andersson wrote:

> My gut instinct says that something is messing with the delay rendering 
> system that the components are using.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is een in Utrecht gevestigd kartografisch bureau
Willem van den Goorbergh is telefonisch bereikbaar onder nummer 030-2719512
of mobiel: 06-26372378
Per fax is Geografiek bereikbaar onder nummer: 030-2719687
postadres: Hooghiemstraplein 89 3514 AX UTRECHT
Bezoek onze website op: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] sneaky AIR

2011-06-09 Thread Geografiek

On 9 jun 2011, at 08:11, Roger Persson wrote:

> By the way how do you remove a program on a mac? Do you just drag it to the 
> wastebasket?


Hi,
No, you shouldn't. That may leave behind a lot of helper files.
Many programs come with an uninstaller. If not, use a program like AppCleaner 
(free) to uninstall.
HTH
Willem van den Goorbergh

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] can't get e.target.data

2011-10-10 Thread Geografiek
> Yes?
>>> 
>>> Karl
>>> 
>>> 
>>> On Oct 8, 2011, at 2:39 AM, Cor wrote:
>>> 
>>>> yes
>>>> 
>>>> 
>>>> -Original Message-
>>>> From: flashcoders-boun...@chattyfig.figleaf.com
>>>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl 
>>>> DeSaulniers
>>>> Sent: zaterdag 8 oktober 2011 9:38
>>>> To: Flash Coders List
>>>> Subject: Re: [Flashcoders] can't get e.target.data
>>>> 
>>>> Well then wouldn't..
>>>> 
>>>> var str:String = e.target.data;
>>>> 
>>>> work?
>>>> 
>>>> Karl
>>>> 
>>>> 
>>>> On Oct 8, 2011, at 2:31 AM, Ross Sclafani wrote:
>>>> 
>>>>> Has to be.
>>>>> 
>>>>> Ross P. Sclafani
>>>>> Design | Technology | Creative
>>>>> 347.204.5714
>>>>> http://ross.sclafani.net
>>>>> http://www.twitter.com/rosssclafani
>>>>> 
>>>>> On Oct 8, 2011, at 3:25 AM, "Cor"  wrote:
>>>>> 
>>>>>> var str:String = String(e.target.data);
>>>>>> 
>>>>>> without new?
>>>>>> 
>>>>>> -Original Message-
>>>>>> From: flashcoders-boun...@chattyfig.figleaf.com
>>>>>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of 
>>>>>> Karl DeSaulniers
>>>>>> Sent: zaterdag 8 oktober 2011 2:44
>>>>>> To: Flash List
>>>>>> Subject: Re: [Flashcoders] can't get e.target.data
>>>>>> 
>>>>>> Maybe set it to a var first?
>>>>>> 
>>>>>> var data:String = e.target.data;
>>>>>> var str:String = new String(data);
>>>>>> 
>>>>>> HTH,
>>>>>> 
>>>>>> Karl
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Oct 7, 2011, at 2:23 PM, John Polk wrote:
>>>>>> 
>>>>>>> Here's a code snippet:
>>>>>>>   var req:URLRequest = new URLRequest(siteUrl + "store/ 
>>>>>>> flash_store2.py?id=" + id + "&pkg=" + pkgID);
>>>>>>>   /*
>>>>>>>   var variables:URLVariables = new URLVariables();
>>>>>>>   loader.dataFormat = URLLoaderDataFormat.VARIABLES;
>>>>>>>   req.method = URLRequestMethod.POST;
>>>>>>>   variables.pkg = pkgID;
>>>>>>>   variables.id = id;
>>>>>>>   req.data = variables;
>>>>>>>   */
>>>>>>>   loader.load(req);
>>>>>>>   loader.addEventListener(Event.COMPLETE, onSendComplete);
>>>>>>>   }
>>>>>>> 
>>>>>>>   private function onSendComplete(e:Event):void
>>>>>>>   {
>>>>>>>   var txt:TextField = new TextField();
>>>>>>>   var myFormat:TextFormat = new TextFormat();
>>>>>>>   myFormat.font = "Arial";
>>>>>>>   myFormat.size = 5;
>>>>>>>   var str:String = new String(e.target.data);
>>>>>>> 
>>>>>>> First up, I find I have to often bypass URLVariables because it 
>>>>>>> simply doesn't work, as is the case here. But the real problem is
>>>>>>> thus:
>>>>>>> 1) When I test this on my Mac, calling the data from my server, 
>>>>>>> everything works fine.
>>>>>>> 2) When I test this on my server, calling the page TTW, 
>>>>>>> everything works fine if "id" has a value and "pkg" does not.
>>>>>>> 3) When I test my python script that generates the data on my 
>>>>>>> server passing a value only for "pkg", everything displays fine; 
>>>>>>> however;
>>>>>>> 4) When I test this on my server, calling the page TTW with no 
>>>>>>> value for "id" and a value for "pkg", e.target.data only serves 
>>>>>>> up this string "->->" which is incomprehensible to me.
>>>>>>> How do I tr

Re: [Flashcoders] swf 2 pdf on the fly

2011-10-28 Thread Geografiek
Hi Cor and Rodrigo,
 I use AlivePdf a lot. I managed to get high resolution pdf's from swf's 
through a little custom class, I'm glad to share if you wish.

I recognise the problems you describe Cor but afaik they do not affect the 
quality of my prints on both platforms.
I googled "Warning: Filter will not render.  The DisplayObject's filtered 
dimensions" which should give you some clues.
HTH
Willem van den Goorbergh

On 28 okt 2011, at 14:22, Cor wrote:

> Hi, 
> 
> Look at AlivePDF.
> I am figuring out how this works with Flash (just started)
> 
> I have issues printing from flash.
> It errors that the size is too big and of that filters can't be printed.
> However, I don't use filters and the size of my MC is 595x842 which is the
> exact size of PrintJob.pageSize
> On Windows it prints OK, but on MAC systems it gives total black prints.
> 
> Can you tell me how you do your printing?
> 
> 
> Best regards,
> Cor van Dooren
> 
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Rodrigo
> Augusto Guerra
> Sent: vrijdag 28 oktober 2011 14:56
> To: Flash Coders List
> Subject: [Flashcoders] swf 2 pdf on the fly
> 
> hi all, 
> 
> I have a flash swf that generates a report inside a mc then print it. ok.
> now my client wants a button 'save to pdf.' not just print...
> 
> The more automated the better, I wonder if someone has any hint on this,
> some tool that I can install on th server and it does that for me ...
> 
> thanks,
> rodrigo
> ___
> 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

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alivePDF

2011-10-31 Thread Geografiek
Hi Rodrigo,
No. as far as I understand the alivePDF methods are just about how the pdf is 
created, page size, orientation, meta information like key words, author etc. 
Basically you create your image (for instance like you said, create a layout 
and fill it with xml data in one mc) and 'feed' this image to AlivePDF.
Don't expect a very versatile pdf however with forms and cross references. It 
is basically a rasterized version of your mc, wrapped in a pdf document.
HTH
Willem van den Goorbergh

On 31 okt 2011, at 15:18, Rodrigo Augusto Guerra wrote:

> hi all... 
> 
> thanks for all the suggestions on the pdf creation, I'm giving a try on the 
> alivePDF. I also find some mention to it on tour de flex, but unfrtunately 
> the link is broken.
> 
> anyone with experience in using alivePDF with flash knows if I can create 
> (draw) all my report layout inside one mc, load the data from a XML on it and 
> then just convert this mc to a pdf? or I have to use the alivePDF methods to 
> create like grids, cels etc..
> 
> is this possible?
> 
> thanks,
> rodrigo.
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Image grid with zoom effect

2011-12-27 Thread Geografiek
At first I thought no, but maybe you do.
Here's some code I used for zooming

var oldScale:Number; // initial scale of the _dpoToZoom 
var newScale:Number; // target scale of the _dpoToZoom  
var scaleFactor:Number = newScale/oldScale;
var globalMouse:Point = new Point(stage.mouseX, stage.mouseY);
var localMouse:Point = _dpoToZoom.parent.globalToLocal(globalMouse);
var deltaX:Number = localMouse.x - _dpoToZoom.x;
var deltaY:Number = localMouse.y - _dpoToZoom.y;
var newX:Number = Math.round((localMouse.x - (deltaX * scaleFactor)));
var newY:Number = Math.round((localMouse.y - (deltaY * scaleFactor)));
TweenLite.to(_dpoToZoom, _tweenDuration, {
scaleX:_currentScale, 
scaleY:_currentScale,
x:newX,
y:newY,
ease:Cubic.easeOut,
});

HTH
Willem van den Goorbergh

On 27 dec 2011, at 15:19, natalia Vikhtinskaya wrote:

> Thank you. Should I convert local x.y to Global x,y for clicked mc?
> 
> 27 декабря 2011 г. 17:02 пользователь Geografiek
>  написал:
>> Hi Natalia,
>> Yes I think that's the general idea. The math is really not that hard.
>> just scaling (always the same) and moving (relative to the position of the 
>> picture clicked)
>> Grab paper and pencil and visualize what you want to achieve to get your 
>> calculations started. It really helps.
>> success
>> Willem van den Goorbergh
>> 
>> On 27 dec 2011, at 13:08, natalia Vikhtinskaya wrote:
>> 
>>> Hi
>>> I want to create image grid with zoom effect similar to this
>>> http://www.zara.com/webapp/wcs/stores/servlet/category/us/en/zara-us-W2011-s/149501/
>>> Click on "event". I need an advice how to place
>>> 
>>> If  I create a grid inside one mainMc how I can manage it? I need to
>>> zoom this mainMc, move all images but clicked image must be in the
>>> centre of the screen. Is this correct idea in general? How to make
>>> calculation? What is the way to solve it?
>>> 
>>> Thank you for any help.
>>> 
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> 
>> 
>> 
>> 
>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>> Geografiek is een in Utrecht gevestigd kartografisch bureau
>> Willem van den Goorbergh is telefonisch bereikbaar onder nummer 030-2719512
>> of mobiel: 06-26372378
>> postadres: Hooghiemstraplein 89 3514 AX UTRECHT
>> Bezoek onze website op: www.geografiek.nl
>> twitter: @wvdgoorbergh
>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378
visiting address: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Image grid with zoom effect

2011-12-27 Thread Geografiek
Hi Natalia,
Yes I think that's the general idea. The math is really not that hard.
just scaling (always the same) and moving (relative to the position of the 
picture clicked)
Grab paper and pencil and visualize what you want to achieve to get your 
calculations started. It really helps.
success
Willem van den Goorbergh

On 27 dec 2011, at 13:08, natalia Vikhtinskaya wrote:

> Hi
> I want to create image grid with zoom effect similar to this
> http://www.zara.com/webapp/wcs/stores/servlet/category/us/en/zara-us-W2011-s/149501/
> Click on “event”. I need an advice how to place
> 
> If  I create a grid inside one mainMc how I can manage it? I need to
> zoom this mainMc, move all images but clicked image must be in the
> centre of the screen. Is this correct idea in general? How to make
> calculation? What is the way to solve it?
> 
> Thank you for any help.
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is een in Utrecht gevestigd kartografisch bureau
Willem van den Goorbergh is telefonisch bereikbaar onder nummer 030-2719512
of mobiel: 06-26372378
postadres: Hooghiemstraplein 89 3514 AX UTRECHT
Bezoek onze website op: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Image grid with zoom effect

2011-12-27 Thread Geografiek
Well, only when the mc is in the centre of the stage and when the left edge of 
the mc is at the 0-coordinate ;-)
mc.x + mc.width/2 is the x-coordinate of the centre (when the left edge of the 
mc is at the 0-coordinate)
Carry on.
Draw it and use real values to test your formulas.
HTH
Willem

On 27 dec 2011, at 14:25, natalia Vikhtinskaya wrote:

> Thank you. I  know that (stage.width-mc.width)/2 gives me center point
> for mc that is on the stage. But I have different situation. mainMc
> has 20 mcs for example. Clicking on any of that mc I should move and
> zoom mainMc and that movement based on the position of the mc that is
> inside mainMc.  How to calculate that or I need another way of
> looking?
> 
> 27 декабря 2011 г. 15:32 пользователь Henrik Andersson
>  написал:
>> natalia Vikhtinskaya skriver:
>>> How to make calculation?
>> 
>> Call up your favorite math teacher and ask him/her to teach you basic
>> geometry and per cent again.
>> ___
>> 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




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is een in Utrecht gevestigd kartografisch bureau
Willem van den Goorbergh is telefonisch bereikbaar onder nummer 030-2719512
of mobiel: 06-26372378
postadres: Hooghiemstraplein 89 3514 AX UTRECHT
Bezoek onze website op: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3: custom cursor

2008-02-13 Thread Geografiek

Hi list,
I posted the following question a few days ago on Flash Tiger but got  
no response there.

Anybody here knows?

I have an mc attached to the mouse as a custom cursor.
Somehow I'm not able to click on buttons etc. in this setup anymore.
It seems as if the display items under the cursor do not recieve  
moude events anymore because the custom cursor is intercepting the  
clicks, although I set both _customCursor.mouseEnabled and  
_customCursor.mouseChildren to false.
When I offset the _customCursor slightly from the actual  
event.stageX  and event.stageY position all works well.

What am I missing?

Here's the code:
//customCursor is called in mouseUp functions of individual tools
private function customCursor(event:MouseEvent):void {
  Mouse.hide();
  for(var kwik:uint = 0 ; kwik < _lengthAll ; kwik++) {
  if(_allToolsArray[kwik].name != event.target.name)
  //do nothing for the moment
  } else if(_allToolsArray[kwik].name == event.target.name) {
  _customCursor = _allToolsArray[kwik];
  _customCursor.mouseEnabled = false;
  _customCursor.mouseChildren = false;
  _customCursor.backDrop.visible = false;
  addChild(_customCursor);
  stage.addEventListener(MouseEvent.MOUSE_MOVE,redrawCursor);
  _customCursor.visible = true;
  } else {
  trace("Clip to drag not found: " + _customCursor.name);
  }
   }
}

//redrawCursor is called by customCursor
private function redrawCursor(event:MouseEvent):void {
_customCursor.x = event.stageX+0;
_customCursor.y = event.stageY-0;
}

thanks,
Willem van den Goorbergh



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3: custom cursor

2008-02-13 Thread Geografiek

Thanks Cedric but that doesn't help.
Only if I get the custom cursor really out of the way (say 15 px or  
so) the underlying button receives the event.
_customCursor.mouseEnabled and  customCursor.mouseChildren both trace  
'false'.
Shouldn't this this prevent the custom cursor from intercepting the  
event?

Pulling my hair,
Willem

Op 13-feb-2008, om 11:54 heeft Cedric Muller het volgende geschreven:


Hello Willem,
I never done Custom cursors in AS3, but did you look at

<http://www.ultrashock.com/#/asset/37933/customcursor/>
<http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug- 
in-actionscript3/>


?


It seems offsetting x and y by 1 pixel is helpful :S

HTH,
Cedric



Hi list,
I posted the following question a few days ago on Flash Tiger but  
got no response there.

Anybody here knows?

I have an mc attached to the mouse as a custom cursor.
Somehow I'm not able to click on buttons etc. in this setup anymore.
It seems as if the display items under the cursor do not recieve  
moude events anymore because the custom cursor is intercepting the  
clicks, although I set both _customCursor.mouseEnabled and  
_customCursor.mouseChildren to false.
When I offset the _customCursor slightly from the actual  
event.stageX  and event.stageY position all works well.

What am I missing?

Here's the code:
//customCursor is called in mouseUp functions of individual tools
private function customCursor(event:MouseEvent):void {
  Mouse.hide();
  for(var kwik:uint = 0 ; kwik < _lengthAll ; kwik++) {
  if(_allToolsArray[kwik].name != event.target.name)
  //do nothing for the moment
  } else if(_allToolsArray[kwik].name == event.target.name) {
  _customCursor = _allToolsArray[kwik];
  _customCursor.mouseEnabled = false;
  _customCursor.mouseChildren = false;
  _customCursor.backDrop.visible = false;
  addChild(_customCursor);
  stage.addEventListener(MouseEvent.MOUSE_MOVE,redrawCursor);
  _customCursor.visible = true;
  } else {
  trace("Clip to drag not found: " + _customCursor.name);
  }
   }
}

//redrawCursor is called by customCursor
private function redrawCursor(event:MouseEvent):void {
_customCursor.x = event.stageX+0;
_customCursor.y = event.stageY-0;
}

thanks,
Willem van den Goorbergh



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3: custom cursor

2008-02-13 Thread Geografiek

Thanks again Cedric,
stage.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor, false);  
didn't make any difference.
The custom cursor is an mc made up of shapes plus 1 child mc, called  
'backDrop'.
backDrop in turn contains a child called 'backDropVis' + a  
transparent shape to define the outer boundaries of the custom cursor.

But then again:
_customCursor.mouseEnabled and  customCursor.mouseChildren both trace  
'false'.

backDrop.visible = false
and shapes don't intercept events, do they?
I did a test with a custom cursor that contained nothing but a shape - 
> same result.

I have no clue what's causing this.
Willem

Op 13-feb-2008, om 16:42 heeft Cedric Muller het volgende geschreven:

I would say 'yes'. What type of graphic is your custom cursor  
symbol (Does it have some transparent background ?)
Out of curiosity and frivolity, did you try to set your listener  
only during the target and bubbling phases (instead of capture) ?


stage.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor, false);

?
Cedric


Thanks Cedric but that doesn't help.
Only if I get the custom cursor really out of the way (say 15 px  
or so) the underlying button receives the event.
_customCursor.mouseEnabled and  customCursor.mouseChildren both  
trace 'false'.
Shouldn't this this prevent the custom cursor from intercepting  
the event?

Pulling my hair,
Willem

Op 13-feb-2008, om 11:54 heeft Cedric Muller het volgende geschreven:


Hello Willem,
I never done Custom cursors in AS3, but did you look at

<http://www.ultrashock.com/#/asset/37933/customcursor/>
<http://www.eclips3media.com/workshop/2007/12/11/custom-cursor- 
bug-in-actionscript3/>


?


It seems offsetting x and y by 1 pixel is helpful :S

HTH,
Cedric



Hi list,
I posted the following question a few days ago on Flash Tiger  
but got no response there.

Anybody here knows?

I have an mc attached to the mouse as a custom cursor.
Somehow I'm not able to click on buttons etc. in this setup  
anymore.
It seems as if the display items under the cursor do not recieve  
moude events anymore because the custom cursor is intercepting  
the clicks, although I set both _customCursor.mouseEnabled and  
_customCursor.mouseChildren to false.
When I offset the _customCursor slightly from the actual  
event.stageX  and event.stageY position all works well.

What am I missing?

Here's the code:
//customCursor is called in mouseUp functions of individual tools
private function customCursor(event:MouseEvent):void {
  Mouse.hide();
  for(var kwik:uint = 0 ; kwik < _lengthAll ; kwik++) {
  if(_allToolsArray[kwik].name != event.target.name)
  //do nothing for the moment
  } else if(_allToolsArray[kwik].name == event.target.name) {
  _customCursor = _allToolsArray[kwik];
  _customCursor.mouseEnabled = false;
  _customCursor.mouseChildren = false;
  _customCursor.backDrop.visible = false;
  addChild(_customCursor);
  stage.addEventListener 
(MouseEvent.MOUSE_MOVE,redrawCursor);

  _customCursor.visible = true;
  } else {
  trace("Clip to drag not found: " + _customCursor.name);
  }
   }
}

//redrawCursor is called by customCursor
private function redrawCursor(event:MouseEvent):void {
_customCursor.x = event.stageX+0;
_customCursor.y = event.stageY-0;
}

thanks,
Willem van den Goorbergh



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flip movie clip

2008-06-13 Thread Geografiek

Hi Bassam,
How about:
function filp(event:MouseEvent):void {
mySampleMC.scaleY *= -1;
mySampleMC.y =  mySampleMC.y - mySampleMC.height;
}
Willem


Op 12-jun-2008, om 14:44 heeft Bassam M het volgende geschreven:


 Hi
I have Video playing in the center of the stage and I'm using  
button to filp

it
function filp(event:MouseEvent):void {

 mySampleMC.scaleY *= -1;
}

mySampleMC.addEventListener(MouseEvent.CLICK, flip);

but the problem when I flip it change Y postion and go up ,
I wnat to flip it and keep it in same postion


Help please

Thanks
Bassam
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Insert breakpoints and run debugger withoutFlashCS3?

2008-06-16 Thread Geografiek

I'm afraid so, it seems to be multipying even ;-)
Willem

Op 16-jun-2008, om 10:40 heeft Ali Drongo het volgende geschreven:


Do you think it'll send every time there's a flashcoders post?


On 16 Jun 2008, at 09:35, Ian Thomas wrote:


I'm guessing it's an away/vacation message.

Ian

2008/6/16 Ali Drongo <[EMAIL PROTECTED]>:

Any chance of a translation?
:)

On 16 Jun 2008, at 09:20, EDELSTAR wrote:

Данный почтовый ящик не  
обрабатывает подгрузки, заявки и  
прочие сообщения.
Вам нужно написать на адрес,  
присвоенный Вашему СПО.



___
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



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] custom map image geocoding service?

2008-06-17 Thread Geografiek
That is, only if his base map actually is in Mercator projection  
(which I doubt).

Rich, first you have to find out the actual projection of your base map.
Only after that you can do the math.
For more info on map projections: http://www.csiss.org/map-projections
If you are north american based you might get more info here: http:// 
www.nacis.org

HTH
Willem van den Goorbergh

Op 17-jun-2008, om 9:34 heeft Haris KRAJINA het volgende geschreven:


Hehe

Google Mercator projection and start doing math . I started working  
on maps

too and as I can see my employer uses Mercator projection algorithm to
calculate x,y. So my advice to you is to get started with that if  
you don't

find service that will help you.


Greetings


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rich
Rodecker
Sent: Monday, June 16, 2008 10:05 PM
To: Flash Coders List; [EMAIL PROTECTED]
Subject: [Flashcoders] custom map image geocoding service?

I'm building a flash app which requires some mapping  
functionality.  It's
relatively simple, so I'm not sure that it needs all the bells and  
whistles
that come with using google's or yahoo's map services. Basically we  
have a
static U.S./Canada map image (no pan or zoom) that has some  
interactive
markers overlaid on it...pretty much a heatmap I guess.  We're  
already set
up with receiving the latitude and longitude coordinates, now i  
just need to
translate that into x,y positions on the map.  I know there are  
services out
there that handle this, but I've been searching for a while and  
most of the
results reference back to google or yahoo maps, so I'm thinking I'm  
not

suing the right search terms.  Does anyone know where I can get this
done...or any other tips/advice that might help?
Thanks,

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





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] tree component

2008-07-01 Thread Geografiek

Hi list,

I posted this question earlier on the Flash tiger list, but got no  
response there.Maybe here somebody knows?



I'm in search for a tree component (preferably AS2 ánd AS3) that
allows to select multiple nodes and display somehow which nodes are
selected.
A commercial component is ok.
Does such a tree component exist?I tried the tree components from  
Astra-flash (Yahoo), Jumpeye and Flashloaded with no success.



Thanks,
Willem van den Goorbergh



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Warning: 3596: Duplicate variable definition.

2008-07-01 Thread Geografiek

It's a wildcard I think. clip can be of any type.
Willem

Op 1-jul-2008, om 12:10 heeft Kerry Thompson het volgende geschreven:


Steven Sacks:


var clip:* = e.target;
var buttons:Array = (clip.buttonType == 1) ? _subMenuButtons:
_menuButtons;


Nice, Steve.

One syntax question--the use of clip:*

Before I sent my original response to the post, I tried var clip =  
e.target.

Of course, it failed without the type *

I haven't run into that syntax before. What does the asterisk do  
for the var

type?

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Warning: 3596: Duplicate variable definition.

2008-07-01 Thread Geografiek

Hi Kerry,
I understand you got an error not typing your variable in 'var clip =  
e.target;'

I tried 'var type = "myType";', which gave no error.
Appearantly in some cases you _need_ to type a variable, in other  
cases you don't (!?)
In my case Flash automatically assigns String as the data type to  
'type'. (maybe only for primitive data types?)
Because in your case somehow you need to type the var, but don't know  
yet the actual type the * comes in handy.

my 2ct
Willem

Op 1-jul-2008, om 12:41 heeft Kerry Thompson het volgende geschreven:


Geografiek wrote:


It's a wildcard I think. clip can be of any type.


That's what I suspected. What is the advantage, then, of using the  
wildcard,

rather than an untyped variable?

I don't mean to sound argumentative--I'm just trying to understand  
one of

ActionScript's nooks and crannies.

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] tree component

2008-07-01 Thread Geografiek
Yes, but I'm afraid that means something different: node captions can  
span more than one line.
What I want is to select nodes wthout deselecting the previously  
selected node.
A techie at Flashloaded told me that the feature is on the wishlist  
but not implemented yet.

Thanks anyway,
Willem van den Goorbergh

Op 1-jul-2008, om 14:25 heeft John R. Sweeney Jr het volgende  
geschreven:



and Flashloaded with no success.


http://www.flashloaded.com/flashcomponents/advancedtree/


Additional AS3 only Features:

• Multiline node support


===
John R. Sweeney Jr.([EMAIL PROTECTED])
Interactive Multimedia Developer/
Digital Media Specialist

OnDemand - Interactive, Inc.
847.651.4469 (cell)  847.310.5959 (office/fax)
===


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error #1009 and gotoAndStop()

2008-07-14 Thread Geografiek

Hi,
Shouldn't that be
_label.text = "label";?
HTH
Willem

Op 12-jul-2008, om 14:00 heeft Pavel Krůšek het volgende geschreven:


Hi List,

i have MovieClip with some keyframes, on each keyframe is dynamic  
TextField with different properties (font, color etc.).


In constructor - class NavigationItem.as I'm trying to jump to  
frame and fill TextField with some text:




gotoAndStop( _level );
_label.text = label;
_label.autoSize = TextFieldAutoSize.LEFT;



TypeError: Error #1009: Cannot access a property or method of a  
null object reference.


It is clear for me - the script runs before frame in the animation  
has been reached, but how it fix?


Thanks

Pavel



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] fonts and stylesheets in AS3

2008-07-23 Thread Geografiek

Hi list,
I try to format a font in a TextField with the following code:


//@@ instantiate verdanaBold
//@@ in the lib exists a font symbol 'verdanaBold' exported for AS
var myVerdanaBold:Font = new verdanaBold();

//@@ define styleSheet
var mySs1:StyleSheet = new StyleSheet();
var heading:Object = new Object();
var body:Object = new Object();
heading.font = myVerdanaBold.fontName;
//@@ or??
//heading.fontFamily = "verdanaBold";
heading.fontSize = 24;
heading.fontWeight = "bold";
heading.color = "#FF";
body.color = "#FF";
body.italic = "italic";
mySs1.setStyle(".heading",heading);
mySs1.setStyle("body",body);


//@@ define TextField
var myTxtF1:TextField = new TextField();
myTxtF1.x = 100; myTxtF1.y = 200;

//@@ the following line prevents the text from showing
	//@@ if disabled the text shows correct (but for the desired Verdana  
of course

myTxtF1.embedFonts = true;

myTxtF1.styleSheet = mySs1;
myTxtF1.htmlText = "Why is font  
handling in CS3 so intimidating??";

addChild(myTxtF1);

I'm doing something wrong in the font assignment department but what??
Thanks,
Willem van den Goorbergh

Finally: (just to vent my frustration, skip this is you want ;-))
Why is it that font handling in CS3 is so  @[EMAIL PROTECTED] intimidating?
- There are multiple strategies to make a font available to  
TextFields, but not one that seems to be better than others for  
general purposes
- You need to apply mutually dependent settings in different places  
to get things right
(e.g. create a font symbol *and* export it for AS (why not in the  
same window like all other symbols??) *and* assign a value to the  
font property of a TextFormat object *and* assign that TextFormat to  
a Textfield *and* set myTfld.embedFonts (why is this not a property  
of TextFormat. When I define a font there, it's obvious that I want  
to embed that font in the textField the textFormat is assigned to)  
When one of these settings is incorrect Flash fails silently in some  
cases (just displays nothing, no placeholders for missing characters,  
no error message, nothing))
- The cs3 help docs contain plain errors (I remember 'myTfld.html'  
but this generates an error because the property html doesn't exist  
in AS3
- Again in the help docs, in the part explaining style sheets, the  
harderst part (defining the font family) is left out of the example
- syntax is inconsistent. When I want to format existing text I need  
a method 'myTfld.setTextFormat(myTfmt2)' but when I want to format  
text to be added afterwards I suddenly need a property  
myTfld.defaultTextFormat = myTfmt2' (where did AS2's setNewTextFormat 
() method go?)
- why is the way text in TextArea components is formatted so  
different from formatting TextFields
(e.g. myTextArea.setStyle("embedFonts", true) versus  
myTfld.embedFonts = true;

and many more ..



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] SOLVED++: fonts and stylesheets in AS3

2008-07-23 Thread Geografiek

Hi,
I solved my problem (and some more, see below)
The wrong line in my code appeared to be:

heading.font = myVerdanaBold.fontName;

I changed it in:
heading.fontFamily = myVerdanaBold.fontName;
and al was well.
The the exact phrase  'fontFamily' is crucial here (but it doesn't  
appear as a key word!) !!??


Also it appears that the V3 TextArea component doesn't support  
stylesheets.

I found this page:
http://www.sharedknowhow.com/2008/07/fixed-flash-textarea-css- 
incompatibility/
It provides a very simple (meaning: understandable, even for me)  
explanation + solution.
Even I can apply a stylesheet to a V3 TextArea now. Must be peanuts  
for most of you.

cheers
Willem van den Goorbergh

Op 23-jul-2008, om 12:53 heeft Geografiek het volgende geschreven:


Hi list,
I try to format a font in a TextField with the following code:


//@@ instantiate verdanaBold
//@@ in the lib exists a font symbol 'verdanaBold' exported for AS
var myVerdanaBold:Font = new verdanaBold();

//@@ define styleSheet
var mySs1:StyleSheet = new StyleSheet();
var heading:Object = new Object();
var body:Object = new Object();
heading.font = myVerdanaBold.fontName;
//@@ or??
//heading.fontFamily = "verdanaBold";
heading.fontSize = 24;
heading.fontWeight = "bold";
heading.color = "#FF";
body.color = "#FF";
body.italic = "italic";
mySs1.setStyle(".heading",heading);
mySs1.setStyle("body",body);


//@@ define TextField
var myTxtF1:TextField = new TextField();
myTxtF1.x = 100; myTxtF1.y = 200;

//@@ the following line prevents the text from showing
	//@@ if disabled the text shows correct (but for the desired  
Verdana of course

myTxtF1.embedFonts = true;

myTxtF1.styleSheet = mySs1;
myTxtF1.htmlText = "Why is font  
handling in CS3 so intimidating??";

addChild(myTxtF1);

I'm doing something wrong in the font assignment department but what??
Thanks,
Willem van den Goorbergh

Finally: (just to vent my frustration, skip this is you want ;-))
Why is it that font handling in CS3 is so  @[EMAIL PROTECTED] intimidating?
- There are multiple strategies to make a font available to  
TextFields, but not one that seems to be better than others for  
general purposes
- You need to apply mutually dependent settings in different places  
to get things right
(e.g. create a font symbol *and* export it for AS (why not in the  
same window like all other symbols??) *and* assign a value to the  
font property of a TextFormat object *and* assign that TextFormat  
to a Textfield *and* set myTfld.embedFonts (why is this not a  
property of TextFormat. When I define a font there, it's obvious  
that I want to embed that font in the textField the textFormat is  
assigned to) When one of these settings is incorrect Flash fails  
silently in some cases (just displays nothing, no placeholders for  
missing characters, no error message, nothing))
- The cs3 help docs contain plain errors (I remember 'myTfld.html'  
but this generates an error because the property html doesn't exist  
in AS3
- Again in the help docs, in the part explaining style sheets, the  
harderst part (defining the font family) is left out of the example
- syntax is inconsistent. When I want to format existing text I  
need a method 'myTfld.setTextFormat(myTfmt2)' but when I want to  
format text to be added afterwards I suddenly need a property  
myTfld.defaultTextFormat = myTfmt2' (where did AS2's  
setNewTextFormat() method go?)
- why is the way text in TextArea components is formatted so  
different from formatting TextFields
(e.g. myTextArea.setStyle("embedFonts", true) versus  
myTfld.embedFonts = true;

and many more ..



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Geografiek

Hi Michael,
I agree embedding fonts in Flash is a pain.
I don't think you can define a range of characters in an exported  
font symbol in the Flash IDE.

(as stated in www.betriebsraum.de).
developer.yahoo.com describes the flex approach.
You might try the following:
Define 2 dynamic text field off stage (one for each font) and define  
the character range there.

These characters should now be available to all text fields in the .swf
*Should* work, but with Flash and font you never know :(
HTH
Willem

Op 18-aug-2008, om 10:49 heeft Michael William Ypes het volgende  
geschreven:


Something that should be sooo easy always seems to be a real  
struggle in flash. I had finally worked out how to do it in as2 and  
now all the parameters have changed again in as3.


I have read various articles on the subject and get most of it. I  
have one swf with two font symbols exported in the library and used  
registerfonts. These are now available in my other swf that is  
loading them, however I want it to be multi lingual and therefore  
have different font libraries.


The bit I am falling down on is defining the character sets. Now if  
I had a texfield then I would just choose the character sets but I  
cannot see how to do that with a font symbol.


Any help, different approach, links much appreciated, I hate flash  
and fonts - nothing but a pain!!


Links I have already seen:

http://www.betriebsraum.de/blog/2007/06/22/runtime-font-loading- 
with-as3-flash-cs3-not-flex/


http://developer.yahoo.com/flash/articles/runtime-fonts-as3.html

Please note that this is for the flash IDE and not flex.

Cheers

M



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Q: organizing packages and classes

2007-08-15 Thread Geografiek

Hi list,
I have al class named 'FormatDecimalen' in a file named  
'FormatDecimalen.as'
The class is wrapped in an unnamed package. All is well when i call  
the class from a .fla-file.
The .fla is in another location on my HD and points to the class path  
'myHD/myProjects/nl/geografiek/utilities'


Now I want to name the package containing 'FormatDecimalen' to  
'nl.geografiek.utilities'.

My file structure is as follows:
myHD
|_ myProjects
|_ nl
|_ geografiek
|_ utilities
|_ FormatDecimalen.as


When I wrap the class in a named package it breaks. When I compile  
the .fla get an error:

"5001:
The name of package 'nl.geografiek.utilities' does not reflect the  
location of this file.
Please change the package definition's name inside this file, or move  
the file.

/Volumes/myHD/ myProjects/nl/geografiek/utilities/FormatDecimalen.as"

What am I doing wrong?
thanks,
Willem van den Goorbergh


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: organizing packages and classes

2007-08-15 Thread Geografiek

Hi Ian,
Thanks for your quick response.
This is AS3 actually.
Class paths point to both the folder the class file is in and the  
'parentfolder' of 'nl': 'myProjects'

The package definition reads: 'package nl.geografiek.utilities {'
(I get the same error when I change this to 'package utilities {' btw)
But still no luck.
Willem

Op 15-aug-2007, om 14:28 heeft Ian Thomas het volgende geschreven:


Make the .fla classpath point to: 'myHD/myProjects'

f you're using AS2, in your FormatDecimalen.as file change the line:
  class FormatDecimalen {
to read:
  class nl.geografiek.utilities.FormatDecimalen {

If you're using AS3, in your FormatDecimalen.as file change the line:
  package {
to read:
  package nl.geografiek.utilities {

Hope that's helpful,
   Ian

On 8/15/07, Geografiek <[EMAIL PROTECTED]> wrote:


Hi list,
I have al class named 'FormatDecimalen' in a file named
'FormatDecimalen.as'
The class is wrapped in an unnamed package. All is well when i call
the class from a .fla-file.
The .fla is in another location on my HD and points to the class path
'myHD/myProjects/nl/geografiek/utilities'

Now I want to name the package containing 'FormatDecimalen' to
'nl.geografiek.utilities'.
My file structure is as follows:
myHD
|_ myProjects
|_ nl
|_ geografiek
|_ utilities
|_ FormatDecimalen.as


When I wrap the class in a named package it breaks. When I compile
the .fla get an error:
"5001:
The name of package 'nl.geografiek.utilities' does not reflect the
location of this file.
Please change the package definition's name inside this file, or move
the file.
/Volumes/myHD/ myProjects/nl/geografiek/utilities/FormatDecimalen.as"

What am I doing wrong?
thanks,
Willem van den Goorbergh




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: organizing packages and classes

2007-08-15 Thread Geografiek

Thanks again Ian,
This works (but)
I removed all class paths but the path to the native flash classes  
and the path to my own classes (i.e. the parent of 'nl')

This removed the 5001 error.
instead I get another error:
'1046: Type was not found or was not a compile-time constant:  
FormatDecimalen.'


(my fla contains
import nl.geografiek.utilities.FormatDecimalen;
var mijnFormat:FormatDecimalen = new FormatDecimalen();)

I can get rid of it only if I add the class path to the parent of  
the .as file ('utilities'), but this introduces the 5001 error again.

Willem

Op 15-aug-2007, om 15:06 heeft Ian Thomas het volgende geschreven:


Hi Willem,
   Your class path shouldn't point to the folder that the class is  
in - only

to the parent folder of 'nl'.

HTH,
   Ian

On 8/15/07, Geografiek <[EMAIL PROTECTED]> wrote:


Hi Ian,
Thanks for your quick response.
This is AS3 actually.
Class paths point to both the folder the class file is in and the
'parentfolder' of 'nl': 'myProjects'
The package definition reads: 'package nl.geografiek.utilities {'
(I get the same error when I change this to 'package utilities {'  
btw)

But still no luck.
Willem

Op 15-aug-2007, om 14:28 heeft Ian Thomas het volgende geschreven:


Make the .fla classpath point to: 'myHD/myProjects'

f you're using AS2, in your FormatDecimalen.as file change the line:
  class FormatDecimalen {
to read:
  class nl.geografiek.utilities.FormatDecimalen {

If you're using AS3, in your FormatDecimalen.as file change the  
line:

  package {
to read:
  package nl.geografiek.utilities {

Hope that's helpful,
   Ian

On 8/15/07, Geografiek <[EMAIL PROTECTED]> wrote:


Hi list,
I have al class named 'FormatDecimalen' in a file named
'FormatDecimalen.as'
The class is wrapped in an unnamed package. All is well when i call
the class from a .fla-file.
The .fla is in another location on my HD and points to the class  
path

'myHD/myProjects/nl/geografiek/utilities'

Now I want to name the package containing 'FormatDecimalen' to
'nl.geografiek.utilities'.
My file structure is as follows:
myHD
|_ myProjects
|_ nl
|_ geografiek
|_ utilities
|_ FormatDecimalen.as


When I wrap the class in a named package it breaks. When I compile
the .fla get an error:
"5001:
The name of package 'nl.geografiek.utilities' does not reflect the
location of this file.
Please change the package definition's name inside this file, or  
move

the file.
/Volumes/myHD/ myProjects/nl/geografiek/utilities/ 
FormatDecimalen.as"


What am I doing wrong?
thanks,
Willem van den Goorbergh





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is een in Utrecht gevestigd kartografisch bureau
Willem van den Goorbergh is telefonisch bereikbaar onder nummer  
030-2719512

of mobiel: 06-26372378
Faxen kun je sturen naar: 030-2719687
postadres: Hooghiemstraplein 89 3514 AX UTRECHT
Bezoek onze website op: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: organizing packages and classes SOLVED

2007-08-15 Thread Geografiek

Blush,
It appeared that somewhere on the way I changed a folder name higher  
up in the hierarchie without changing the class path.

This kind of thing cost half a day of anger and frustration.
Thanks for straightening things out Ian,
Willem

Op 15-aug-2007, om 16:13 heeft Ian Thomas het volgende geschreven:


Sorry, Willem - you must still have something set up incorrectly.

Without seeing your project files, I can't help further.

To recap:
- The class path should be set to the folder _above_ 'nl'
- The package definition should read 'package  
nl.geografiek.utilities {'
- The class definition (inside the package definition) should read  
'class

FormatDecimalen {'
- The import should be 'import  
nl.geografiek.utilities.FormatDecimalen;'


If all those are correct, it should work - check for spelling and
capitalisation errors, too.

Cheers,
   Ian


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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

2007-08-23 Thread Geografiek

Hi list,
The following puzzles me:

//code in frame 1
1 var xmlData:xml;
2 trace(typeof(xmlData));   //'object' not 
xml??

//mijnXml.getHetXmlObject() is a method of a custom class that is  
supposed to return an xml-object

//code that loads the xml is ommitted
3 trace(typeof(mijnXml.getHetXmlObject())); //'object' not xml??
4 xmlData = mijnXml.getHetXmlObject();

//called from a button I have the following:
6 trace(typeof(mijnXml.getHetXmlObject())); //'xml'
7 trace(typeof(xmlData));   //'object' ???


My questions:
Why does flash see 'xmlData' as an object in line 2 although I  
specifically type it as 'xml' in line 1?


I understand that in line 3 somehow flash has not yet determined the  
type of the variable (not yet fully loaded?). Only after a while it  
'sees' the correct type (line 6). Is that correct?


From Moock's EAS3 (p30) I understand that, as the type of the  
original variable (returned by mijnXml.getHetXmlObject()) is an  
object (line 3), xmlData holds only a _reference_ to the original  
variable.
Thus, when the original variable changed to type 'xml', xmlData  
should also become type 'xml'. But according to line 7 it is still an  
object.

Why??
Thanks,
Willem van den Goorbergh



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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

2007-08-23 Thread Geografiek

Sorry, typo
The fla says 'var xmlData:XML'.
Any other suggestions?
Thanks,
Willem

Op 23-aug-2007, om 10:16 heeft Cedric Muller het volgende geschreven:


and if you do:

var xmlData:XML;

??
Cedric


var xmlData:xml;




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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

2007-08-23 Thread Geografiek

Hi Cedric,
Thanks.
var xmlData:XML = new XML(); did the trick.

About
typeof doesn't and will never return XML as a result. Look up the  
table in the help panel for 'typeof':

I've got a different help :-) which promises that typeof returns:
Array   object
Boolean boolean
Functionfunction
int number
Number  number
Object  object
String  string
uintnumber
XML xml
XMLList xml

Willem van den Goorbergh

Op 23-aug-2007, om 11:30 heeft Cedric Muller het volgende geschreven:


look, maybe, here ...

//  just declaring the dataType won't be enough
var xmlData:XML;
trace(xmlData instanceof XML);  //  <- outputs: false

//  declaring the dataType and assigning an instance of XML
var xmlData:XML = new XML();
trace(xmlData instanceof XML);  //  <- outputs: true


typeof doesn't and will never return XML as a result. Look up the  
table in the help panel for 'typeof':


String:string
Movie clip:movieclip
Button:object
Text field:object
Number:number
Boolean:boolean
Object:object
Function:function


hth,
Cedric




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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

2007-08-23 Thread Geografiek
t) break;
   }

   if (!lResult) break;
  }

  return lResult;
 }

 public static function arrayContainsType (pArray:Array,
pType:Object):Boolean {
  var lResult:Boolean = false;

  //walk through array, as soon as the result doesnt match the  
given type

break
  for (var i:Number = 0; i < pArray.length; i++) {
   lResult = isType (pArray[i], pType);
   if (lResult) break;
  }
  return lResult;
 }


 /**
 * Returns value if it is of the given type, null otherwise.
 *
 * @param pObject the object to type check
 * @param pType the type to validate given as a class ie String or  
MovieClip

 * @return   pObject is of type pType, null otherwise
 */
 public static function ensureType (pObject:Object,  
pType:Object):Object {

  return isType (pObject, pType)?pObject:null;
 }

}


On 8/23/07, Cedric Muller <[EMAIL PROTECTED]> wrote:


look, maybe, here ...

//  just declaring the dataType won't be enough
var xmlData:XML;
trace(xmlData instanceof XML);  //  <- outputs: false

//  declaring the dataType and assigning an instance of XML
var xmlData:XML = new XML();
trace(xmlData instanceof XML);  //  <- outputs: true


typeof doesn't and will never return XML as a result. Look up the
table in the help panel for 'typeof':

String:string
Movie clip:movieclip
Button:object
Text field:object
Number:number
Boolean:boolean
Object:object
Function:function


hth,
Cedric


Sorry, typo
The fla says 'var xmlData:XML'.
Any other suggestions?
Thanks,
Willem

Op 23-aug-2007, om 10:16 heeft Cedric Muller het volgende  
geschreven:



and if you do:

var xmlData:XML;

??
Cedric


var xmlData:xml;






=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] creating variable names dynamically in AS3

2007-08-30 Thread Geografiek

Hi,
In AS2 in a for loop I would create a variable dynamically with:
var this[nsPrefix + "NS"]:Namespace = new Namespace(ns.uri);

In AS3 I get an error:
"1084: Syntax Error: expecting identifier before this".
How would I name this variable dynamically in AS3?
thanks,
Willem van den Goorbergh


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] creating variable names dynamically in AS3

2007-08-31 Thread Geografiek

Hi Eka,
Works like a charm. Thanks.
Willem van den Goorbergh

Op 31-aug-2007, om 10:14 heeft eka het volgende geschreven:


Hello :)

for me your notation in AS2 is false too... you can't use the 'var'  
keyword

and the 'this' keyword after. The compiler throw an error.

If you want use dynamic variables ... for me the best way it's an  
HashMap or

an Object :

# Use an Object :

var items = {} ;

for (var i:Number = 0 ; i<10 ; i++)
{
  var item:Type = new Type() ; // you can test the type of your  
object

with a local variable in your loop
  items[ "my_var" + i] = item ;
}

# Use an HashMap implementation like my implementation in VEGAS :
http://code.google.com/p/vegas/

Documentation : http://vegas.ekameleon.net/docs/vegas/data/map/ 
HashMap.html

Example :

import vegas.data.map.HashMap ;

var map:HashMap = new HashMap() ;

for (var i:Number = 0 ; i<10 ; i++)
{
  var value:Type = new Type() ; // you can test the type of  
your object

with a local variable in your loop
  var name:String = "key" + i ;
  map.put( key, value ) ;
}

trace( map.get( 'key2' ) ) ;
trace( map.containsKey('key3') ) ;
trace( map.isEmpty() ) ;
// etc..

EKA+ :)

2007/8/30, Geografiek <[EMAIL PROTECTED]>:


Hi,
In AS2 in a for loop I would create a variable dynamically with:
var this[nsPrefix + "NS"]:Namespace = new Namespace(ns.uri);

In AS3 I get an error:
"1084: Syntax Error: expecting identifier before this".
How would I name this variable dynamically in AS3?
thanks,
Willem van den Goorbergh



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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

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


Re: [Flashcoders] AS3 Events, Delegates and passing parameters

2007-09-03 Thread Geografiek

A backward OOP-developer? (sometimes also called a 'pooh'-developer) :)
Willem

Op 2-sep-2007, om 18:46 heeft Kerry Thompson het volgende geschreven:


EKA+ wrote:


The event model concept it's not very for a newbee POO
developper


I understand your point, and agree.

I must have been asleep at the switch, though. What is a POO  
developer?


Cordially,

Kerry Thompson



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3: dynamically accessing parts of XML

2007-09-04 Thread Geografiek

Hi list,
I have an XML object (listed below)
I can access a node like, for instance:
trace(myXml.MAMMAL.*) //traces: humancowdog

Now I want to access nodes dynamically through a function like:
function traceNode (thisNode:String):void {
trace(myXml[thisNode].*;
}
traceNode(MAMMALS) works fine because it's a first generation child  
of myXml


but traceNode(MAMMAL) returns empty (because MAMMAL is of a younger  
generation?)
Eventually I want to be able to access even the whale dynamically by  
passing it's 'path' through an argument of my function.

How would I do that?
Thanks,
Willem van den Goorbergh

xml follows:
var myXml:XML =


human
cow
dog


blackbird
dove


fishAndChips
goldfish
herring
shark
whale




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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

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


Re: [Flashcoders] AS3: dynamically accessing parts of XML

2007-09-05 Thread Geografiek

Thanks Rich,
Works like a charm.
Based on this I even succeeded in passing a number of required  
'ancestor'-names.

Thamks!
Willem van den Goorbergh

Op 5-sep-2007, om 12:56 heeft Rich Shupe het volgende geschreven:

Here are two quick ways of doing it, depending on whether you want  
child

nodes or the element itself. Both are shown in the trace so you can
experiment and modify this to suit your needs.

var myXML:XML = 

human
cow
dog


blackbird
dove

test



fishAndChips
goldfish
herring
shark
whale

;

function traceNode (xmlObj:XML, nodeName:String):void {
for each (var element:XML in xmlObj..*) {
if (element.name() == nodeName) {
trace(element);
}
}
trace("--");
trace(xmlObj..*.(name() == nodeName));
}

traceNode(myXML, "FISH");


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

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





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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

2007-09-07 Thread Geografiek

Hi Veiky,
How about cloning your data grid to a seperate frame and scale it  
down, so that all rows fit on stage (so small they are probably  
unreadable on screen). You can set this frame as the target to be  
printed.

HTH,
Willem van den Goorbergh

Op 6-sep-2007, om 16:43 heeft Vivek Gaikwad het volgende geschreven:


Hi,



I have a DataGrid on the stage having almost 70 rows. A vertical  
scrollbar

appears since these many rows can't fit in one shot.

When I print this movie, the rows which were visible from the  
DataGrid only

get printed. What if I want to print the entire DataGrid(all 70 rows)?

peace, veiky




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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

2008-01-21 Thread Geografiek

Hi Dave,
I would ask the designer to put all the text in dynamic textFields  
(and fill them w3ith dummy text).
You can than adress these TextFields and fill them with text from a  
database at runtime, depending on a 'language' flag.

HTH,
Willem van den Goorbergh

Op 21-jan-2008, om 13:26 heeft Dave Mennenoh het volgende geschreven:

I may be doing an app that has to be deployed in various languages,  
and I'm trying to find a good method of doing it. I guess my main  
issue is that the interface is Flash, and would be created by a  
designer. Content is pretty much all external, but things like  
button text, tool tip text, etc. are put in place by the designer.


I'd thought of just making different interface 'shells' for the  
various languages, but that'd be more difficult to maintain. What'd  
be perfect is language plugins but then I'm not quite sure on how  
to handle sizing problems - especially with certain languages like  
chinese.


Just looking for some guidance.


Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders