RE: [Flashcoders] |:::| can you write dynamic meathods in a class?

2006-08-14 Thread Robin Burrer

If I want to change the behavior of an object dynamically I rather
create a new class to encapsulate the functionality. I might have to
write more code but I think it this is a very clean approach. 


class CustomClickBehavior implements Clickable 
{



public function click():Void
{
trace (hello world!);
}
}



// class  
class Foo
{
var myClickBehavior: Clickable;

// here I can change the behavior to what ever I want
public function setClickBehavior (myClickBehavior:
Clickable):Void
{
this. myClickBehavior = myClickBehavior;
}


public function onClick():Void

{
myClickBehavior.click();
}

}


// Interface

Interface Clickable
{
public function click():void;
}


// code

var myFoo = new Foo();
var myCustomClickBehavior  = new CustomClickBehavior();

myFoo.setClickBehavior(myCustomClickBehavior);





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Monday, 14 August 2006 1:47 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] |:::| can you write dynamic meathods in a
class?

Bjorn Schultheiss wrote:
 Hey Guys, check this out


 Var clickHandler:Function = MyClass.staticMethod;
 var args:Array = ['Can', 'pass', 'in', 'any', 'amount'];
 newBtn.addEventListener(click, Delegate.create(this,
function(evt:Object,
 meth:Function, args:Array) { meth.apply(null, args) }, clickHandler,
args )
 ); 
That is a good idea! I just tried one of simpler layout (at least to me 
in terms of what I understand in AS)  works like a charm:

import utils.Delegate;
//Create array to pass multiple args in - both string and number for
testing
var aMyArgs:Array = [1, 2, 'three', 4];
//use the delegate
this.menuBtn.addEventListener(click, Delegate.create(this, onHit1, 
aMyArgs));
//create the btn event to handle the click
function onHit1(o:Object, n:Array)
{
for (i = 0; i  n.length; i++)
{
trace(it was hit with the arg:  + n[i]);
}
}

This is VERY handy (well to me anyways) to be able to pass in what ever 
args I need to.

d


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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] private property doesn't get called?

2006-08-14 Thread ilteris kaplan

Hello I am having a really strange problem here.

I have a boolean property in my class and I am trying to set its  
value to true as it should be, but it looks like it didn't get even  
instantiated in the class. Briefly in my class first sendVar method  
gets call from outside and pass two Number value to two properties  
(_current, _previous).
According to those values I do instantiate openCanvas() method from  
outside which calls a delegated function canvasOpenFinished(). So it  
triggers openSection() and with the help of closeButton function  
(which is also delegated from onPress() inside of canvasOpenFinished 
()) I trigger closeSection() method and then things get funky here. I  
call an outside function which after done triggers closeCanvas() in  
this class. And closeCanvas() triggers canvasClosedFinished() method  
and this is where I check if my  property(this.flag) is true or  
false. Only the trace tells me it is undefined!


What is it I am missing here? I am looking for your advices!!
ilteris.

Here is my class:

import mx.transitions.Tween;
class Canvas {
private var tween1:Tween;
private var tween2:Tween;
public var mc:MovieClip;
public var closeBtn:MovieClip;
private var _level:Number;
private var flag:Boolean; // this is the property I am talking about
public var _current:Number;
public var _previous:Number;


// Constructor
public function Canvas(timeline:MovieClip, level:Number, y_:Number) {
		mc = timeline.attachMovie(canvas, kanvas, level, {_x:158,  
_y:y_, _width:0});

mc.obj = this; //
_level = level;
}
public function openCanvas() {
		tween1 = new Tween(mc, _width,  
mx.transitions.easing.Strong.easeOut, 0, 673, 1, true);
		tween1.onMotionFinished = mx.utils.Delegate.create(this,  
canvasOpenFinished);

}
public function closeCanvas() {
		tween2 = new Tween(mc, _width,  
mx.transitions.easing.Strong.easeOut, 673, 0, 1, true);
		tween2.onMotionFinished = mx.utils.Delegate.create(this,  
canvasCloseFinished);

}
public function canvasOpenFinished() {
trace(canvas is open);
// we add our button on the right up corner.
		closeBtn = this.mc.attachMovie(closebtn, _closeBtn, _level+1,  
{_x:657, _y:4});

//closebutton is a method to call when we want to close the 
section
// and the canvas without opening new one.
closeBtn.onPress = mx.utils.Delegate.create(this, closeButton);
// check if there is already an opened section here
if (_previous == null) {
openSection();
} else {
// method to close an already opened link and canvas 
here!
}
}
public function canvasCloseFinished() {
// trace(current:  + this._current);
// trace(previous:  + this._previous);
if (!this.flag) {
this.openCanvas();
} else {
_root.main.prevMovie.gotoAndStop(1);
_root.main.prevMovie.teks.textColor = 0xff;
}
}
public function openSection() {
_root.main[container+_current]._visible = true;
_root.main[container+_current].main.startAnimation();
}
public function closeSection() {
// if(_previous != _current) {
// trigger closeCanvas inside of loaded swf's method 
finishAnimation!
// I must find a better way of doing this.
_root.main[container+_current].main.finishAnimation();
// else {
//_root.main[container+ _previous].main.finishAnimation();
// }
}
public function closeButton() {
trace(flag:  + this.flag);  // undefined
 this.flag = true;
// call closesection function
// which will call finishAnimation() of a loaded mc!
closeSection();
this.mc._closeBtn.removeMovieClip();
_root.main.prev = null;
}
public function sendVar(cur_:Number, prev_:Number) {
_current = cur_;
_previous = prev_;
}
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 an image in one game to be reused in another game

2006-08-14 Thread Paul Steven
Hi there

I am creating several online games using Flash 8.

One game is a painting game where the user creates a picture. The other game
is a t-shirt creator application where the user either uses pre-created
images or imports an image.

I would like the user to be able to import pictures created in game 1 into
game 2 at a later date.

The site requires the user to login so ideally when playing the second game,
the user would have the ability to choose / import their picture by
selecting from thumbnails of previously created images or alternatively
choosing an image from their hard drive or from the internet.

I guess the functionality required is to export the picture from game 1 as a
jpg or similar and save this image or image data onto the server.

My site uses PHP so suggestions using this technology are fine.

Many thanks

Paul

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

2006-08-14 Thread ilteris kaplan

Hello List,
I am trying to pass a parameter to my function with the help of  
delegate or proxy but I couldn't succeed in both :(


I have read http://www.person13.com/articles/proxy/Proxy.htm but  
still couldn't quite figure out how I should do it. Honestly I begin  
to feel like dumb four in the morning.


please let me know what I am missing here!!

best,
ilteris.


import ascb.util.Proxy;

function finishAnimation(_mc:MovieClip) { // mc is my movieclip I am  
passing inside of this function

// I am trying to pass _mc as a parameter to endOfMotion() method
	var tween4 = new Tween(image, _alpha,  
mx.transitions.easing.Regular.easeOut, 100, 0, 3, true);
	tween4.onMotionFinished = ascb.util.Proxy.create(this, endOfMotion,  
_mc);

}

function endOfMotion(_mc:MovieClip) {
// this.obj.canv.closeCanvas();
trace(_mc); // when I trace it, it still gives me [Tween]

}


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

2006-08-14 Thread julien castelain

hi ilteris,

maybe this could do it :

import ascb.util.Proxy;

function finishAnimation(_mc:MovieClip) {
 var scope = this;
var tween4 = new Tween(image, _alpha, Regular.easeOut,
   100, 0, 3, true);
 tween4.onMotionFinished = ascb.util.Proxy.create(scope, endOfMotion, _mc);
}

function endOfMotion(_mc:MovieClip) {
trace(_mc);
}

not sure though ...
cheers

On 8/14/06, ilteris kaplan [EMAIL PROTECTED] wrote:

Hello List,
I am trying to pass a parameter to my function with the help of
delegate or proxy but I couldn't succeed in both :(

I have read http://www.person13.com/articles/proxy/Proxy.htm but
still couldn't quite figure out how I should do it. Honestly I begin
to feel like dumb four in the morning.

please let me know what I am missing here!!

best,
ilteris.


import ascb.util.Proxy;

function finishAnimation(_mc:MovieClip) { // mc is my movieclip I am
passing inside of this function
   // I am trying to pass _mc as a parameter to endOfMotion() method
   var tween4 = new Tween(image, _alpha,
mx.transitions.easing.Regular.easeOut, 100, 0, 3, true);
   tween4.onMotionFinished = ascb.util.Proxy.create(this, endOfMotion,
_mc);
}

function endOfMotion(_mc:MovieClip) {
   // this.obj.canv.closeCanvas();
   trace(_mc); // when I trace it, it still gives me [Tween]

}


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

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


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

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


RE: [Flashcoders] simple xml editor?

2006-08-14 Thread Paul Venton
Be careful though, I just read that there's no Unicode support yet...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anggie
Bratadinata
Sent: 14 August 2006 04:26
To: Flashcoders mailing list
Subject: Re: [Flashcoders] simple xml editor?

 or perhaps some desktop app which does the same on a local file

XMLPad , it's free, easy to use, and it does error checking in realtime.

-- 
Anggie Bratadinata
Web|Graphic|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
http://design.ibshastautama.com

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

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


Re: [Flashcoders] Creating an image in one game to be reused in another game

2006-08-14 Thread julien castelain

hi paul,

here's a nice tutorial
http://www.sephiroth.it/tutorials/flashPHP/print_screen/


cheers

On 8/14/06, Paul Steven [EMAIL PROTECTED] wrote:

Hi there

I am creating several online games using Flash 8.

One game is a painting game where the user creates a picture. The other game
is a t-shirt creator application where the user either uses pre-created
images or imports an image.

I would like the user to be able to import pictures created in game 1 into
game 2 at a later date.

The site requires the user to login so ideally when playing the second game,
the user would have the ability to choose / import their picture by
selecting from thumbnails of previously created images or alternatively
choosing an image from their hard drive or from the internet.

I guess the functionality required is to export the picture from game 1 as a
jpg or similar and save this image or image data onto the server.

My site uses PHP so suggestions using this technology are fine.

Many thanks

Paul

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

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


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

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


[Flashcoders] aslib HashTable key

2006-08-14 Thread Darren Bowers
I am trying to get my head around HashTables and how to create the unique
key reference.
 
basically, I have an object that has two properties id (String) and href
(String) and i want to create a HashTable keyed on id. However the
HashTable object can only be a Number type.
 
What is the best way to create a unique key for a hashtable (a number) based
on a string that could effectively be any length?
 
What does Number(num:Object) actually do with the object passed to it?
 
cheers,
 

Darren Bowers
Learning Media Specialist
WestOne Services
Department of Education and Training
1 Prospect Place, West Perth, WA, 6005
T: (08) 9229 5284
F: (08) 9229 5293
E:  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]


 

CAUTION  DISCLAIMER: The information contained in this e-mail message
and/or any accompanying data or documents contain information that is 
confidential and subject to legal privilege. The information is intended
only for the recipient named in this message. The sender is excluded from
any liability arising from any further use, dissemination, distribution,
transmission or copying of this information and /or accompanying data by
the recipient. If you are not the intended recipient, you must immediately
erase the information along with all copies of this message and accompanying
data and notify the sender. Views expressed in this message are those of the
original sender, and are not necessarily the views of WestOne Services.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 an image in one game to be reused in another game

2006-08-14 Thread Meinte van't Kruis

That is a nice workaround, allthough sending a bitmap over an ascii
line generates alot of overhead. If you are able to use flash 9 you could
use it's ability to send raw bytes back to the server, you would still
have to write a serverside solution(i think), but it would be nice.

-Meinte

On 8/14/06, julien castelain [EMAIL PROTECTED] wrote:


hi paul,

here's a nice tutorial
http://www.sephiroth.it/tutorials/flashPHP/print_screen/


cheers

On 8/14/06, Paul Steven [EMAIL PROTECTED] wrote:
 Hi there

 I am creating several online games using Flash 8.

 One game is a painting game where the user creates a picture. The other
game
 is a t-shirt creator application where the user either uses pre-created
 images or imports an image.

 I would like the user to be able to import pictures created in game 1
into
 game 2 at a later date.

 The site requires the user to login so ideally when playing the second
game,
 the user would have the ability to choose / import their picture by
 selecting from thumbnails of previously created images or alternatively
 choosing an image from their hard drive or from the internet.

 I guess the functionality required is to export the picture from game 1
as a
 jpg or similar and save this image or image data onto the server.

 My site uses PHP so suggestions using this technology are fine.

 Many thanks

 Paul

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

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

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

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


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

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


Re: [Flashcoders] private property doesn't get called?

2006-08-14 Thread Meinte van't Kruis

Just had a quick look here. This is the only place you set your flag:

(within closeButton)

trace(flag:  + this.flag);  // undefined
this.flag = true;

So the fact that you trace it BEFORE setting it kind of explains why
it traces undefined.

Something that would also be good form is initializing the flag in your
class
constructor (this.flag=false , or true whichever you'd like it to be). This
way
you know it's always initialized.

good luck,

-Meinte

On 8/14/06, ilteris kaplan [EMAIL PROTECTED] wrote:


Hello I am having a really strange problem here.

I have a boolean property in my class and I am trying to set its
value to true as it should be, but it looks like it didn't get even
instantiated in the class. Briefly in my class first sendVar method
gets call from outside and pass two Number value to two properties
(_current, _previous).
According to those values I do instantiate openCanvas() method from
outside which calls a delegated function canvasOpenFinished(). So it
triggers openSection() and with the help of closeButton function
(which is also delegated from onPress() inside of canvasOpenFinished
()) I trigger closeSection() method and then things get funky here. I
call an outside function which after done triggers closeCanvas() in
this class. And closeCanvas() triggers canvasClosedFinished() method
and this is where I check if my  property(this.flag) is true or
false. Only the trace tells me it is undefined!

What is it I am missing here? I am looking for your advices!!
ilteris.

Here is my class:

import mx.transitions.Tween;
class Canvas {
private var tween1:Tween;
private var tween2:Tween;
public var mc:MovieClip;
public var closeBtn:MovieClip;
private var _level:Number;
private var flag:Boolean; // this is the property I am talking
about
public var _current:Number;
public var _previous:Number;


// Constructor
public function Canvas(timeline:MovieClip, level:Number,
y_:Number) {
mc = timeline.attachMovie(canvas, kanvas, level,
{_x:158,
_y:y_, _width:0});
mc.obj = this; //
_level = level;
}
public function openCanvas() {
tween1 = new Tween(mc, _width,
mx.transitions.easing.Strong.easeOut, 0, 673, 1, true);
tween1.onMotionFinished = mx.utils.Delegate.create(this,
canvasOpenFinished);
}
public function closeCanvas() {
tween2 = new Tween(mc, _width,
mx.transitions.easing.Strong.easeOut, 673, 0, 1, true);
tween2.onMotionFinished = mx.utils.Delegate.create(this,
canvasCloseFinished);
}
public function canvasOpenFinished() {
trace(canvas is open);
// we add our button on the right up corner.
closeBtn = this.mc.attachMovie(closebtn, _closeBtn,
_level+1,
{_x:657, _y:4});
//closebutton is a method to call when we want to close
the section
// and the canvas without opening new one.
closeBtn.onPress = mx.utils.Delegate.create(this,
closeButton);
// check if there is already an opened section here
if (_previous == null) {
openSection();
} else {
// method to close an already opened link and
canvas here!
}
}
public function canvasCloseFinished() {
// trace(current:  + this._current);
// trace(previous:  + this._previous);
if (!this.flag) {
this.openCanvas();
} else {
_root.main.prevMovie.gotoAndStop(1);
_root.main.prevMovie.teks.textColor = 0xff;
}
}
public function openSection() {
_root.main[container+_current]._visible = true;
_root.main[container+_current].main.startAnimation();
}
public function closeSection() {
// if(_previous != _current) {
// trigger closeCanvas inside of loaded swf's method
finishAnimation!
// I must find a better way of doing this.
_root.main[container+_current].main.finishAnimation();
// else {
//_root.main[container+
_previous].main.finishAnimation();
// }
}
public function closeButton() {
trace(flag:  + this.flag);  // undefined
 this.flag = true;
// call closesection function
// which will call finishAnimation() of a loaded mc!
closeSection();
this.mc._closeBtn.removeMovieClip();
_root.main.prev = null;
}
public function sendVar(cur_:Number, prev_:Number) {
_current = cur_;
_previous = prev_;
}
}


Re: [Flashcoders] delegate and proxy

2006-08-14 Thread Jeroen Beckers
That should be correct Julien, but there's no point in importing, if you
are going to use the fully qualified classname anyway...

julien castelain wrote:
 hi ilteris,

 maybe this could do it :

 import ascb.util.Proxy;

 function finishAnimation(_mc:MovieClip) {
  var scope = this;
 var tween4 = new Tween(image, _alpha, Regular.easeOut,
100, 0, 3, true);
  tween4.onMotionFinished = ascb.util.Proxy.create(scope,
 endOfMotion, _mc);
 }

 function endOfMotion(_mc:MovieClip) {
 trace(_mc);
 }

 not sure though ...
 cheers

 On 8/14/06, ilteris kaplan [EMAIL PROTECTED] wrote:
 Hello List,
 I am trying to pass a parameter to my function with the help of
 delegate or proxy but I couldn't succeed in both :(

 I have read http://www.person13.com/articles/proxy/Proxy.htm but
 still couldn't quite figure out how I should do it. Honestly I begin
 to feel like dumb four in the morning.

 please let me know what I am missing here!!

 best,
 ilteris.


 import ascb.util.Proxy;

 function finishAnimation(_mc:MovieClip) { // mc is my movieclip I am
 passing inside of this function
// I am trying to pass _mc as a parameter to endOfMotion() method
var tween4 = new Tween(image, _alpha,
 mx.transitions.easing.Regular.easeOut, 100, 0, 3, true);
tween4.onMotionFinished = ascb.util.Proxy.create(this,
 endOfMotion,
 _mc);
 }

 function endOfMotion(_mc:MovieClip) {
// this.obj.canv.closeCanvas();
trace(_mc); // when I trace it, it still gives me [Tween]

 }


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

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

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

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] delegate and proxy

2006-08-14 Thread julien castelain

sure, sorry bout that :)

On 8/14/06, Jeroen Beckers [EMAIL PROTECTED] wrote:

That should be correct Julien, but there's no point in importing, if you
are going to use the fully qualified classname anyway...

julien castelain wrote:
 hi ilteris,

 maybe this could do it :

 import ascb.util.Proxy;

 function finishAnimation(_mc:MovieClip) {
  var scope = this;
 var tween4 = new Tween(image, _alpha, Regular.easeOut,
100, 0, 3, true);
  tween4.onMotionFinished = ascb.util.Proxy.create(scope,
 endOfMotion, _mc);
 }

 function endOfMotion(_mc:MovieClip) {
 trace(_mc);
 }

 not sure though ...
 cheers

 On 8/14/06, ilteris kaplan [EMAIL PROTECTED] wrote:
 Hello List,
 I am trying to pass a parameter to my function with the help of
 delegate or proxy but I couldn't succeed in both :(

 I have read http://www.person13.com/articles/proxy/Proxy.htm but
 still couldn't quite figure out how I should do it. Honestly I begin
 to feel like dumb four in the morning.

 please let me know what I am missing here!!

 best,
 ilteris.


 import ascb.util.Proxy;

 function finishAnimation(_mc:MovieClip) { // mc is my movieclip I am
 passing inside of this function
// I am trying to pass _mc as a parameter to endOfMotion() method
var tween4 = new Tween(image, _alpha,
 mx.transitions.easing.Regular.easeOut, 100, 0, 3, true);
tween4.onMotionFinished = ascb.util.Proxy.create(this,
 endOfMotion,
 _mc);
 }

 function endOfMotion(_mc:MovieClip) {
// this.obj.canv.closeCanvas();
trace(_mc); // when I trace it, it still gives me [Tween]

 }


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

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

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

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


RE: [Flashcoders] jigsaw puzzle piece algorithm

2006-08-14 Thread Danny Kodicek

 Hi Danny,

 Thanks for the reply.. I'm not quite sure to what you mean, but doesn't it
 sound similar to my current approach? Rather than using arrays, you
 suggested objects. Please correct me if I'm wrong.

Hi, Guntur, I've been on holiday, but in case it's helpful, a little
clarification:

From my original post:

Without going into your post in detail, I think this is the source of your
problem. For each group, you're better off making a single object which
contains all the elements in it, then making A.group a reference to that
object. Start with N such groups, one for each piece. Then, when you connect
two pieces, you merge their groups into a single object. Now, each time the
user drags a piece, update the whole group (including the piece clicked on)
with a single command.

The point of this is to keep the groups and the pieces as separate things.
Here's a pseudocode explanation:

start with an array of n Piece objects and an array of n Group objects.
- Each piece knows its neighbours and belongs to exactly one group, to which
it has a reference.
- Each group knows which pieces it contains.
- Initially, each group contains one piece
when a piece is clicked, tell its group to start dragging (and bring all its
pieces to the top)
when dragging a group, move all its pieces simultaneously (so the 'drag'
method is part of the Group object, not the Piece object)
when a group is released, check if any of its pieces can be linked to one of
its neighbours that is not in the group. If so:
- set group1 to the group of the first piece
- set group2 to the group of the second piece
- add all the elements of group2 to group1
- set the group of each element of group2 to group1
- delete group2
- if at this stage there is only one group left, the puzzle is complete

NB: with a little ingenuity, checking if two groups can be linked should be
possible to do in a single test, rather than looping through all pieces in
them. I'd do it by noting the offset of each group from its correct
position, then checking how similar these values are in the two groups.

Is that clearer?
Danny

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

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


Re: [Flashcoders] jigsaw puzzle piece algorithm

2006-08-14 Thread Guntur N. Sarwohadi

Hello Danny,

So for every piece generated, i'll create as much piece and group objects in
each piece and group array beyond the piece MC object scope, right? But how
does moving all pieces simultaneously be done in pseudocode? How would you
tell an object to start drag?.. I mean, since only MCs have the startDrag
method, then it will need to delegate to group object, or do you have a
better way doing this?

Much thanks,
Guntur N. Sarwohadi
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] simple xml editor?

2006-08-14 Thread Merrill, Jason
This one is free and easy to use:

Microsoft XML NotePad
http://www.snapfiles.com/get/xmlnotepad.html

Somewhat limited depending on the type of XML, but might fit your needs.
It's pretty fool-proof.  Microsoft made it, but doesn't support or
distribute it any more.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] jigsaw puzzle piece algorithm

2006-08-14 Thread Danny Kodicek
 Hello Danny,

 So for every piece generated, i'll create as much piece and group
 objects in
 each piece and group array beyond the piece MC object scope,
 right? But how
 does moving all pieces simultaneously be done in pseudocode? How would you
 tell an object to start drag?.. I mean, since only MCs have the startDrag
 method, then it will need to delegate to group object, or do you have a
 better way doing this?

Yes: don't use the inbuilt drag method, do it with code (following is email
script and may contain errors!):

function myStartDrag() {
startX = _parent._xmouse
startY = _parent._ymouse
myX = this._x
myY = this._y
drag = true
}
function myStopDrag() {
drag = false
}
function onEnterFrame() {
if (drag) {
this._x = _parent._xmouse - startX + myX
this._y = _parent._ymouse - startY + myY
}
}

By the way - on thinking further, I'd not even bother with piece objects
(they're just simple movieclips) but only use groups. A group knows all its
neighbours and if any of them are in a group that's in the same relative
position to its starting point, it joins them together. Then its new list of
neighbours is all the neighbours of the two groups except those that are in
the group.

eg:

group 1 has pieces C and D and neighbours A,B,E,F
group 2 has pieces E and G and neighbours B,H,C,I

piece C in group 1 is a neighbour of group 2 so the two can join together.
When joined, they have pieces C,D,E,G and neighbours A, B, F, H, I

Don't know if that is very clear!
Danny

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

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


[Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Tom Shaw
Hi all,  This is my first post on the list so Ill say hi now and hope
you are all friendly :)

Ive been going round for days on this one and have searched high and
low for an answer.  I even looked under the bed but all I found was
smelly socks, so before I actually go mad could anyone shed some light
on this rather annoying problem with Flash 8 Pro.

I have a SOAP server set up under mod_perl which delivers an array of
objects.

To avoid reinventing the wheel I wanted Flash to decode the SOAP
response from the server.  the result Im actually getting is an array
of XML Objects.

I could parse these XML objects but then I might as well and decode
the entire response manually anyway.  the overhead for getting flash
to decode the object has already been incurred so Id really like to
figure this out.

Now while this might seem trivial I do want to return some rather more
complex objects so this has effetively stopped my development for now.

I dont want to go down the path with flash Remoting at the minute but
for those who might suggest it I have considered it and may implement
it in the future.

If anyone is getting Flash to fully decode Arrays of Objects or any
other remotely complex data structure could they please post their
SOAP response and reply for me to study so I can try and find out what
exactly is wrong.

I have a few more questions to ask but for clarity Ill leave these for
another day.

Im not sure if posting my SOAP reply would help at this point...I will
create a simple example and post it shortly.

Id really appreciate some help here so Ill cross my fingers and hope
for the best.

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

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


Re: [Flashcoders] simple xml editor?

2006-08-14 Thread Michael Stuhr

Merrill, Jason schrieb:

This one is free and easy to use:

Microsoft XML NotePad
http://www.snapfiles.com/get/xmlnotepad.html

Somewhat limited depending on the type of XML, but might fit your needs.
It's pretty fool-proof.  Microsoft made it, but doesn't support or
distribute it any more.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
___

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

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


i might be wrong, but this one looks exactly like peter's xml editor (v. 
1.1)[1].

does somebody know if ms hired him ?

[1] http://www.iol.ie/~pxe/download.html
micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Merrill, Jason
What are you using on your backend?  .NET?  ColdFusion?  If .NET, yes,
you can easily send objects back and forth. It serializes as SOAP
formatted XML inbetween, but you'll never notice. You can read an object
with arrays, set properties, and send it back.  I can't send you our
SOAP message because it might be considered propriety bank information
(even though it's not really), but there are some tutorials on the web

http://www.sephiroth.it/tutorials/flashPHP/webServiceConnector/

Here is the WSDL is uses:

http://www.xmethods.net/sd/2001/BabelFishService.wsdl

Here is some code I use to test loading in an object from a wsdl SOAP
object from .NET

import mx.services.*;

function startmyws():Void{
ws = new WebService(http://blahblahurl/theService.asmx?WSDL;);
ws.onLoad = trace(The webservice loaded fine.);
methodResultObj = ws.GetProject(0);
methodResultObj.onResult = showResult;
methodResultObj.onFault = function(fault) {
  trace(!! Flash Web Services Component Error.  \n Fault Code:
+fault.faultcode + , Fault:  + fault.faultstring);
}
}

function showResult(projObj:Object){
//test object value:
theVar = projObj.Content.Topics[0].TextAreas[0].Content
trace(theVar)
}

startmyws();

Don't bother with parsing through XML if you are using .NET.  And wash
those socks. :) 

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Shaw
Sent: Monday, August 14, 2006 9:29 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of
complex
objects

Hi all,  This is my first post on the list so Ill say hi now and hope
you are all friendly :)

Ive been going round for days on this one and have searched high and
low for an answer.  I even looked under the bed but all I found was
smelly socks, so before I actually go mad could anyone shed some light
on this rather annoying problem with Flash 8 Pro.

I have a SOAP server set up under mod_perl which delivers an array of
objects.

To avoid reinventing the wheel I wanted Flash to decode the SOAP
response from the server.  the result Im actually getting is an array
of XML Objects.

I could parse these XML objects but then I might as well and decode
the entire response manually anyway.  the overhead for getting flash
to decode the object has already been incurred so Id really like to
figure this out.

Now while this might seem trivial I do want to return some rather more
complex objects so this has effetively stopped my development for now.

I dont want to go down the path with flash Remoting at the minute but
for those who might suggest it I have considered it and may implement
it in the future.

If anyone is getting Flash to fully decode Arrays of Objects or any
other remotely complex data structure could they please post their
SOAP response and reply for me to study so I can try and find out what
exactly is wrong.

I have a few more questions to ask but for clarity Ill leave these for
another day.

Im not sure if posting my SOAP reply would help at this point...I will
create a simple example and post it shortly.

Id really appreciate some help here so Ill cross my fingers and hope
for the best.

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] aslib HashTable key

2006-08-14 Thread Darren Bowers
ok, after scouring some Java sites and their buglists I have come up with
this implementation of String.hashCode
 
 public static function hashCode(str:String):Number {
  var offset:Number = 0;
  var hash:Number = 0;
  var len:Number = str.length;
  if (len==0) {
   return 0;
  }
  while (offset  len) {
   // (hash5)-hash always = 31 (prime#)
   hash = (hash5)-hash + str.charCodeAt(offset++);
  }
  return hash;
 }
 
any thoughts or should I just run with it?

  _  

From: Darren Bowers
Sent: Mon 14/08/2006 5:06 PM
To: 'flashcoders@chattyfig.figleaf.com'
Subject: [Flashcoders] aslib HashTable key



I am trying to get my head around HashTables and how to create the unique 
key reference. 
  
basically, I have an object that has two properties id (String) and href

(String) and i want to create a HashTable keyed on id. However the 
HashTable object can only be a Number type. 
  
What is the best way to create a unique key for a hashtable (a number) based

on a string that could effectively be any length? 
  
What does Number(num:Object) actually do with the object passed to it? 
  
cheers, 
  

Darren Bowers 
Learning Media Specialist 
WestOne Services 
Department of Education and Training 
1 Prospect Place, West Perth, WA, 6005 
T: (08) 9229 5284 
F: (08) 9229 5293 
E:  mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  [EMAIL PROTECTED] 



CAUTION  DISCLAIMER: The information contained in this e-mail message
and/or any accompanying data or documents contain information that is 
confidential and subject to legal privilege. The information is intended
only for the recipient named in this message. The sender is excluded from
any liability arising from any further use, dissemination, distribution,
transmission or copying of this information and /or accompanying data by
the recipient. If you are not the intended recipient, you must immediately
erase the information along with all copies of this message and accompanying
data and notify the sender. Views expressed in this message are those of the
original sender, and are not necessarily the views of WestOne Services.


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

2006-08-14 Thread Ian Thomas

Hi Darren,
 What are you creating a Hashtable _for_..?

For many applications you can just use a native AS object - e.g.:

var myTable:Object=new Object();
myTable[someIDOrOther]=someValue;
trace(myTable[someIDOrOther]); // gives someValue

For example, in your case:
var myTable:Object=new Object();
var myObject:Object={id:SomeID,href:http://somesite.com};

myTable[myObject.id]=myObject;

trace(myTable[SomeID].href); // gives http://somesite.com;

HTH,
 Ian

On 8/14/06, Darren Bowers [EMAIL PROTECTED] wrote:

ok, after scouring some Java sites and their buglists I have come up with
this implementation of String.hashCode

 public static function hashCode(str:String):Number {
  var offset:Number = 0;
  var hash:Number = 0;
  var len:Number = str.length;
  if (len==0) {
   return 0;
  }
  while (offset  len) {
   // (hash5)-hash always = 31 (prime#)
   hash = (hash5)-hash + str.charCodeAt(offset++);
  }
  return hash;
 }

any thoughts or should I just run with it?

  _

From: Darren Bowers
Sent: Mon 14/08/2006 5:06 PM
To: 'flashcoders@chattyfig.figleaf.com'
Subject: [Flashcoders] aslib HashTable key



I am trying to get my head around HashTables and how to create the unique
key reference.

basically, I have an object that has two properties id (String) and href

(String) and i want to create a HashTable keyed on id. However the
HashTable object can only be a Number type.

What is the best way to create a unique key for a hashtable (a number) based

on a string that could effectively be any length?

What does Number(num:Object) actually do with the object passed to it?

cheers,


Darren Bowers
Learning Media Specialist
WestOne Services
Department of Education and Training
1 Prospect Place, West Perth, WA, 6005
T: (08) 9229 5284
F: (08) 9229 5293
E:  mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  [EMAIL PROTECTED]




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

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




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

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


Re: [Flashcoders] |:::| can you write dynamic meathods in a class?

2006-08-14 Thread Tyler Wright

If you're already using a custom Delegate, why not modify the thing to
handle what you've just provided?

var clickHandler:Function = MyClass.staticMethod;
var args:Array = ['Can', 'pass', 'in', 'any', 'amount'];
newBtn.addEventListener(click, Delegate.create2(this, clickHandler, args
));
// (I'm sure you could think of a better name than 'create2' though)

that's all a Delegate is doing is an apply. It's not magic, not really.

Tyler

On 8/13/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote:


Hey Guys, check this out


Var clickHandler:Function = MyClass.staticMethod;
var args:Array = ['Can', 'pass', 'in', 'any', 'amount'];
newBtn.addEventListener(click, Delegate.create(this,
function(evt:Object,
meth:Function, args:Array) { meth.apply(null, args) }, clickHandler, args
)
);



Regards,

Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Monday, 14 August 2006 5:17 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] |:::| can you write dynamic meathods in a
class?

Ramon Miguel M. Tayag wrote:
 Sometimes some events pass their own args and you dont even see them..

 Try changing your function to this:

 function onHit1(o:Object, n:Number) //the o object is passed by the
 listener {
trace(it was hit with the number:  + n); }

That worked perfect!!!


Thanks sooo much!

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


[Flashcoders] OT SVN/Project Hosting

2006-08-14 Thread Ron Wheeler
Can anyone recommend a good project hosting site with reasonable rates 
and good uptime?
Want to host a small project 3-4 developers  - Flash and server side so 
likely need several projects with the same team


Minimum SVN, Bugzilla, etc. Anything else to ask for?

Client side will be Eclipse.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Madobe certified professional - still recommend?

2006-08-14 Thread Steven Sacks | BLITZ
If you spent money on getting Flash certification, I'd certainly agree
you were certifiable.  ;)

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

2006-08-14 Thread Darren Bowers
 
yeah, I see what you are saying. I will have a play and see how it goes.
 
thanks,
Darren 
 

  _  

From: Ian Thomas [mailto:[EMAIL PROTECTED]
Sent: Mon 14/08/2006 11:48 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] aslib HashTable key



Hi Darren, 
  What are you creating a Hashtable _for_..? 

For many applications you can just use a native AS object - e.g.: 

var myTable:Object=new Object(); 
myTable[someIDOrOther]=someValue; 
trace(myTable[someIDOrOther]); // gives someValue 

For example, in your case: 
var myTable:Object=new Object(); 
var myObject:Object={id:SomeID,href:http://somesite.com
http://somesite.com }; 

myTable[myObject.id]=myObject; 

trace(myTable[SomeID].href); // gives http://somesite.com
http://somesite.com  

HTH, 
  Ian 

On 8/14/06, Darren Bowers [EMAIL PROTECTED] wrote: 
 ok, after scouring some Java sites and their buglists I have come up with 
 this implementation of String.hashCode 
 
  public static function hashCode(str:String):Number { 
   var offset:Number = 0; 
   var hash:Number = 0; 
   var len:Number = str.length; 
   if (len==0) { 
return 0; 
   } 
   while (offset  len) { 
// (hash5)-hash always = 31 (prime#) 
hash = (hash5)-hash + str.charCodeAt(offset++); 
   } 
   return hash; 
  } 
 
 any thoughts or should I just run with it? 
 
   _ 
 
 From: Darren Bowers 
 Sent: Mon 14/08/2006 5:06 PM 
 To: 'flashcoders@chattyfig.figleaf.com' 
 Subject: [Flashcoders] aslib HashTable key 
 
 
 
 I am trying to get my head around HashTables and how to create the unique 
 key reference. 
 
 basically, I have an object that has two properties id (String) and
href 
 
 (String) and i want to create a HashTable keyed on id. However the 
 HashTable object can only be a Number type. 
 
 What is the best way to create a unique key for a hashtable (a number)
based 
 
 on a string that could effectively be any length? 
 
 What does Number(num:Object) actually do with the object passed to it? 
 
 cheers, 
 
 
 Darren Bowers 
 Learning Media Specialist 
 WestOne Services 
 Department of Education and Training 
 1 Prospect Place, West Perth, WA, 6005 
 T: (08) 9229 5284 
 F: (08) 9229 5293 
 E:  mailto:[EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]   [EMAIL PROTECTED]

 
 
 
 
 ___ 
 Flashcoders@chattyfig.figleaf.com 
 To change your subscription options or search the archive: 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders  
 
 Brought to you by Fig Leaf Software 
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://www.figleaf.com  
 http://training.figleaf.com http://training.figleaf.com  
 
 
 
___ 
Flashcoders@chattyfig.figleaf.com 
To change your subscription options or search the archive: 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders  

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


CAUTION  DISCLAIMER: The information contained in this e-mail message
and/or any accompanying data or documents contain information that is 
confidential and subject to legal privilege. The information is intended
only for the recipient named in this message. The sender is excluded from
any liability arising from any further use, dissemination, distribution,
transmission or copying of this information and /or accompanying data by
the recipient. If you are not the intended recipient, you must immediately
erase the information along with all copies of this message and accompanying
data and notify the sender. Views expressed in this message are those of the
original sender, and are not necessarily the views of WestOne Services.


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

2006-08-14 Thread Andreas Rønning

So say i have a movieClip in my library associated with the class Clock.
In my application i want an instance of Clock on stage, so i do 
something like this:


var UIClock:Clock = content.attachMovie(clock,uiclock1,1);

naturally i'll get compiler errors, since attachMovie returns a MovieClip.

Is there a way to circumvent this? I really enjoy associating library 
clips with classes and attaching them; aside from this issue i've had no 
problems.


- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Strong typing vs attachMovie

2006-08-14 Thread eka

Hello :)

You can use *typecasting* :

var UIClock:Clock = Clock(content.attachMovie(clock,uiclock1,1)) ;

EKA+ :)

EKA+ :)

2006/8/14, Andreas Rønning [EMAIL PROTECTED]:


So say i have a movieClip in my library associated with the class Clock.
In my application i want an instance of Clock on stage, so i do
something like this:

var UIClock:Clock = content.attachMovie(clock,uiclock1,1);

naturally i'll get compiler errors, since attachMovie returns a MovieClip.

Is there a way to circumvent this? I really enjoy associating library
clips with classes and attaching them; aside from this issue i've had no
problems.

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

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

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

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

Re: [Flashcoders] Strong typing vs attachMovie

2006-08-14 Thread Johannes Nel

you cast
var UIClock:Clock = Clock (content.attachMovie(clock,uiclock1,1));
the cleanest way is prob to put a static create function on the class itself
IMO.
from the fdt template
public static function create(container : MovieClip,name : String,
   depth : Number, init : Object) : Clock{
   var mc : MovieClip = container.attachMovie(linkage, name, depth,
init);
   return Clock(mc);
   }
On 8/14/06, Andreas Rønning [EMAIL PROTECTED] wrote:


So say i have a movieClip in my library associated with the class Clock.
In my application i want an instance of Clock on stage, so i do
something like this:

var UIClock:Clock = content.attachMovie(clock,uiclock1,1);

naturally i'll get compiler errors, since attachMovie returns a MovieClip.

Is there a way to circumvent this? I really enjoy associating library
clips with classes and attaching them; aside from this issue i've had no
problems.

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

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





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Strong typing vs attachMovie

2006-08-14 Thread Ian Thomas

Hi Andreas,

var UIClock:Clock = Clock(content.attachMovie(clock,uiclock1,1));

using className(supertype) i.e. Clock(supertype)

It's called typecasting - or just casting. It looks like a constructor
function but isn't.

Basically you're telling the compiler It's okay I know what I'm doing
- it really is a Clock!

(This assumes you've associated Clock with the clock symbol via the
Linkage dialog.)

HTH,
 Ian

On 8/14/06, Andreas Rønning [EMAIL PROTECTED] wrote:

So say i have a movieClip in my library associated with the class Clock.
In my application i want an instance of Clock on stage, so i do
something like this:

var UIClock:Clock = content.attachMovie(clock,uiclock1,1);

naturally i'll get compiler errors, since attachMovie returns a MovieClip.

Is there a way to circumvent this? I really enjoy associating library
clips with classes and attaching them; aside from this issue i've had no
problems.

- A

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

2006-08-14 Thread Andreas Rønning

Of course :) thanks guys, totally escaped my mind

- A

Johannes Nel wrote:

you cast
var UIClock:Clock = Clock (content.attachMovie(clock,uiclock1,1));
the cleanest way is prob to put a static create function on the class 
itself

IMO.
from the fdt template
public static function create(container : MovieClip,name : String,
   depth : Number, init : Object) : Clock{
   var mc : MovieClip = container.attachMovie(linkage, name, depth,
init);
   return Clock(mc);
   }
On 8/14/06, Andreas Rønning [EMAIL PROTECTED] wrote:



So say i have a movieClip in my library associated with the class Clock.
In my application i want an instance of Clock on stage, so i do
something like this:

var UIClock:Clock = content.attachMovie(clock,uiclock1,1);

naturally i'll get compiler errors, since attachMovie returns a 
MovieClip.


Is there a way to circumvent this? I really enjoy associating library
clips with classes and attaching them; aside from this issue i've had no
problems.

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

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







--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] MD5, escape and ASP.NET-urlEncode

2006-08-14 Thread Roman Blöth
Hello folks,


just wanted to tell you something and ask for something.

Something to tell:


ActionScript function escape escapes . and  , ASP.NET function
urlEncode does not escape . and escapes   as +.

So Strings escaped in ActionSript will NOT resemble strings urlEncoded
in ASP.NET!


I came across this while trying to make highscore- and user-management
for a small flash game where the swf movie has to communicate with ASP.NET.
ASP.NET does NOT offer ActionScripts escape-function, and ActionScript
does NOT offer ASP.NETs urlEncode-function. Keep this in mind
whereever your swf has too deal with ASP.NET! - Or else tell me the
truth, please!


Furthermore I am looking for a MD5-implementation for ActionScript, that
will work properly on special characters. You can give it a try
yourself, when entering a ß oder ä into any of those HTML-/web-based
MD5-generators. Depending on which one you use, you will get two
different result hashes. Needless to say that the usual
MD5-implementation used with actionscript (there oonly seems to be one
version out there) results in a different md5-hash than that used with
ASP.NET.
Again, please tell me, when you know I'm wrong here.


Best regards,
Roman Blöth.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

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

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


Re: [Flashcoders] MD5, escape and ASP.NET-urlEncode

2006-08-14 Thread Per Bolmstedt


Roman Blöth wrote:


ActionScript function escape escapes . and  , ASP.NET function
urlEncode does not escape . and escapes   as +.


.NET URL encodes as specified in RFC's 1738 and, for example, 1630, to emulate
the behaviour of web browsers.  The encoding of the space to a plus sign is
something of an anomaly.  The plus sign is just a safe version of a space in
a _query_string_, which is part of an URL.  The dot is a safe character and
doesn't need to be _URL_ encoded, so escape() does more than just URL encoding.
 (The Adobe AS dictionary is, as always, not shedding any light on the subject.)


yourself, when entering a ß oder ä into any of those HTML-/web-based
MD5-generators. Depending on which one you use, you will get two


MD5 works on bits, not such abstract notions as letters.  There are many ways
to turn an ä into bits, which is why your results differ.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Madobe certified professional - still recommend?

2006-08-14 Thread Eskil Janson
Ok, it is probably really simple for intelligent people, but I'm not 
that smart.
I had to prepare for the exam, and when I did, I think I learned a lot 
about stuff that I don't work with so often.


/E


Rich Rodecker skrev:


But in my experience people seem to think Certified Flash Developer
gives a little cred..



i think thats true.  the exam is way too easy i think, and youonly 
need a 75

or something to pass.  Also i've never had one potential client ask me if
I'm certified, and many didnt even know there was a certification.

On 8/12/06, Eskil Janson [EMAIL PROTECTED] wrote:


See your point, but you will have the latest available Flash exam, and
that is what counts for the customers.

As I said, i think Adobe should adress this problem. I suppose they will
change certifications
to the Adobe way

http://www.adobe.com/support/certification/

In my experience, none has actually asked me about what version I am
certified for. If it is required, the
person who buys your services, knows what certification counts.
But in my experience people seem to think Certified Flash Developer
gives a little cred..


/Eskil

André Goliath skrev:
 I think it would be better to show that your
 certification is up to date.


 Sure, the point I was trying to make is that every non-Flasher would
 recognize Flash MX 2004 is now two
 years old, they probably don´t even know that there where major 
changes

from
 MX to MX04. MX does not suffer from this handicap of a number 
attached

to
 it.

 The exam on MX is not available, in fact those who have only the MX
 certification are not listed any longer on
 Adobe's certifed Developer page[1].

 So I guess since there are no Flash 8 beta exams anounced[2] they´ll
 propably start a new rush on Flash 9/Flex 2...




 [1]

http://www.adobe.com/support/training/certified_professional_program/retired 


 _exams.html
 [2] http://www.donathgroup.com/macromedia/candidate/


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Rich
 Rodecker
 Sent: Saturday, August 12, 2006 7:49 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Madobe certified professional - still
recommend?

 andre - i'm not sure if I would agree with taking the exam in Flash MX
 instead of flash mx 04.  Actually, is the flash mx testing still
available?
 anyway, the reason I say that is, as I'm sure you know well, so much
changes
 with each version of flash, and I think it would be better to show 
that

your
 certification is up to date. For instance, if you took the Flash MX
exam,
 you could score 100% and not know a thing about Actionscript 2.  
And if
 you're just worried about the year, dont worry, you can just say 
you're

a
 Certified Flash Developer.




 On 8/12/06, André Goliath [EMAIL PROTECTED] wrote:

 Thanks for your thoughts :)

 Propably I´d rather take the exam in Flash MX than MX 04, just 
because

MX
 does not have a year in it ;)
 It´s the same with Windows: Everyone would agree that Windows 2000 is
 old.
 But would you call Windows XP old?
 Propably not, until I tell you that it was released in 2001 ;)

 I got the preparation book today and took the online test. 60% 
correct

 without even looking into it isn´t too bad I think.
 I probably take the test anyway, looks good in the CV at least ;)


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Eskil
 Janson
 Sent: Saturday, August 12, 2006 5:58 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Madobe certified professional - still
 recommend?

 I passed the test a year ago, at the time when Flash 8 was just
 released, and it seemed strange alreade at that time
 to study outdated concepts(primarely related to AS1 ) ... But most of
 the basic stuff is the same for both products.

 Most of your clients, or students if you teach Flash, won't be 
able to
 tell the difference between the versions (MX2004, 8) , but some of 
them

 will probably be
 interested in the fact that you have the highest level of 
certification

 for the product (Flash) before they consider hiring you.

 I think Adobe should get a grip on the certification and training
 situation for Flash. I personally really like AS3 and I can't
understand
 why Adobe (formerly MM) never have tried to design courses 
targeted to

 real professionals, including real OOP, since that makes
 developing Flash so much easiser, and is what everybody is into. This
 should also be reflected in the courses they provide to prepare
 for the exam, and the exam itself.

 /Eskil










 André Goliath skrev:

 Hello List,

 I´m thinking about becoming a certifed Macromedia(?) Flash MX04

 Developer,

 but I wonder if this qualification is still of any worth, what do 
you


 think?

 Have you profited in any way from your certification?

 Is there anything in the pipeline for Flash 8/9 or will there 
ever be?


 Flash MX04 certified sounds a bit outdated IMHO,...

 Thanks for any and all thoughts,

 

Re: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Tom Shaw
Hi Jason,

Im using Perl with Apach2-SOAP under mod_perl.

If you are sending objects back and forth then I dont see why I should
be having problems.  It must be a problem with my WSDL or Perl SOAP
Response.

Since flash decodes the response according to the WSDL file then it
seems likely there is a problem with this bit.

I have included the WSDL file and a copy of the request and response.
Does the response look vastly different for an array of objects that
you might expect to see on your working Flash/SOAP project?

This is an example and triggers my problem and is as short as I could
make it.

- snip 8 --

Request
?xml version=1.0 encoding=utf-8?
SOAP-ENV:Envelope
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  SOAP-ENV:Body xmlns:ns1=http://ice.zerofiveone.com/Objecttest;
ns1:getPeople
 SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  author xsi:type=xsd:int/author
/ns1:getPeople
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

Response
?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:namesp2=http://xml.apache.org/xml-soap;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  SOAP-ENV:Body
namesp6:getPeopleResponse
  xmlns:namesp6=http://ice.zerofiveone.com/Objecttest;
  SOAP-ENC:Array xsi:type=SOAP-ENC:Array
SOAP-ENC:arrayType=namesp2:SOAPStruct[3]
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringTom/name
  age xsi:type=xsd:int24/age
/item
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringChris/name
  age xsi:type=xsd:int26/age
/item
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringAndrew/name
  age xsi:type=xsd:int56/age
/item
  /SOAP-ENC:Array
/namesp6:getPeopleResponse
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

And finally the WSDL - I tried to keep this as short as possible for
this example.

?xml version=1.0?
definitions
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:si=http://soapinterop.org/xsd;
xmlns:tns=http://ice.zerofiveone.com/Objecttest;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns=http://schemas.xmlsoap.org/wsdl/;
targetNamespace=http://ice.zerofiveone.com/Objecttest;
types
  xsd:schema
  targetNamespace=http://ice.zerofiveone.com/Objecttest;
  xsd:import
namespace=http://schemas.xmlsoap.org/soap/encoding/; /
  xsd:import namespace=http://schemas.xmlsoap.org/wsdl/; /
  xsd:complexType name=Person
xsd:all
  xsd:element name=name type=xsd:string /
  xsd:element name=age type=xsd:string /
/xsd:all
  /xsd:complexType
  xsd:complexType name=PersonArray
xsd:complexContent
  xsd:restriction base=SOAP-ENC:Array
xsd:attribute ref=SOAP-ENC:arrayType
  wsdl:arrayType=tns:Person[] /
  /xsd:restriction
/xsd:complexContent
  /xsd:complexType
/xsd:schema
  /types

  message name=getPeopleRequest
part name=author type=xsd:int /
  /message
  message name=getPeopleResponse
part name=return type=tns:PersonArray /
  /message

  portType name=ObjecttestPortType
operation name=getPeople
  input message=tns:getPeopleRequest /
  output message=tns:getPeopleResponse /
/operation

  /portType
  binding name=ObjecttestBinding type=tns:ObjecttestPortType
soap:binding style=rpc
  transport=http://schemas.xmlsoap.org/soap/http; /
operation name=getPeople
  soap:operation
soapAction=http://ice.zerofiveone.com/Objecttest/getPeople;
style=rpc /
  input
soap:body use=encoded
  namespace=http://ice.zerofiveone.com/Objecttest;
  encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; /
  /input
  output
soap:body use=encoded
  namespace=http://ice.zerofiveone.com/Objecttest;
  encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; /
  /output
/operation
  /binding
  service name=Objecttest
port name=ObjecttestPort binding=tns:ObjecttestBinding
  soap:address
location=http://ice.zerofiveone.com/Objecttest/soap; /
/port
  /service
/definitions


Id really apprecaite any help with this one.  Im completely suck :)

Cheers,
Tom

On Mon Aug 14 10:45:06 2006, in  you wrote:

What are you using on your backend?  .NET?  

[Flashcoders] need help in button

2006-08-14 Thread Rutul Patel

hi people,
anybody know how to draw button using AS.
if anybody can tell me,
thanks

--
Regards,
Rutul Patel
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] need help in button

2006-08-14 Thread eric dolecki

You might want to check the draw API in the Help Docs. Its filed under
MovieClip.

On 8/14/06, Rutul Patel [EMAIL PROTECTED] wrote:


hi people,
anybody know how to draw button using AS.
if anybody can tell me,
thanks

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

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


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

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


RE: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Merrill, Jason
Yeah, sorry, this is more of a Perl SOAP WSDL generation issue than a
Flash issue I think.  I don't do the WSDL creation in .NET here, I have
a .NET C# developer I work with.  Nobody here knows Perl SOPA WSDL
creation in my group.  I do know that using native complex objects are
fine with Flash and .NET produced WSDLs, and they semi-problematic in
ColdFusion (according to some recent posts on this list - they
recommended sticking with the straight XML response instead), but I know
nothing of Perl-based WSDL SOAP requests.  I only know the basics of a
SOAP WSDL format, so I couldn't begin to debug yours... sorry.  Have you
compared your SOAP response to working ones on the Web?  

Best of luck to you,  

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Shaw
Sent: Monday, August 14, 2006 3:28 PM
To: Flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array
of complex
objects

Hi Jason,

Im using Perl with Apach2-SOAP under mod_perl.

If you are sending objects back and forth then I dont see why I should
be having problems.  It must be a problem with my WSDL or Perl SOAP
Response.

Since flash decodes the response according to the WSDL file then it
seems likely there is a problem with this bit.

I have included the WSDL file and a copy of the request and response.
Does the response look vastly different for an array of objects that
you might expect to see on your working Flash/SOAP project?

This is an example and triggers my problem and is as short as I could
make it.

- snip 8 --

Request
?xml version=1.0 encoding=utf-8?
SOAP-ENV:Envelope
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  SOAP-ENV:Body xmlns:ns1=http://ice.zerofiveone.com/Objecttest;
ns1:getPeople
 SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  author xsi:type=xsd:int/author
/ns1:getPeople
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

Response
?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:namesp2=http://xml.apache.org/xml-soap;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  SOAP-ENV:Body
namesp6:getPeopleResponse
  xmlns:namesp6=http://ice.zerofiveone.com/Objecttest;
  SOAP-ENC:Array xsi:type=SOAP-ENC:Array
SOAP-ENC:arrayType=namesp2:SOAPStruct[3]
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringTom/name
  age xsi:type=xsd:int24/age
/item
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringChris/name
  age xsi:type=xsd:int26/age
/item
item xsi:type=namesp2:SOAPStruct
  name xsi:type=xsd:stringAndrew/name
  age xsi:type=xsd:int56/age
/item
  /SOAP-ENC:Array
/namesp6:getPeopleResponse
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

And finally the WSDL - I tried to keep this as short as possible for
this example.

?xml version=1.0?
definitions
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
  xmlns:si=http://soapinterop.org/xsd;
  xmlns:tns=http://ice.zerofiveone.com/Objecttest;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
  xmlns=http://schemas.xmlsoap.org/wsdl/;
  targetNamespace=http://ice.zerofiveone.com/Objecttest;
  types
xsd:schema
  targetNamespace=http://ice.zerofiveone.com/Objecttest;
  xsd:import
namespace=http://schemas.xmlsoap.org/soap/encoding/; /
  xsd:import namespace=http://schemas.xmlsoap.org/wsdl/; /
  xsd:complexType name=Person
xsd:all
  xsd:element name=name type=xsd:string /
  xsd:element name=age type=xsd:string /
/xsd:all
  /xsd:complexType
  xsd:complexType name=PersonArray
xsd:complexContent
  xsd:restriction base=SOAP-ENC:Array
xsd:attribute ref=SOAP-ENC:arrayType
  wsdl:arrayType=tns:Person[] /
  /xsd:restriction
/xsd:complexContent
  /xsd:complexType
/xsd:schema
  /types

  message name=getPeopleRequest
part name=author type=xsd:int /
  /message
  message name=getPeopleResponse
part name=return type=tns:PersonArray /
  /message

  portType name=ObjecttestPortType
operation name=getPeople
  input message=tns:getPeopleRequest /
  output message=tns:getPeopleResponse /

Re: [Flashcoders] need help in button

2006-08-14 Thread Rutul Patel

Thank you eric,
i got it.
thanks


On 8/14/06, eric dolecki [EMAIL PROTECTED] wrote:


You might want to check the draw API in the Help Docs. Its filed under
MovieClip.

On 8/14/06, Rutul Patel [EMAIL PROTECTED] wrote:

 hi people,
 anybody know how to draw button using AS.
 if anybody can tell me,
 thanks

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

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

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

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





--
Regards,
Rutul Patel
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] need help in button

2006-08-14 Thread Merrill, Jason
Very gd. Vat vas just vat you vanted!

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Rutul Patel
Sent: Monday, August 14, 2006 4:49 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] need help in button

Thank you eric,
i got it.
thanks


On 8/14/06, eric dolecki [EMAIL PROTECTED] wrote:

 You might want to check the draw API in the Help Docs. Its filed
under
 MovieClip.

 On 8/14/06, Rutul Patel [EMAIL PROTECTED] wrote:
 
  hi people,
  anybody know how to draw button using AS.
  if anybody can tell me,
  thanks
 
  --
  Regards,
  Rutul Patel
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] need help in button

2006-08-14 Thread Steven Sacks | BLITZ
 hi people,
 anybody know how to draw button using AS.
 if anybody can tell me,
 thanks

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-April/164718.htm
l

hi hello how do I make a multi-player game in flash its got to have
lasers thank you

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

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


Re: [Flashcoders] need help in button

2006-08-14 Thread Bbt Lists

On 8/14/06, Rutul Patel [EMAIL PROTECTED] wrote:


hi people,
anybody know how to draw button using AS.
if anybody can tell me,
thanks

--
Regards,
Rutul Patel


You could define your button in a movieclip - place it in your library, 
and attach it to your movie with AS.


Or skin the button component, and attach that.


--
dnk

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

2006-08-14 Thread eric dolecki

Interesting - but from a usability standpoint its not great

On 8/14/06, Flash Mel [EMAIL PROTECTED] wrote:


Have a look at this: www.rpa.com

Interesting concept.  My question is merely on the zooming; zooming
elements from far to wide.  I like this a lot.  I know it might be a
bit of a challenge for me, but i'm willing to try it.  If someone
could point me in the direction of some conceptual ideas that would be
fantastic.

Thanks all.

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

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


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

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


[Flashcoders] Training Centre

2006-08-14 Thread Rafael Faria

Hey guys...

Does anyone here have heard about Future Media Concepts in NY? Does anyone
recomend to take training over there?

Does anyone know Marcus Geduld who is the flash instructor at FMC?

I would appreciate any information about that.
Thanks

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

2006-08-14 Thread Flash Mel

Have a look at this: www.rpa.com

Interesting concept.  My question is merely on the zooming; zooming
elements from far to wide.  I like this a lot.  I know it might be a
bit of a challenge for me, but i'm willing to try it.  If someone
could point me in the direction of some conceptual ideas that would be
fantastic.

Thanks all.

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

2006-08-14 Thread Steven Sacks | BLITZ
 from a usability standpoint its not great

Jakob Nielsen is overrated!  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Actionscript 3.0 compiler Qs

2006-08-14 Thread Kevin Newman
Here are some things I've been wondering about Actionscript 3.0s 
compiler and runtime engines:


I'm assuming AS 3.0 compiles to a bytecode. What kind of bytecode does 
it compile to? Is it more like Java/.NET CLR, or more like Mozilla's 
Spidermonkey compiler?


Does the compiled code get recompiled during runtime to machine code 
(like a JIT compiler) or does it get interpreted?


Also, how does the compiler deal with typing? Statically typed, compiled 
languages usually have the type set in stone at compile time whereas 
dynamically typed, interpreted languages like javascript and php can do 
type coercion at runtime on the fly. Which one does the Actionscript 3.0 
runtime do? Does it do both depending on whether the type is static or 
dynamic?


Thanks, and please correct anything that I may have written if it is not 
accurate. :-)


Kevin N.





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

2006-08-14 Thread eric dolecki

Perhaps so, but a website that upfront tells you how to use it (and also has
a help feature in case you need it later) can't possibly be very
usability-oriented. I enjoy creative navigation as much as anyone, but
sometimes it overwhelms the enjoyment of the information in the site itself.

- e.d.

On 8/14/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


 from a usability standpoint its not great

Jakob Nielsen is overrated!  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


RE: [Flashcoders] zoomin'

2006-08-14 Thread Steven Sacks | BLITZ
 sometimes it overwhelms the enjoyment of the information

You find it enjoyable to read about an ad agency's employees?

You're kidding, right?  I mean, do you think that anyone would give a
crap about that site if it had standard navigation?  Think outside the
box, man!  

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

2006-08-14 Thread eric dolecki

I prefer what CRASH!MEDIA has done with projects/timeline. It doesn't
consume the entire site, letting me feel like I am still in control, not
navigating around in a mess of projects. Thats just me though.

On 8/14/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


 sometimes it overwhelms the enjoyment of the information

You find it enjoyable to read about an ad agency's employees?

You're kidding, right?  I mean, do you think that anyone would give a
crap about that site if it had standard navigation?  Think outside the
box, man!

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

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


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

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


Re: [Flashcoders] zoomin'

2006-08-14 Thread Michael Stuhr

Steven Sacks | BLITZ schrieb:

I mean, do you think that anyone would give a
crap about that site if it had standard navigation?  
even with a non-standard navigation, which i have alrady seen some years 
ago (natzke etc), it stays crap.


but to stay OT: the question was for some ideas to get such an effect.
as this doesn't really need a 3d environment, i'd suggest you 
dynamically attach your clips as they should appear in time.
by simply setting a listener for the scrollwheel (look this up in the 
manual)  you get your event(s)  (the time). you then scale your clips  
according to the _depth they have.


well it's just to get you started, so don't mindif  i don't get too much 
into details, and i'm sure there  a better concepts for this.  just 
wanted to get back OT.


micha


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

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


Re: [Flashcoders] zoomin'

2006-08-14 Thread eric dolecki

To follow what micha said, you could also add a little _x movement depending
on the scale of the timeline clip... this will give a little more
appearance of a 3D system.

e.d.

On 8/14/06, Michael Stuhr [EMAIL PROTECTED] wrote:


Steven Sacks | BLITZ schrieb:
 I mean, do you think that anyone would give a
 crap about that site if it had standard navigation?
even with a non-standard navigation, which i have alrady seen some years
ago (natzke etc), it stays crap.

but to stay OT: the question was for some ideas to get such an effect.
as this doesn't really need a 3d environment, i'd suggest you
dynamically attach your clips as they should appear in time.
by simply setting a listener for the scrollwheel (look this up in the
manual)  you get your event(s)  (the time). you then scale your clips
according to the _depth they have.

well it's just to get you started, so don't mindif  i don't get too much
into details, and i'm sure there  a better concepts for this.  just
wanted to get back OT.

micha


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

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


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

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


[Flashcoders] OR mapping best practices for flashapplication development ?

2006-08-14 Thread Ramswrestler93x
HOW CAN I DOWNLOAD FLASH APPLACTION
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] diff between var == value VS var eq value

2006-08-14 Thread dnk

Is there a difference?

I have had some code that will not work using the == and then does 
using the eq.



Any issues?

Just curious what the difference is.

d



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] diff between var == value VS var eq value

2006-08-14 Thread Grant Cox
eq has been deprecated in favour of == for many years now.  While they 
should be equivalent, you should not use eq unless you are targeting 
Flash Player 4/5.


Is the code where == didn't work for Flash lite?


dnk wrote:

Is there a difference?

I have had some code that will not work using the == and then does 
using the eq.



Any issues?

Just curious what the difference is.

d



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

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


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

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


Re: [Flashcoders] diff between var == value VS var eq value

2006-08-14 Thread Haikal Saadh

Yes, they are different.r

Actionscript dictionary says 'eq' is deprecated. It just compares string 
representations, so what you might be doing is comparing a number to 
it's string representation (User input, perhaps?): 
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary198.html



What == does depends on what sort of data you're comparing. Again, from 
the dictionary:


The definition of equal depends on the data type of the parameter:

	Numbers and Boolean values are compared by value, and are considered 
equal if they have the same value.
	String expressions are equal if they have the same number of characters 
and the characters are identical.
	Variables, objects, arrays, and functions are compared by reference. 
Two variables are equal if they refer to the same object, array, or 
function. Two separate arrays are never considered equal, even if they 
have the same number of elements.








dnk wrote:

Is there a difference?

I have had some code that will not work using the == and then does 
using the eq.



Any issues?

Just curious what the difference is.

d



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

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




--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] diff between var == value VS var eq value

2006-08-14 Thread Shane Korin

I think the eq and ne operators are supposed to be used for String
comparisons, and the == or != operators used for numerical or other
comparisons etc.

==  and !=  won't work on strings in flash player 4 (and maybe 5?)




On 8/15/06, Grant Cox [EMAIL PROTECTED] wrote:


eq has been deprecated in favour of == for many years now.  While they
should be equivalent, you should not use eq unless you are targeting
Flash Player 4/5.

Is the code where == didn't work for Flash lite?


dnk wrote:
 Is there a difference?

 I have had some code that will not work using the == and then does
 using the eq.


 Any issues?

 Just curious what the difference is.

 d



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

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

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

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


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

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