[Flashcoders] [as3] colorTransform

2007-04-09 Thread ilteris kaplan

Hello flashcoders,

Once again, And after this I am not going to bother you for a while,  
I am trying to do basic colorTransform in as3. I am following docs  
from different places and the way I set i up is below: Unfortunately,  
I am missing something here. I would appreciate any advices regarding  
that.


best,
ilteris


package {
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.events.Event;

import flash.geom.*;

public class ColorTransforma extends Sprite
{


var _sprite:Sprite; 
var color:ColorTransform;





public function ColorTransforma() {
_sprite = new Sprite();

color = _sprite.transform.colorTransform;
_sprite.transform.colorTransform = color;

_sprite.graphics.lineStyle(  );
_sprite.graphics.beginFill(0xFF);
_sprite.graphics.drawRect(0, 0, 100, 100);
_sprite.graphics.endFill(  );
addChild(_sprite);

_sprite.addEventListener(MouseEvent.MOUSE_DOWN, 
onMouseDown);


}

public function changeColor() {
color.redOffset = 0;
color.greenOffset = 0;
color.blueOffset = 0;
_sprite.transform.colorTransform = color;

}

private function onMouseDown(event:MouseEvent):void {
changeColor();
trace("yay");

}



}

}



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

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


[Flashcoders] JSFL Executer [WAS] Create MXI/MXP with External JSFL

2007-04-09 Thread Muzak
Since a JSFL topic came up I thought I'd dig up my JSFL Executer command.
It's a command that pops a Dialog (XUL) with a simple mulitline textbox.
You can fill in some jsfl code, hit "ok" and the jsfl will be executed.
Comes in handy for quickly testing pieces of code.

There's two files, one jsfl and one xml.

"JSFL Executer.jsfl"

var jsflDialog = fl.getDocumentDOM().xmlPanel(fl.configURI + 
"Commands/xul/JSFL_Executer.xml");

if (jsflDialog.dismiss == "accept") {
 fl.trace(eval(jsflDialog.script_txt));
}


"JSFL_Executer.xml"


 
  
  
 


Save both files and put them in:

Commands/JSFL Executer.jsfl
Commands/xul/JSFL_Executer.xml

You can then run the command from the Commands menu in the Flash IDE.
Fill in some jsfl and run it (note the it will actually *run* the code).
For instance if you fill in:
fl.getDocumentDOM().frameRate;

It will display the documents current framerate in teh output panel

However if you run:
fl.getDocumentDOM().frameRate = 21;

It will actually change the current document's framerate to 21 ;-) and display 
it in the output panel.

Taking Steven's jsfl code from the previous thread, this will execute as well:

var uri = fl.configURI+"jsfl/myCommand.jsfl";
var func = "sayHello";
fl.trace(uri);
fl.runScript(uri, func);

Hope someone finds it useful.

regards,
Muzak


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

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


Re: [Flashcoders] [as3] using stage.stageWidth property in a constructor

2007-04-09 Thread Aspirin errr

You must import the Stage Class, and try to trace it again.

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


If I'm not mistaken the stage property is one of the last things that gets
created/defined (oddly enough).

You'll have to listen to one of the available events and see which one is
invoked after the stage property has been set (I'm not
sure which one is the best candidate really). Try listening for the "
Event.ADDED_TO_STAGE" event.

regards,
Muzak

- Original Message -
From: "ilteris kaplan" <[EMAIL PROTECTED]>
To: "Flash Lists" 
Sent: Tuesday, April 10, 2007 12:18 AM
Subject: [Flashcoders] [as3] using stage.stageWidth property in a
constructor


> Hello Flash Folks,
>
> I am trying to access stage.stageWidth property in order to be able  to
give certain x,y values to my objects when they are
> created. So  when I went ahead tried to use stage.stageWidth by just
tracing like  trace(stage.stageWidth);
> this causing flash player 9 to throw an error to me:
>
> TypeError: Error #1009: Cannot access a property or method of a
null  object reference.
> at ParticleManager$iinit()
> at Moodbox2$iinit()
>
> so what I am guessing is stage object is not instantiated when I
am  trying to call it. Anyone know any workaround for this?
>
> best,
> ilteris


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [as3] embedded fonts from external swfs.

2007-04-09 Thread ilteris kaplan

Hello Flashcoders,

I am working on a project where I need to embed multiple typefaces in  
my AS3 project. Here is what I got so far. I could happened to open  
my flash 8 and create multiple font symbols and add a linkage and  
check them to export them for actionscript. Then I put that file in  
my AS3 project where I am developing using Flex Builder 2.


Then I just hacked an existing example with mashing flex2 examples on  
adobe labs. My file name for flash 8 swf is  "din.swf" and I went  
ahead and added this line in the beginning of my project:


[Embed(source='din.swf', symbol='dinBold' )]

this worked perfectly!  So the symbol 'dinBold' was its linkage name  
when I was exporting it form flash 8.  so far so good, but my problem  
is how could I use this to import multiple typefaces?


When I go  to extract multiple symbols from the same swf it simply  
doesn't work.  I have been following this from the flex docs at the  
adobe lab so I couldn't understand why this is not working.


[Embed(source='din.swf', symbol='dinBold' )]// linkage name dinBold

[Embed(source='din.swf', symbol='dinLight' )] // linkage name dinLight

I can create a unique swf for each of the typeface but then this is  
really cumbersome and I think there should be a way to import  
multiple symbols from the same swf.


Thanks in advance.
ilteris


here is my source code just in case:


package {
import flash.display.Sprite;
import flash.text.*;

import flash.events.Event;
import flash.events.TimerEvent;
import flash.utils.Timer;

 [SWF(backgroundColor="#1C1A14",  frameRate="61")]

 [Embed(source='din.swf', symbol='dinBold' )]
public class Loadfont extends Sprite {

private var _timer:Timer;
private var tf:TextField;

public function Loadfont() {
tf = new TextField();
test();

listFonts();

 _timer = new Timer(1);
_timer.addEventListener("timer", onTimer);
_timer.start(  );
}

public function test():void {
tf.defaultTextFormat = new 
TextFormat("DIN-BoldAlternate", 50, 255);
tf.embedFonts = true;
tf.antiAliasType = AntiAliasType.ADVANCED;
tf.autoSize = TextFieldAutoSize.LEFT;
tf.border = false;
tf.text = "blah blah blah\nblah blah blah\nblah blah blah 
";
tf.rotation += 2;
addChild(tf);
}

public function listFonts() {   
var fontList:Array = Font.enumerateFonts(false);
for (var i:uint=0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] [as3] mouseEvents are not triggering

2007-04-09 Thread Aspirin errr

Hi,
  You do not add the _sprite into the children list of the main movie.
  Add it here.

public function Moodbox2() {
_sprite = new Sprite();
addChild(_sprite );
.


On 4/10/07, ilteris kaplan <[EMAIL PROTECTED]> wrote:


Thanks Atila,

I am totally new to programming in as3 and I am trying to make sense :)
I though it would be a good idea to keep the mouseEvents on the main
class file along with everything but as you said I moved it from there
to particleManager and it solved my problem.  thanks.



On 4/9/07, Rákos Attila <[EMAIL PROTECTED]> wrote:
>
> You didn't add _sprite to the display list, so how could it trigger
mouse
> events if it is not even visible? And on the other hand, _sprite is
> totally empty, it has no hit area where you can click and fire the
> MOUSE_DOWN event. Why don't you add event listener to the particle
> manager? Sorry if I miss something, but I don't understand exactly what
> are you going to do.
>
>   Attila
>
> > Hello All,
> >
> > I am having a difficulty using mouseEvents in AS3.0 with Flex
> > Builder. When I test a basic example it works fine but my setup is
> > different. It is  like this: I do have some circles which is
> > controlled by particleManager class. Basically Iam adding
> > particleManager with addChild method in order to render it on the
> > stage. Next I created _sprite in order to call mouseEvents on top of
> > it.  And in the below code, I didn't do anything different, I just
> > added Listeners for mouseEvents.  Do I have to do something special
> > with pm object?  Should I be instantiating mouse Events on top of pm
> > object? Am I supposed to register pm objects with mouseEvents so that
> > they can be triggered? If so what's the right way to do it?
> >
> > I really appreciate any help.
> > best,
> > ilteris
> >
> >
> > /**
> > * saturday april 7.
> >   * first iteration.
> > */
> > package {
> >   import flash.display.Sprite;
> >   import flash.events.Event;
> >  import flash.events.TimerEvent;
> >  import flash.utils.Timer;
> >  import flash.events.MouseEvent;
> >
> >   [SWF(backgroundColor="#1C1A14", width="400", height="180",
> > frameRate="61")]
> >
> >
> >   public class Moodbox2 extends Sprite {
> >   private var _timer:Timer;
> >   public var pm:ParticleManager;
> >   private var _sprite:Sprite;
> >   public function Moodbox2() {
> >pm = new ParticleManager();
> >   _sprite = new Sprite();
> >   addChild(pm);
> >
> >
> >   _sprite.addEventListener(MouseEvent.MOUSE_DOWN,
onMouseDown);
> >   _sprite.addEventListener(MouseEvent.MOUSE_UP,
onMouseUp);
> >
> >
> >   _timer = new Timer(3);
> >  _timer.addEventListener("timer", onTimer);
> >  _timer.start(  );
> >
> >
> >   }
> >
> >public function onTimer(event:TimerEvent):void {
> > pm.idle(0.4);
> >   pm.draw();
> >  //  addChild(pm);
> >  }
> >
> >   private function onMouseDown(event:MouseEvent):void {
> >   trace(pm.PRTS[0].pos.x);
> >//  pm.PRTS[0].pos.setN(mouseX,mouseY);
> >_sprite.addEventListener(MouseEvent.MOUSE_MOVE,
onMouseMove);
> >  }
> >
> >private function onMouseUp(event:MouseEvent):void {
> >  _sprite.removeEventListener(MouseEvent.MOUSE_MOVE,
> > onMouseMove);
> >}
> >
> >
> >private function onMouseMove(event:MouseEvent):void {
> >  trace("yes");
> >}
> >
> >
> >   }
> > }
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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 F

Re: [Flashcoders] OT: Happy Easter

2007-04-09 Thread Paul V.
I probably shouldn't but. .. Easter...named after the goddess of fertility,
is about new creations (your choice), so I don't know what you guys
generally know about paganism and the gods, but, well more than half of the
world still celebrates, 'easter' or 'passover' at the first moon after the
vernal (spring) equinox.  I appreciate the point made originally that maybe
saying God bless you, and not understanding that it would offend some is a
just bit presumptuous, considering the history (and not the history
mentioned above).  Anyway...I would have to say that, as Arse mentioned this
all doesn't have anything to do with Flash.  Where logic prevails ;)   Nice
to have a long relaxing weekend though.

Peace  Vm

Paul Vdst.

- Original Message - 
From: "eric e. dolecki" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 09, 2007 7:27 PM
Subject: Re: [Flashcoders] OT: Happy Easter


> When someone sneezes, I say, "God bless you." They don't have to believe
in
> God. No one has ever told me to keep God to myself. If they did, I
wouldn't
> change the way I live. Just my 2 cents.
>
> - e
>
>
>
> On 4/9/07, Snepo - Arse <[EMAIL PROTECTED]> wrote:
> >
> >
> > On 10/04/2007, at 8:10 AM, Gustavo Duenas wrote:
> >
> > > at least he BELIEVES IN YOU.
> >
> > As does Satan, Zeus, Quetzalcoatl, Ganesha, Cthulhu and L Ron Hubbard.
> >
> > Though I'm not sure what that has to do with Flash.
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
>
>
> -- 
> eric e. dolecki
> senior interactive engineer
> http://www.ericd.net
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Create MXI/MXP with External JSFL

2007-04-09 Thread Muzak
Sorry forgot to post the jsfl file (if that matters)
It simply contains the following:

function sayHello() {
 fl.trace("Hello from JSFL");
}

regards,
Muzak

- Original Message - 
From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 10, 2007 3:20 AM
Subject: RE: [Flashcoders] Create MXI/MXP with External JSFL


Muzak,

Thanks for your response.  Unfortunately, it's not working for me when I
try to test it before I even make it an MXI/MXP.

I created a jsfl folder inside the Configuration folder and put my jsfl
file in there.

uri = MMExecute("fl.configURI") + "jsfl/test.jsfl";
MMExecute("fl.trace(\"" + uri + "\")");

It traces it out just fine when Flash launches, but when I try to
runScript one of the functions in that jsfl file it says argument 1 is
invalid.

var func = "testFunc";
var cPath = MMExecute("fl.runScript(\"" + uri + "\", \"" + func +
"\")");

This works just fine if I hardcode the path to the JSFL on the C: drive.
There is one weird thing where it changes the : to a | with configURI
but the documentation says that it's supposed to work just like it is.

Any ideas?

Thanks,
Steven


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

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


Re: [Flashcoders] Create MXI/MXP with External JSFL

2007-04-09 Thread Muzak
This works here:

import mx.utils.Delegate;
var callJSFL_btn:mx.controls.Button;

function callJSFLClickHandler(o:Object):Void {
 trace("Application ::: callJSFLClickHandler");
 var uri = MMExecute('fl.configURI')+"jsfl/myCommand.jsfl";
 var func = "sayHello";
 MMExecute('fl.trace("'+uri+'")');
 MMExecute('fl.runScript("'+uri+'", "'+func+'")');
}
callJSFL_btn.addEventListener("click", Delegate.create(this, 
this.callJSFLClickHandler));

Note that I'm using single and double quotes, so I avoid having to escape 
quotes (and get lost in the process).

Yeah, the path notation is a bit odd: file:///C|/
but that's the way jsfl expects it to be.

regards,
Muzak

- Original Message - 
From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 10, 2007 3:20 AM
Subject: RE: [Flashcoders] Create MXI/MXP with External JSFL


Muzak,

Thanks for your response.  Unfortunately, it's not working for me when I
try to test it before I even make it an MXI/MXP.

I created a jsfl folder inside the Configuration folder and put my jsfl
file in there.

uri = MMExecute("fl.configURI") + "jsfl/test.jsfl";
MMExecute("fl.trace(\"" + uri + "\")");

It traces it out just fine when Flash launches, but when I try to
runScript one of the functions in that jsfl file it says argument 1 is
invalid.

var func = "testFunc";
var cPath = MMExecute("fl.runScript(\"" + uri + "\", \"" + func +
"\")");

This works just fine if I hardcode the path to the JSFL on the C: drive.
There is one weird thing where it changes the : to a | with configURI
but the documentation says that it's supposed to work just like it is.

Any ideas?

Thanks,
Steven


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

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


Re: [Flashcoders] Create MXI/MXP with External JSFL

2007-04-09 Thread Muzak
I haven't tried running a function, so I'll have to do a test here myself.
The quotes and escaping them always makes my head spin ;-)

I'll get back to you as soon as I figure it out.

regards,
Muzak

- Original Message - 
From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 10, 2007 3:20 AM
Subject: RE: [Flashcoders] Create MXI/MXP with External JSFL


Muzak,

Thanks for your response.  Unfortunately, it's not working for me when I
try to test it before I even make it an MXI/MXP.

I created a jsfl folder inside the Configuration folder and put my jsfl
file in there.

uri = MMExecute("fl.configURI") + "jsfl/test.jsfl";
MMExecute("fl.trace(\"" + uri + "\")");

It traces it out just fine when Flash launches, but when I try to
runScript one of the functions in that jsfl file it says argument 1 is
invalid.

var func = "testFunc";
var cPath = MMExecute("fl.runScript(\"" + uri + "\", \"" + func +
"\")");

This works just fine if I hardcode the path to the JSFL on the C: drive.
There is one weird thing where it changes the : to a | with configURI
but the documentation says that it's supposed to work just like it is.

Any ideas?

Thanks,
Steven


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

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


RE: [Flashcoders] Create MXI/MXP with External JSFL

2007-04-09 Thread Steven Sacks | BLITZ
Muzak,

Thanks for your response.  Unfortunately, it's not working for me when I
try to test it before I even make it an MXI/MXP.

I created a jsfl folder inside the Configuration folder and put my jsfl
file in there.

uri = MMExecute("fl.configURI") + "jsfl/test.jsfl";
MMExecute("fl.trace(\"" + uri + "\")");

It traces it out just fine when Flash launches, but when I try to
runScript one of the functions in that jsfl file it says argument 1 is
invalid.

var func = "testFunc";
var cPath = MMExecute("fl.runScript(\"" + uri + "\", \"" + func +
"\")");

This works just fine if I hardcode the path to the JSFL on the C: drive.
There is one weird thing where it changes the : to a | with configURI
but the documentation says that it's supposed to work just like it is.

Any ideas?

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

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


Re: [Flashcoders] OT: Happy Easter

2007-04-09 Thread eric e. dolecki

When someone sneezes, I say, "God bless you." They don't have to believe in
God. No one has ever told me to keep God to myself. If they did, I wouldn't
change the way I live. Just my 2 cents.

- e



On 4/9/07, Snepo - Arse <[EMAIL PROTECTED]> wrote:



On 10/04/2007, at 8:10 AM, Gustavo Duenas wrote:

> at least he BELIEVES IN YOU.

As does Satan, Zeus, Quetzalcoatl, Ganesha, Cthulhu and L Ron Hubbard.

Though I'm not sure what that has to do with Flash.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
eric e. dolecki
senior interactive engineer
http://www.ericd.net
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] flex tutorial online

2007-04-09 Thread Muzak
This should keep you busy:
http://www.adobe.com/devnet/flex/?tab:quickstart=1

Flex itself comes with a bunch of quickstart tutorials that show up when you 
first launch it (starter page).

Here's a tip.. have a look at the "design view" (click some stuff), then switch 
to "code view" and never go back ;-)

regards,
Muzak

- Original Message - 
From: "Gustavo Duenas" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 10, 2007 1:44 AM
Subject: [Flashcoders] flex tutorial online


> someone would recommend me a good flex tutorial online?
> I've just fall down in my curiosity because all the matters in this  list 
> regarding Flex  that I just  download the trial minutes 
> ago,and  I'm embarrassed to accept that I'm clueless.
>
> Regards
>
>
> Gustavo Duenas


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

2007-04-09 Thread Gustavo Duenas

nice site snep. congratsYou are truly good.

It has nothing to do with the list, I was just trying to be  
polite...that's it.



Regards.

Gustavo Duenas



On Apr 9, 2007, at 7:39 PM, Snepo - Arse wrote:



On 10/04/2007, at 8:10 AM, Gustavo Duenas wrote:


at least he BELIEVES IN YOU.


As does Satan, Zeus, Quetzalcoatl, Ganesha, Cthulhu and L Ron Hubbard.

Though I'm not sure what that has to do with Flash.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [as3] using stage.stageWidth property in a constructor

2007-04-09 Thread Muzak
If I'm not mistaken the stage property is one of the last things that gets 
created/defined (oddly enough).

You'll have to listen to one of the available events and see which one is 
invoked after the stage property has been set (I'm not 
sure which one is the best candidate really). Try listening for the 
"Event.ADDED_TO_STAGE" event.

regards,
Muzak

- Original Message - 
From: "ilteris kaplan" <[EMAIL PROTECTED]>
To: "Flash Lists" 
Sent: Tuesday, April 10, 2007 12:18 AM
Subject: [Flashcoders] [as3] using stage.stageWidth property in a constructor


> Hello Flash Folks,
>
> I am trying to access stage.stageWidth property in order to be able  to give 
> certain x,y values to my objects when they are 
> created. So  when I went ahead tried to use stage.stageWidth by just tracing 
> like  trace(stage.stageWidth);
> this causing flash player 9 to throw an error to me:
>
> TypeError: Error #1009: Cannot access a property or method of a null  object 
> reference.
> at ParticleManager$iinit()
> at Moodbox2$iinit()
>
> so what I am guessing is stage object is not instantiated when I am  trying 
> to call it. Anyone know any workaround for this?
>
> best,
> ilteris


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

2007-04-09 Thread Muzak
You know, that's the reason why OT == OT ;-)

Keep it coding please..

- Original Message - 
From: "Gustavo Duenas" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 10, 2007 12:10 AM
Subject: Re: [Flashcoders] OT: Happy Easter


> Man this is ludicrous, so if there is atheist there...fine!
> I guess your reaction to my 2 lines are like a vampire being wet with  holy 
> water!!!
> If you or other don't believe in the existence of god...is ok! I  guess we 
> all live in democracy.
> So if you don't believe...hmmm!?? at least he BELIEVES IN YOU.
>
>
> Regards
>
>
> Gustavo Duenas


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Create MXI/MXP with External JSFL

2007-04-09 Thread Muzak
You can use fl.runScript() to execute jsfl files. I usually install them 
alongside the Panels in a sub directory called jsfl, unless 
the jsfl file has to be accessable via the Command menu in the Flash IDE in 
which case they need to be stored in the Commands folder 
in the Flash Configuration directory (and you can't put them in sub folders).

Flash Panels end up in the WindowSWF folder inside the Flash configuration 
directory.
So jsfl files that are inteded to be used (called) by a Flash Panel go into 
"WindowSWF/jsfl/".

You can get the path to the Flash configuration directory using:
fl.configURI

Here's an example:

import mx.utils.Delegate
var callJSFL_btn:mx.controls.Button;
function callJSFLClickHandler(o:Object):Void {
 trace("Application ::: callJSFLClickHandler")
 MMExecute('fl.trace(fl.configURI)');
 MMExecute('fl.runScript(fl.configURI+"WindowSWF/jsfl/myCommand.jsfl")');
}
callJSFL_btn.addEventListener("click", Delegate.create(this, 
this.callJSFLClickHandler));


In your mxi file, use the following to put jsfl files in the "Commands" folder 
or in the "WindowSWF/jsfl" folder.
Folders that do not exist are created for you.

 
  
  
  
  
 

regards,
Muzak

- Original Message - 
From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 09, 2007 11:41 PM
Subject: [Flashcoders] Create MXI/MXP with External JSFL


Hey FC,

I have a Flash panel I created which requires an external JSFL file to
run.

How do I package up the JSFL file into the MXI/MXP and how do I
determine what the file path is to it load said JSFL from inside the
Actionscript of the panel SWF?

Wrapping the JSFL into Actionscript is not an option.  It's far too
complex.

Thanks,
Steven


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

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


[Flashcoders] Flashcoders really bad lag - just me?

2007-04-09 Thread Steven Sacks | BLITZ
Ever since the Flashcoders server went down, my posts to Flashcoders are
taking a long time to appear.  Is it just me or are other people
experiencing this?

These are from today, for instance:

RE: [Flashcoders] OT: Happy Easter
Sent: Mon 4/9/2007 11:56 AM
Appeared: Mon 4/9/2007 2:55 PM

3 hours to show up!


Create MXI/MXP with External JSFL
Sent: Mon 4/9/2007 2:42 PM
Appeared: Mon 4/9/2007 4:09 PM

Nearly 1.5 hours!


This message
Sent: Mon 4/9/2007 4:55 PM
Appeared: ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] flex tutorial online

2007-04-09 Thread Gustavo Duenas

someone would recommend me a good flex tutorial online?
I've just fall down in my curiosity because all the matters in this  
list regarding Flex  that I just  download the trial minutes ago,and  
I'm embarrassed to accept that I'm clueless.


Regards


Gustavo Duenas


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

2007-04-09 Thread Snepo - Arse


On 10/04/2007, at 8:10 AM, Gustavo Duenas wrote:


at least he BELIEVES IN YOU.


As does Satan, Zeus, Quetzalcoatl, Ganesha, Cthulhu and L Ron Hubbard.

Though I'm not sure what that has to do with Flash.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WebServices in Flash IDE ...

2007-04-09 Thread Muzak
IMO, using multiple design patterns = framework
Whether you throw them together on your own or use an existing one, it's still 
a framework.
Stuff like Cairngorm and ARP are just a step up from MVC.
IMO, you can read about them all day long.. the only thing that will help you 
grasp the concept is getting your hands dirty and 
actually use them (at least that's what works for me).

> But just to do a Webservice call on a large project you "probably should use 
> a framework"?

You really need to read that again..
Forget the webservice part and read out loud:

*on a large project you probably should use a framework*

repeat 100x ;-)

I rewrote your code because it was wrong/sloppy:

var myGetResult:Object = new Object();
myGetResult = myWS.getMyData();

Invoking a webservice method returns a PendingCall, not a generic Object, in 
AS3 you won't get away with it.
Plus, you don't need the first line (creating the object), because the method 
call "returns" something (PendingCall).
Hence:

var myData_pc:PendingCall = myWS.getMyData();

regards,
Muzak

- Original Message - 
From: "Merrill, Jason" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 09, 2007 9:43 PM
Subject: RE: [Flashcoders] WebServices in Flash IDE ...


>>>Well, I guess it depends on what you call a large project ;-)
>>>I do know that without a proper framework (MVC at a mimimum,
>>>doesn't have to be ARP etc..) things get messy, fast..
>>>And I disagree that you have to be an advanced coder to learn
>>>and understand them and afterall, this is FlashCoders, not
>>>FlashNewbies.
>
> Really.  Glad you pointed that out.  Well then who?  An "intermediate"?
> Explain to an "intermediate" how to implement Caringorn, I read a lot on
> the site and couldn't for the life of me figure it out, though I don't
> consider myself just an intermediate, though maybe you do.  :)  I guess
> it depends on what you consider an "advanced" coder, that's a subjective
> definition.  I also think MVC is a design pattern, not a framework.  In
> my vantage point, I don't see those as the same thing.  We use design
> patterns like MVC, but not formal frameworks like Cairngorn on our RIAs.
> I don't think frameworks like you mentioned HAVE to be used to do large
> projects and keep it clean.   But just to do a Webservice call on a
> large project you "probably should use a framework"?  I still would
> disagree with you there.  Design patterns, yes.  Frameworks, maybe, if
> it makes sense and works for you, and doesn't take too much time to
> figure out an implement.
>
>>>var myData_pc:PendingCall = myWS.getMyData();
>
> You re-wrote my example, but it does same thing I wrote, you just
> changed the names or the variables.  I'm confused as to why.
>
>>>That aside, I didn't say that if you want to use WebServices
>>>through ActionScript that you need some kind of framework.
>
> Well, OK, I guess if you're getting that technical, you actually instead
> said, "for large projects you probably should":
>
>>>For
>>>larger projects you probably should be using a framework
>>>(ARP/Cairngorn) in which case everything is written in code.
>
> Very slight semantic difference - "need" vs. "probably should".
>
> Jason Merrill


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

2007-04-09 Thread Gustavo Duenas
hi recently looking in half.com for books I find out  a dvd training  
for AS3, how good is it, if we compare this with the books?


Regards


Gustavo Duenas

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

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


[Flashcoders] [as3] using stage.stageWidth property in a constructor

2007-04-09 Thread ilteris kaplan

Hello Flash Folks,

I am trying to access stage.stageWidth property in order to be able  
to give certain x,y values to my objects when they are created. So  
when I went ahead tried to use stage.stageWidth by just tracing like  
trace(stage.stageWidth);

this causing flash player 9 to throw an error to me:

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

at ParticleManager$iinit()
at Moodbox2$iinit()

so what I am guessing is stage object is not instantiated when I am  
trying to call it. Anyone know any workaround for this?


best,
ilteris
 
  
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] basic flash games development issues

2007-04-09 Thread nik crosina

Speaking of which - is there a serious competitor to Zinc when it
comes to not only wrapping a swf into an exe but also adding some
functionality such as the system functions and methods that come with
it?

I am looking around the net and can only find relative light weights
such as flajector, and swfkit, or am I misjudging them?

Nik

On 4/9/07, nik crosina <[EMAIL PROTECTED]> wrote:

Hi Dan,

How did you run the flash files from the disk? Did they run inside a
browser, or did you wrap them in a 'swf to exe' app like Zinc?

And if you did, do the above limitations still aply? Becasue I just
ahd a look at the mdm script
(http://www.multidmedia.com/support/learning/help/HTML/zinc/2.5/index.html)
and e.g. the mdm.FileSystem methods seem pretty comprehensive!

Nik



On 4/9/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:
>
> We've built some applications for CD, and have run into 'security
> sandbox' issues.  They were very frustrating.  The DVD will be
> considered 'local content', and you can read about the issues here:
> http://www.adobe.com/products/flashplayer/articles/localcontent/
>
> When you begin testing your applications, make sure you are doing so
> with 'default' security settings in Flash.  I'm guessing most of us have
> turned them to 'always allow' because we got security errors once and
> just turned them off, but you can't expect your clients to have that
> set, or want to change them.  Without installing something on the users
> machine, changing the security settings requires access to the internet,
> (which is very silly IMO) but you may need to take internet-less users
> who won't be able to change their settings into account as well.
>
> As far as SharedObjects go, the user may be able to change them, and
> clearing their internet caches may delete the SharedObjects (and thus
> their scores).
>
> -Dan
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of nik
> crosina
> Sent: Sunday, April 08, 2007 4:03 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] basic flash games development issues
>
> Hi,
>
> I am putting together a quote for a client who needs to have a number
> of games developed for a DVD. I am new to games dev and running Flash
> from disks so my questions are now:
>
> Are there any special issues relating to putting (existing) games onto
> disks? How would we keep high scores, etc. Can Flash write to disks
> when run from a DVD?
>
> I am planning to use Zinc to run the swf in, which raises some
> questions regarding the needed compatibility: The interface of the
> thing will need to display also PDF files, something I never had to do
> in Flash. Is this possible and can they be displayed inside4 Flash or
> only opened externally with existing / installed Acrobats (or Acr.
> Readers)?
>
> Are there any viable alternatives to Zinc?
>
> All the above *needs* to run on Win 98, XP and Vista, and the client
> would be in 7th heaven if we can get it to work on Mac and Linux OSs.
> Are there any issues we could encounter or reasons why this would not
> work/ I am thinking along the lines of players not being available for
> any of the above platforms, or implementing things differently on
> different platforms.
>
> Is there a ball park guide line how long the development of a simple
> 'point and shoot/avoidance' game would take under the above
> restrictions?
>
> I hope this is not too OT, thanks for any responses.
>
> Nik C
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
> This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary information. 
If you are not the intended recipient, or the employee or agent responsible for 
delivering the message to the intended recipient, you are hereby notified that any 
dissemination, distribution, displaying, copying, or use of this information is 
strictly prohibited. If you have received this communication in error, please 
inform the sender immediately and delete and destroy any record of this message. 
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
>


--
Nik C




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

Brought to you 

Re: [Flashcoders] OT: Happy Easter

2007-04-09 Thread Gustavo Duenas
I almost forgot, you should have just let it go and stick to the  
programming stuff.


Regards


Gustavo Duenas


On Apr 9, 2007, at 2:55 PM, Steven Sacks | BLITZ wrote:


Hahahahahahahaha!

And I quote Cedric:


whatever!
...
respect


First, you open with "whatever!" which is what people say to signify
disrespect for something another person said.  And then you say
"respect" as if saying that nullifies it.  Nice try, buddy.

You "get hurt" by god blessings?  How could you possibly be hurt by  
god

blessings if you don't believe in god?  That's ridiculous.

Did it feel good to have your temper tantrum?  I hope so, but don't
pretend for a moment that temper tantrums are respectful. They're
childish.





BLITZ | Steven Sacks - 310-551-0200 x209



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Cedric Muller
Sent: Monday, April 09, 2007 4:33 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] OT: Happy Easter

whatever!
stop this, this is OT, GOD doesn't exist (globally speaking
in people's minds) and I am not a believer, so I DON'T need
any god's blessing (more than that: keep it for yourself)
this is about laicity, this is about secular coding... this
is JUST ABOUT CODING WITH FLASH :P sorry if this hurts, but I
do get hurt by 'god blessings'...
respect
Cedric




Happy easter to everyone and god bless you all guys.


Regards


Gustavo Duenas
On Apr 8, 2007, at 9:47 PM, Omar Fouad wrote:


Happy Easter to you and all the List Members Ricardo

On 4/8/07, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


On behalf of Jews everywhere, may I be the first to say you're
welcome!
:)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is
never boastful
nor conceited It is never rude or selfish. It does not take
offense and is
not resentful. Love takes no pleasure in other people's

sins...but

delights
in the truth. It is always ready to excuse, to trust, to hope...
and to
endure... whatever comes.


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

2007-04-09 Thread Gustavo Duenas

Man this is ludicrous, so if there is atheist there...fine!
I guess your reaction to my 2 lines are like a vampire being wet with  
holy water!!!
If you or other don't believe in the existence of god...is ok! I  
guess we all live in democracy.

So if you don't believe...hmmm!?? at least he BELIEVES IN YOU.


Regards


Gustavo Duenas





On Apr 9, 2007, at 2:55 PM, Steven Sacks | BLITZ wrote:


Hahahahahahahaha!

And I quote Cedric:


whatever!
...
respect


First, you open with "whatever!" which is what people say to signify
disrespect for something another person said.  And then you say
"respect" as if saying that nullifies it.  Nice try, buddy.

You "get hurt" by god blessings?  How could you possibly be hurt by  
god

blessings if you don't believe in god?  That's ridiculous.

Did it feel good to have your temper tantrum?  I hope so, but don't
pretend for a moment that temper tantrums are respectful. They're
childish.





BLITZ | Steven Sacks - 310-551-0200 x209



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Cedric Muller
Sent: Monday, April 09, 2007 4:33 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] OT: Happy Easter

whatever!
stop this, this is OT, GOD doesn't exist (globally speaking
in people's minds) and I am not a believer, so I DON'T need
any god's blessing (more than that: keep it for yourself)
this is about laicity, this is about secular coding... this
is JUST ABOUT CODING WITH FLASH :P sorry if this hurts, but I
do get hurt by 'god blessings'...
respect
Cedric




Happy easter to everyone and god bless you all guys.


Regards


Gustavo Duenas
On Apr 8, 2007, at 9:47 PM, Omar Fouad wrote:


Happy Easter to you and all the List Members Ricardo

On 4/8/07, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


On behalf of Jews everywhere, may I be the first to say you're
welcome!
:)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is
never boastful
nor conceited It is never rude or selfish. It does not take
offense and is
not resentful. Love takes no pleasure in other people's

sins...but

delights
in the truth. It is always ready to excuse, to trust, to hope...
and to
endure... whatever comes.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Swf not working when loaded from another movie..

2007-04-09 Thread Omar Fouad

thanks all i found out what was the problem i was created a movie clip on
level 1 accidentally.. i replaced it with this.getNextHighestDepth() ;

thanks all

On 4/9/07, Michael Mudge <[EMAIL PROTECTED]> wrote:


It is quite likely that inner SWF you're loading accesses _root, which
by default accesses the outer SWF.  After you load the movie, try
setting it's _lockroot to true -- this will make the inner SWF's _root
point to the right place.

- Kipp

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Omar Fouad
> Sent: Sunday, April 08, 2007 9:47 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Swf not working when loaded from
> another movie..
>
>
> Hi list... i got an swf that actually is the gallery "part"
> of a site i am working on the swf itself works when run
> alone... But in the site, when loaded by loadMovie(), works
> partially. does someone know why this is happening
>
> Thanks so much
>
> Regards
>
> --
> Omar Fouad - Digital Emotions...
>
> Love is always patient and kind. It is never jealous. Love is
> never boastful nor conceited It is never rude or selfish. It
> does not take offense and is not resentful. Love takes no
> pleasure in other people's sins...but delights in the truth.
> It is always ready to excuse, to trust, to hope... and to
> endure... whatever comes.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Create MXI/MXP with External JSFL

2007-04-09 Thread Steven Sacks | BLITZ
Hey FC,

I have a Flash panel I created which requires an external JSFL file to
run.

How do I package up the JSFL file into the MXI/MXP and how do I
determine what the file path is to it load said JSFL from inside the
Actionscript of the panel SWF?

Wrapping the JSFL into Actionscript is not an option.  It's far too
complex.

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

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


[Flashcoders] Kick this guy off the list

2007-04-09 Thread Steven Sacks | BLITZ
KICK THIS GUY OFF THE LIST!

His out of office email is spamming every thread.

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Tareq AlJaber
> Sent: Monday, April 09, 2007 12:34 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] AS3 Delegate
> 
> I will be out of the office starting  04/09/2007 and will not 
> return until 04/16/2007.
> 
> I will not have access to my email during this time.  If you 
> need immediate assistance, please contact Aaron Dolberg 
> ([EMAIL PROTECTED]).  Thank you.
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] basic flash games development issues

2007-04-09 Thread nik crosina

Hi Dan,

How did you run the flash files from the disk? Did they run inside a
browser, or did you wrap them in a 'swf to exe' app like Zinc?

And if you did, do the above limitations still aply? Becasue I just
ahd a look at the mdm script
(http://www.multidmedia.com/support/learning/help/HTML/zinc/2.5/index.html)
and e.g. the mdm.FileSystem methods seem pretty comprehensive!

Nik



On 4/9/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:


We've built some applications for CD, and have run into 'security
sandbox' issues.  They were very frustrating.  The DVD will be
considered 'local content', and you can read about the issues here:
http://www.adobe.com/products/flashplayer/articles/localcontent/

When you begin testing your applications, make sure you are doing so
with 'default' security settings in Flash.  I'm guessing most of us have
turned them to 'always allow' because we got security errors once and
just turned them off, but you can't expect your clients to have that
set, or want to change them.  Without installing something on the users
machine, changing the security settings requires access to the internet,
(which is very silly IMO) but you may need to take internet-less users
who won't be able to change their settings into account as well.

As far as SharedObjects go, the user may be able to change them, and
clearing their internet caches may delete the SharedObjects (and thus
their scores).

-Dan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nik
crosina
Sent: Sunday, April 08, 2007 4:03 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] basic flash games development issues

Hi,

I am putting together a quote for a client who needs to have a number
of games developed for a DVD. I am new to games dev and running Flash
from disks so my questions are now:

Are there any special issues relating to putting (existing) games onto
disks? How would we keep high scores, etc. Can Flash write to disks
when run from a DVD?

I am planning to use Zinc to run the swf in, which raises some
questions regarding the needed compatibility: The interface of the
thing will need to display also PDF files, something I never had to do
in Flash. Is this possible and can they be displayed inside4 Flash or
only opened externally with existing / installed Acrobats (or Acr.
Readers)?

Are there any viable alternatives to Zinc?

All the above *needs* to run on Win 98, XP and Vista, and the client
would be in 7th heaven if we can get it to work on Mac and Linux OSs.
Are there any issues we could encounter or reasons why this would not
work/ I am thinking along the lines of players not being available for
any of the above platforms, or implementing things differently on
different platforms.

Is there a ball park guide line how long the development of a simple
'point and shoot/avoidance' game would take under the above
restrictions?

I hope this is not too OT, thanks for any responses.

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. 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




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

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


Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Muzak
I think that's just another example of "quick and dirty".
If your button needs a property "fruit" it should be a property of the class.
In other words, it should be its own class, eg FruitButton, with a property 
"fruit".

In AS2 I have never needed to pass any arguments to a Delegate, ever..
If you find you need to, you're doing something wrong and there's other (and 
better) ways of doing it.

In Flex, components have a data property of type Object that you can use.
It's main purpose is for components used as renderers, but if you feel like it, 
you can use it for other purposes as well.

function btnClickHandler(evt:MouseEvent):void {
trace(evt.currentTarget.data.fruit);
}
var btn:Button = new Button();
btn.data = {fruit:"pineapple"};
btn.addEventListener(MouseEvent.CLICK, btnClickHandler);

However, I doubt FCS3 components will have that same data property, since item 
renderers are not a big part of the Flash Component 
Framework, at least not in the same way it is in Flex.

AS3 finally has an Event class, which can be easily extended.. Time to start 
using it ;-)

regards,
Muzak

- Original Message - 
From: "Merrill, Jason" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 09, 2007 8:12 PM
Subject: RE: [Flashcoders] AS3 Delegate


> However, in AS 2 to tack on variables, I did/do it differently:
>
> var myDel:Object = myButton.onRelease = Delegate.create(this,
> doFunction)
> myDel.fruit = "pineapple";
>
> function doFunction():Void
> {
> trace(arugments.caller.fruit)
> }
>
> I assumed in AS3 you could do something similar, though I don't know, I
> haven't tried yet:
>
> var myObj:Object = myButton.onRelease = doFunction
> myObj.fruit = "pineapple";
>
> function doFunction():Void
> {
> trace(arugments.caller.fruit)
> }
>
> Or no?  I kinda doubt you have to do it the way you posted on your blog,
> but I don't know for sure.  If you do, that really sucks.
>
>
> Jason Merrill


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

2007-04-09 Thread Merrill, Jason
While this doesn't cover the xfactorstudios version of Xpath, it may
have some info that will help.

http://flash.terra.ee/flash-books/o'reilly%20-%20actionscript.cookbook.2
003/0596004907_actscptckbk-chp-19-sect-15.html

and

http://www.w3schools.com/xpath/default.asp


Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Hairy Dog Digital
>>Sent: Monday, April 09, 2007 3:07 PM
>>To: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED]
>>Subject: [Flashcoders] XPath online
>>
>>Hey all,
>>
>>Can anyone recommend a solid online reference for XPath 
>>(working with XFactorStudio XPath is Flash MX 04 Pro)? Their 
>>web site is next to non-existent, I just had to backpeddle on 
>>a project, and trying to get my bearings on XPath and their 
>>implementation of it for AS2.
>>
>>Thanks,
>>Rob
>>
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/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] XPath online

2007-04-09 Thread David Ngo
Try this:
http://download.macromedia.com/pub/documentation/en/flash/fl8/XpathAPI.pdf


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hairy Dog
Digital
Sent: Monday, April 09, 2007 12:07 PM
To: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED]
Subject: [Flashcoders] XPath online

Hey all,

Can anyone recommend a solid online reference for XPath (working with
XFactorStudio XPath is Flash MX 04 Pro)? Their web site is next to
non-existent, I just had to backpeddle on a project, and trying to get my
bearings on XPath and their implementation of it for AS2.

Thanks,
Rob


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

2007-04-09 Thread Thomas Fowler
I would look on msdn.microsoft.com/library under Win32 and COM 
Development -> XML -> MSXML -> MSXML 4.0 SDK -> XML Standards Reference -> 
XPath Reference. It's an excellent reference for XPath 1.0 and 2.0. There's 
nothing different about MSFT's XPath implementation other than their 
specific extensions which you wouldn't use anyway. Enjoy...


- Original Message -
From: "Hairy Dog Digital" <[EMAIL PROTECTED]>
To: ; <[EMAIL PROTECTED]>
Sent: Monday, April 09, 2007 2:07 PM
Subject: [Flashcoders] XPath online


Hey all,

Can anyone recommend a solid online reference for XPath (working with
XFactorStudio XPath is Flash MX 04 Pro)? Their web site is next to
non-existent, I just had to backpeddle on a project, and trying to get my
bearings on XPath and their implementation of it for AS2.

Thanks,
Rob


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

2007-04-09 Thread nik crosina

Thanks Josh,

The PDFs are only going onto the DVD as teachers instructions as to
how to use it, and I would like to inte3grte them directly into the
interface simply for usability reasons. I may well go down the
conversion to swf route and then provide the same PDFs in a folder
elsewhere on disk in case they need to be printed. the PDFs are not
going to be linked into any games directly (they might be though when
used for interactive whiteboard content which I also will need to
develop in flash...)

How is Flash with printing content off to a printer anyways? god - I
realise how much I don't know after coming to Flash from Director with
only the project done in flash so far.


Nik



On 4/9/07, Joshua Sera <[EMAIL PROTECTED]> wrote:

I'd look into using SharedObject for high scores.

Why do you need to display PDFs? Instructions?
Disclaimers? If they're instructions for the games,
you can try importing them into the library.
Alternately, if that gives you troubles, import them
into Illustrator, then export them as .swfs. Then you
can integrate them into the games themselves which is
much better usability-wise.

Really though, having the games link to PDFs isn't
such a hot idea.

--- nik crosina <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I am putting together a quote for a client who needs
> to have a number
> of games developed for a DVD. I am new to games dev
> and running Flash
> from disks so my questions are now:
>
> Are there any special issues relating to putting
> (existing) games onto
> disks? How would we keep high scores, etc. Can Flash
> write to disks
> when run from a DVD?
>
> I am planning to use Zinc to run the swf in, which
> raises some
> questions regarding the needed compatibility: The
> interface of the
> thing will need to display also PDF files, something
> I never had to do
> in Flash. Is this possible and can they be displayed
> inside4 Flash or
> only opened externally with existing / installed
> Acrobats (or Acr.
> Readers)?
>
> Are there any viable alternatives to Zinc?
>
> All the above *needs* to run on Win 98, XP and
> Vista, and the client
> would be in 7th heaven if we can get it to work on
> Mac and Linux OSs.
> Are there any issues we could encounter or reasons
> why this would not
> work/ I am thinking along the lines of players not
> being available for
> any of the above platforms, or implementing things
> differently on
> different platforms.
>
> Is there a ball park guide line how long the
> development of a simple
> 'point and shoot/avoidance' game would take under
> the above
> restrictions?
>
> I hope this is not too OT, thanks for any responses.
>
> Nik C
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the
> archive:
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>





Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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

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


Re: [Flashcoders] [as3] mouseEvents are not triggering

2007-04-09 Thread ilteris kaplan

Thanks Atila,

I am totally new to programming in as3 and I am trying to make sense :)
I though it would be a good idea to keep the mouseEvents on the main
class file along with everything but as you said I moved it from there
to particleManager and it solved my problem.  thanks.



On 4/9/07, Rákos Attila <[EMAIL PROTECTED]> wrote:


You didn't add _sprite to the display list, so how could it trigger mouse
events if it is not even visible? And on the other hand, _sprite is
totally empty, it has no hit area where you can click and fire the
MOUSE_DOWN event. Why don't you add event listener to the particle
manager? Sorry if I miss something, but I don't understand exactly what
are you going to do.

  Attila

> Hello All,
>
> I am having a difficulty using mouseEvents in AS3.0 with Flex
> Builder. When I test a basic example it works fine but my setup is
> different. It is  like this: I do have some circles which is
> controlled by particleManager class. Basically Iam adding
> particleManager with addChild method in order to render it on the
> stage. Next I created _sprite in order to call mouseEvents on top of
> it.  And in the below code, I didn't do anything different, I just
> added Listeners for mouseEvents.  Do I have to do something special
> with pm object?  Should I be instantiating mouse Events on top of pm
> object? Am I supposed to register pm objects with mouseEvents so that
> they can be triggered? If so what's the right way to do it?
>
> I really appreciate any help.
> best,
> ilteris
>
>
> /**
> * saturday april 7.
>   * first iteration.
> */
> package {
>   import flash.display.Sprite;
>   import flash.events.Event;
>  import flash.events.TimerEvent;
>  import flash.utils.Timer;
>  import flash.events.MouseEvent;
>
>   [SWF(backgroundColor="#1C1A14", width="400", height="180",
> frameRate="61")]
>
>
>   public class Moodbox2 extends Sprite {
>   private var _timer:Timer;
>   public var pm:ParticleManager;
>   private var _sprite:Sprite;
>   public function Moodbox2() {
>pm = new ParticleManager();
>   _sprite = new Sprite();
>   addChild(pm);
>
>
>   _sprite.addEventListener(MouseEvent.MOUSE_DOWN, 
onMouseDown);
>   _sprite.addEventListener(MouseEvent.MOUSE_UP, 
onMouseUp);
>
>
>   _timer = new Timer(3);
>  _timer.addEventListener("timer", onTimer);
>  _timer.start(  );
>
>
>   }
>
>public function onTimer(event:TimerEvent):void {
> pm.idle(0.4);
>   pm.draw();
>  //  addChild(pm);
>  }
>
>   private function onMouseDown(event:MouseEvent):void {
>   trace(pm.PRTS[0].pos.x);
>//  pm.PRTS[0].pos.setN(mouseX,mouseY);
>_sprite.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
>  }
>
>private function onMouseUp(event:MouseEvent):void {
>  _sprite.removeEventListener(MouseEvent.MOUSE_MOVE,
> onMouseMove);
>}
>
>
>private function onMouseMove(event:MouseEvent):void {
>  trace("yes");
>}
>
>
>   }
> }
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] would this bother you?

2007-04-09 Thread geng wang

Thanks much Dan and David, That makes it clear!





On 4/9/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:


If you want to free up memory you need to 'delete' all the references,
not just removeMovieClip.  I grabbed this from the livedocs:

Usage 4: The following example shows the behavior of delete on object
references:

-
var ref1:Object = new Object();
ref1.name = "Jody";
// copy the reference variable into a new variable
// and delete ref1
ref2 = ref1;
delete ref1;
trace("ref1.name "+ref1.name); //output: ref1.name undefined
trace("ref2.name "+ref2.name); //output: ref2.name Jody

If ref1 had not been copied into ref2, the object would have been
deleted when ref1 was deleted because there would be no references to
it. If you delete ref2, there are no references to the object; it is
destroyed, and the memory it used becomes available.
--

If only have one reference to the object, like in your code, then the
delete should do just fine to free the memory.  If you have copied it a
few times, then you will need to keep track of those copies in order to
free the memory.

-Dan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Ngo
Sent: Monday, April 09, 2007 1:17 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] would this bother you?

AFAIK, any instances will remain in memory if there is a reference to it
anywhere. Even if you call the remove methods, they just remove them
from
the Stage/screen but not from the memory stack. You will have to remove
any
references in any instances in order to garbage collect them properly.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of geng
wang
Sent: Monday, April 09, 2007 10:51 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] would this bother you?

hello flashcoders,

i have two fundamental questions. they somewhat keep bothering me:

1. what are the datatypes of a MovieClip instance and a Textfield
instance after calling "removeMovieClip()"/"removeTextField()" on that
MovieClip/Textfield instance?

2. do they remain in the memory after
"removeMovieClip()"/"removeTextField()"? do i need to "delete" the
references to them in order to have them "garbage collected"?

pls see below:

var tn:MovieClip = this.createEmptyMovieClip("tn", 0);
var tn_nested:MovieClip = tn.createEmptyMovieClip("tnNested", 0);
var tf_nested:TextField = tn.createTextField("tf", 1, 0, 100, 100, 100);
tf_nested.text = "hello world!";
tn.loadMovie("http://assets0.twitter.com/images/twitter.png?1175908827";)
;

destroy_btn.onRelease = function(){
tf_nested.removeTextField();

tn.removeMovieClip();

trace("is tn instanceof MovieClip after removeMovieClip: "+(tn
instanceof MovieClip));//false
trace("is tn instanceof Object after removeMovieClip: "+(tn
instanceof Object));//false
trace("tn type after removeMovieClip: "+ typeof(tn));//movieclip
trace("is tf_nested instanceof Object after removeMovieClip:
"+(tf_nested instanceof Object));//false
trace("tf_nested type after removeMovieClip:
"+(typeof(tf_nested)));//movieclip
trace("tn is "+tn+"; tf_nested is "+tf_nested);//tn is ;
tf_nested
is

delete tf_nested;
delete tn;

trace(newline+"delete tn");
trace("tn after destroy: "+(tn instanceof MovieClip));
trace("tn after destroy: "+(tn instanceof Object));
trace("tn type after destroy: "+ typeof(tn));
trace("tf_nested type after destroy: "+(typeof(tf_nested)));
}
___

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] WebServices in Flash IDE ...

2007-04-09 Thread Merrill, Jason
>>Well, I guess it depends on what you call a large project ;-) 
>>I do know that without a proper framework (MVC at a mimimum, 
>>doesn't have to be ARP etc..) things get messy, fast..
>>And I disagree that you have to be an advanced coder to learn 
>>and understand them and afterall, this is FlashCoders, not 
>>FlashNewbies.

Really.  Glad you pointed that out.  Well then who?  An "intermediate"?
Explain to an "intermediate" how to implement Caringorn, I read a lot on
the site and couldn't for the life of me figure it out, though I don't
consider myself just an intermediate, though maybe you do.  :)  I guess
it depends on what you consider an "advanced" coder, that's a subjective
definition.  I also think MVC is a design pattern, not a framework.  In
my vantage point, I don't see those as the same thing.  We use design
patterns like MVC, but not formal frameworks like Cairngorn on our RIAs.
I don't think frameworks like you mentioned HAVE to be used to do large
projects and keep it clean.   But just to do a Webservice call on a
large project you "probably should use a framework"?  I still would
disagree with you there.  Design patterns, yes.  Frameworks, maybe, if
it makes sense and works for you, and doesn't take too much time to
figure out an implement.

>>var myData_pc:PendingCall = myWS.getMyData();

You re-wrote my example, but it does same thing I wrote, you just
changed the names or the variables.  I'm confused as to why.

>>That aside, I didn't say that if you want to use WebServices 
>>through ActionScript that you need some kind of framework.

Well, OK, I guess if you're getting that technical, you actually instead
said, "for large projects you probably should":  

>>For 
>>larger projects you probably should be using a framework
>>(ARP/Cairngorn) in which case everything is written in code.

Very slight semantic difference - "need" vs. "probably should".

Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team

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

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  Thank you.

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

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


[Flashcoders] [JOB] Flash/ActionScript Developer for Social Site | Paid Relo

2007-04-09 Thread Beau Gould
Flash/ActionScript Developer for Social Site | Paid Relo

My client is a privately held, venture-backed startup in Los Angeles who
just launched their Beta website. Led by a former MySpace executive and
other successful veterans, they are offering an exciting opportunity for
someone looking for a rare opportunity. 

The Flash Developer is responsible for the design, development, and
implementation of highly scalable dynamic Flash elements.  You should
apply for this job if you have an excellent understanding of web
programming and technologies. You should have a deep understanding of
front-end/presentation coding and the programming to generate dynamic
pages.

Technical Requirements: 

* 3+ years of experience programming highly interactive web based Flash
applications. Experience in highly interactive media such as Flash
interactivity, video and data driven content. Ability to transform
requirements and designer assets into fully functional applications 
* ActionScript 2.0 and 3.0 
* Object Oriented Programming 
* Loading and generating Flash content from XML and JSON data feeds 
* Use of external ActionScript class files 
* Experience with integrating Web Services & Flash 
* Experience with parsing XML and JSON data structures 
* Experienced working with middleware 
* HTML, DHTML, JavaScript, CSS, a front-end templating framework, MySQL,
RSS/Atom 
* Developing in highly trafficked, large-scale environment 

My client rewards team members with great salaries and options packages,
plus numerous benefits and perks: 
* Competitive Salary 
* Significant Ownership/Equity 
* Free Employee Medical and Dental 
* Gym Membership Only $25/Year 
* Standard-issue 20" LCD monitors 

Relocation expenses covered for candidates not residing in the Los
Angeles area. 

If you are interested in this position, please submit your resume and/or
portfolio, and your salary requirements to [EMAIL PROTECTED]



Thank you, 
Beau J. Gould 
 
Open Source Staffing 
www.open-source-staffing.com 
[EMAIL PROTECTED] 

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

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


[Flashcoders] Blinking Cursor in text field-Bug?

2007-04-09 Thread Andy Andersson
Hi List,
Does anyone know if the issue with a blinking cursor by default in a input
TextField only works with IE or does it works with other browsers as well?

Thanks
Andy


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

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


Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] Anti-aliased text in components

2007-04-09 Thread Randy Tinfow
Turns out the original code below works just fine.  It just requires
that the component be fully loaded first.  

Thanks,

Randy Tinfow and Michael Randolph

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Josh Santangelo
> Sent: Thursday, April 05, 2007 9:23 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Anti-aliased text in components
> 
> ...just use global styles to set the font on the components 
> to an embedded font in your swf. The components aren't 
> anti-aliased because they use device fonts.
> 
> -josh
> 
> On Apr 5, 2007, at 9:36 AM, Randy Tinfow wrote:
> 
> > I'm trying to make the text inside all macromedia components to be 
> > Anti-aliased.  This has proven to be quite difficult.  I 
> would rather 
> > have a class that takes care of all of it, so here's what I have so
> > far:
> >
> > class net.imageplant.AntiAliaser
> > {
> > private static var _arrChecked:Array;
> >
> > public static function antiAlias(mc:MovieClip, 
> > bContinue:Boolean):Void
> > {
> > if (!bContinue)
> > {
> > _arrChecked = new Array();
> > }
> >
> > for (var i:String in mc)
> > {
> > if (mc[i] instanceof 
> TextField &&
> > !checkChecked(mc[i]))
> > {
> > _arrChecked.push(mc 
> > [i]);
> > 
> mc[i].antiAliasType = 
> > "advanced";
> > }
> > else if (mc[i] 
> instanceof Object 
> > &&
> > !checkChecked(mc[i]))
> > {
> > _arrChecked.push(mc 
> > [i]);
> > antiAlias(mc[i], 
> > true);
> > }
> > }
> > }
> >
> > private static function 
> checkChecked(mc:MovieClip):Boolean
> > {
> > var nMcs:Number = _arrChecked.length;
> > var bChecked:Boolean = false;
> >
> > for (var i:Number = 0; i < nMcs; i++)
> > {
> > if (_arrChecked[i] == mc)
> > {
> > bChecked = true;
> > }
> > }
> >
> > return bChecked;
> > }
> > }
> >
> > I have only tested it on a List component so far, and it does not 
> > work.
> > I can't even figure out where the actual TextFields are in a List 
> > component.  How could MM overlook this?  The components are useless 
> > when you can't match the text to the rest of your app...any 
> > ideas/help?
> >
> > TIA,
> >
> > Randy Tinfow and Mike Randolph
> >
> >
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] WebServices in Flash IDE ...

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  Thank you.

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

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


[Flashcoders] doLater call to singleton instance

2007-04-09 Thread Mendelsohn, Michael
Hi list...

I have a mc on the stage containing 5 RadioButton instances.  When the
MC appears, I'd like it to show up with the most recently clicked
RadioButton in the group selected by default from the previous time this
MC was on the stage.  I'm trying to do this with doLater, but I can't
get it working.


_root.attachMovie("settingsPanel", "sp", 2, {_x:164, _y:201});
// sp has five radio buttons, one of which is named rb5
_root.sp.rb5.doLater(_root.t, "setDoneSound");
// _root.t is a singleton instanced on the _root timeline
// the singleton has a variable in it containing the data I want to set
in the radio button group.

Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] would this bother you?

2007-04-09 Thread Dave Watts
Tareq, I've disabled your Flashcoders mail. When you return, you may
reenable it using the link at the bottom of every list message.

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

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

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Tareq AlJaber
> Sent: Monday, April 09, 2007 14:25
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] would this bother you?
> 
> I will be out of the office starting  04/09/2007 and will not 
> return until 04/16/2007.
> 
> I will not have access to my email during this time.  If you 
> need immediate assistance, please contact Aaron Dolberg 
> ([EMAIL PROTECTED]).  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
> 

This email has been processed by SmoothZap - www.smoothwall.net

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

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


Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Ian Thomas

On 4/9/07, T. Michael Keesey <[EMAIL PROTECTED]> wrote:


By the way, I think the AS3 syntax for this:

> button.onRelease=myFunction;  // AS3

... is actually:

button.addEventListener(MouseEvent.CLICK, myFunction);


Sorry, yes - you're quite right. I was illustrating a general point
and clearly chose the wrong thing to use as an example - we're coming
from Flash, not Flex, and don't use Adobe's components.

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

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


Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  Thank you.

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

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


[Flashcoders] XPath online

2007-04-09 Thread Hairy Dog Digital
Hey all,

Can anyone recommend a solid online reference for XPath (working with
XFactorStudio XPath is Flash MX 04 Pro)? Their web site is next to
non-existent, I just had to backpeddle on a project, and trying to get my
bearings on XPath and their implementation of it for AS2.

Thanks,
Rob


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

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


Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Ian Thomas

On 4/9/07, ben gomez farrell <[EMAIL PROTECTED]> wrote:

Delegate is still kinda useful.  I've been trying to get by without it
since I'm still learning, but the way I've been doing things without it
is to dispatch customized events that have specific parameters.  It's
kind of a pain in the butt though, say if you want to pass a parameter
along with your mouseclick.  Since you can't control how a mouseclick is
dispatched, you have to make a class to listen for a mouseclick, and
then listen to the custom dispatched event from that class.

At least this is how I've been doing things so far!


Ben,
 That's precisely why I've written the class. Take a look at the
webpage, it might help. :-)

Cheers,
 Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] would this bother you?

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  Thank you.

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

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


[Flashcoders] Relative Paths in a MXI

2007-04-09 Thread John laPlante
I want to build an MXP installation file that installs trust 
configuration files. I have an MXI in which I want to refer to 
C:\Documents and Settings\johnl2\Application Data\Macromedia\Flash 
Player\#Security\FlashPlayerTrust to install a trust configuration file. 
The MXI format includes default tokens e.g., $flash which resolve to the 
Flash installation directory.  I would like to make a similar token for 
the #security folder but I'm stuck with a problem of hard coding the 
'user-name' portion of the path which I want to be user dependant.  I 
tried something like 




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

2007-04-09 Thread Steven Sacks | BLITZ
Hahahahahahahaha!

And I quote Cedric:

> whatever!
> ...
> respect

First, you open with "whatever!" which is what people say to signify
disrespect for something another person said.  And then you say
"respect" as if saying that nullifies it.  Nice try, buddy.

You "get hurt" by god blessings?  How could you possibly be hurt by god
blessings if you don't believe in god?  That's ridiculous.

Did it feel good to have your temper tantrum?  I hope so, but don't
pretend for a moment that temper tantrums are respectful. They're
childish.





BLITZ | Steven Sacks - 310-551-0200 x209
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Cedric Muller
> Sent: Monday, April 09, 2007 4:33 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] OT: Happy Easter
> 
> whatever!
> stop this, this is OT, GOD doesn't exist (globally speaking 
> in people's minds) and I am not a believer, so I DON'T need 
> any god's blessing (more than that: keep it for yourself) 
> this is about laicity, this is about secular coding... this 
> is JUST ABOUT CODING WITH FLASH :P sorry if this hurts, but I 
> do get hurt by 'god blessings'...
> respect
> Cedric
> 
> 
> 
> > Happy easter to everyone and god bless you all guys.
> >
> >
> > Regards
> >
> >
> > Gustavo Duenas
> > On Apr 8, 2007, at 9:47 PM, Omar Fouad wrote:
> >
> >> Happy Easter to you and all the List Members Ricardo
> >>
> >> On 4/8/07, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> >>>
> >>> On behalf of Jews everywhere, may I be the first to say you're 
> >>> welcome!
> >>> :)
> >>> ___
> >>> Flashcoders@chattyfig.figleaf.com
> >>> To change your subscription options or search the archive:
> >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>
> >>> Brought to you by Fig Leaf Software
> >>> Premier Authorized Adobe Consulting and Training 
> >>> http://www.figleaf.com http://training.figleaf.com
> >>>
> >>
> >>
> >>
> >> -- 
> >> Omar Fouad - Digital Emotions...
> >>
> >> Love is always patient and kind. It is never jealous. Love is  
> >> never boastful
> >> nor conceited It is never rude or selfish. It does not take  
> >> offense and is
> >> not resentful. Love takes no pleasure in other people's 
> sins...but  
> >> delights
> >> in the truth. It is always ready to excuse, to trust, to hope...  
> >> and to
> >> endure... whatever comes.
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] AS3 Delegate

2007-04-09 Thread Ian Thomas

Hi Michael,
  I think this is down to a difference in programming style. We don't
use events in quite the same way - or rather, for _most_ situations,
we use events in exactly the way that you describe.

 However, there are many situations where defining event types,
listeners and dispatchers is (I find) much too heavyweight.
Specifically, in instances where there is only going to be one single
create-doprocess-callback sequence and nothing else will ever get
involved in the chain.

 Additionally, you can use the Callback method I describe to tack
additional arguments on to handlers called in response to event
objects created internally by Adobe code - which are instances in
which you couldn't extend the relevant Event object.

 (This difference in approach may be because we're leaping into AS3
straight from Flash/AS2 rather than going via Flex.)

Cheers,
 Ian

On 4/9/07, T. Michael Keesey <[EMAIL PROTECTED]> wrote:

The problem with using proxies is that you circumvent compile-time
checking. I find that there are better ways of dealing with such
situations. Three suggestions:

1) In the handler function, look for a property of the event target.
This works for most cases where you need a handler function to react
differently in a given situation. (For example, different buttons
could carry an "index" event that the handler looks for via
MyButtonClass(event.target).index.)

2) Differentiate the event type and have one handler deal with several
event types. This is not useful in cases where you may have an
unlimited number of different responses, and generally I wouldn't
recommend this as a solution, but there may be some cases where it's
appropriate.

3) Create a new subclass of Event with one or more extra properties.
(For example, IndexEvent, with an added property, "index".)

By the way, I think the AS3 syntax for this:

> button.onRelease=myFunction;  // AS3

... is actually:

button.addEventListener(MouseEvent.CLICK, myFunction);






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

2007-04-09 Thread Holth, Daniel C.

If you want to free up memory you need to 'delete' all the references,
not just removeMovieClip.  I grabbed this from the livedocs:

Usage 4: The following example shows the behavior of delete on object
references:

-
var ref1:Object = new Object();
ref1.name = "Jody";
// copy the reference variable into a new variable
// and delete ref1
ref2 = ref1;
delete ref1;
trace("ref1.name "+ref1.name); //output: ref1.name undefined
trace("ref2.name "+ref2.name); //output: ref2.name Jody

If ref1 had not been copied into ref2, the object would have been
deleted when ref1 was deleted because there would be no references to
it. If you delete ref2, there are no references to the object; it is
destroyed, and the memory it used becomes available.
--

If only have one reference to the object, like in your code, then the
delete should do just fine to free the memory.  If you have copied it a
few times, then you will need to keep track of those copies in order to
free the memory.

-Dan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Ngo
Sent: Monday, April 09, 2007 1:17 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] would this bother you?

AFAIK, any instances will remain in memory if there is a reference to it
anywhere. Even if you call the remove methods, they just remove them
from
the Stage/screen but not from the memory stack. You will have to remove
any
references in any instances in order to garbage collect them properly.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of geng
wang
Sent: Monday, April 09, 2007 10:51 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] would this bother you?

hello flashcoders,

i have two fundamental questions. they somewhat keep bothering me:

1. what are the datatypes of a MovieClip instance and a Textfield
instance after calling "removeMovieClip()"/"removeTextField()" on that
MovieClip/Textfield instance?

2. do they remain in the memory after
"removeMovieClip()"/"removeTextField()"? do i need to "delete" the
references to them in order to have them "garbage collected"?

pls see below:

var tn:MovieClip = this.createEmptyMovieClip("tn", 0);
var tn_nested:MovieClip = tn.createEmptyMovieClip("tnNested", 0);
var tf_nested:TextField = tn.createTextField("tf", 1, 0, 100, 100, 100);
tf_nested.text = "hello world!";
tn.loadMovie("http://assets0.twitter.com/images/twitter.png?1175908827";)
;

destroy_btn.onRelease = function(){
tf_nested.removeTextField();

tn.removeMovieClip();

trace("is tn instanceof MovieClip after removeMovieClip: "+(tn
instanceof MovieClip));//false
trace("is tn instanceof Object after removeMovieClip: "+(tn
instanceof Object));//false
trace("tn type after removeMovieClip: "+ typeof(tn));//movieclip
trace("is tf_nested instanceof Object after removeMovieClip:
"+(tf_nested instanceof Object));//false
trace("tf_nested type after removeMovieClip:
"+(typeof(tf_nested)));//movieclip
trace("tn is "+tn+"; tf_nested is "+tf_nested);//tn is ;
tf_nested
is

delete tf_nested;
delete tn;

trace(newline+"delete tn");
trace("tn after destroy: "+(tn instanceof MovieClip));
trace("tn after destroy: "+(tn instanceof Object));
trace("tn type after destroy: "+ typeof(tn));
trace("tf_nested type after destroy: "+(typeof(tf_nested)));
}
___

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. 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] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] WebServices in Flash IDE ...

2007-04-09 Thread Muzak
>>>For small projects using the WebServices panel is handy. For
>>>larger projects you probably should be using a framework
>>>(ARP/Cairngorn) in which case everything is written in code.
>
> Nah, I've been using Webservices in Flash for over a year now on large
> RIA projects, and you certainly don't need a framework to do it.  Sorry,
> I know those frameworks can be great, but they take an advanced coder to
> learn how to use an implement.
>

Well, I guess it depends on what you call a large project ;-)
I do know that without a proper framework (MVC at a mimimum, doesn't have to be 
ARP etc..) things get messy, fast..
And I disagree that you have to be an advanced coder to learn and understand 
them and afterall, this is FlashCoders, not 
FlashNewbies.

That aside, I didn't say that if you want to use WebServices through 
ActionScript that you need some kind of framework.

--> Small Projects: WebService panel = handy
--> Larger Projects: WebServices through code

>
> For example, off the top of my head, say with your SOAP webservice, you
> are sending an array of fruit objects:
>
> import mx.services.*
> import mx.util.Delegate
>
> var myWS:WebService = new WebService("http://myWebService.asmx?WSDL";);
> myWS.onLoad = Delegate.create(this, callMyWSmethod)
>
> function callMyWSmethod()
> {
>var myGetResult:Object = new Object();
>myGetResult = myWS.getMyData();
>myGetResult = Delegate.create(this, myGetResultMethod)
> }
>
> function myGetResultMethod(result:Object)
> {
>  trace(result.fruit[7].name)  //traces "apple"
>  trace(result.fruit[7].quantity)  //traces "45"
> }
>

import mx.services.*;
import mx.util.Delegate;

 function myWSLoadHandler() {
// call to webservice method returns a PendingCall
var myData_pc:PendingCall = myWS.getMyData();
myData_pc.onResult = Delegate.create(this, myDataResultHandler);
}

 function myDataResultHandler(result:Object) {
  trace(result.fruit[7].name);
  trace(result.fruit[7].quantity);
}

var myWS:WebService = new WebService("http://myWebService.asmx?WSDL";);
myWS.onLoad = Delegate.create(this, myWSLoadHandler);
 


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

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


Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] AS3 Delegate

2007-04-09 Thread Ian Thomas

Hi Jason,
 That's an interesting one - haven't tried that (but then, our
Delegate function coped with it).

 Unfortunately you won't be able to do that as you describe, because
in AS3 there's no arguments.caller - only arguments.callee.

 I doubted that I had to do it my way, too - was quite disappointed
when I discovered that AS3 didn't have a better mechanism because I
thought, like with the context issue, it was something lots of people
had tripped over in AS2.

 I may have missed something new, of course!

Cheers,
  Ian

On 4/9/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:

However, in AS 2 to tack on variables, I did/do it differently:

var myDel:Object = myButton.onRelease = Delegate.create(this,
doFunction)
myDel.fruit = "pineapple";

function doFunction():Void
{
trace(arugments.caller.fruit)
}

I assumed in AS3 you could do something similar, though I don't know, I
haven't tried yet:

var myObj:Object = myButton.onRelease = doFunction
myObj.fruit = "pineapple";

function doFunction():Void
{
trace(arugments.caller.fruit)
}

Or no?  I kinda doubt you have to do it the way you posted on your blog,
but I don't know for sure.  If you do, that really sucks.

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

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] AS3 Delegate

2007-04-09 Thread ben gomez farrell
I didn't really read the webpage, but you can't tack on a variable I'm 
pretty sure.  To tack something on, the class needs to be dynamic, which 
an Object class is, but a MovieClip or Sprite class isn't.  So unless 
you're caller is something you extended from a movieclip or sprite and 
made dynamic, you won't be tacking anything on.

I think I'm right, I'm pretty sure I tried!

Delegate is still kinda useful.  I've been trying to get by without it 
since I'm still learning, but the way I've been doing things without it 
is to dispatch customized events that have specific parameters.  It's 
kind of a pain in the butt though, say if you want to pass a parameter 
along with your mouseclick.  Since you can't control how a mouseclick is 
dispatched, you have to make a class to listen for a mouseclick, and 
then listen to the custom dispatched event from that class.


At least this is how I've been doing things so far!
ben

Merrill, Jason wrote:

However, in AS 2 to tack on variables, I did/do it differently:

var myDel:Object = myButton.onRelease = Delegate.create(this,
doFunction)
myDel.fruit = "pineapple";

function doFunction():Void
{
trace(arugments.caller.fruit)
} 


I assumed in AS3 you could do something similar, though I don't know, I
haven't tried yet:

var myObj:Object = myButton.onRelease = doFunction
myObj.fruit = "pineapple";

function doFunction():Void
{
trace(arugments.caller.fruit)
} 


Or no?  I kinda doubt you have to do it the way you posted on your blog,
but I don't know for sure.  If you do, that really sucks.


Jason Merrill
Bank of America  
GT&O Learning & Leadership Development

eTools & Multimedia Team


 
___

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

2007-04-09 Thread T. Michael Keesey

The problem with using proxies is that you circumvent compile-time
checking. I find that there are better ways of dealing with such
situations. Three suggestions:

1) In the handler function, look for a property of the event target.
This works for most cases where you need a handler function to react
differently in a given situation. (For example, different buttons
could carry an "index" event that the handler looks for via
MyButtonClass(event.target).index.)

2) Differentiate the event type and have one handler deal with several
event types. This is not useful in cases where you may have an
unlimited number of different responses, and generally I wouldn't
recommend this as a solution, but there may be some cases where it's
appropriate.

3) Create a new subclass of Event with one or more extra properties.
(For example, IndexEvent, with an added property, "index".)

By the way, I think the AS3 syntax for this:


button.onRelease=myFunction;  // AS3


... is actually:

button.addEventListener(MouseEvent.CLICK, myFunction);

--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] would this bother you?

2007-04-09 Thread David Ngo
AFAIK, any instances will remain in memory if there is a reference to it
anywhere. Even if you call the remove methods, they just remove them from
the Stage/screen but not from the memory stack. You will have to remove any
references in any instances in order to garbage collect them properly.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of geng wang
Sent: Monday, April 09, 2007 10:51 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] would this bother you?

hello flashcoders,

i have two fundamental questions. they somewhat keep bothering me:

1. what are the datatypes of a MovieClip instance and a Textfield
instance after calling "removeMovieClip()"/"removeTextField()" on that
MovieClip/Textfield instance?

2. do they remain in the memory after
"removeMovieClip()"/"removeTextField()"? do i need to "delete" the
references to them in order to have them "garbage collected"?

pls see below:

var tn:MovieClip = this.createEmptyMovieClip("tn", 0);
var tn_nested:MovieClip = tn.createEmptyMovieClip("tnNested", 0);
var tf_nested:TextField = tn.createTextField("tf", 1, 0, 100, 100, 100);
tf_nested.text = "hello world!";
tn.loadMovie("http://assets0.twitter.com/images/twitter.png?1175908827";);

destroy_btn.onRelease = function(){
tf_nested.removeTextField();

tn.removeMovieClip();

trace("is tn instanceof MovieClip after removeMovieClip: "+(tn
instanceof MovieClip));//false
trace("is tn instanceof Object after removeMovieClip: "+(tn
instanceof Object));//false
trace("tn type after removeMovieClip: "+ typeof(tn));//movieclip
trace("is tf_nested instanceof Object after removeMovieClip:
"+(tf_nested instanceof Object));//false
trace("tf_nested type after removeMovieClip:
"+(typeof(tf_nested)));//movieclip
trace("tn is "+tn+"; tf_nested is "+tf_nested);//tn is ; tf_nested
is

delete tf_nested;
delete tn;

trace(newline+"delete tn");
trace("tn after destroy: "+(tn instanceof MovieClip));
trace("tn after destroy: "+(tn instanceof Object));
trace("tn type after destroy: "+ typeof(tn));
trace("tf_nested type after destroy: "+(typeof(tf_nested)));
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3 Delegate

2007-04-09 Thread Tareq AlJaber
I will be out of the office starting  04/09/2007 and will not return until
04/16/2007.

I will not have access to my email during this time.  If you need
immediate assistance, please contact Aaron Dolberg
([EMAIL PROTECTED]).  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] AS3 Delegate

2007-04-09 Thread Merrill, Jason
However, in AS 2 to tack on variables, I did/do it differently:

var myDel:Object = myButton.onRelease = Delegate.create(this,
doFunction)
myDel.fruit = "pineapple";

function doFunction():Void
{
trace(arugments.caller.fruit)
} 

I assumed in AS3 you could do something similar, though I don't know, I
haven't tried yet:

var myObj:Object = myButton.onRelease = doFunction
myObj.fruit = "pineapple";

function doFunction():Void
{
trace(arugments.caller.fruit)
} 

Or no?  I kinda doubt you have to do it the way you posted on your blog,
but I don't know for sure.  If you do, that really sucks.


Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


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

2007-04-09 Thread geng wang

hello flashcoders,

i have two fundamental questions. they somewhat keep bothering me:

1. what are the datatypes of a MovieClip instance and a Textfield
instance after calling "removeMovieClip()"/"removeTextField()" on that
MovieClip/Textfield instance?

2. do they remain in the memory after
"removeMovieClip()"/"removeTextField()"? do i need to "delete" the
references to them in order to have them "garbage collected"?

pls see below:

var tn:MovieClip = this.createEmptyMovieClip("tn", 0);
var tn_nested:MovieClip = tn.createEmptyMovieClip("tnNested", 0);
var tf_nested:TextField = tn.createTextField("tf", 1, 0, 100, 100, 100);
tf_nested.text = "hello world!";
tn.loadMovie("http://assets0.twitter.com/images/twitter.png?1175908827";);

destroy_btn.onRelease = function(){
tf_nested.removeTextField();

tn.removeMovieClip();

trace("is tn instanceof MovieClip after removeMovieClip: "+(tn
instanceof MovieClip));//false
trace("is tn instanceof Object after removeMovieClip: "+(tn
instanceof Object));//false
trace("tn type after removeMovieClip: "+ typeof(tn));//movieclip
trace("is tf_nested instanceof Object after removeMovieClip:
"+(tf_nested instanceof Object));//false
trace("tf_nested type after removeMovieClip: 
"+(typeof(tf_nested)));//movieclip
trace("tn is "+tn+"; tf_nested is "+tf_nested);//tn is ; tf_nested is

delete tf_nested;
delete tn;

trace(newline+"delete tn");
trace("tn after destroy: "+(tn instanceof MovieClip));
trace("tn after destroy: "+(tn instanceof Object));
trace("tn type after destroy: "+ typeof(tn));
trace("tf_nested type after destroy: "+(typeof(tf_nested)));
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] AS3 Delegate

2007-04-09 Thread Ian Thomas

Hi all,
 In developing my first largish AS3 app, I've discovered something
that I think is missing.

I'd assumed that Delegate, which peppered all my AS2 projects, would
have been made redundant and, indeed, it kind of has - in that AS3
takes care of the context of a function, so you can happily say (for
example):

button.onRelease=myFunction;  // AS3

instead of

button.onRelease=Delegate.create(this,myFunction);  // AS2

Hurrah!

But unfortunately, I've always used Delegate for a bit more than that
- an expanded version (like the Proxy class that's been kicking
around) that lets you tack on additional variables to make callbacks
that bit more useful.

That being the case, I've come up with a new version for AS3 which
suits my purposes and may be handy for other people.

All the info is here:
http://wildwinter.blogspot.com/2007/04/come-back-delegate-all-is-forgiven.html

Hope it's helpful,
  Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] System.as vs System.security

2007-04-09 Thread Dave Segal
I asked a question about this on Friday with no response but here goes
again this time with more details. It seems like the Flash compiler is
choking on the System class when I delete the ASO cache and compile. Here
is all the code in my test fla:

System.security.allowDomain(" 
www.mydomain.com");
System.exactSettings = false;
 
and here is the compiler error I get from the System.as:
 
**Error** C:\Documents and Settings\dave\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\System.as: Line 7:
The name of this class, 'System', conflicts with the name of another class
that was loaded.
 {
 
 
Switch the order of the lines:
System.exactSettings = false;
System.security.allowDomain(" 
www.mydomain.com");
 
and here is the compiler error I get from the security.as class
 
**Error** C:\Documents and Settings\dave\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\System\security.as:
Line 7: The name of this class, 'System.security', conflicts with the name
of another class that was loaded, 'System'.
 
 
It seems that the problem is related to the fact that there is both a
System.as class, which defines exactSettings, useCodepage,  setClipboard,
etc, and a System folder which contains the System.security,
System.capabilities, and System.IME classes. When both the System package
and the System class are referenced the compiler throws an error. I
searched around and was surprised that I couldn't find any information
related to the conflict. Does anyone know how to resolve this?
Thanks
Dave
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] basic flash games development issues

2007-04-09 Thread Holth, Daniel C.

True, but the trust files are designed to be used by executable
installer programs.  The applications we have developed (and I'm
guessing the original authors as well) needed to be run totally from the
CD-ROM/DVD and thus no installing.

Anyone know of a way to getting the trust files on the users machine
with something as simple as "This application needs to install a Flash
player trust file: Allow, Deny?"  dialog box?

-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Monday, April 09, 2007 12:03 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] basic flash games development issues

You can install a file on the client that will make your CD/DVD app
trusted and the user no longer needs to configure anything
online.
(in fact that's exactly what the security manager does -> writes a text
file to disk)

http://www.adobe.com/devnet/flash/articles/fplayer8_security_04.html
Read the "FlashPlayerTrust configuration files" part.

regards,
Muzak

- Original Message -
From: "Holth, Daniel C." <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 09, 2007 3:17 PM
Subject: RE: [Flashcoders] basic flash games development issues



We've built some applications for CD, and have run into 'security
sandbox' issues.  They were very frustrating.  The DVD will be
considered 'local content', and you can read about the issues here:
http://www.adobe.com/products/flashplayer/articles/localcontent/

When you begin testing your applications, make sure you are doing so
with 'default' security settings in Flash.  I'm guessing most of us have
turned them to 'always allow' because we got security errors once and
just turned them off, but you can't expect your clients to have that
set, or want to change them.  Without installing something on the users
machine, changing the security settings requires access to the internet,
(which is very silly IMO) but you may need to take internet-less users
who won't be able to change their settings into account as well.

As far as SharedObjects go, the user may be able to change them, and
clearing their internet caches may delete the SharedObjects (and thus
their scores).

-Dan


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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. 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] basic flash games development issues

2007-04-09 Thread Muzak
You can install a file on the client that will make your CD/DVD app trusted and 
the user no longer needs to configure anything 
online.
(in fact that's exactly what the security manager does -> writes a text file to 
disk)

http://www.adobe.com/devnet/flash/articles/fplayer8_security_04.html
Read the "FlashPlayerTrust configuration files" part.

regards,
Muzak

- Original Message - 
From: "Holth, Daniel C." <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 09, 2007 3:17 PM
Subject: RE: [Flashcoders] basic flash games development issues



We've built some applications for CD, and have run into 'security
sandbox' issues.  They were very frustrating.  The DVD will be
considered 'local content', and you can read about the issues here:
http://www.adobe.com/products/flashplayer/articles/localcontent/

When you begin testing your applications, make sure you are doing so
with 'default' security settings in Flash.  I'm guessing most of us have
turned them to 'always allow' because we got security errors once and
just turned them off, but you can't expect your clients to have that
set, or want to change them.  Without installing something on the users
machine, changing the security settings requires access to the internet,
(which is very silly IMO) but you may need to take internet-less users
who won't be able to change their settings into account as well.

As far as SharedObjects go, the user may be able to change them, and
clearing their internet caches may delete the SharedObjects (and thus
their scores).

-Dan 


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

2007-04-09 Thread Michael Mudge
> -Original Message by David Ngo-
> What instance are you trying to access? Your 'whatever' 
> class? If so, you'll need to use a Delegate to force scope:

I'm accustomed to lexical scope, so this was a confusing one for me.  I
understand exactly what you mean about using a delegate -- that will do
the trick, thanks!

- Kipp

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

2007-04-09 Thread Merrill, Jason
>>For small projects using the WebServices panel is handy. For 
>>larger projects you probably should be using a framework
>>(ARP/Cairngorn) in which case everything is written in code.

Nah, I've been using Webservices in Flash for over a year now on large
RIA projects, and you certainly don't need a framework to do it.  Sorry,
I know those frameworks can be great, but they take an advanced coder to
learn how to use an implement. 

>>Does anyone user the Web 
>>Services panel 
>>in Flash IDE - is it worth learning about ?, or do you keep 
>>everything in code when connecting to services.

I would recommend you don't use the Flash WS component but use the
service classes and code to do it.  Much easier to debug and you'll
understand what's going on better, plus your code is centralized, not
part in actionscript, part in a component panel.  So I wouldn't
over-complicate the question by trying to throw a framwork in there.  No
offense. :) But hey, if you can learn to use something like Cairngorn,
more power to you certainly.

For example, off the top of my head, say with your SOAP webservice, you
are sending an array of fruit objects:

import mx.services.*
import mx.util.Delegate

var myWS:WebService = new WebService("http://myWebService.asmx?WSDL";);  
myWS.onLoad = Delegate.create(this, callMyWSmethod)

function callMyWSmethod()
{
var myGetResult:Object = new Object();  
myGetResult = myWS.getMyData();
myGetResult = Delegate.create(this, myGetResultMethod)
}

function myGetResultMethod(result:Object)
{
  trace(result.fruit[7].name)  //traces "apple"
  trace(result.fruit[7].quantity)  //traces "45"
}


Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] copying formatted text out of flash

2007-04-09 Thread Marc Hoffman
Without the tags, it's unformatted text. In other words, for the copy 
to show formatting, it must have the tags, and it must be displayed 
in a viewer that understands those tags.  -Marc


At 11:22 PM 4/8/2007, you wrote:

Hello

Is there any way to copy formatted text to the system clipboard

ie I don't really want all the html / textformat tags

But I'd like to be able to copy formatted text out of textbox / textarea


I'm thinking that's not too easy - its either plain text, or textformat
tags?

Hoping I'm wrong

Cheers

Rob



Important - This email and any attachments may be confidential. If 
received in error, please contact us and delete all copies. Before 
opening or using attachments check them for viruses and defects. 
Regardless of any loss, damage or consequence, whether caused by the 
negligence of the sender or not, resulting directly or indirectly 
from the use of any attached files our liability is limited to 
resupplying any affected attachments. Any representations or 
opinions expressed are those of the individual sender, and not 
necessarily those of the Department of Education.

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

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



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

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


RE: [Flashcoders] XML doesn't show the content twise.

2007-04-09 Thread Merrill, Jason
>>Can anybody knows the action scripting to clear the XML cache 
>>from the Internet temporary files. 

When you load the XML, just append a random variable to the URL, like
this:

var myXMLURLString:String = "myXMLFile.xml?cb="+getTimer();

"cb" just stands for "cache buster", but it could be anything.  That
way, your  browser should always grab a new version of the XML.

Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Editors in use by Actionscript Programmers

2007-04-09 Thread Ron Wheeler

It will added .
If you can add a link in the IDE section, that would be great

Ron

Jon Bradley wrote:

Another:

Subethaedit for mac

Just the fact that it's collaborative editing makes it worthwhile. 
I've yet to get into all the code-hinting/folding, etc. jazz offered 
by many of these editors. Though, now I'm getting into more Flex 2 
work, I have a feeling I might be making a switch (but will keep to 
subetha for collab. editing with coworkers).



On Apr 8, 2007, at 2:14 PM, Ron Wheeler wrote:


Revised List of editors

FlashDevelop
Flexbuilder
SciTe Flash
Eclipse with Flex SDK
Eclipse with ASDT
Eclipse with FDT
Eclipse with HXDT
Eclipse with EHX
SEPY Actionscript editor
Flash 9 IDE
Flash 8 IDE
Vim
Notepad++
EditPlus with ActionScript profile
TextMate
jEdit
BBedit
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Editors in use by Actionscript Programmers

2007-04-09 Thread Ron Wheeler

Added to the list.
If someone wants to add a link to this in the IDE section , that would 
be great.

Ron
Hairy Dog Digital wrote:

I'd also throw in my 2-cents worth... MultiEdit Lite

...Rob

 


-Original Message-
From: Jon Bradley [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 09, 2007 7:16 AM

To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Editors in use by Actionscript Programmers

Another:

Subethaedit for mac

Just the fact that it's collaborative editing makes it worthwhile.  
I've yet to get into all the code-hinting/folding, etc. jazz offered by many

of these editors. Though, now I'm getting into more Flex 2 work, I have a
feeling I might be making a switch (but will keep to subetha for collab.
editing with coworkers).


On Apr 8, 2007, at 2:14 PM, Ron Wheeler wrote:

  

Revised List of editors

FlashDevelop
Flexbuilder
SciTe Flash
Eclipse with Flex SDK
Eclipse with ASDT
Eclipse with FDT
Eclipse with HXDT
Eclipse with EHX
SEPY Actionscript editor
Flash 9 IDE
Flash 8 IDE
Vim
Notepad++
EditPlus with ActionScript profile
TextMate
jEdit
BBedit
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Editors in use by Actionscript Programmers

2007-04-09 Thread Ron Wheeler
Xcode will be in the poll and a link to the autocompletion files has 
been added.


Ron.

banzaii wrote:
I use Xcode for my flash development on a Mac. It is quite 
cusomizable, you can setup your own targets (I have some for mtasc 
(pure actionscript, actionscript with swf library, swfmill)



You can grap my code completion files for as2/as3 at 
http://opencode.forabettertoday.org/
Just throw the files in your ~/Library/Application 
Support/Apple/Developer Tools/Specifications Folder and restart Xcode.




Kai-Philipp

Am 09.04.2007 um 14:11 schrieb Hairy Dog Digital:


I'd also throw in my 2-cents worth... MultiEdit Lite

...Rob



-Original Message-
From: Jon Bradley [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 7:16 AM
To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Editors in use by Actionscript Programmers

Another:

Subethaedit for mac

Just the fact that it's collaborative editing makes it worthwhile.
I've yet to get into all the code-hinting/folding, etc. jazz offered 
by many
of these editors. Though, now I'm getting into more Flex 2 work, I 
have a

feeling I might be making a switch (but will keep to subetha for collab.
editing with coworkers).


On Apr 8, 2007, at 2:14 PM, Ron Wheeler wrote:


Revised List of editors

FlashDevelop
Flexbuilder
SciTe Flash
Eclipse with Flex SDK
Eclipse with ASDT
Eclipse with FDT
Eclipse with HXDT
Eclipse with EHX
SEPY Actionscript editor
Flash 9 IDE
Flash 8 IDE
Vim
Notepad++
EditPlus with ActionScript profile
TextMate
jEdit
BBedit
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



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

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

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

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





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

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


[Flashcoders] XML doesn't show the content twise.

2007-04-09 Thread Parvaiz Patel

Hi All,

Can anybody knows the action scripting to clear the XML cache from the
Internet temporary files. 

I am using following URL to send & received data from database via aspx
in the form of XML nodes. 

getleftmenu.aspx?Style=Broadloom&NeoFloor=Y&QuickShip=Y  

But my problem is when I clicked first time to a button to send &
received the data, its working perfect. But when I clicked next time to
the same button it's not poping up the data. 

Please help me to solve this puzzle.

Best Regards,
Parvaiz 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] Editors in use by Actionscript Programmers

2007-04-09 Thread banzaii
I use Xcode for my flash development on a Mac. It is quite  
cusomizable, you can setup your own targets (I have some for mtasc  
(pure actionscript, actionscript with swf library, swfmill)



You can grap my code completion files for as2/as3 at http:// 
opencode.forabettertoday.org/
Just throw the files in your ~/Library/Application Support/Apple/ 
Developer Tools/Specifications Folder and restart Xcode.




Kai-Philipp

Am 09.04.2007 um 14:11 schrieb Hairy Dog Digital:


I'd also throw in my 2-cents worth... MultiEdit Lite

...Rob



-Original Message-
From: Jon Bradley [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 7:16 AM
To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Editors in use by Actionscript Programmers

Another:

Subethaedit for mac

Just the fact that it's collaborative editing makes it worthwhile.
I've yet to get into all the code-hinting/folding, etc. jazz  
offered by many
of these editors. Though, now I'm getting into more Flex 2 work, I  
have a
feeling I might be making a switch (but will keep to subetha for  
collab.

editing with coworkers).


On Apr 8, 2007, at 2:14 PM, Ron Wheeler wrote:


Revised List of editors

FlashDevelop
Flexbuilder
SciTe Flash
Eclipse with Flex SDK
Eclipse with ASDT
Eclipse with FDT
Eclipse with HXDT
Eclipse with EHX
SEPY Actionscript editor
Flash 9 IDE
Flash 8 IDE
Vim
Notepad++
EditPlus with ActionScript profile
TextMate
jEdit
BBedit
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] basic flash games development issues

2007-04-09 Thread Holth, Daniel C.

We've built some applications for CD, and have run into 'security
sandbox' issues.  They were very frustrating.  The DVD will be
considered 'local content', and you can read about the issues here:
http://www.adobe.com/products/flashplayer/articles/localcontent/

When you begin testing your applications, make sure you are doing so
with 'default' security settings in Flash.  I'm guessing most of us have
turned them to 'always allow' because we got security errors once and
just turned them off, but you can't expect your clients to have that
set, or want to change them.  Without installing something on the users
machine, changing the security settings requires access to the internet,
(which is very silly IMO) but you may need to take internet-less users
who won't be able to change their settings into account as well.

As far as SharedObjects go, the user may be able to change them, and
clearing their internet caches may delete the SharedObjects (and thus
their scores).

-Dan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nik
crosina
Sent: Sunday, April 08, 2007 4:03 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] basic flash games development issues

Hi,

I am putting together a quote for a client who needs to have a number
of games developed for a DVD. I am new to games dev and running Flash
from disks so my questions are now:

Are there any special issues relating to putting (existing) games onto
disks? How would we keep high scores, etc. Can Flash write to disks
when run from a DVD?

I am planning to use Zinc to run the swf in, which raises some
questions regarding the needed compatibility: The interface of the
thing will need to display also PDF files, something I never had to do
in Flash. Is this possible and can they be displayed inside4 Flash or
only opened externally with existing / installed Acrobats (or Acr.
Readers)?

Are there any viable alternatives to Zinc?

All the above *needs* to run on Win 98, XP and Vista, and the client
would be in 7th heaven if we can get it to work on Mac and Linux OSs.
Are there any issues we could encounter or reasons why this would not
work/ I am thinking along the lines of players not being available for
any of the above platforms, or implementing things differently on
different platforms.

Is there a ball park guide line how long the development of a simple
'point and shoot/avoidance' game would take under the above
restrictions?

I hope this is not too OT, thanks for any responses.

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. 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] Editors in use by Actionscript Programmers

2007-04-09 Thread Hairy Dog Digital
I'd also throw in my 2-cents worth... MultiEdit Lite

...Rob

 

-Original Message-
From: Jon Bradley [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 09, 2007 7:16 AM
To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Editors in use by Actionscript Programmers

Another:

Subethaedit for mac

Just the fact that it's collaborative editing makes it worthwhile.  
I've yet to get into all the code-hinting/folding, etc. jazz offered by many
of these editors. Though, now I'm getting into more Flex 2 work, I have a
feeling I might be making a switch (but will keep to subetha for collab.
editing with coworkers).


On Apr 8, 2007, at 2:14 PM, Ron Wheeler wrote:

> Revised List of editors
>
> FlashDevelop
> Flexbuilder
> SciTe Flash
> Eclipse with Flex SDK
> Eclipse with ASDT
> Eclipse with FDT
> Eclipse with HXDT
> Eclipse with EHX
> SEPY Actionscript editor
> Flash 9 IDE
> Flash 8 IDE
> Vim
> Notepad++
> EditPlus with ActionScript profile
> TextMate
> jEdit
> BBedit
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] OT: Happy Easter

2007-04-09 Thread Cedric Muller

whatever!
stop this, this is OT, GOD doesn't exist (globally speaking in  
people's minds) and I am not a believer, so I DON'T need any god's  
blessing (more than that: keep it for yourself)
this is about laicity, this is about secular coding... this is JUST  
ABOUT CODING WITH FLASH :P

sorry if this hurts, but I do get hurt by 'god blessings'...
respect
Cedric




Happy easter to everyone and god bless you all guys.


Regards


Gustavo Duenas
On Apr 8, 2007, at 9:47 PM, Omar Fouad wrote:


Happy Easter to you and all the List Members Ricardo

On 4/8/07, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


On behalf of Jews everywhere, may I be the first to say you're  
welcome!

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

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is  
never boastful
nor conceited It is never rude or selfish. It does not take  
offense and is
not resentful. Love takes no pleasure in other people's sins...but  
delights
in the truth. It is always ready to excuse, to trust, to hope...  
and to

endure... whatever comes.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Does Domain name play any role in within slide movement?

2007-04-09 Thread Rákos Attila

Do you load SWFs into your player and control them using gotoAndPlay(),
etc? If the loader and the loadee are in different domains (or subdomains)
then loader has no access to the loadee's content (including its
variables/properties, functions/methods, etc.). However loadee can grant
access by calling System.security.allowDomain() with allowed domain names
where its content can be accessed from.

  Attila


> Hi All,
>
> I have designed a flash player for our website i.e.
> http://www.authorstream.com
>
> When i am playing it with full url i.e. http://www.authorstream.com it's
> playing perfectly fine.
> But when i am playing it as http://authorstream.com it's not playing
> within
> slide movements i.e. gotoAndPlay are not working. Even though xml parsing
> and slide loading in player is working fine. Which i thought could be the
> case that's why i loaded policy file in the player from
> http://www.authorstream.com. But problem is still there. I also needed
> policy file so that it can be played from any third party website/blogs.
>
> What can be the possible reason? Any help will be appriciated as you can
> see
> the player is already online and i am not finding any clue for such a
> behaviour. The requirement is it shall work fine from both www and without
> www url.
>
>
> --
> Thanks & Regards,
> Vivek Lakhanpal
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Editors in use by Actionscript Programmers

2007-04-09 Thread Jon Bradley

Another:

Subethaedit for mac

Just the fact that it's collaborative editing makes it worthwhile.  
I've yet to get into all the code-hinting/folding, etc. jazz offered  
by many of these editors. Though, now I'm getting into more Flex 2  
work, I have a feeling I might be making a switch (but will keep to  
subetha for collab. editing with coworkers).



On Apr 8, 2007, at 2:14 PM, Ron Wheeler wrote:


Revised List of editors

FlashDevelop
Flexbuilder
SciTe Flash
Eclipse with Flex SDK
Eclipse with ASDT
Eclipse with FDT
Eclipse with HXDT
Eclipse with EHX
SEPY Actionscript editor
Flash 9 IDE
Flash 8 IDE
Vim
Notepad++
EditPlus with ActionScript profile
TextMate
jEdit
BBedit
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Does Domain name play any role in within slide movement?

2007-04-09 Thread Vivek Lakhanpal

Hi All,

I have designed a flash player for our website i.e.
http://www.authorstream.com

When i am playing it with full url i.e. http://www.authorstream.com it's
playing perfectly fine.
But when i am playing it as http://authorstream.com it's not playing within
slide movements i.e. gotoAndPlay are not working. Even though xml parsing
and slide loading in player is working fine. Which i thought could be the
case that's why i loaded policy file in the player from
http://www.authorstream.com. But problem is still there. I also needed
policy file so that it can be played from any third party website/blogs.

What can be the possible reason? Any help will be appriciated as you can see
the player is already online and i am not finding any clue for such a
behaviour. The requirement is it shall work fine from both www and without
www url.


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

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


[Flashcoders] Re: xml socket server ...

2007-04-09 Thread Stephen Ford
Thanks Muzak,I found that link, it doesn't say how to implement or create the 
socket server from that java code though (I'm a server novice - it's probably 
quite simple).But I found this one: 
http://multiuser.web-cd.net/en/default.aspxI got it working enough to 
understand how xmlSocket works. But I'm onto remoting now - it seems AMFPHP is 
the full blown way to go for data apps in Flash.Thanks 
again.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Recommended frameworks

2007-04-09 Thread eka

Hello :)

You can try my opensource framework VEGAS : http://code.google.com/p/vegas/

My framework is based on a AS2/AS3/SSAS(Server Side ActionScript)
implementations.

- Installation : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
- Documentation : http://vegas.ekameleon.net/docs
- Tutorials in french : http://wiki.media-box.net/tutoriaux/vegas
- Tutoriaux in English :
http://code.google.com/p/vegas/wiki/TutorialsVEGAS(in progress)

With VEGAS you can use 4 extensions : PegAS( draw, color and transitions
tools), ASGard( net tools and display, system, localization tools, etc.),
LunAS(components), Andromeda (a little library to implement MVC, IOC (in
progress)) in your applications.

You can find the backups of my project in : RIAForge(
http://vegas.riaforge.org/) and OSFlash(http://www.osflash.org/vegas)

If you install the SVN sources with the
http://svn1.cvsdude.com/osflash/vegas/ link... you can find all examples in
the directory AS2/bin/test

My Framework use buRRRn libraries like Core2 (
http://code.google.com/p/core2/) - ASTuce(unit tests) (
http://code.google.com/p/astuce/ ) - eden (http://code.google.com/p/edenrr/)

EKA+ :)






2007/4/9, Nik Derewianka <[EMAIL PROTECTED]>:


Hi all,

Was just looking around for some helper classes for Array randomising
and came across the CASA framework (casaframework.org) which has
exactly what i need.  However, what other frameworks are out there
that people have used and can recommend from experience ?  Anyone
have any comments on the CASA framework (before i go and base this
game on it) ??

Cheers,
Nik
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [as3] mouseEvents are not triggering

2007-04-09 Thread Rákos Attila

You didn't add _sprite to the display list, so how could it trigger mouse
events if it is not even visible? And on the other hand, _sprite is
totally empty, it has no hit area where you can click and fire the
MOUSE_DOWN event. Why don't you add event listener to the particle
manager? Sorry if I miss something, but I don't understand exactly what
are you going to do.

  Attila

> Hello All,
>
> I am having a difficulty using mouseEvents in AS3.0 with Flex
> Builder. When I test a basic example it works fine but my setup is
> different. It is  like this: I do have some circles which is
> controlled by particleManager class. Basically Iam adding
> particleManager with addChild method in order to render it on the
> stage. Next I created _sprite in order to call mouseEvents on top of
> it.  And in the below code, I didn't do anything different, I just
> added Listeners for mouseEvents.  Do I have to do something special
> with pm object?  Should I be instantiating mouse Events on top of pm
> object? Am I supposed to register pm objects with mouseEvents so that
> they can be triggered? If so what's the right way to do it?
>
> I really appreciate any help.
> best,
> ilteris
>
>
> /**
> * saturday april 7.
>   * first iteration.
> */
> package {
>   import flash.display.Sprite;
>   import flash.events.Event;
>  import flash.events.TimerEvent;
>  import flash.utils.Timer;
>  import flash.events.MouseEvent;
>
>   [SWF(backgroundColor="#1C1A14", width="400", height="180",
> frameRate="61")]
>
>
>   public class Moodbox2 extends Sprite {
>   private var _timer:Timer;
>   public var pm:ParticleManager;
>   private var _sprite:Sprite;
>   public function Moodbox2() {
>pm = new ParticleManager();
>   _sprite = new Sprite();
>   addChild(pm);
>
>
>   _sprite.addEventListener(MouseEvent.MOUSE_DOWN, 
> onMouseDown);
>   _sprite.addEventListener(MouseEvent.MOUSE_UP, 
> onMouseUp);
>
>
>   _timer = new Timer(3);
>  _timer.addEventListener("timer", onTimer);
>  _timer.start(  );
>
>
>   }
>
>public function onTimer(event:TimerEvent):void {
> pm.idle(0.4);
>   pm.draw();
>  //  addChild(pm);
>  }
>
>   private function onMouseDown(event:MouseEvent):void {
>   trace(pm.PRTS[0].pos.x);
>//  pm.PRTS[0].pos.setN(mouseX,mouseY);
>_sprite.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
>  }
>
>private function onMouseUp(event:MouseEvent):void {
>  _sprite.removeEventListener(MouseEvent.MOUSE_MOVE,
> onMouseMove);
>}
>
>
>private function onMouseMove(event:MouseEvent):void {
>  trace("yes");
>}
>
>
>   }
> }
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


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

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


Re: [Flashcoders] xml socket server ...

2007-04-09 Thread Muzak
Google knows ;-)
http://www.google.com/search?hl=en&q=flash+xmlsocket+sample&meta=

http://www.gotoandplay.it/_articles/2003/12/xmlSocket.php

regards,
Muzak

- Original Message - 
From: "Stephen Ford" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 09, 2007 4:50 AM
Subject: [Flashcoders] xml socket server ...


Does anyone know how I can set up a local xml socket server on my pc to test 
with the xmlSocket object in flash.Thanks.


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

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