Re: [Flashcoders] Problem w/ Object returning arrays in AS 2

2007-07-11 Thread Hans Wichman

Hi,
you might wanna search for xml2obj or xml2object, this has been implemented
a million times before:)
greetz
JC



On 7/11/07, fred evers <[EMAIL PROTECTED]> wrote:


Hey FlashCoders,

Talkin' AS 2 here.

I am trying to do something that seems obvious. This was easy in AS1
adding methods and properties via '.prototype'. But obviously I am doing
something wrong! Kudos and eternal gratitude to the Coder who can tell me
what it is:

I am parsing XML with this structure:


   L1 title
   
   L2 title
   
   
   



I want to create an object in the root of an AS 2 app, such as:

var course:Course = new Course("theXML.xml");// file at same level as root
swf

After creating this class, I want to access the arrays that are part of
the instantiated 'course' Object:

trace(course.modules[0].length);// returns 0. I cannot access the data.
Wha Zup?

Source available at http://www.cyburth.com/Flash_Source.zip

file: module.as looks like this:
Class Course {
   private var modules:Array = new Array();
   private var moduleTitles:Array = new Array();

   // constructor
   public function module(xml:String0{
   this.loadDataFile(url);
   }

   public function loadDataFile(url:String):Void {
   var crsData:XML = new XML();
   crsData.ignoreWhite = true;
   crsData.onLoad = function(success) {
   this.tmpModules = new Array();
   this.tmpModuleTitles = new Array();
   var modNumb:Number=0;
   for(var i:Number = 0; i<
crsData.firstChild.childNodes.length;i++){
   var node:XMLNode = crsData.firstChild.childNodes
[i];
   if (node.nodeName == "module"){
   var mod:Object = new module(node);
   trace("So this mod title is ->
"+mod.title);
   this.tmpModules.push(mod.modules);
   this.tmpModuleTitles.push(mod.title);
   }// End if name == module
   }
   modules = this.tmpModules;
   moduleTitles = this.tmpModuleTitles;
   };// end onLoad
   // Load the XML
   crsData.load(url);
   }
}

// file module.as looks like this:


class module {
   public var sections:Array = new Array();
   public var sectionTitles:Array = new Array();
   public var title:String = "";

   public function module(mod:XMLNode){
   // This is the module class's constructor
   trace(mod);// shows XML node correctly
   for(var j:Number = 0; jhttp://chattyfig.figleaf.com/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] Papervision 3D technique

2007-07-11 Thread Hans Wichman

Hi Joshua,

can I conclude from the demo its cutting up and skewing? (even though I
brutely simplify whats happening with this statement:))

greetz
JC


On 7/12/07, Joshua Sera <[EMAIL PROTECTED]> wrote:


Actually, this demo made it pretty apparent what
they're doing. Pretty cool.

http://www.papervision3d.org/demos/LinearMapping/


--- Joshua Sera <[EMAIL PROTECTED]> wrote:

> So how does Papervision3D actually work? Are they
> just
> using a big BitmapData object, and using existing 3D
> techniques to render to that, or are they
> skewing/chopping movieclips into triangles?
>
> Basically, are they using ingenious hacks, or have
> they just written a software renderer?
>
>
>
>


> Moody friends. Drama queens. Your life? Nope! -
> their life, your story. Play Sims Stories at Yahoo!
> Games.
> http://sims.yahoo.com/
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the
> archive:
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>






Be a better Globetrotter. Get better travel answers from someone who
knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


[Flashcoders] RE: +Infinite Loop -Dignity

2007-07-11 Thread daniel

Thanks everyone for the input! It works now. I'm simplifying my architecture
at the moment, as I do understand that function calls are quite costly in
the world of ActionScript.

Danny's suggestion was mostly correct, however an Animation instance is
unaware of a Scene, so an Animation's update function couldn't have been
calling a Scene's update function over again. (This is intended behavior.)

It had to do with the fact that an animation was capable of having another
animation added unto itself. This wasn't correct, and was supposed to have
been removed from my implementation. It wasn't, so that's what created the
infinite loop.

The reason I'm jumping through so many hoops, as David puts it, is that the
Game class is responsible for managing a Scene, which in turn is responsible
for updating in-game graphical Elements. The reason Game doesn't do this by
itself is that it should not be aware, or even care, about the Elements
currently loaded. It should concern itself with game-level mechanics only,
such as managing the difficulty and score.

Sorry if it sounds like I'm ranting. Clear sometimes not me, often that.

Thanks everyone!

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

2007-07-11 Thread Joshua Sera
Actually, this demo made it pretty apparent what
they're doing. Pretty cool.

http://www.papervision3d.org/demos/LinearMapping/


--- Joshua Sera <[EMAIL PROTECTED]> wrote:

> So how does Papervision3D actually work? Are they
> just
> using a big BitmapData object, and using existing 3D
> techniques to render to that, or are they
> skewing/chopping movieclips into triangles?
> 
> Basically, are they using ingenious hacks, or have
> they just written a software renderer?
> 
> 
>
>

> Moody friends. Drama queens. Your life? Nope! -
> their life, your story. Play Sims Stories at Yahoo!
> Games.
> http://sims.yahoo.com/  
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the
> archive:
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 



   

Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Papervision 3D technique

2007-07-11 Thread Joshua Sera
So how does Papervision3D actually work? Are they just
using a big BitmapData object, and using existing 3D
techniques to render to that, or are they
skewing/chopping movieclips into triangles?

Basically, are they using ingenious hacks, or have
they just written a software renderer?


   

Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Jim Kremens

serious... about this.

Jim

On 7/11/07, Steven Sacks <[EMAIL PROTECTED]> wrote:

 > while(i--)a[i].n.t();

You ain't what?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] +Infinite Loop -Dignity

2007-07-11 Thread Steven Sacks

> while(i--)a[i].n.t();

You ain't what?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] +Infinite Loop -Dignity

2007-07-11 Thread Jim Kremens

Why are you using INSANELY long variable names like 'element' and
'animation'?  And why the spaces?

Shouldn't that read:

var i:Number = a.length;

while(i--)a[i].n.t();


:-)

Before anyone flames me... I'm kidding.

Jim
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem w/ Object returning arrays in AS 2

2007-07-11 Thread fred evers
Hey FlashCoders,

Talkin' AS 2 here.

I am trying to do something that seems obvious. This was easy in AS1 adding 
methods and properties via '.prototype'. But obviously I am doing something 
wrong! Kudos and eternal gratitude to the Coder who can tell me what it is:

I am parsing XML with this structure:


L1 title

L2 title

 




I want to create an object in the root of an AS 2 app, such as:

var course:Course = new Course("theXML.xml");// file at same level as root swf

After creating this class, I want to access the arrays that are part of the 
instantiated 'course' Object:

trace(course.modules[0].length);// returns 0. I cannot access the data. Wha 
Zup?

Source available at http://www.cyburth.com/Flash_Source.zip

file: module.as looks like this:
Class Course {
private var modules:Array = new Array();
private var moduleTitles:Array = new Array();

// constructor
public function module(xml:String0{
this.loadDataFile(url);
}

public function loadDataFile(url:String):Void {
var crsData:XML = new XML();
crsData.ignoreWhite = true;
crsData.onLoad = function(success) {
this.tmpModules = new Array();
this.tmpModuleTitles = new Array();
var modNumb:Number=0;
for(var i:Number = 0; 
i "+mod.title);
this.tmpModules.push(mod.modules);
this.tmpModuleTitles.push(mod.title);
}// End if name == module
}   
modules = this.tmpModules;
moduleTitles = this.tmpModuleTitles;
};// end onLoad
// Load the XML 
crsData.load(url);
}
}   

// file module.as looks like this:


class module {
public var sections:Array = new Array();
public var sectionTitles:Array = new Array();
public var title:String = "";

public function module(mod:XMLNode){
// This is the module class's constructor
trace(mod);// shows XML node correctly
for(var j:Number = 0; jhttp://chattyfig.figleaf.com/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] +Infinite Loop -Dignity

2007-07-11 Thread Steven Sacks

Oops!

var i:Number = elements.length;
while (i--)
{
elements[i].animation.update();
}


Steven Sacks wrote:

Decrementing is faster than incrementing.

var i:Number = elements.length;
while (--i)
{
elements[i].animation.update();
}

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

2007-07-11 Thread Smeets, Ben
I might be pushing my luck here, but is there some similar magic piece of code 
which can transform a collection of lines to a single polygon line? (So i can 
use the linegeneralization code below) I have a large collection of random 
lines which have a lot of overlappig start/end points. The only dinkytoy way I 
can think of to combine these into polygons is to take point 1, look through 
the whole collection for matching points, take point 2..etc. 
 
The way too global searchterms i can think of to use for googling brings up 
everything but related stuff.



Van: [EMAIL PROTECTED] namens Smeets, Ben
Verzonden: wo 11-7-2007 17:26
Aan: flashcoders@chattyfig.figleaf.com
Onderwerp: RE: [Flashcoders] Simplify point collection



Jim (and Ben also!) Thank you very much. The link below is as far as I
can tell by using the demo *exactly* what I was looking for. You guys
helped me get some sleep tonight ;)

Cheers,

Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
Armstrong
Sent: woensdag 11 juli 2007 16:37
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Simplify point collection

Is this what you're after?

http://motiondraw.com/md/as_samples/t/LineGeneralization/demo.html


regards,

- jim armstrong
www.algorithmist.net
http://algorithmist.wordpress.com  


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Smeets,
Ben
Sent: Wednesday, July 11, 2007 9:16 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Simplify point collection

I have a huge collection of point (x,y). Those points make up line
(x1,y1 to x2,y2). Is there
Some sort of well known function to smooth these points so that there is
less to draw?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. 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] Flash ActionScript Programmer

2007-07-11 Thread Steven Sacks
Posting jobs is acceptable, but if you start posting them egregiously, 
expect a swift rebuke from the populace and the powers that be.


Also, avoid posting jobs that require 5+ years of AS2 experience.  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] +Infinite Loop -Dignity

2007-07-11 Thread Steven Sacks

Decrementing is faster than incrementing.

var i:Number = elements.length;
while (--i)
{
elements[i].animation.update();
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Application Structure - Flash Remoting& MovieClipLoader

2007-07-11 Thread Muzak
More specifically, look for the ServiceLocator. It's a Singleton that houses 
all the remote services.
Then from anywhere in your app you can do something like this:

var service:Service = ServiceLocator.getInstance().getService("nameOfService");
var pendingCall:PendingCall = service.someMethod();
pendingCall.responder = new RelayResponder(this, "resultHandler", 
"faultHandler");

In an ARP/Cairngorm application you would normally do this from a Command 
class, rather than "anywhere in your app".

http://labs.adobe.com/wiki/index.php/Cairngorm
http://cairngormdocs.org/
visual representation of a cairngorm app
http://cairngormdocs.org/cairngormDiagram/index.html

other mvc frameworks
http://puremvc.org/
http://www.model-glue.com/flex.cfm

Note that allthough most of them talk about "flex", don't let that scare you, 
they're all MVC based and are very similar.

regards,
Muzak


- Original Message - 
From: "Glen Pike" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 11, 2007 9:32 PM
Subject: Re: [Flashcoders] Application Structure - Flash Remoting& 
MovieClipLoader


> Hi,
>
>I would suggest looking at ARP or another Framework to handle your Service 
> calls through a single interface which you create 
> services for.
>
>It is well documented with examples and OS so you should be able to get 
> the hang of it quite quickly.
>
>osflash.org/projects/arp
>
>HTH
>
>Glen
>
> Richard Mueller wrote:
>>
>> I'm building an application that is going to use Flash Remoting very 
>> heavily.  I'm wondering how I should structure my Service 
>> connections.  Should I put them in each(several) loaded movies or in the 
>> root timeline where any loaded move can access them. 
>> The latter would cause issues when trying to test each movie individually.  
>> But by putting the Service connections in each movie 
>> would require imports needed for FR at the top..
>>
>> Also, I'm new to using the moviecliploader.  I have a few functioning 
>> properly, however, is it wise to try and create a "smart" 
>> loader?  Meaning use one loader and zip when the zip.swf is loaded and zag 
>> with zag.swf.  Or should I just accept, and get in the 
>> habit of using a zip loader and a zag loader separately, meaning each loader 
>> simply serve a specific function.
>>
>> Richard


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

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


Re: [Flashcoders] Q:refresh bug in Firefox

2007-07-11 Thread Zeh Fernando
Anyone know what causes the refresh bug ONLY in the Firefox version 
of the FP9 player? For instance, view this site: 
http://www.lepers.info/test/pv3d/DrawBall.html


Do you have the beta version of flash player installed on FF (the one
with the mipmap feature)?


Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q:refresh bug in Firefox

2007-07-11 Thread moveup
Anyone know what causes the refresh bug ONLY in the Firefox version of the FP9 
player?

For instance, view this site:
http://www.lepers.info/test/pv3d/DrawBall.html

in both Firefox and IE


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

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Carl Welch

I heard using FOR is very slow. Instead, try WHILE (much faster):

var i = -1;
while (++i wrote:

This will happen if elements.length is undefined.  i will never equal
undefined.  Use i < elements.length

P

>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of daniel
>> Sent: Tuesday, July 10, 2007 11:52 PM
>> To: flashcoders@chattyfig.figleaf.com
>> Subject: [Flashcoders] +Infinite Loop -Dignity
>>
>> I feel really stupid right now. No, not that stupid. I mean  really
>> stupid.
>> Take the highest level of stupid you can imagine and double that.
Yes,
>> now
>> you've got it!
>>
>> I have a class named Game.
>>
>> Game.start() calls setInterval(this, "update", 1000).
>>
>> Game.update() calls _gameScene.update().
>>
>> _gameScene.update() has the following loop inside of it:
>>
>> for (var i:Number = 0; i != elements.length; i++) {
>> elements[i].animation.update();
>> }
>>
>> That FOR loop puts my humble PC into a coma. The variable 'elements'
is
>> not
>> undefined, and when I call trace(elements.length) I get '2'. I tried
>> clearing ASO cache (whatever that's worth right now) as a silly
>> precaution.
>>
>> Excuse me whilst I hang myself.
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/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




--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Application Structure - Flash Remoting & MovieClipLoader

2007-07-11 Thread Glen Pike

Hi,

   I would suggest looking at ARP or another Framework to handle your 
Service calls through a single interface which you create services for.


   It is well documented with examples and OS so you should be able to 
get the hang of it quite quickly.


   osflash.org/projects/arp

   HTH

   Glen

Richard Mueller wrote:


I'm building an application that is going to use Flash Remoting very 
heavily.  I'm wondering how I should structure my Service 
connections.  Should I put them in each(several) loaded movies or in 
the root timeline where any loaded move can access them.  The latter 
would cause issues when trying to test each movie individually.  But 
by putting the Service connections in each movie would require imports 
needed for FR at the top..


Also, I'm new to using the moviecliploader.  I have a few functioning 
properly, however, is it wise to try and create a "smart" loader?  
Meaning use one loader and zip when the zip.swf is loaded and zag with 
zag.swf.  Or should I just accept, and get in the habit of using a zip 
loader and a zag loader separately, meaning each loader simply serve a 
specific function.


Richard




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

2007-07-11 Thread Roslyn Blackwell
Hello All
 
I am new to this list and have a job opportunity, and would like to know if
its okay to post it on this message board?
 
Thanks for your assistance.
 
 
 

Regards,

Roslyn C. Blackwell

Staff Recruiter

Friendfinder, Inc., Medley, Inc.

  

445 Sherman Ave. Ste. O

Palo Alto, CA  94306

Office:  650-847-3115

Fax: 650-847-3131

Mobile: 650-353-0549

  [EMAIL PROTECTED]

www.friendfinderinc.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] just a site

2007-07-11 Thread mario gonzalez

Lol, you got it dude.

Muzak wrote:

http://osflash.org/flashcoders/etiquette


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

2007-07-11 Thread Hans Wichman

Hi,
thats exactly what I did in my last post:)
greetz
JC


On 7/11/07, Jon Bradley <[EMAIL PROTECTED]> wrote:



On Jul 11, 2007, at 1:08 PM, Nick Weekes wrote:

> In any case, this very useful link was put up and I think its
> closer to the
> original request:
>
> http://www.reflektions.com/miniml/template_permalink.asp?id=344

This effect would probably be much quicker by performing rectangular
region copies from one BitmapData object to another and use a matrix
for the transformation - all that's needed is a draw routine and loop
that modifies the rect and matrix for the copy.

It would definitely be an interesting test...

cheers,

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

2007-07-11 Thread Jon Bradley


On Jul 11, 2007, at 1:08 PM, Nick Weekes wrote:

In any case, this very useful link was put up and I think its  
closer to the

original request:

http://www.reflektions.com/miniml/template_permalink.asp?id=344


This effect would probably be much quicker by performing rectangular  
region copies from one BitmapData object to another and use a matrix  
for the transformation - all that's needed is a draw routine and loop  
that modifies the rect and matrix for the copy.


It would definitely be an interesting test...

cheers,

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

2007-07-11 Thread Muzak
http://osflash.org/flashcoders/etiquette


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Sending Base64 Encoded Data As XML Data

2007-07-11 Thread Johannes Nel

some servers have inbuilt max post size limits (which are mostly alterable),
you could be running into that

On 7/11/07, Paul Steven <[EMAIL PROTECTED]> wrote:


I would appreciate if anyone can take a look at this code and let me know
if
I am on the right tracks. Basically I am uploading a file to a server by
converting the binary data to Base64 and sending this as xml data.

I am getting an error from the server saying file type is not supported so
I
am wondering if my code is correct especially the bit that creates the xml
data to send.

Thanks in advance


var dataStrEncoded:String=Base64.Encode(ByteLoader.data);

var XMLString:String;

XMLString = "";
XMLString += "";
XMLString += "";
XMLString += dataStrEncoded;
XMLString += "";

loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, xmlLoaded);

var request:URLRequest = new URLRequest(ScriptPath);

request.method = URLRequestMethod.POST;

var variables:URLVariables = new URLVariables()
variables.xml = XMLString;

request.data = variables

loader.load(request);

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

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





--
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Sending Base64 Encoded Data As XML Data

2007-07-11 Thread Paul Steven
I would appreciate if anyone can take a look at this code and let me know if
I am on the right tracks. Basically I am uploading a file to a server by
converting the binary data to Base64 and sending this as xml data.

I am getting an error from the server saying file type is not supported so I
am wondering if my code is correct especially the bit that creates the xml
data to send.

Thanks in advance


var dataStrEncoded:String=Base64.Encode(ByteLoader.data);

var XMLString:String;   

XMLString = "";
XMLString += "";
XMLString += "";
XMLString += dataStrEncoded;
XMLString += "";

loader = new URLLoader();   
loader.addEventListener(Event.COMPLETE, xmlLoaded);

var request:URLRequest = new URLRequest(ScriptPath);

request.method = URLRequestMethod.POST;

var variables:URLVariables = new URLVariables()
variables.xml = XMLString;

request.data = variables

loader.load(request);

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

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


Re: [Flashcoders] Flipping Effect...

2007-07-11 Thread Hans Wichman

Hi,
it was on the list before, here was another one from my hand:
http://objectpainters.com/blog/?p=37

With sources and stuff. Currently it uses a bended transformation, but it
could just as easy be linair.

greetz
JC


On 7/11/07, Nick Weekes <[EMAIL PROTECTED]> wrote:


That's not the effect the OP was after.

(Either im experiencing déjà vu, or didn't we have another question asking
for exactly this sort of effect recently, and didn't someone also post the
link to the pixelfumes class?)

In any case, this very useful link was put up and I think its closer to
the
original request:

http://www.reflektions.com/miniml/template_permalink.asp?id=344


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pedro
Taranto
Sent: 11 July 2007 17:45
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flipping Effect...


http://pixelfumes.blogspot.com/2006/07/business-card-flip-effect-class-with
.
html

--
Pedro Taranto

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

2007-07-11 Thread Adrian Parr

Hi Everyone,

Thanks for replying. I've been playing around with shared objects this
afternoon and had 'some' success.

What I've done is ...

Created a very small SWF that just creates the shared object instance, and
has two functions inside it. The first function writes the required data to
the shared object and the second function reads the required data from the
shared object.

I then load this SWF in to my main online SWF using loadMovie, and when I
want to store the data I call the first function inside the loaded SWF. This
creates a shared object on the computer in the folder path the mirrors the
location and filename of the small SWF (not the main SWF).

Finally, in my local screensaver EXE/SWF I load the small SWF in from the
online location using loadMovie again (requires Internet access) and call
the second function that read the data back. Because this is the exact same
file that wrote it in the first place it finds the shared object.

I have used allowDomain in a few places just to make sure. I will try
removing some of these and see what happens.

It the moment it seems to work. I have created a screensaver using SWF
Studio 3.2 and it is reading in data that was created by my online app!!

Still much testing to be done though.

Ta,

Adrian





On 11/07/07, Ivan Dembicki <[EMAIL PROTECTED]> wrote:


private

Hello Adrian,

http://www.bezier.ru/SyntaxHighlighter/
- press settings.
set your settings.
- is it something like you need?



AP> Hi All,

AP> I am building an app that allows the user to personalise as
screensaver
AP> online.

AP> 1) User chooses some settings and these are saved to a shared object.
AP> 2) User downloads Flash screensaver (made with Screentime for Flash).
AP> 3) Screensaver runs and loads in the shared objects from above.
AP> 4) User sees personalised screensaver tunning!!

AP> Well, that is the theory. But it is looking like there is no way for
the
AP> local screensaver file to access the shared object that was saved by
the
AP> online SWF.

AP> I have come across the PDF file from Adobe ...
AP>
http://www.adobe.com/devnet/flashplayer/articles/fp8_security-related_apis.pdf
AP> and it says on page 14 ...
AP> "There is no mechanism to access shared objects across sandbox
boundaries."

AP> Has anyone tried to do something similar?

AP> Am I going to have to give up on shared objects and use a backend
scripting
AP> language and database instead?  :-(

AP> Shared objects was looking like such a neat solution.  :-(

AP> Any thoughs welcome ...

AP> Cheers,

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

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

--
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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] Flipping Effect...

2007-07-11 Thread Nick Weekes
That’s not the effect the OP was after.

(Either im experiencing déjà vu, or didn’t we have another question asking
for exactly this sort of effect recently, and didn’t someone also post the
link to the pixelfumes class?)

In any case, this very useful link was put up and I think its closer to the
original request:

http://www.reflektions.com/miniml/template_permalink.asp?id=344


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pedro
Taranto
Sent: 11 July 2007 17:45
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flipping Effect...

http://pixelfumes.blogspot.com/2006/07/business-card-flip-effect-class-with.
html

--
Pedro Taranto

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Transparent window in Zinc lowers framerate

2007-07-11 Thread Clive R Sweeney

[Hope it's okay to ask a Zinc question.]

With zinc 2.5, we are trying to use a transparent window so that the 
background isn’t visible. We can’t use a mask because the movie changes 
size via a tween. The problem is that when we use transparency, the FPS 
drops to about 5 so it really stutters along. Is there a way to access 
the mask for a form via script, or a way to increase the FPS when 
transparent? Thanks for your help.


::. clive

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

2007-07-11 Thread Zeh Fernando

Looking to create this effect: http://www.element79.com
I've been using AnimationPackage to do programmatic flips and scales
But sadly I can't get the smooth effect you get using the timeline.
Anybody know of any animation tutorials on this. I'm tempted to do it in
After Effects and import into flash.


Just because I'm an effect nazi, this effect is wrong. It's rotating the 
card but the image is not skewed accordingly. So if you try to replicate 
it you'll end up with something much less cooler than it could be.


Anyhow, to create real rotating planes, I'd advice you to use some 3d 
rendering class (for example, PaperVision3D or Sandy) to create a plane, 
and then using some animation class or extension that allows you to 
rotate the plane accordingly (Tweener, TweenLite, Animation System v2.0, 
maybe AnimationPackage itself, Fuse Kit, etc).


Of course it's not easy or fast to absorb that much new stuff, but after 
that's done, I'm guessing just a half-dozen lines would do the trick 
quite easily: create the scene, setup camera as needed, create the plane 
inside of it, attach the image texture to it, then rotate it. It's not 
very CPU intensive either, and would work on AS2 and AS3, Flash 8+.


PaperVision3D examples would help you understanding the concept better, 
I think.


Hope that helps,
Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flipping Effect...

2007-07-11 Thread Pedro Taranto

http://pixelfumes.blogspot.com/2006/07/business-card-flip-effect-class-with.html

--
Pedro Taranto

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

2007-07-11 Thread Dan Wade
Hello,

Looking to create this effect: http://www.element79.com
I've been using AnimationPackage to do programmatic flips and scales
But sadly I can't get the smooth effect you get using the timeline.
Anybody know of any animation tutorials on this. I'm tempted to do it in
After Effects and import into flash.

TIA,
-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


[Flashcoders] Application Structure - Flash Remoting & MovieClipLoader

2007-07-11 Thread Richard Mueller


I'm building an application that is going to use Flash Remoting very 
heavily.  I'm wondering how I should structure my Service 
connections.  Should I put them in each(several) loaded movies or in the 
root timeline where any loaded move can access them.  The latter would 
cause issues when trying to test each movie individually.  But by putting 
the Service connections in each movie would require imports needed for FR 
at the top..


Also, I'm new to using the moviecliploader.  I have a few functioning 
properly, however, is it wise to try and create a "smart" loader?  Meaning 
use one loader and zip when the zip.swf is loaded and zag with zag.swf.  Or 
should I just accept, and get in the habit of using a zip loader and a zag 
loader separately, meaning each loader simply serve a specific function.


Richard




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

2007-07-11 Thread Jim Armstrong
Is this what you're after?

http://motiondraw.com/md/as_samples/t/LineGeneralization/demo.html


regards,

- jim armstrong
www.algorithmist.net
http://algorithmist.wordpress.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Smeets,
Ben
Sent: Wednesday, July 11, 2007 9:16 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Simplify point collection

I have a huge collection of point (x,y). Those points make up line
(x1,y1 to x2,y2). Is there
Some sort of well known function to smooth these points so that there is
less to draw?


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

2007-07-11 Thread mario gonzalez
Oh yeah, one neat thing to do is if you leave the mouse over the logo, 
they'll fly to it until you take your mouse off.

http://onedayitwillmake.com/
mario gonzalez wrote:

Thanks dude!

I know it's a bit annoying in a sense, but the main reason i do that 
is so that whatever "flash experiment" you're looking at has
isn't sharing the cpu with the main page. If you're like me, you would 
a bunch of them in tabs and view them one by one that way, so i just 
basically wanted to let each have the browsers full focus as much as 
possible.




Hans Wichman wrote:

Hi Mario,

pretty cool!
Only thing is that its taking me to long to navigate.
I always like to have list that i can click 1,2,3. On your site the menu
moves in, i click something and the whole page disappears, no matter 
if I

hold down shift or not.
Could you open all the links in a new window?

Besides that, cool stuff on there:))

greetz
JC


On 7/11/07, mario gonzalez <[EMAIL PROTECTED]> wrote:


I been wanting to put my site together in some form, something simple
that just parsed my directory and spit out some xml of stuff i randomly
make usually to test out something...

so finally i put it together, and here's what i got... of the stuff i
have on the site, since it is what it is... stuff i've made for no
reason and usually not finished it's not always awesome but there is
some cool stuff on there.


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

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


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

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


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

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


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

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


Re: [Flashcoders] Movieclip.onLoad and onClipEvent :S

2007-07-11 Thread Dennis - I Sioux
In the small test i'm setting an onLoad from the frame script where the mc 
appears.

If i'm not mistaken frame script is run first before the mc appears then.

Anyway.. the onLoad will give a trace when i put script (even just "//") on 
the mc itself .. otherwise it won't call the onLoad.


- Original Message - 
From: "Hans Wichman" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, July 11, 2007 4:25 PM
Subject: Re: [Flashcoders] Movieclip.onLoad and onClipEvent :S



Hi,

am I right in thinking you are putting a movieclip on the stage and try to
overwrite its onLoad function?

By the time the object is available for you to act upon, its onLoad is
already executed, so overwriting it is no use.

greetz
JC


On 7/11/07, Dennis - I Sioux <[EMAIL PROTECTED]> wrote:


Hey List,

This one is making me nuts :-D .. while it is so easy.

i'm extending the textfield constructor and it needs to set an onLoad on
his parent mc.
Because i had some trouble and it was a big file i've made a small test..

But asfar as i can see.. when i put an onLoad on a mc.. it will only be
called if i put script on the mc itself.. even if it is just comment.
Can anyone explain this? Or is this an old subject?

the Script (if there is any:-D) .. :

this.test_mc.onLoad = function(){
trace("onLoad");
}

set a test_mc movieclip on the stage
then run it.. .. nothing happens.
Select the test_mc ..  put "//" on it in the action panel..
And.. you get a trace.

Anyone? Or is there a way to dynamically put the onClipEvent(load) on it?

Greetz,


Dennis
I Sioux
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Simplify point collection

2007-07-11 Thread Smeets, Ben
Jim (and Ben also!) Thank you very much. The link below is as far as I
can tell by using the demo *exactly* what I was looking for. You guys
helped me get some sleep tonight ;)

Cheers,

Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
Armstrong
Sent: woensdag 11 juli 2007 16:37
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Simplify point collection

Is this what you're after?

http://motiondraw.com/md/as_samples/t/LineGeneralization/demo.html


regards,

- jim armstrong
www.algorithmist.net
http://algorithmist.wordpress.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Smeets,
Ben
Sent: Wednesday, July 11, 2007 9:16 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Simplify point collection

I have a huge collection of point (x,y). Those points make up line
(x1,y1 to x2,y2). Is there
Some sort of well known function to smooth these points so that there is
less to draw?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. 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] Simplify point collection

2007-07-11 Thread Jim Armstrong
Glad to help.

good luck!

- jim
www.algorithmist.net
http://algorithmist.wordpress.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Smeets,
Ben
Sent: Wednesday, July 11, 2007 10:26 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Simplify point collection

Jim (and Ben also!) Thank you very much. The link below is as far as I
can tell by using the demo *exactly* what I was looking for. You guys
helped me get some sleep tonight ;)

Cheers,

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

2007-07-11 Thread mario gonzalez

Thanks dude!

I know it's a bit annoying in a sense, but the main reason i do that is 
so that whatever "flash experiment" you're looking at has
isn't sharing the cpu with the main page. If you're like me, you would a 
bunch of them in tabs and view them one by one that way, so i just 
basically wanted to let each have the browsers full focus as much as 
possible.




Hans Wichman wrote:

Hi Mario,

pretty cool!
Only thing is that its taking me to long to navigate.
I always like to have list that i can click 1,2,3. On your site the menu
moves in, i click something and the whole page disappears, no matter if I
hold down shift or not.
Could you open all the links in a new window?

Besides that, cool stuff on there:))

greetz
JC


On 7/11/07, mario gonzalez <[EMAIL PROTECTED]> wrote:


I been wanting to put my site together in some form, something simple
that just parsed my directory and spit out some xml of stuff i randomly
make usually to test out something...

so finally i put it together, and here's what i got... of the stuff i
have on the site, since it is what it is... stuff i've made for no
reason and usually not finished it's not always awesome but there is
some cool stuff on there.


http://onedayitwillmake.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] Movieclip.onLoad and onClipEvent :S

2007-07-11 Thread Hans Wichman

Hi,
what i meant was:

If you do:
this.test_mc.onLoad = function(){
trace("onLoad");
}

Then the test_mc is either there or not. If it's there, it has been loaded
already and you are overwriting the function after the fact. If it's not
there.. well it's not there...

At least that is how I think it works. I never use it myself so i might be
wrong :)

greetz
JC



On 7/11/07, Dennis - I Sioux <[EMAIL PROTECTED]> wrote:


In the small test i'm setting an onLoad from the frame script where the mc
appears.
If i'm not mistaken frame script is run first before the mc appears then.

Anyway.. the onLoad will give a trace when i put script (even just "//")
on
the mc itself .. otherwise it won't call the onLoad.

- Original Message -
From: "Hans Wichman" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 11, 2007 4:25 PM
Subject: Re: [Flashcoders] Movieclip.onLoad and onClipEvent :S


> Hi,
>
> am I right in thinking you are putting a movieclip on the stage and try
to
> overwrite its onLoad function?
>
> By the time the object is available for you to act upon, its onLoad is
> already executed, so overwriting it is no use.
>
> greetz
> JC
>
>
> On 7/11/07, Dennis - I Sioux <[EMAIL PROTECTED]> wrote:
>>
>> Hey List,
>>
>> This one is making me nuts :-D .. while it is so easy.
>>
>> i'm extending the textfield constructor and it needs to set an onLoad
on
>> his parent mc.
>> Because i had some trouble and it was a big file i've made a small
test..
>>
>> But asfar as i can see.. when i put an onLoad on a mc.. it will only be
>> called if i put script on the mc itself.. even if it is just comment.
>> Can anyone explain this? Or is this an old subject?
>>
>> the Script (if there is any:-D) .. :
>>
>> this.test_mc.onLoad = function(){
>> trace("onLoad");
>> }
>>
>> set a test_mc movieclip on the stage
>> then run it.. .. nothing happens.
>> Select the test_mc ..  put "//" on it in the action panel..
>> And.. you get a trace.
>>
>> Anyone? Or is there a way to dynamically put the onClipEvent(load) on
it?
>>
>> Greetz,
>>
>>
>> Dennis
>> I Sioux
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/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] Simplify point collection

2007-07-11 Thread ben gomez farrell
I haven't tried this myself, but I think one of the major ways to smooth 
lines is to do so by checking angles.


So look at point 1 and point 3.  These points create the hypotenuse of a 
triangle, and points 1, 2 and 2, 3 create the legs of the triangle.  If 
you use some basic trig you can find the angle that is created by the 
two legs of the triangle.  If the angle is insignificant like less than 
2 degrees or 5 degrees or something, then you can drop point 2 from your 
list.


does that help?
ben

Smeets, Ben wrote:

Hi All,

The subject might not cover it, but I didn't have a clue what this is
called in real life :)

I have a huge collection of point (x,y). Those points make up line
(x1,y1 to x2,y2). Is there
Some sort of well known function to smooth these points so that there is
less to draw?

E.g. take these lines

1:  100,100 to  101,101
2:  101,101 to  103,102
3:  103,102 to  110,112

I now have to say, moveTo startPoint, then lineTo endPoint for each
line. A smart function might be able to make this a moveTo once and then
2 lineTo's.
That saves 2 moveTo's. Another optimisation which would be great is, if
there are a lot (tens) of lines within a couple of pixels, if it would
be possible
To filter out a lot of lines and only draw the ones that are needed for
the visual. (something like the smooth line function inside the flash
IDE).

Anybody came across something like this? I remember Grant Skinner (I
thought he was the one) making a text recognition engine in flash once.
He also
Used some algorythm to simplify the lines and points.

Tx

Ben Smeets


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. 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] Re: Cross-domain Shared Objects

2007-07-11 Thread Danny Kodicek
 > On 11/07/07, Adrian Parr <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > I am building an app that allows the user to personalise as 
> > screensaver online.
> >
> > 1) User chooses some settings and these are saved to a 
> shared object.
> > 2) User downloads Flash screensaver (made with Screentime 
> for Flash).
> > 3) Screensaver runs and loads in the shared objects from above.
> > 4) User sees personalised screensaver tunning!!
> >
> > Well, that is the theory. But it is looking like there is 
> no way for 
> > the local screensaver file to access the shared object that 
> was saved 
> > by the online SWF.

Sounds like a bad idea: if they remove the sharedObject in some way, their
screensaver will lose all its data. Is there no way for Screentime to give
access to screensaver properties that are accessed in the screensaver
dialogue box? That's where this info *ought* to be stored!

Danny

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

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


Re: [Flashcoders] Movieclip.onLoad and onClipEvent :S

2007-07-11 Thread Hans Wichman

Hi,

am I right in thinking you are putting a movieclip on the stage and try to
overwrite its onLoad function?

By the time the object is available for you to act upon, its onLoad is
already executed, so overwriting it is no use.

greetz
JC


On 7/11/07, Dennis - I Sioux <[EMAIL PROTECTED]> wrote:


Hey List,

This one is making me nuts :-D .. while it is so easy.

i'm extending the textfield constructor and it needs to set an onLoad on
his parent mc.
Because i had some trouble and it was a big file i've made a small test..

But asfar as i can see.. when i put an onLoad on a mc.. it will only be
called if i put script on the mc itself.. even if it is just comment.
Can anyone explain this? Or is this an old subject?

the Script (if there is any:-D) .. :

this.test_mc.onLoad = function(){
trace("onLoad");
}

set a test_mc movieclip on the stage
then run it.. .. nothing happens.
Select the test_mc ..  put "//" on it in the action panel..
And.. you get a trace.

Anyone? Or is there a way to dynamically put the onClipEvent(load) on it?

Greetz,


Dennis
I Sioux
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Cross-domain Shared Objects

2007-07-11 Thread John Grden

as far as I've tested and tried, it's true, you won't be able to do this.

On 7/11/07, Adrian Parr <[EMAIL PROTECTED]> wrote:


Hi All,

I am building an app that allows the user to personalise as screensaver
online.

1) User chooses some settings and these are saved to a shared object.
2) User downloads Flash screensaver (made with Screentime for Flash).
3) Screensaver runs and loads in the shared objects from above.
4) User sees personalised screensaver tunning!!

Well, that is the theory. But it is looking like there is no way for the
local screensaver file to access the shared object that was saved by the
online SWF.

I have come across the PDF file from Adobe ...

http://www.adobe.com/devnet/flashplayer/articles/fp8_security-related_apis.pdf
and it says on page 14 ...
"There is no mechanism to access shared objects across sandbox
boundaries."

Has anyone tried to do something similar?

Am I going to have to give up on shared objects and use a backend
scripting
language and database instead?  :-(

Shared objects was looking like such a neat solution.  :-(

Any thoughs welcome ...

Cheers,

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

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





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

2007-07-11 Thread Smeets, Ben
Hi All,

The subject might not cover it, but I didn't have a clue what this is
called in real life :)

I have a huge collection of point (x,y). Those points make up line
(x1,y1 to x2,y2). Is there
Some sort of well known function to smooth these points so that there is
less to draw?

E.g. take these lines

1:  100,100 to  101,101
2:  101,101 to  103,102
3:  103,102 to  110,112

I now have to say, moveTo startPoint, then lineTo endPoint for each
line. A smart function might be able to make this a moveTo once and then
2 lineTo's.
That saves 2 moveTo's. Another optimisation which would be great is, if
there are a lot (tens) of lines within a couple of pixels, if it would
be possible
To filter out a lot of lines and only draw the ones that are needed for
the visual. (something like the smooth line function inside the flash
IDE).

Anybody came across something like this? I remember Grant Skinner (I
thought he was the one) making a text recognition engine in flash once.
He also
Used some algorythm to simplify the lines and points.

Tx

Ben Smeets


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. 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] Re: Cross-domain Shared Objects

2007-07-11 Thread Adrian Parr

P.S. I am using Flash 8.



On 11/07/07, Adrian Parr <[EMAIL PROTECTED]> wrote:


Hi All,

I am building an app that allows the user to personalise as screensaver
online.

1) User chooses some settings and these are saved to a shared object.
2) User downloads Flash screensaver (made with Screentime for Flash).
3) Screensaver runs and loads in the shared objects from above.
4) User sees personalised screensaver tunning!!

Well, that is the theory. But it is looking like there is no way for the
local screensaver file to access the shared object that was saved by the
online SWF.

I have come across the PDF file from Adobe ...
http://www.adobe.com/devnet/flashplayer/articles/fp8_security-related_apis.pdf

and it says on page 14 ...
"There is no mechanism to access shared objects across sandbox
boundaries."

Has anyone tried to do something similar?

Am I going to have to give up on shared objects and use a backend
scripting language and database instead?  :-(

Shared objects was looking like such a neat solution.  :-(

Any thoughs welcome ...

Cheers,

Adrian Parr


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

2007-07-11 Thread Adrian Parr

Hi All,

I am building an app that allows the user to personalise as screensaver
online.

1) User chooses some settings and these are saved to a shared object.
2) User downloads Flash screensaver (made with Screentime for Flash).
3) Screensaver runs and loads in the shared objects from above.
4) User sees personalised screensaver tunning!!

Well, that is the theory. But it is looking like there is no way for the
local screensaver file to access the shared object that was saved by the
online SWF.

I have come across the PDF file from Adobe ...
http://www.adobe.com/devnet/flashplayer/articles/fp8_security-related_apis.pdf
and it says on page 14 ...
"There is no mechanism to access shared objects across sandbox boundaries."

Has anyone tried to do something similar?

Am I going to have to give up on shared objects and use a backend scripting
language and database instead?  :-(

Shared objects was looking like such a neat solution.  :-(

Any thoughs welcome ...

Cheers,

Adrian Parr
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] +Infinite Loop -Dignity

2007-07-11 Thread Pete Miller
This will happen if elements.length is undefined.  i will never equal
undefined.  Use i < elements.length

P

>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of daniel
>> Sent: Tuesday, July 10, 2007 11:52 PM
>> To: flashcoders@chattyfig.figleaf.com
>> Subject: [Flashcoders] +Infinite Loop -Dignity
>> 
>> I feel really stupid right now. No, not that stupid. I mean  really
>> stupid.
>> Take the highest level of stupid you can imagine and double that.
Yes,
>> now
>> you've got it!
>> 
>> I have a class named Game.
>> 
>> Game.start() calls setInterval(this, "update", 1000).
>> 
>> Game.update() calls _gameScene.update().
>> 
>> _gameScene.update() has the following loop inside of it:
>> 
>> for (var i:Number = 0; i != elements.length; i++) {
>> elements[i].animation.update();
>> }
>> 
>> That FOR loop puts my humble PC into a coma. The variable 'elements'
is
>> not
>> undefined, and when I call trace(elements.length) I get '2'. I tried
>> clearing ASO cache (whatever that's worth right now) as a silly
>> precaution.
>> 
>> Excuse me whilst I hang myself.
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/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] Movieclip.onLoad and onClipEvent :S

2007-07-11 Thread Dennis - I Sioux
Hey List,

This one is making me nuts :-D .. while it is so easy.

i'm extending the textfield constructor and it needs to set an onLoad on his 
parent mc.
Because i had some trouble and it was a big file i've made a small test..

But asfar as i can see.. when i put an onLoad on a mc.. it will only be called 
if i put script on the mc itself.. even if it is just comment.
Can anyone explain this? Or is this an old subject?

the Script (if there is any:-D) .. :

this.test_mc.onLoad = function(){
 trace("onLoad");
}

set a test_mc movieclip on the stage
then run it.. .. nothing happens.
Select the test_mc ..  put "//" on it in the action panel..
And.. you get a trace.

Anyone? Or is there a way to dynamically put the onClipEvent(load) on it?

Greetz,


Dennis 
I Sioux
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Mixing data types in an array...

2007-07-11 Thread Danny Kodicek
 > Hi,
> 
> well in the end everything is an object, so you are not 
> really mixing datatypes.
> 
> It all depends on the scope of your project I think, but 
> seeing the code below doesn't make me wanna be the maintainer 
> of that project when its author goes on vacation or sickleave :).
> 
> I think that in asking 'is this acceptable?' you are already 
> answering your own question. If you think its dubious, others 
> will think its dubious.

In other languages, Arrays are forced to have a single data type, but not in
AS. Still, what you've got there looks a lot more like something that should
be an object to me. What's more, if you're using switch() that's often a
sign that you've not organised your information very well (not always, but
it rings warning bells for me)

Danny

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

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


RE: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Danny Kodicek
 
> I feel really stupid right now. No, not that stupid. I mean  
> really stupid.
> Take the highest level of stupid you can imagine and double 
> that. Yes, now you've got it!
> 
> I have a class named Game.
> 
> Game.start() calls setInterval(this, "update", 1000).
> 
> Game.update() calls _gameScene.update().
> 
> _gameScene.update() has the following loop inside of it:
> 
> for (var i:Number = 0; i != elements.length; i++) { 
> elements[i].animation.update(); }
> 
> That FOR loop puts my humble PC into a coma. The variable 
> 'elements' is not undefined, and when I call 
> trace(elements.length) I get '2'. I tried clearing ASO cache 
> (whatever that's worth right now) as a silly precaution.
> 
> Excuse me whilst I hang myself.

I can't quite tell from your post whether you've solved the problem or not!
If not, my guess is that the animation.update() call is triggering the other
update events. Any chance the _gameScene object has found its way into
elements. Have you tried the debugger?

Danny

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

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


Re: [Flashcoders] AS3 SWC Component assets not exporting

2007-07-11 Thread Muzak
Works fine here.

When I first tried this with an AS2 swc created in FCS3, attaching assets that 
were in the 2nd frame didn't work for some reason.
The assets were there, I could see them in live preview (on stage) but when 
compiling nothing showed up (part from the bounding box 
that was in frame 1).
I then tinkered a bit with the settings in the "Component Definition" window 
(right click movieclip in library)
Selected all the available checkboxes (Parameters are locked in instances, 
Display in Components Panel, etc..)
For the assets (the ones dropped in 2nd frame of component) I also unchecked 
"export in first frame".
After that it started working.

I'm not sure which alteration actually made it work (Component Definition or 
Export in first frame).

That was an AS2 swc. When trying an AS3 swc, it worked right away.. didn't need 
to do any of the above.

regards,
Muzak

- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 11, 2007 12:37 AM
Subject: [Flashcoders] AS3 SWC Component assets not exporting


> Just wondering if anyone else has run into this problem... and what solutions
> you may have.
>
> I'm creating custom components that aren't extending the built-in UIComponent
> class. My component .fla is built using a boundingBox_mc in Frame 1, and the
> component assets in Frame 2 (same as AS2 V2 components), however when I export
> the .swc none of it's assets get exported along with it.
>
> I have been able to get this to work as an .fla component, but this project
> requires that it uses .swc components. sigh :(
>
> Can anyone shed some light on why the assets aren't being compiled into the
> component .swc ? Does Flash CS3 just no longer support this, or is there a
> crucial new undocumented step I'm missing?
>
> Thanks
> *.*   Sherri
>


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

2007-07-11 Thread Hans Wichman

Hi Mario,

pretty cool!
Only thing is that its taking me to long to navigate.
I always like to have list that i can click 1,2,3. On your site the menu
moves in, i click something and the whole page disappears, no matter if I
hold down shift or not.
Could you open all the links in a new window?

Besides that, cool stuff on there:))

greetz
JC


On 7/11/07, mario gonzalez <[EMAIL PROTECTED]> wrote:


I been wanting to put my site together in some form, something simple
that just parsed my directory and spit out some xml of stuff i randomly
make usually to test out something...

so finally i put it together, and here's what i got... of the stuff i
have on the site, since it is what it is... stuff i've made for no
reason and usually not finished it's not always awesome but there is
some cool stuff on there.


http://onedayitwillmake.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