Re: [Flashcoders] AS3 Events, Delegates and passing parameters

2007-08-31 Thread T. Michael Keesey
On 8/31/07, Mark Carolin <[EMAIL PROTECTED]> wrote:
> I believe you could pass a custom Event with all the properties you want.

Yes, but one word of warning about extending Event: be sure you
override Event.clone() so that it returns an instance of your class!
(Events are cloned when they are dispatched.)

-- 
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] AS3 Events, Delegates and passing parameters

2007-08-31 Thread Mark Carolin
I believe you could pass a custom Event with all the properties you want.

On 8/25/07, Muzak <[EMAIL PROTECTED]> wrote:
>
> There should never be any need for using a Delegate class in AS3 and
> passing arguments along with a Delegate in AS2.
>
> regards,
> Muzak
>
> - Original Message -
> From: "Matthias Dittgen" <[EMAIL PROTECTED]>
> To: 
> Sent: Saturday, August 25, 2007 6:01 PM
> Subject: Re: [Flashcoders] AS3 Events, Delegates and passing parameters
>
>
> > Hi Dimitrios,
> >
> > I stumbled over the same questions only some hours ago, and after
> > spending a lot of time searching the web, mailinglists and forums I
> > finally found the new Delegate class from Ian Thomas here:
> >
> http://wildwinter.blogspot.com/2007/04/come-back-delegate-all-is-forgiven.html
> > @Ian, when reading: Great work!
> > It's especially useful, when porting from AS2 and rewriting Events or
> > targets is not an option.
> >
> > hth,
> > Matthias
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



-- 
323-573-4352(c)

AIM:bulbousbeans
MSN:[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


Re: [Flashcoders] Whaen was Flash 9 player released?

2007-08-31 Thread Jim Cheng

Count Schemula wrote:

Approximately when was Flash Player 9 first released?



If you mean the first non-beta public release, June of last year (2006), 
I believe.  Emmy Huang, the Flash Player Product Manager at Adobe, has 
been blogging about every major update to the Flash Player since back in 
the days of Flash Player 8.5 (when the new AVM+ was first included with 
the beta versions of Flex Builder 2).


You can read up the details on her blog:

http://weblogs.macromedia.com/emmy/

Search for "Flash Player 9" on it and you can get a distilled list of 
practically every publicly released update to the player (stuff like 
when the Linux and Solaris versions came out, when multi-core and 
full-screen hardware acceleration got baked in, and when H.264 arrived).


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] Whaen was Flash 9 player released?

2007-08-31 Thread Count Schemula
Approximately when was Flash Player 9 first released?

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

2007-08-31 Thread Paul Venton
Have a gander at the Date object ... it's all there.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Corban
Baxter
Sent: 31 August 2007 19:22
To: Flashcoders mailing list
Subject: [Flashcoders] coding a world clock

Just wanted to know where I could get the data to code world clocks in
flash. Since flash works off the system clock am I able to get the time zone
or do I need to use a web service that is available to make this happen?

-- 
Corban Baxter
http://www.projectx4.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] coding a world clock

2007-08-31 Thread Corban Baxter
Just wanted to know where I could get the data to code world clocks in
flash. Since flash works off the system clock am I able to get the time zone
or do I need to use a web service that is available to make this happen?

-- 
Corban Baxter
http://www.projectx4.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: Parse/ Create swf via Actionscript 3.0

2007-08-31 Thread Alan Watts
I was going to start this a few months ago and then found some perl  
modules that do it:


http://search.cpan.org/search?query=swf&mode=all

My project is more suited for server-side swf generation, but these  
could be ported to as3 fairly easily.


hope it helps,
Alan


Curious if anybody knows of a library or is interested in working  
on one for

swf creation via actionscript?

In AS3, via ByteArray manipulations it's possible to read/decompile  
swf file as
a stream of bytes, and also generate create an swf entirely via  
actionscript!

e.g.
http://www.bytearray.org/?p=17 this could be used for generator or  
swfmill like
functionality, embedding graphics instead of having to constantly  
load them,

even web based live preview of the file being created.

I know the swf specification exists in order to figure out. So I  
could figure

it out, but wanted to see if anybody else had started on this first.
https://www.adobe.com/cfusion/entitlement/index.cfm?e=file%5Fformat



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

2007-08-31 Thread Steve Mathews
There isn't a way to rotate without changing the x and y. But it is
all just math. Here are a couple resources you could look at.

http://jobemakar.blogspot.com/2007/06/rotating-around-point.html
http://www.senocular.com/flash/tutorials/transformmatrix/

Steve

On 8/28/07, julian atienza <[EMAIL PROTECTED]> wrote:
> Hello everybody.
>
> I'm ending one small project that handle images and make possible to
> do zoom, rotate (from 90 degrees to 90 degrees) and move this images
> by drag&drop when images are bigger than screen.
>
> I have a problem with rotate. Zooming is easy thus this doesn't change
> my _x and _y, but yes my _width and _height. But everytime i rotate,
> it changes my _x and _y and is a little confused to make operations
> that i used to do like localToGlobal (to know center of screen respect
> image and zoom from there), startDrag (to mark limits), and a much
> more... there is anyway to rotate without changing _x and _y??? i
> tried to copy image with bitmapData and apply a matrix with rotation,
> but is the same situation...
>
> I'm using this classes from Darron Schall:
> http://www.darronschall.com/weblog/archives/54.cfm
>
> It helps me to move my Dynamic Registration (center of movieclip) and
> zoom or rotate from there but... _x (and _x2 in the case) also
> change...
>
> any help? thanks in advance...
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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 ByteArray as a FLV holder

2007-08-31 Thread Bernard Visscher
I must correct that, that is a swf hack to inject sound into a swf and the
load with the loader.loadBytes. I'm now trying to do the same with a flv.

I've read a lot and found that injecting bytes into netstream isn't
possible.

Bernard

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens T. Michael Keesey
Verzonden: vrijdag 31 augustus 2007 17:00
Aan: flashcoders@chattyfig.figleaf.com
Onderwerp: Re: [Flashcoders] [AS3] Using ByteArray as a FLV holder

On 8/31/07, Bernard Visscher <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was trying to load a FLV in a ByteArray and then attaching it to a
> NetStream or something like that to display the flv. No luck yet!
> Does someone know how this can be done?
> I think I have to replace the data like you "can" do with sound.

How do you do it with sound? For DisplayObject instances, there's
Loader.loadBytes, but I don't see an equivalent for Sound instances.
-- 
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 ByteArray as a FLV holder

2007-08-31 Thread T. Michael Keesey
On 8/31/07, Bernard Visscher <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was trying to load a FLV in a ByteArray and then attaching it to a
> NetStream or something like that to display the flv. No luck yet!
> Does someone know how this can be done?
> I think I have to replace the data like you "can" do with sound.

How do you do it with sound? For DisplayObject instances, there's
Loader.loadBytes, but I don't see an equivalent for Sound instances.
-- 
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] General question about data management

2007-08-31 Thread Ron Wheeler

I think that you are on the right track.


Pass the XML sub-tree to the constructor to create the class. If you do 
this, then any change to the schema will only affect the class parsing 
that part of the tree.
If you do the same thing to create the XML to be saved, you will get the 
same benefit on output.


Minimize parsing at each level so that each object only knows its own 
XML structure and loads its own properties. If it sees a child it should 
call a constructor to get the child object built.


You code should be very robust and easy to maintain. A monolithic 
parsing engine that maintains a complex XML file is going to be a 
headache every step of the way.


Ron


Paul Steven wrote:

I am creating a desktop application using Flash and Zinc. The first time it
runs, it retrieves all the data by calling a series of scripts on a server.
The data is returned as xml data.

My question is, can I just store all the info in memory as xml data or do I
need to create classes to store the info?

I need to store all this data locally so that users can use the application
later even if they are not online so I was planning on writing xml files to
the users hard drive.

Basically the application stores details of examinations and the students
associated with each exam.

I am currently reading in the xml data about each exam and using an
examination class to create instances of each exam to store the properties.
Likewise I am reading in all the data for each student and using a student
class to create instances of each student to store the properties of each
student.

I am thinking that this is not necessary and that I could just read in the
xml and use this xml data whilst the application is running. Any changes
made by the user could directly change the xml data. Then when they choose
to save their work, I would write the xml data to a text file.

Any advice on this much appreciated as I am getting a bit confused and have
spent days writing classes to deal with all the data management.

Thanks

Paul

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

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


  

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

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


Re: [Flashcoders] Parse/ Create swf via Actionscript 3.0

2007-08-31 Thread Muzak
If that's the case, then just ignore me..

I read it as "reads and writes SWF files".. but that's probably because English 
isn't my main language ;-)

regards,
Muzak

- Original Message - 
From: "Bojil Vassilev" <[EMAIL PROTECTED]>
To: 
Sent: Friday, August 31, 2007 12:48 PM
Subject: Re: [Flashcoders] Parse/ Create swf via Actionscript 3.0


> His thing won't render swf's but create them, I guess that should be fine?
> Anyway other programs are doing that already, creating swf's, which will be 
> then rendered in the Flash player.
>
> Muzak ??:
>> Have you read the License Agreement?
>> https://www.adobe.com/cfusion/entitlement/index.cfm?e=file%5Fformat
>>
>> 
>> 3. Restrictions
>>
>> a. You may not use the Specification in any way to create or develop a 
>> runtime, client, player, executable or other program that 
>> reads or renders SWF files.
>> 
>>
>> 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] Parse/ Create swf via Actionscript 3.0

2007-08-31 Thread Bojil Vassilev

His thing won't render swf's but create them, I guess that should be fine?
Anyway other programs are doing that already, creating swf's, which will 
be then rendered in the Flash player.


Muzak написа:

Have you read the License Agreement?
https://www.adobe.com/cfusion/entitlement/index.cfm?e=file%5Fformat


3. Restrictions

a. You may not use the Specification in any way to create or develop a runtime, client, player, executable or other program that 
reads or renders SWF files.



regards,
Muzak

- Original Message - 
From: "Troy Gardner" <[EMAIL PROTECTED]>

To: 
Sent: Friday, August 31, 2007 11:54 AM
Subject: [Flashcoders] Parse/ Create swf via Actionscript 3.0


  

Curious if anybody knows of a library or is interested in working on one for
swf creation via actionscript?

In AS3, via ByteArray manipulations it's possible to read/decompile swf file as
a stream of bytes, and also generate create an swf entirely via actionscript!
e.g.
http://www.bytearray.org/?p=17 this could be used for generator or swfmill like
functionality, embedding graphics instead of having to constantly load them,
even web based live preview of the file being created.

I know the swf specification exists in order to figure out. So I could figure
it out, but wanted to see if anybody else had started on this first.
https://www.adobe.com/cfusion/entitlement/index.cfm?e=file%5Fformat

There is already one that parses the top level tags, it's surprisingly simple.
>From here:
http://flashpanoramas.com/blog/

At the moment, I'm most interested in reading/generating the shape script
Class/LinkageID tags, embedding jpg/gifs created from editors.





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Parse/ Create swf via Actionscript 3.0

2007-08-31 Thread Muzak
Have you read the License Agreement?
https://www.adobe.com/cfusion/entitlement/index.cfm?e=file%5Fformat


3. Restrictions

a. You may not use the Specification in any way to create or develop a runtime, 
client, player, executable or other program that 
reads or renders SWF files.


regards,
Muzak

- Original Message - 
From: "Troy Gardner" <[EMAIL PROTECTED]>
To: 
Sent: Friday, August 31, 2007 11:54 AM
Subject: [Flashcoders] Parse/ Create swf via Actionscript 3.0


> Curious if anybody knows of a library or is interested in working on one for
> swf creation via actionscript?
>
> In AS3, via ByteArray manipulations it's possible to read/decompile swf file 
> as
> a stream of bytes, and also generate create an swf entirely via actionscript!
> e.g.
> http://www.bytearray.org/?p=17 this could be used for generator or swfmill 
> like
> functionality, embedding graphics instead of having to constantly load them,
> even web based live preview of the file being created.
>
> I know the swf specification exists in order to figure out. So I could figure
> it out, but wanted to see if anybody else had started on this first.
> https://www.adobe.com/cfusion/entitlement/index.cfm?e=file%5Fformat
>
> There is already one that parses the top level tags, it's surprisingly simple.
>>From here:
> http://flashpanoramas.com/blog/
>
> At the moment, I'm most interested in reading/generating the shape script
> Class/LinkageID tags, embedding jpg/gifs created from editors.
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] What open source utility to convert video to FLV or SWF ?

2007-08-31 Thread Peter B
FFMPEG:
http://ffmpeg.mplayerhq.hu/

Will do server side conversion if that's what you need...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] creating variable names dynamically in AS3

2007-08-31 Thread Geografiek

Hi Eka,
Works like a charm. Thanks.
Willem van den Goorbergh

Op 31-aug-2007, om 10:14 heeft eka het volgende geschreven:


Hello :)

for me your notation in AS2 is false too... you can't use the 'var'  
keyword

and the 'this' keyword after. The compiler throw an error.

If you want use dynamic variables ... for me the best way it's an  
HashMap or

an Object :

# Use an Object :

var items = {} ;

for (var i:Number = 0 ; i<10 ; i++)
{
  var item:Type = new Type() ; // you can test the type of your  
object

with a local variable in your loop
  items[ "my_var" + i] = item ;
}

# Use an HashMap implementation like my implementation in VEGAS :
http://code.google.com/p/vegas/

Documentation : http://vegas.ekameleon.net/docs/vegas/data/map/ 
HashMap.html

Example :

import vegas.data.map.HashMap ;

var map:HashMap = new HashMap() ;

for (var i:Number = 0 ; i<10 ; i++)
{
  var value:Type = new Type() ; // you can test the type of  
your object

with a local variable in your loop
  var name:String = "key" + i ;
  map.put( key, value ) ;
}

trace( map.get( 'key2' ) ) ;
trace( map.containsKey('key3') ) ;
trace( map.isEmpty() ) ;
// etc..

EKA+ :)

2007/8/30, Geografiek <[EMAIL PROTECTED]>:


Hi,
In AS2 in a for loop I would create a variable dynamically with:
var this[nsPrefix + "NS"]:Namespace = new Namespace(ns.uri);

In AS3 I get an error:
"1084: Syntax Error: expecting identifier before this".
How would I name this variable dynamically in AS3?
thanks,
Willem van den Goorbergh



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

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


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

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


[Flashcoders] Parse/ Create swf via Actionscript 3.0

2007-08-31 Thread Troy Gardner
Curious if anybody knows of a library or is interested in working on one for
swf creation via actionscript?

In AS3, via ByteArray manipulations it's possible to read/decompile swf file as
a stream of bytes, and also generate create an swf entirely via actionscript!
e.g.
http://www.bytearray.org/?p=17 this could be used for generator or swfmill like
functionality, embedding graphics instead of having to constantly load them,
even web based live preview of the file being created.

I know the swf specification exists in order to figure out. So I could figure
it out, but wanted to see if anybody else had started on this first.
https://www.adobe.com/cfusion/entitlement/index.cfm?e=file%5Fformat

There is already one that parses the top level tags, it's surprisingly simple.
>From here:
http://flashpanoramas.com/blog/ 

At the moment, I'm most interested in reading/generating the shape script
Class/LinkageID tags, embedding jpg/gifs created from editors.



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

2007-08-31 Thread Johannes Nel
storing the xml in memory is fine, personally i prefer using models, that
way when the xml changes i just need to update the query which retrieves it
and the function which writes xml again.
also in the flex2 paradigm with databinding models are better to work with
than xml IMO.

On 8/31/07, Paul Steven <[EMAIL PROTECTED]> wrote:
>
> I am creating a desktop application using Flash and Zinc. The first time
> it
> runs, it retrieves all the data by calling a series of scripts on a
> server.
> The data is returned as xml data.
>
> My question is, can I just store all the info in memory as xml data or do
> I
> need to create classes to store the info?
>
> I need to store all this data locally so that users can use the
> application
> later even if they are not online so I was planning on writing xml files
> to
> the users hard drive.
>
> Basically the application stores details of examinations and the students
> associated with each exam.
>
> I am currently reading in the xml data about each exam and using an
> examination class to create instances of each exam to store the
> properties.
> Likewise I am reading in all the data for each student and using a student
> class to create instances of each student to store the properties of each
> student.
>
> I am thinking that this is not necessary and that I could just read in the
> xml and use this xml data whilst the application is running. Any changes
> made by the user could directly change the xml data. Then when they choose
> to save their work, I would write the xml data to a text file.
>
> Any advice on this much appreciated as I am getting a bit confused and
> have
> spent days writing classes to deal with all the data management.
>
> Thanks
>
> Paul
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



-- 
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] General question about data management

2007-08-31 Thread Paul Steven
I am creating a desktop application using Flash and Zinc. The first time it
runs, it retrieves all the data by calling a series of scripts on a server.
The data is returned as xml data.

My question is, can I just store all the info in memory as xml data or do I
need to create classes to store the info?

I need to store all this data locally so that users can use the application
later even if they are not online so I was planning on writing xml files to
the users hard drive.

Basically the application stores details of examinations and the students
associated with each exam.

I am currently reading in the xml data about each exam and using an
examination class to create instances of each exam to store the properties.
Likewise I am reading in all the data for each student and using a student
class to create instances of each student to store the properties of each
student.

I am thinking that this is not necessary and that I could just read in the
xml and use this xml data whilst the application is running. Any changes
made by the user could directly change the xml data. Then when they choose
to save their work, I would write the xml data to a text file.

Any advice on this much appreciated as I am getting a bit confused and have
spent days writing classes to deal with all the data management.

Thanks

Paul

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

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


[Flashcoders] [AS3] Using ByteArray as a FLV holder

2007-08-31 Thread Bernard Visscher
Hi all,

I was trying to load a FLV in a ByteArray and then attaching it to a
NetStream or something like that to display the flv. No luck yet!
Does someone know how this can be done?
I think I have to replace the data like you "can" do with sound.

Greetz,

Bernard

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

2007-08-31 Thread julian atienza
Thanks so much. I knew that source. But thanks anyway!!!

2007/8/31, Jack Doyle <[EMAIL PROTECTED]>:
> Not sure if it'll help, but check out
> http://www.greensock.com/ActionScript/TransformManager. It'll let the user
> scale, rotate, or move any MovieClip regardless of where its registration
> point is. Again, this might not be exactly what you're looking for but you
> could at least get some ideas from it.
>
> Jack
>
> -Original Message-
> Date: Wed, 29 Aug 2007 08:19:58 +0200
> From: "julian atienza" <[EMAIL PROTECTED]>
> Subject: [Flashcoders] Rotate, Scale and _x, _y
> To: flashcoders@chattyfig.figleaf.com
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=UTF-8
>
> Hello everybody.
>
> I'm ending one small project that handle images and make possible to
> do zoom, rotate (from 90 degrees to 90 degrees) and move this images
> by drag&drop when images are bigger than screen.
>
> I have a problem with rotate. Zooming is easy thus this doesn't change
> my _x and _y, but yes my _width and _height. But everytime i rotate,
> it changes my _x and _y and is a little confused to make operations
> that i used to do like localToGlobal (to know center of screen respect
> image and zoom from there), startDrag (to mark limits), and a much
> more... there is anyway to rotate without changing _x and _y??? i
> tried to copy image with bitmapData and apply a matrix with rotation,
> but is the same situation...
>
> I'm using this classes from Darron Schall:
> http://www.darronschall.com/weblog/archives/54.cfm
>
> It helps me to move my Dynamic Registration (center of movieclip) and
> zoom or rotate from there but... _x (and _x2 in the case) also
> change...
>
> any help? thanks in advance...
>
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] creating variable names dynamically in AS3

2007-08-31 Thread eka
Hello :)

for me your notation in AS2 is false too... you can't use the 'var' keyword
and the 'this' keyword after. The compiler throw an error.

If you want use dynamic variables ... for me the best way it's an HashMap or
an Object :

# Use an Object :

var items = {} ;

for (var i:Number = 0 ; i<10 ; i++)
{
  var item:Type = new Type() ; // you can test the type of your object
with a local variable in your loop
  items[ "my_var" + i] = item ;
}

# Use an HashMap implementation like my implementation in VEGAS :
http://code.google.com/p/vegas/

Documentation : http://vegas.ekameleon.net/docs/vegas/data/map/HashMap.html
Example :

import vegas.data.map.HashMap ;

var map:HashMap = new HashMap() ;

for (var i:Number = 0 ; i<10 ; i++)
{
  var value:Type = new Type() ; // you can test the type of your object
with a local variable in your loop
  var name:String = "key" + i ;
  map.put( key, value ) ;
}

trace( map.get( 'key2' ) ) ;
trace( map.containsKey('key3') ) ;
trace( map.isEmpty() ) ;
// etc..

EKA+ :)

2007/8/30, Geografiek <[EMAIL PROTECTED]>:
>
> Hi,
> In AS2 in a for loop I would create a variable dynamically with:
> var this[nsPrefix + "NS"]:Namespace = new Namespace(ns.uri);
>
> In AS3 I get an error:
> "1084: Syntax Error: expecting identifier before this".
> How would I name this variable dynamically in AS3?
> thanks,
> Willem van den Goorbergh
>
>
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> Geografiek is a Dutch, Utrecht-based map and chart design company.
> Willem van den Goorbergh can be contacted by telephone: (+31)
> 30-2719512 or cell phone: (+31)6-26372378
> or by fax: (+31)302719687
> snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
> Visit our website at: http://www.geografiek.nl
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Iterator question

2007-08-31 Thread eka
Hello :)

AST'r is the code example ;)

http://code.google.com/p/astr/

You install the sources (and the sources of VEGAS) and you can read the
source code to understand my methodology to create an application.

AST'r is a "Conceptual framework" (templates)..

With AST'r i'm going to write tutorials to understand the FrontController
and MVC pattern with VEGAS, the Localization and config tools based on eden
(http://code.google.com/p/edenrr/ - like JSON but more complete ), my W3C
DOM2/3 event model in AS2/AS3/SSAS (
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents) etc...

For the moment in AST'r you can find in AS2 the main source code with an
easy example to create the basic implementation of the application :

http://astr.googlecode.com/svn/trunk/AS2/trunk/src/astro/

To test and launch the code you can open the AS2/trunk/bin/_fla/asto.fla
file and compile with Flash or MTASC.

You can find too ... two examples :
http://astr.googlecode.com/svn/trunk/AS2/trunk/examples/

- eGallery : A first example to creates a dynamic picture gallery with local
data or MYSQL/AMFPHP datas
- eChat (in progress, no stable for the moment) : an example to use VEGAS
with an client/server(FMS) application


EKA+ :)

2007/8/31, Austin Kottke <[EMAIL PROTECTED]>:
>
> Hey eka,
>
> In the vegas framework there is a mention of #ASTr'O.
>
> It says it does templates however I dont understand what you mean here.
>
> Can you elaborate with a code example?
>
> Best, Austin
>
> eka wrote:
> > Hello :)
> >
> > You can use if you want my opensource framework and all this ADT
> (abstract
> > data type) :
> >
> > In VEGAS you can find the package vegas.data.* with an ADT library based
> on
> > the JAVA Collections and the Jakarta Collections Framework.
> >
> > Page of the project : http://code.google.com/p/vegas/
> > Install tutorial :
> > http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
> >
> > Example to use my ADT in AS2 in the SVN directory :
> > http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/vegas/data/
> >
> > The documentation : http://vegas.ekameleon.net/ (see vegas.data package)
> >
> > See the vegas.data.iterator and vegas.data.map packages ;)
> >
> > EKA+ :)
> >
> >
> > 2007/8/27, Andy Herrman <[EMAIL PROTECTED]>:
> >
> >> Why not use a hashtable instead of an array?  Give your elements all
> >> unique IDs (you could even just do an incrementing integer).  A
> >> hashtable would give you faster lookup (don't have to iterate over the
> >> array searching for it) and you can remove hashtable entries without
> >> messing up any kind of ordering.
> >>
> >>   -Andy
> >>
> >> On 8/27/07, dr.ache <[EMAIL PROTECTED]> wrote:
> >>
> >>> hi.
> >>> dont delete the elements from your array.
> >>> when you call page.destroy() method generate another array in which
> you
> >>> push a "true",
> >>> whenever onElementKilled is called.Check also, if the array contains
> as
> >>> much elements
> >>> as your children array contains.
> >>> If true, delete the whole array with childs.
> >>>
> >>> possible?
> >>>
> >>> dr.ache
> >>>
> >>> Jiri Heitlager | dadata.org schrieb:
> >>>
>  Hello list,
> 
>  i have a page object that contains has a Array that holds
>  pageElements. This is a storage for elements with an iPageElement
>  interface.
>  The page object has an destroy() method. When page.destroy() is
>  called, it will loop trough the page.pageElements Array using an
>  iterator. Every iPageElement broadcasts an onElementKilled message
>  when is has been destroyed. When a pageElement broadcast this
> message,
>  the page need to continue in deleting the next element in the
>  page.pageElement Array.
>  The callback method onElementKilled in the page instance, searches
> for
>  the element that has been deleted and then removes it from the
>  page.pageElements Array. This is where i think a problem rises,
>  because if the page.pageElements array is updated during the process,
>  the index does not match the element to remove anymore. How can I
>  solve this potential risk?
> 
>  Another question, the array that is passes into the iterator is a
>  reference to the pageElements Array. Does this mean, that if I delete
>  an element from this array from within the iterator, the
>  page.pageElements array is modified?
> 
>  I hope my question is clear..
> 
>  thank you in advance.
> 
>  Jiri
> 
> 
>  Below a snippet:
> 
>  private function getPageElementIterator() : Void
>  {
>  return new PageElementIterator(this.pageElements)
>  }
> 
>  //initiated the deleting proces, by starting with the first
> 
> >> element.
> >>
>  public function destroyPageElements() : Void
>  {
>  destroyElement(this.pageElements[0]);
>  }
> 
>  private function destroyElement(element:iPageElement) : Void
>  {