Re: [Flashcoders] cs3 remoting...

2007-09-14 Thread eka
Hello :)

Use my asgard.net.remoting.RemotingService class :

project : http://code.google.com/p/vegas/

install : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Use the AS3 package in the AS3/trunk/src directory

Read this tutorial in french (the end chapter : Remoting AS3 with ASGard) )
:
http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3

EKA+ :)





2007/9/14, Palmer, Jim [EMAIL PROTECTED]:


 If you're starting a new project in AS3 just use the NetConnection classes
 included...

 http://www.oscartrelles.com/archives/as3_flash_remoting_example

 --
 Jim Palmer ! Mammoth Web Operations

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf
  Of [p e r c
  e p t i c o n]
  Sent: Friday, September 14, 2007 10:50 AM
  To: flashcoders
  Subject: [Flashcoders] cs3 remoting...
 
 
  hi all,
  can anyone tell me how remoting is accomplished using
  cs3...the domponents
  download won't even install without flash 8 installed it appears
  thanks
  p
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] AS2 Sound.stop()

2007-09-13 Thread eka
Hello :)

I use in my opensource framework a model to register all sounds in my
application and manipulate all sounds.

The SoundLibrary class :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/andromeda/media/SoundLibrary.as

See the example of the class :

import andromeda.events.SoundModelEvent ;
import andromeda.media.SoundLibrary ;
import vegas.events.Delegate ;

var debug:Function = function ( e:SoundModelEvent ):Void
{
   var type:String = e.getType() ;
   var id:String = e.getID() ;
   var library:SoundLibrary = SoundLibrary(e.getModel()) ;
   var sound:Sound = e.getSound() ;

   var message:String =   + library ;
   message +=   + type ;
   if (id != null)
   {
   message += , id: + id ;
   }
   if (sound != null)
   {
   message += , sound: + sound ;
   }
   trace( message ) ;
}

var lib:SoundLibrary = new SoundLibrary() ;
lib.addGlobalEventListener( new Delegate(this, debug) ) ;

lib.addSound( sound_1 ) ; // sound_1 is the link name of the sound
in the library
lib.addSound( sound_2 ) ;

// lib.addSounds( [sound_1, sound_2] ) ; // use this method to
register a array collection of sounds ids.

trace(  + lib +  size :  + lib.size()) ;

Key.addListener(this) ;

var onKeyDown:Function = function()
{
   var code:Number = Key.getCode() ;
   switch ( code )
   {
   case Key.UP :
   {
lib.getSound( sound_1 ).start() ;
break ;
   }
   case Key.DOWN :
   {
   lib.getSound( sound_2 ).start() ;
  break ;
   }
   case Key.SPACE :
   {
  lib.toggle() ; // enable/disable all sounds
  break ;
   }
}
}

trace( Press Key.SPACE to disable/enable the library.) ;
trace( Press Key.UP to start the sound_1 sound.) ;
trace( Press Key.DOWN to start the sound_2 sound.) ;


See the online documentation :

http://vegas.ekameleon.net/docs/andromeda/media/SoundLibrary.html

Page project : http://code.google.com/p/vegas/
Install VEGAS with this SVN repository in osFlash :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

EKA+ :)

2007/9/12, Ian Thomas [EMAIL PROTECTED]:

 Each Sound() object is attached to a particular timeline.

 So if you do :

 (new Sound(_root)).stop()

 everything from _root downwards should stop.

 HTH,
Ian

 On 9/11/07, Andrew Sinning [EMAIL PROTECTED] wrote:
 
  I don't understand the docs for the AS2 Sound.stop command.
 
   my_sound.stop([idName:String]) : Void
 
  I can't find any documentation about sounds having an idName.
 
  Method; stops all sounds currently playing if no parameter is
  specified, or just the sound specified in the idName parameter.
 
  But my_sound is an instance of the Sound class, so why would I need to
  specify an id?  This seem to imply that I could use
 
  Sound.stop();
 
  to stop all sounds currently playing.  But it won't compile.  I get
  Sound has no static field stop.
 
  So, how do you stop all currently playing sounds?
 
  Thanks!
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Traversing through Object goes backwards

2007-09-13 Thread eka
Hello :)

Use my framework and this ADT package based on the JAVA collections
framework :

The Map and the SortedArrayMap tutorial :

http://code.google.com/p/vegas/wiki/VegasTutorials_collection_map

My SortedArrayMap can help you :)

You can use my vegas.data package in AS2/AS3 and SSAS :)

Page project :
http://code.google.com/p/vegas/

Installation :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

EKA+ :)



2007/9/12, Andy Herrman [EMAIL PROTECTED]:

 Objects work pretty much like hashtables (from my understanding).
 Hashtables generally don't guarantee any kind of ordering.  Flash may
 enforce some kind of ordering (y seems to be going in reverse order of
 when things were added) but I don't know of any ordering and generally
 treat it as arbitrary.

 Now, if you were using Arrays then your ordering would be guaranteed
 (for-in loops go backwards through the array I believe).

   -Andy

 On 9/11/07, Mendelsohn, Michael [EMAIL PROTECTED] wrote:
  Hi list...
 
  I want object y, below, to output in the same order as x.  Is it
  possible?
 
  Thanks,
  - Michael M.
 
  x = {a:first, b:second, c:third};
  for (i in x) {
 trace(i + :  + x[i]);
  }
  /*
  output:
  a: first
  b: second
  c: third
  */
 
 
  y = new Object();
  y[a] = first;
  y[b] = second;
  y[c] = third;
  for (i in y) {
 trace(i + :  + y[i]);
  }
  /*
  output:
  c: third
  b: second
  a: first
  */
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] variable scope

2007-09-09 Thread eka
Hello :)

can you show your code ?

else try it :

import mx.utils.Delegate ;

class Test
{

 function Test()
 {
   x = new XML() ;
   x.onLoad = Delegate.create(this, onLoad) ; // create a proxy
between your instance and the xml object
   x.load(test.xml) ;
 }

public var x:XML ;

public function onLoad( success:Boolean ):Void
{
 trace( scope of your function :  + this) ;
 trace(xml :  + x ) ;
 // here use your Test methods !
}


}

The Delegate class of Adobe can be your solution ?

In my opensource framework i use more powerful Delegate implementation and
event model, you can read :
- http://code.google.com/p/vegas/wiki/VegasTutorialsEvents_delegate
- http://code.google.com/p/vegas/wiki/VegasTutorialsEvents
- http://code.google.com/p/vegas/

My vegas.events.Delegate class is more complete ... but the Adobe class it's
more easy to begin with the proxy model.

EKA+ :)

2007/9/9, Lee Marshall [EMAIL PROTECTED]:

 I have just created a class 'ClassA' that loads an XML file.Within that
 class I have a public function that navigates through the XML and populates
 arrays with the XML content.

 I am now creating another class, which will be called 'ClassB' which I
 plan to extend 'ClassA'.

 From 'ClassB' I would like to reference the array variable to re-use
 in  the 'ClassB' class. I have tried tons of different ways all of which I
 get undefined.

 Could anyone help?

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

2007-09-05 Thread eka
Hello :)

oops problem of keyboad :p

In the AS2 Migration page :
http://livedocs.adobe.com/flex/2/langref/migration.html

You can read : _url Property[read-only]
flash.display.Loader.contentLoaderInfohttp://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html#contentLoaderInfo

EKA+ :)

2007/9/5, eka [EMAIL PROTECTED]:

 Hello :)

 In the AS2 Migration page :
 http://livedocs.adobe.com/flex/2/langref/migration.html

 You c

 2007/9/4, eric e. dolecki  [EMAIL PROTECTED]:
 
  _url has been removed from AS3. Trying to find its replacement... is
  there
  one?
 
  - eric
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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 _url?

2007-09-05 Thread eka
Hello :)

In the AS2 Migration page :
http://livedocs.adobe.com/flex/2/langref/migration.html

You c

2007/9/4, eric e. dolecki [EMAIL PROTECTED]:

 _url has been removed from AS3. Trying to find its replacement... is there
 one?

 - eric
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 Events, Delegates and passing parameters

2007-09-03 Thread eka
Hello :)

Little error in my previous message :

The event model concept it's not very easy for a newbee OOP developper.

For me with flash (AS1, AS2..) we can develop application with old school
coding or with advanced OOP concept. In AS3 the event model and other native
tools use more OOP concept.

Sorry for the POO notation.. i'm french and in french we write POO and not
OOP ^_^

EKA+ :)


2007/9/2, Kerry Thompson [EMAIL PROTECTED]:

 EKA+ wrote:

  The event model concept it's not very for a newbee POO
  developper

 I understand your point, and agree.

 I must have been asleep at the switch, though. What is a POO developer?

 Cordially,

 Kerry Thompson


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

2007-09-02 Thread eka
Hello :)

The best way... use FlashCS3 and Illustrator CS3 with a full compatibility
and an import tools to import AI, EPS and PSD files in Flash and keep the
TextField behaviours between all softwares.

EKA+ :)

2007/9/2, Lee Marshall [EMAIL PROTECTED]:

 I am creating some vector based illustration in Adobe illustrator,
 exporting them to SWFs and the importing them into Flash. The problem is
 that the lines of text come in separate text fields and even now and again
 some characters are separate fields.

 Does anyone have a good routine to overcome this?


 Cheers

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

2007-09-02 Thread eka
Hello :)

In AS3 in your main class who extends the Sprite class... if you use the
flash.utils.describeType function you can see the Sprite class isn't
dynamic :

package
{
import flash.utils.describeType;

public class Test extends Sprite
{
public function Test()
{
trace( describeType( this ) ) ;
}
   }
}

result in the output console :
type name=vegas base=flash.display::Sprite isDynamic=false
isFinal=false isStatic=false..

If the class isn't dynamic you can't use the dynamic keyword :

package
{
import flash.utils.describeType;

public dynamic class Test extends Sprite
{
public function Test()
{
for (var i:uint = 0 ; i10 ; i++)
{
this[somevarname+i] = i;
}
trace( this.somevarname2 ) ; // 2
}
   }
}

EKA+ :)


2007/9/1, [p e r c e p t i c o n] [EMAIL PROTECTED]:

 greetings experts!

 way back in the days of as2 you could do something like this...

 this[somevarname+someIndex] = new Something();


 ...and i'm wondering how you do something like this in as3i've
 extended
 the sprite class and need to create items similar to this, but it won't
 let
 me

 cheers

 p
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 Events, Delegates and passing parameters

2007-09-02 Thread eka
Hello :)

it's not a problem ;) only a supplement to highlight this feature.

For me i think the clone() method call alway in the dispatch event isn't the
better fast solution to dispatch the events ... but it's an other story ;)

EKA+ :)



2007/9/1, Muzak [EMAIL PROTECTED]:

 I don't see why this is a problem as it's properly documented:

 http://livedocs.adobe.com/flash/9.0/main/0138.html

 quote
 Event class utility methods

 There are two utility methods in the Event class. The clone() method
 allows you to create copies of an event object. The toString()
 method allows you to generate a string representation of the properties of
 an event object along with their values. Both of these
 methods are used internally by the event model system, but are exposed to
 developers for general use.
 For advanced developers creating subclasses of the Event class, you must
 override and implement versions of both utility methods to
 ensure that the event subclass will work properly.
 /quote

 quote
 when creating an Event subclass you must override the clone() and
 toString() methods to provide functionality specific to the
 subclass.
 /quote

 I've read about it first in the Flex 2 docs though (which is alot better
 than the Flash docs IMO):
 http://livedocs.adobe.com/flex/201/html/createevents_140_5.html

 quote
 You are required to override the Event.clone() method in your subclass.
 The clone() method returns a cloned copy of the event object
 by setting the type property and any new properties in the clone.
 Typically, you define the clone() method to return an event
 instance created with the new operator.

 /quote

 regards,
 Muzak

 - Original Message -
 From: eka [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Saturday, September 01, 2007 8:54 AM
 Subject: Re: [Flashcoders] AS3 Events, Delegates and passing parameters


  Hello :)
 
  The events are cloned the second time in the dispatchEvent method.
 
  My article about this problem in french :
 
 http://www.ekameleon.net/blog/index.php?2007/08/25/75--as3-event-class-and-the-clone-method
 
  EKA+ :)
 
  2007/9/1, T. Michael Keesey [EMAIL PROTECTED]:
 
  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


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 Events, Delegates and passing parameters

2007-09-02 Thread eka
Hello :)

for me it's exist three developpers :

1 - the beginners ... all informations it's important for it.

2 - The AS1/AS2 developper who read the list to understand the AS3 and not
develop with AS3 for the moment... All discussion over all difference with
the AS2 can be important.

3 - The developpers who develop in AS3 and read the reference ;)

For the 3 developpers the discussion about a problem or not it's always
important :) The event model concept it's not very for a newbee POO
developper and don't forget... we can't should be aware of all :)

EKA+ :)



2007/9/2, T. Michael Keesey [EMAIL PROTECTED]:

 On 9/1/07, Muzak [EMAIL PROTECTED] wrote:
  I don't see why this is a problem as it's properly documented:
 
  http://livedocs.adobe.com/flash/9.0/main/0138.html

 I wasn't saying it was a problem, just that a developer should be aware of
 it.

 --
 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 code!!

2007-09-02 Thread eka
Hello :)

Yes an Array can be better :) But in my experience i prefere use the native
flash.utils.Dictionnary class or a custom HashMap implementation based on
the Java Collections like it :

http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/vegas/data/map/HashMap.as
http://vegas.ekameleon.net/docs/vegas/data/map/HashMap.html

PS : You can use my AS3 opensource abstract data type (ADT) library in the
vegas.data.* package : http://code.google.com/p/vegas/

EKA+ :)


2007/9/2, T. Michael Keesey [EMAIL PROTECTED]:

 On 9/1/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote:
  greetings experts!
 
  way back in the days of as2 you could do something like this...
 
  this[somevarname+someIndex] = new Something();

 Even in AS2, it seems that this would be better done with an array.

 var somethings:Array = [];
 something[someIndex] = new Something();

 (Same syntax in AS3.)

 Come to think of it, even in AS1 it would be better done with an
 array. The last time I would have used such a structure was in Flash 4
 Actions.

 One exception might be for MovieClip/Button/TextField instances in
 AS2. Often in AS2 it was handy to grab those by their name, since they
 are often made through the IDE rather than through code. The new way
 of retrieving a composed display object by its name is the
 getChildByName() function of the DisplayObjectContainer class (which
 Sprite, among others, extends). So you could do something like this
 within some class that extends DisplayObjectContainer:

 var currentObject:DisplayObject = getChildByName(someVarName +
 someIndex);

 I'm still not sure if that would be the most elegant solution in most
 situations, though. It still seems to me that in most cases an array
 should be somehow involved.

 --
 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 Events, Delegates and passing parameters

2007-09-01 Thread eka
Hello :)

The events are cloned the second time in the dispatchEvent method.

My article about this problem in french :
http://www.ekameleon.net/blog/index.php?2007/08/25/75--as3-event-class-and-the-clone-method

EKA+ :)

2007/9/1, T. Michael Keesey [EMAIL PROTECTED]:

 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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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
  {
  curElement.addEventListener('onElementKilled' , this)
  curElement.destroy();
 
  }
  private function onElementKilled(eventObj:Object) : Void
  {
  var killElement:iPageElement = eventObj.target;
 
  var iter:PageElementIterator = this.getPageElementIterator();
 
  while(iter.hasNext()){
  var curElement:iPage = iPage (iter.next

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 ; i10 ; 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 ; i10 ; 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-30 Thread eka
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
   {
   curElement.addEventListener('onElementKilled' , this)
   curElement.destroy();
  
   }
   private function onElementKilled(eventObj:Object) : Void
   {
   var killElement:iPageElement = eventObj.target;
  
   var iter:PageElementIterator = this.getPageElementIterator();
  
   while(iter.hasNext()){
   var curElement:iPage = iPage (iter.next());
  
   if(killElement == curElement) {
  
   //deleted the element now clear the listener and
 continue
   killElement.removeEventListener('onElementKilled' ,
 this)
  
   /*
   * POTENTIAL RISK, if a new element is added, then the
   index, does not match the right element anymore
   *
   * get the current index from the deleted element by
   checking what
   * the currentIndex of the iterator is, and remove it
   from this.pageElements Array
   */
   this.pageElements =
   this.pageElements.splice((iter.getCurrentIndex() , 0)
  
   //get the next element in the iterator array
   if(iter.hasNext()) this.destroyElement(
   iPage(iter.next()) );
   delete killedElement;
   break;
   }
   }
   }
   if(this.pageElements.length == 0){
   trace('all page elements have been removed')
   }
   }
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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] Dynamically Loading Sound Files from external SWFs

2007-08-30 Thread eka
Hello :)

in my experience i prefere create a fla with all sounds ... i compile the
swf of all sounds (the sound library) and i load this swf in the main swf of
my application... after when i want use a sound i call my sound in the
library of sounds.

To manage all this sounds i use a model in my opensource framework and an
easy MVC implementation :

1 - install my opensource project : http://code.google.com/p/vegas/

Tutorial to install it :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

2 - Test the example  in the svn directory :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/andromeda/media

3 - you can too test my opensource template based on VEGAS (AST'r) who use a
full implementation of my SoundLibrary model in a full MVC application :
http://code.google.com/p/astr

In AST'r you can find for the moment two AS2 templates :

3-1 The more easy template is the astro package :
http://astr.googlecode.com/svn/trunk/AS2/trunk/src/astro/
3-2 The more complete template is the eGallery example :
http://astr.googlecode.com/svn/trunk/AS2/trunk/examples/egallery/trunk/

EKA+ :)


2007/8/29, Shawn Steward [EMAIL PROTECTED]:

 I have a project that has one main container SWF, that loads in multiple
 child SWFs to play.  If I try to have the child SWF's play a sound file
 using attachSound, it will not play the sound file unless I have it in
 the container SWF.  I have it in the child SWF set to export for AS in
 the 1st frame, but it will not play.  Is there another way to do this?
 I'm trying to keep the container SWF very small.  Thanks.

 Shawn
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] sending array items as function parameters

2007-08-22 Thread eka
Hello :)

it's easy use apply method of the Function objects :

///

var myArguments:Array = [item0, item1, item2, etc];

var myFunction:Function = function ( ):Void
{
  trace (arguments) ;
}

myFunction.apply( null, myArguments ) ;

///

Read the documentation of Flash with the Function class and this two methods
call and apply. You can read too the arguments definition.

EKA+ :)


2007/8/22, Tom Huynen [EMAIL PROTECTED]:

 Another question...

 I have an array that varies in length:

 var myArray:Array = [item0, item1, item2, etc];

 And I have a few functions that require a different amount of parameters:

 function test1(arg1:String, arg2:String){}
 function test2(arg1:String, arg2:String, arg3:String, arg4:String){}

 Depending on the situation one of the functions above is called and the
 items in the myArray should be sent as parameters.
 Something like this should happen:

 test1(myArray[0], myArray[1], etc); However, the length of myArray varies
 so
 this won't work. When I create string like var str:String = myArray[0] +
 ,
 + myArray[1] + , etc everything is picked up as one parameter. Same goes
 for sending the myArray as parameter.

 It would require something like a for loop between de brackets...


 Is it possible?

 Regards,

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

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

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

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


Re: [Flashcoders] EventDispatcher and Delegate not working in flash develop...

2007-07-30 Thread eka
Hello :)

if you want use only EventDispatcher class and not the adobe mx components
V2... you can use my event model in my opensource framework :

VEGAS page project : http://code.google.com/p/vegas/
Install the sources :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Tutorials about event model :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

For me the AS2 EventDispatcher class of Adobe(Macromedia) is realy poor to
implement applications.

My framework is MTASC compatible... you must add the AS2/trunk/src directory
in the classpaths of MTASC with the argument -cp :)

EKA+ :)

2007/7/30, Omar Fouad [EMAIL PROTECTED]:

 Um using flash develop to write some as2 classes.. The problem is that
 apparently mtasc is not compiling mx packages. I set the useMx option to
 true and i get the same result. what can i do?

 thanks

 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 +2010 - 2346633 - +2012 - 261
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Q:optimizing a Calendar app

2007-07-29 Thread eka
Hello :)

In my opensource framework when i want create a calendar with appointment i
use a Calendar class :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/asgard/date/Calendar.as

More information about VEGAS : http://code.google.com/p/vegas/
Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Example to use the Calendar class in the SVN repository :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/date/

To creates a model of appointment i use my MVC and ADT (Abstract Data Type)
implementation with HashMap class.

Basic example with an hash map :

import vegas.data.map.HashMap ;

var map:HashMap = new HashMap() ;

var day:Calendar = new Calendar(2007,6,29) ;

var appointement:AppointmentVO = new AppointmentVO( day ) ;

map.put ( day.valueOf() , appointment ) ;

/// ...


var app:AppointmentVO = map.get( new Date(2007,6,29).valueOf() ) ;

trace( app ) ;

PS : My HashMap implementation in AS3 in VEGAS is based over the Dictionnary
class.

EKA+ :)




2007/7/29, Steven Sacks [EMAIL PROTECTED]:

 Apologies for not being clearer.

 I did not intend for you to use new Date().getTime() literally.

 What I meant was

 events[new Date(year, month, day).getTime()]

 so you could use the calendar date itself as the key.

 It makes no difference what key you decide to use, as long as the key is
 easy to look up because it has relevance to the calendar date.  It's
 probably less expensive to do [month + / + day + / + year] than
 creating a new Date object.

 And yes, in AS3, this would be a good candidate for a Dictionary object.


 Steven Sacks
 Flash Maestro
 Los Angeles, CA
 --
 blog: http://www.stevensacks.net
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] Full screen mode.. How?

2007-07-27 Thread eka
Hello :)

first the Flashplayer of the user must be the FP 9.0.28.0 and 

read :
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

AS2 Test in flash :

btFull.onPress = function()
{
Stage[displayState] = fullscreen ;
}

btNormal.onPress = function()
{
Stage[displayState] = normal ;
}

In AS3 you can read :

http://drawk.wordpress.com/2007/06/12/howto-using-the-contextmenu-in-as3-with-fullscreen-mode-as-a-sample/

EKA+ :)

2007/7/27, Omar Fouad [EMAIL PROTECTED]:

 How can i make flash in a browser to show up in full screen like the
 youtube
 videos and here http://www.tempsgraphie.com/isao/??

 thanks

 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 +2010 - 2346633 - +2012 - 261
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 instantiating a new class object from a string value

2007-07-26 Thread eka

Hello :)

in AS3 to instanciate an object with only this class name (String) you can
use the flash.utils.getDefinitionByName() method :

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/utils/package.html#getDefinitionByName()

EKA+ :)


2007/7/26, JOR [EMAIL PROTECTED]:


How about using the abstract factory design pattern?

public class MyFactory {
   public static function createObject(objType:String):* {
 switch (objType) {
   case Foo:
 return new Foo();
   case Bar:
 return new Bar();
   default:
 return new Foo();
   }
}

var myObj:* = MyFactory.createObject(Foo);


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Matt Muller wrote:
 Hi, I'm trying to instantiate a new class object from a xml attribute
which
 is a string, but its not having any of it.
 I've tried casting the string to an object and also using
this['class_id']
 etc but no luck.

 Does someone have a solution?

 Thanks,

 MaTT
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] AS3 - how do i find the path to where a MC belongs?

2007-07-24 Thread eka

Hello :)

in AS3 i don't find a native method ?

For the moment you can test :

package
{

   import flash.display.* ;

   public class test extends Sprite
   {

   /**
* Creates a new test instance.
*/
   public function test()
   {

   var container:Sprite = new Sprite() ;

   var container2:Sprite = new Sprite() ;
   container2.graphics.beginFill(0xFF, 1) ;
   container2.graphics.drawCircle(0, 0, 150) ;

   addChild(container) ;
   container.addChild(container2) ;

   var target:String = getDisplayPathName(container2) ;

   trace( target ) ;

   }

   static public function getDisplayPathName( display:DisplayObject
):String
   {

   var parents:Array = [] ;
   var parent:* = display ;

   while( true )
   {
   parents.push( parent.name ) ;
   parent = parent.parent ;
   if (parent.name == null)
   {
   break ;
   }
   }

   parents.reverse() ;

   return parents.join( . ) ;

   }

}

but it's not the better solution lol

eKA+ :)

2007/7/24, quinrou . [EMAIL PROTECTED]:


Hi all,

I am wondering how can I manage to find the path to where a MC belongs?

in AS2 when you wanted the target to where the MC was all you had to do
was
to trace the movieclip instance. For instance cosider the following
example:

var mc:MovieClip = this.attachMovie(something , something0 , 0);
var mc = mc.something0.attachMovie(somethingelse , somethingelse0 ,
0);
trace(mc) // _level0.something0.somethingelse0


In AS3 since everything is a class everytime I trace an object i get its
class name.

So is there anyway of know the tree to where a mc belongs?

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

2007-07-18 Thread eka

Hello :)

The arguments object is an Array... you can use the Array methods over
this object...

The functions in ECMAScript contains 2 methods (apply and call..) the apply
method can help you :

myFunction.apply( scope:Object, args:Array )

try this :

var f1 = function ( )
{
   trace(arguments) ;
}

var f2 = function( )
{
   f1.apply(this, arguments) ;
}

f2(1, 2, 3) ;

EKA+ :)

2007/7/18, Swapnil Dubey [EMAIL PROTECTED]:




Hi all,



I want to implement an function funcA that takes a variable list of
arguments, and passes on that list to another function funcB, just like
setInterval does.





funcA = function()

{

// Here I can access the arguments through the arguments
array.

// But how do I pass it on the arguments to funcB that I am
calling below.

// I mean I cannot write funcB(arguments[0], arguments[1],
arguments[n]);

// as the last index n will be specified at runtime.



funcB();





}





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

2007-07-14 Thread eka

Hello :)

In my opensource framework you can use a log model and catch the errors with
it.

1 - Vegas page project : http://code.google.com/p/vegas/

2 - Install my framework :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

3 - My framework use an event model based on the W3C DOM2/3 event model like
AS3 event model.

http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

4 - My log model use a polymorphisme with the mx.logging.* package in the
Flex SDK but you can use my library in AS2, AS3, SSAS, Javascript.

http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/logging/

5 - To catch the errors i use my vegas.errors.* package :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/errors/
This package contains the abstract class AbstractError, with this class you
can creates your customs exceptions.

6 - You can try the example in the repository of the project to understand
the mecanism of my library :

- Errors :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/vegas/errors/
- Logging :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/vegas/logging/

PS : my log model use internal or external targets to dispatch the logs of
the application.. you can find in my SVN repository the FlashInspector and
the SOS consoles :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/tools/

EKA+ :)


2007/7/14, Hans Wichman [EMAIL PROTECTED]:


Hi,
yes I have set up some kind of global mechanism for AS2.

You can find it here
http://www.objectpainters.com/downloads/globalerrorhandler.zip

I will post information about it soon, look here for some basic info
http://objectpainters.com/blog/?p=32

Basically, its a simple RuntimeException that extends Error, so you still
can do 'throw new RuntimeException (...)'
You can subclass that as well for your own error types, an example is
included for Assert and AssertionFailedException.

What this class does is, you throw it, and you have to catch it and
consume
it (check the included example).
If you do not consume the error, a default error handler (your global
error
handler) will be called.

So even if you throw an error from an asynchronous call (eg the parse
method
of an xml callback) it will still be shown if you dont handle it.

HTH,
JC




On 7/14/07, dcamp [EMAIL PROTECTED] wrote:

 I was trying to figure out if there is a way to set up a global error
 handler.  This would catch all errors that will occur in a program.  I
 have tried putting the entry point in a try...catch block and also add
 listeners to the stage, but I am not able to handle reference errors.

 If anyone has attempted this or has an insight please let me know.

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

2007-07-12 Thread eka

Hello :)

An other framework it's VEGAS : http://code.google.com/p/vegas/

Install the framework   :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
The tutorials in english :
http://code.google.com/p/vegas/wiki/TutorialsVEGAS (in progress)
Examples in the svn repository of the project :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/

My framework contains 4 extensions + 1 template framework + examples...

To manipulate Remoting connection you can use my RemotingService class, you
can find the examples of this class in the directory :

http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/net/remoting/

(You must install vegas before test the .fla )

If you want understant the RIA structure with VEGAS you can install to AST'r
: http://code.google.com/p/astr/

AST'r is a template + samples to understand the implementations with VEGAS
(MVC, FrontController, Localization, Configuration, Process etc)

In Ast'r you can find a full example to use Remoting or local connection
(with Eden format)... I'm begin to write the tutorials of this examples this
week-end.

For me this tutorials are important to learn the mecanism to implement a
little or big application...

EKA+ :)

2007/7/12, Richard Mueller [EMAIL PROTECTED]:



Well, the past 24 hours have been interesting to say the least.  I've
never
really written a class, yet I know a lot about them and understand them
for
the most part.  Before starting the project, I knew I was going to run
into
data access issues but didn't really have a solution.  I'd never heard of
mvc until yesterday so thanks for pointing me in the right direction.  I'm
confident I can start building classes using the mvc pattern, however, I
don't think I'm quite ready for something like ARP.  I think I'd be taking
on too much and our development resources are almost tapped.  Or should I
seriously reconsider using ARP, is it something I can easily implement
later once I'm more confident with classes?


At  7/12/2007 Thursday 04:00 AM, you wrote:
Hi,

I would recommend ARP for this too. It's a bit tricky to use (at first),
but it will keep your code clean for sure and save you a lot of time.
There's a remoting example that you could adjust quite easily.

As for the moviecliploader, I try to use a single class to do all my
loading. I guess that's what you mean by a smart loader.

Sunil
http://www.suniljolly.com

PS - Hi! I'm new to the list, I hould have joined a long time ago!

-Original Message-

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

2007-07-06 Thread eka

Hello :)

no solution for the moment for your problem :) The fullscreen mod disabled
the input fields.. Adobe implement this restriction but i don't know why ?

EKA+ :)

2007/7/6, Izaias / Grafikonstruct [EMAIL PROTECTED]:


Hi everyone!
I have created a website with fullscreen option, using the follow code:

Stage.displayState = fullScreen (To enable fullscreen version)
Stage.displayState = normal (to back normal view)

But I have a big problem: My website have a form with some editable
fields,
and if I click in fullscreen button, the fields stop edit. I can only put
text in the fields in normal view.

Does anyone have a solution?

Thank you so much.

Izaias Cavalcanti
Grafikonstruct/Brazil
http://www.grafikonstruct.com.br

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Controllingt he volume of multiple sound objects at the same time

2007-07-06 Thread eka

Hello :)

in my opensource framework (VEGAS) i use a SoundLibrary class to manage my
sounds...

http://svn.riaforge.org/vegas/AS2/trunk/src/andromeda/media/SoundLibrary.as

Exemple :

{{{

import andromeda.media.SoundLibrary ;

var lib:SoundLibrary = new SoundLibrary() ;

lib.addSound( sound_1 ) ; // sound in the library with the link sound_1
lib.addSound( sound_2 ) ; // sound in the library with the link sound_2
lib.addSounds( [sound_3, sound_4] ) ; // add an Array of sounds in
the library

lib.loadSound( my_sound.mp3, sound5 ) ;
lib.loadSound( sound6.mp3 ) ; // add the external sound and auto
create the 'sound6' id of the sound in the library


lib.setVolume( 50 ) ; // all sounds in the library changes the volume.

lib.getSound(sound2).setVolume( 40 ) ; // change the volume of the
'sound2' Sound reference in the library.

}}}

This class inherit the SoundModel class :
http://svn.riaforge.org/vegas/AS2/trunk/src/andromeda/media/SoundModel.as

You can use an MVC pattern with this library with a global event flow etc..

This class is really easy to use :) Use the addSound or the addSounds ou the
loadSound methods to register your local or external sounds..

You can find the VEGAS project page in Google Code :
http://code.google.com/p/vegas/
You can find the tutorial to install VEGAS :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

You can find the documentation of my framework :
http://vegas.ekameleon.net/docs
You can find the SoundLibrary reference :
http://vegas.ekameleon.net/docs/andromeda/media/SoundLibrary.html
You can find the SoundModel reference :
http://vegas.ekameleon.net/docs/andromeda/media/SoundModel.html

You can see my AS2 opensource template AST'r .. in the sources of the
project you can see my personal usage of my Framework.. in this context i
use an external file of config to defines all sounds and i load an external
sound to shared the sounds of the the application

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

EKA+ :)

2007/7/6, Rákos Attila [EMAIL PROTECTED]:



Sound objects associated with the same movie clip share their
properties (volume, etc.), so if you change the volume through one of
them, the change will be reflected by others, too. That is because in
fact sound properties belong to movie clips and not the Sound objects,
and Sound objects only reflect the sound settings of the associated movie
clip.

  Attila


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:[EMAIL PROTECTED] [EMAIL PROTECTED]
To:  flashcoders@chattyfig.figleaf.com 
flashcoders@chattyfig.figleaf.com
Date:Friday, July 6, 2007, 4:44:25 PM
Subject: [Flashcoders] Controllingt he volume of multiple sound objects at
the same time

--===--

Hey there. I am trying to control the volume of a number of sound objects
that have their own individual volume levels. I want to be able to mute them
or allow them to play at the volume that has been set for them. I was
thinking that I could do this by storing the values in arrays and then
looping through these each time the sound is muted/unmuted but I am sure
there must be an easier way.
Any suggestsions v gratefully received :)

Here is what I have so far:
var sound1:Sound = new Sound(this);
sound1.setVolume(60);
var sound2:Sound = new Sound(this);
sound2.setVolume(20);

sound1.loadSound('an.mp3', false);
sound2.loadSound('another.mp3', false);

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problems opening windows in Flash 8 w/Java Script...

2007-07-03 Thread eka

Hello :)

in flash8 you must use the ExternalInterface class :)

if ( ExternalInterface.available )
{
ExternalInterface.call( openWindow , params ) ;
}

EKA+ :)

2007/7/3, Jay Carlson [EMAIL PROTECTED]:


so I've been working on a new flash project that opens new windows to
display details of projects.  well, I noticed that if I publish the
swf as Flash 8, the java script won't work.  is this a common
problem?  or am I just putting the wrong code in?
   this is what I'm using on the flash side::

on (release) {
 getURL(javascript:openWindow('http://www.dillingerkovach.com/
specdetail.html','newWindow','toolbar=0,menubar=0,scrollbars=0,resizable
=0,width=450,height=250,left=120,top=180'));
}


is there another way to do it?  it's not really a problem, because
I'm not using anything in my swf that actually needs to be published
as Flash 8 (filters or the like).  but some day I might...any ideas?


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

2007-06-24 Thread eka

Hello :)

you can test in AS3 the undocumented method : addFrameScript()

Usage : *MovieClip.addFrameScript(frame:uint,notify:Function)*

package
{

class MyClip extends MovieClip
{

 public function MyClip()
 {
this.addFrameScript( this.totalFrames, this.stop) ; //
not tested !
 }


}

}

Article about this method :
http://www.flashguru.co.uk/undocumented-actionscript-3/
An example of use :
http://jeanphiblog.media-box.net/dotclear/index.php?2006/11/24/230-flash-9-addframescript-fonction-non-documentee

EKA+ :)

2007/6/24, Mark Badger [EMAIL PROTECTED]:


Hi,
I'm re-writing a beginning Flash class for designers. I used Movie Clips
so that they would just adjust to using movie clips for interactivity as
they move on to more complex topics. Graphic symbols vs. Movie Clips
would just confuse students and added a layer of confusion that made
life harder.

Now in AS 3 I can't add stops to the first frame of the movie clip. No
big deal, but then I can't add stops to the last frame of a Movie Clip
either. Is the only way to stop a Movie Clip from looping is to check
if  the last frame been reached and then stop it? This seems like an
overwhelming amount of thought for a newbie to grasp. And certainly puts
this poor teacher in tears trying to explain a conditional in the second
class of Flash.

Mark Badger


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How can we sum to dates???

2007-06-16 Thread eka

Hello :)

if you have 2 minutes :

1 - install VEGAS my opensource framework and this extensions :

- page project : http://code.google.com/p/vegas/
- install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

2 - Use the Calendar and the Time class in the asgard package :

asgard.date.Calendar :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/asgard/date/Calendar.as
asgard.date.Time   :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/asgard/date/Time.as


Example :
import asgard.date.Calendar ;
import asgard.date.Time ;

var begin:Calendar = new Calendar( 2007, 5 , 14, 11, 30, 0 ) ;

var duration:Number = 50 * Time.MINUTE ; // in milliseconds

var end:Calendar = new Calendar( begin.valueOf() + duration ) ;

var sBegin:String = begin.format(MM dd  hh:nn:ss) ;
var sFinish:String   = end.format(MM dd  hh:nn:ss) ;

trace( start  :  + sBegin ) ; // start  : Jun 14 2007 11:30:00
trace( finish :  + sFinish ) ; // finish : Jun 14 2007 12:20:00


EKA+ :)



var end:Calendar = Calendar.add( begin , Calendar.MINUTES


2007/6/16, Amandeep Singh [EMAIL PROTECTED]:


Hi everyone,

I got stuck in a problem. What i need is to sum to dates.

Let say there is an event that starts at Jun 14 2007 11:30:00. The
duration
of the event is 50 min. That means the end time will be Jun 14 2007
12:20:00.

Now what i need is to sum the start time and the duration to get the end
time.

Anyone who know how to do this please let me know. I will be very
thankful.

Thanks in Advance.

Regards,
Amandeep

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How can we sum to dates???

2007-06-16 Thread eka

Hello :)

i have update my SVN repository and add a new feature in the static add
method of the Calendar class :

import asgard.date.Calendar ;

var begin:Calendar = new Calendar( 2007, 5 , 14, 11, 30, 0 ) ;

var duration:Number = 50 ;

var end:Calendar = Calendar.add( begin, Calendar.MINUTE , 50 ) ;

var sBegin:String = begin.format(MM dd  hh:nn:ss) ;
var sFinish:String   = end.format(MM dd  hh:nn:ss) ;

trace( start  :  + sBegin ) ;
trace( finish :  + sFinish ) ;

It's more easy now ;)

EKA+ :)

2007/6/16, eka [EMAIL PROTECTED]:


Hello :)

if you have 2 minutes :

1 - install VEGAS my opensource framework and this extensions :

- page project : http://code.google.com/p/vegas/
- install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

2 - Use the Calendar and the Time class in the asgard package :

asgard.date.Calendar :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/asgard/date/Calendar.as
asgard.date.Time   :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/asgard/date/Time.as


Example :
import asgard.date.Calendar ;
import asgard.date.Time ;

var begin:Calendar = new Calendar( 2007, 5 , 14, 11, 30, 0 ) ;

var duration:Number = 50 * Time.MINUTE ; // in milliseconds

var end:Calendar = new Calendar( begin.valueOf() + duration ) ;

var sBegin:String = begin.format(MM dd  hh:nn:ss) ;
var sFinish:String   = end.format(MM dd  hh:nn:ss) ;

trace( start  :  + sBegin ) ; // start  : Jun 14 2007 11:30:00
trace( finish :  + sFinish ) ; // finish : Jun 14 2007 12:20:00


EKA+ :)



var end:Calendar = Calendar.add( begin , Calendar.MINUTES


2007/6/16, Amandeep Singh [EMAIL PROTECTED]:

 Hi everyone,

 I got stuck in a problem. What i need is to sum to dates.

 Let say there is an event that starts at Jun 14 2007 11:30:00. The
 duration
 of the event is 50 min. That means the end time will be Jun 14 2007
 12:20:00.

 Now what i need is to sum the start time and the duration to get the end
 time.

 Anyone who know how to do this please let me know. I will be very
 thankful.

 Thanks in Advance.

 Regards,
 Amandeep

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

2007-06-12 Thread eka

hello :)

you can use my opensource framework and this extensions with the
localization model of ASGard (ext of VEGAS)

Page of the Framework project : http://code.google.com/p/vegas/

Install VEGAS and this extensions :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Example to use the localization model in the svn of the project :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/system/

My event localization model is based on the W3C dom2/3 event model test
the Localization 02 - Eden.fla example.. i use Eden format to creates
external files to configurate my localizations. but you can use JSON with my
framework or use my framework and this implementation to use XML(in AS2 xml
is no speed... Eden more easy to use)

More information about Eden format : http://code.google.com/p/edenrr/
More information about JSON format : http://www.json.org/

I use eden to create my configuration file too...
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/config/

You can use too my Opensource documentation framework AST'r :
http://code.google.com/p/astr/

AST'r is a little application framework to implement
config/localization/sounds/ in a application based with VEGAS.


EKA+ :)






2007/6/12, Cristo @ cryzto.ch [EMAIL PROTECTED]:


Hi everybody



I'm working on a multilanguage configurator and want to update every
textareas, labels etc. by clicking on one of the available lang-buttons
(english, german, spanish ect.).



My configurator consists of different movieclips/layers of course. Now
I've
tried to reach this by creating an evenlistener on those buttons, but
without success.



Code (layer: _level0):



var langListener:Object = new Object();

langListener.click = function (EvtObj:Object){

trace(it worked!);

};

// ie: english-button

_level0.langP_mc.en_btn.addEventListener(click, langListener);





Can anyone help?



Cryzto


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.14/845 - Release Date: 12.06.2007
06:39

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

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


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

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


Re: [Flashcoders] Private var not accessible?

2007-06-08 Thread eka

Hello :)

more information about vegas in the projects page :

- http://code.google.com/p/vegas/

And you can see the event model tutorials in this page :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

EKA+ :)

2007/6/8, JOR [EMAIL PROTECTED]:


Oh cool, I never saw the VEGAS framework before.  Looks interesting,
I'll check it out.

Thanks,
James


eka wrote:
 Hello :)

 i have the same implementation in VEGAS inspired of the
 flash.util.Timeclass :

 http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/Timer.as

http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/FrameTimer.as


 For me it's a better solution to use this implementation :) I prefere
the
 dom2/3 of the W3C event model to manage my intervals too ;)

 EKA+ :)


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

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


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

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


Re: [Flashcoders] Private var not accessible?

2007-06-07 Thread eka

Hello :)

you must use the second notation of the method :

var delay = _global.setTimeout( this, delayedFunc, 1000 );

EKA+ :)

2007/6/7, eric e. dolecki [EMAIL PROTECTED]:


I have a simple class and I can't access a private var after using
setTimeout... I typed this up to show whats happening:

class foo extends MovieClip
{
private var nTime:Number = 0.75;
private var delay:Number;

function foo()
{
// stuff
};

public function doSomething():Void
{
trace( nTime ); // works fine [0.75]
var delay = _global.setTimeout( delayedFunc, 1000 );
};

private function delayedFunc():Void
{
trace( nTime ); //undefined ?
};
}

?? I could use setInterval and kill it after the first fire, but
setTimeout
is nicer. This is AS2 obviously.

- eric
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] IE7 Crashing on FileReference.download()

2007-06-07 Thread eka

Hello :)

this bug ... i have 3 computers (Core2 Duo, Athlon XP 3500 and a laptop..)
with WinXP and i can't use the FileReference.download method : In Flash, in
the desktop, in Firefox, IE etc... my player crash and if i test my
animation in flash.. flash is closed !

The upload method work.. not the download :( Same problem with all FP9
version and the FP8 :( And i don't know why ?

EKA+ :)

2007/6/7, Joshua Buhler [EMAIL PROTECTED]:


I've actually had her uninstall/install the FP 3 times now, with no
luck.  I've found a few forum posts which have a list of registry
items to tweak, but that's something that's way over her head -
reinstalling Flash was pushing it.

As for uploading via HTML forms - haven't tried it, as the problem
seems to be related to downloading a file. There's no uploading in
this application.

Thanks for the suggestions though.

- Josh

On 6/7/07, Duncan Reid [EMAIL PROTECTED] wrote:
 I guess i'd start with a full uninstall / re-install of the player if
you
 haven't had her try already.  I know it's not much but a good starting
 point.

 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14157



 On 6/7/07, Joshua Buhler [EMAIL PROTECTED] wrote:
 
  For 99% of our users, they can download images just fine via
  FileReference.download().
 
  However, one user in particular is using IE7, Windows XP, and without
  fail, anytime FileReference.download() is called, IE will crash.
  Doesn't matter whether it's our site, or other sites that allow
  downloads that we've directed her to to test.
 
  Anybody see a similar problem, or have any ideas?
 
  She's using FP 9.0.45
 
  - Josh
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] Private var not accessible?

2007-06-07 Thread eka

Hello :)

i have the same implementation in VEGAS inspired of the flash.util.Timeclass :

http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/Timer.as
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/FrameTimer.as

For me it's a better solution to use this implementation :) I prefere the
dom2/3 of the W3C event model to manage my intervals too ;)

EKA+ :)



2007/6/8, JOR [EMAIL PROTECTED]:


Eka, was right about the notation being the problem but I thought I
would mention something small I noticed.

You declare delay as a private property of the class but then declare it
again as a local variable inside your doSomething() method.  If you
don't need to access the value of delay outside of the doSomething()
method I would remove it at a private property of the class.  Otherwise,
if you do need it outside of the doSomething method I would remove the
var keyword from in front of the assignment so that you are assigning to
the class' property and not creating a new local variable.

You might also want to be consistant with your variable names.  You
prefix Time with n for a Number but don't do so with delay.

Also, you can check out my Timer class for something like this:
http://www.jamesor.com/2006/10/18/as2-timer-class/


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



eric e. dolecki wrote:
 I have a simple class and I can't access a private var after using
 setTimeout... I typed this up to show whats happening:

 class foo extends MovieClip
 {
 private var nTime:Number = 0.75;
 private var delay:Number;

 function foo()
 {
 // stuff
 };

 public function doSomething():Void
 {
 trace( nTime ); // works fine [0.75]
 var delay = _global.setTimeout( delayedFunc, 1000 );
 };

 private function delayedFunc():Void
 {
 trace( nTime ); //undefined ?
 };
 }

 ?? I could use setInterval and kill it after the first fire, but
setTimeout
 is nicer. This is AS2 obviously.

 - eric
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] survival off eventlisteners on class instance redeclaration?

2007-06-02 Thread eka

Hello :)

The event listener is registered in a collection (array or other data
object) in the instance ( you use the event model of the AS3 framework in
Flex ? or the event model in the mx AS2 library ?)

If you destroy the instance your registration is canceled because the
collection is a property of the instance.

PS : you can use the event model in AS2 or AS3 or SSAS(JS) of my openSource
framework VEGAS : http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

To install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

EKA+ :)



2007/6/1, Latcho [EMAIL PROTECTED]:


Hi list,

IfI attach e new instance of a class to a
*var myClass*=new friendlyClass()

and then attach an eventlistener to it
classHello.*addEventLister*(greeting,sayHello)

now say that, after a while I want to overwrite the myClass variable
with a new and fresh instance of the same
*myClass*=new friendlyClass()

now my question: will the eventlistener still work or do I have to
redeclare it again ?

Thanks,
Stijn aka Latcho



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2: capturing a href=link/a events?

2007-05-16 Thread eka

Hello :)

in actionscript (1 or 2) you can use the notation :

a href=asfunction:myMethod,param1,param2Link/a

In your code... in the parent of your textfield (the parent movieclip), you
can creates the method myMethod 

example :

var format:TextFormat = new TextFormat(arial, 12) ;
format.bold = true ;

var target:MovieClip = this.createEmptyMovieClip(mc, 1) ;
target._x = 25 ;
target._y = 25 ;
target.myMethod = function( arg1, arg2 )
{
   trace( callback :  + arg1 +  :  + arg2) ;
}

var field:TextField  = target.createTextField( field, 1, 0 , 0, 200, 20) ;
field.autoSize = true ;
field.border = true ;
field.setNewTextFormat( format ) ;
field.html = true ;
field.htmlText = 'a href=asfunction:myMethod,param1,param2Link/a' ;

You can use TextField.StyleSheet to apply a css style in your fields etc

Read the actionscript reference with the words TextField and asfunction :)

EKA+ :)

2007/5/16, sebastian [EMAIL PROTECTED]:


Hello again, a more difficult question maybe...

Is there any way for me to capture a user click on an href tag inside of
a CSS formatted html text field?

Here is what I do:
- CDATA formatted text in an XML file.
- load it and associate a CSS file to a generated text field at run time.
- resulting a tags have links assigned to them.
- user 'clicks' them - event capture??

In other words: what I need to do is to hear the event so I can dispatch
an event to my Controller class [who then sends info to the stats class,
and opens a browser window with predetermined formatting].

At the moment I can't see a way for this event to be heard by my
controller. Maybe this is simple? maybe its impossible, or complex...
any ideas? Javascript maybe?

Thanks for your help!

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

2007-05-15 Thread eka

Hello :)

you can use http://swfmill.org/ and http://www.mtasc.org/ to do it :)

EKA+ :)

2007/5/15, Bas Quentin // Byontik [EMAIL PROTECTED]:


I would like to know if you know a solution for the following problem.. I
just would like to know if it's possible and what tools you would use..

I need to build a flash mediaplayer that plays swf and mp3 files. BUT
because the mediaplayer will be used in an environment that doesn't
support
external files the media files must be included with the player in 1
swffile. This will be done by people that don't know how to use flash.

My guess would be making a page where the user can select a media file and
change the desired settings (title, fontsize,..) and that compiles a new
swf
file for the user.

Creating the player is no problem but I would like to know if it's
possible
to generate a single swf file from 2 separate files without using flash.
The
process would be similar to: importing the media file to the library of
the
media player and exporting the file.

thx


Gr
Bas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Quick syntax q: how to write a function that can receive an undefined number of parameters

2007-05-11 Thread eka

Hello :)

you don't limit your while loop instruction ?

  while ( --i  -1)
  {

  }

EKA+ :)

2007/5/11, Steven Sacks [EMAIL PROTECTED]:


Even more optimized

public static function center():Void
{
var targetClip:MovieClip = MovieClip(arguments.shift());
centerX:Number = targetClip._x + (targetClip._width / 2);
centerY:Number = targetClip._y + (targetClip._height / 2);
var i:Number = arguments.length;
while (i--)
{
   arguments[i]._x = centerX;
   arguments[i]._y = centerY;
}
}


 public static function center():Void
 {
var targetClip:MovieClip = MovieClip(arguments.shift());
var i:Number = arguments.length;
while (i--)
{
arguments[i]._x = targetClip._x + (targetClip._width / 2);
arguments[i]._y = targetClip._y + (targetClip._height / 2);
}
 }

 :)


 Alistair Colling wrote:
 Hi there, just a quick syntax question, I want to receive a function
 that will centre the position of all objects passed to that of the
 first object passed but the number of objects passed may vary. This
 is the syntax I am currently using, is this the best way to do it?
 Thanks for any comments in advance :)
 Ali

 //ob1 is the object that the objects in the array centre themselves to
 public static function center(ob1:Object, ob_ar:Array) {
 var targetX:Number = ob1._x;
 var targetY:Number = ob1._y;
 for (var i = 0; iob_ar.length; i++) {
 ob_ar[i]._x = targetX+(ob1._width/2);
 ob_ar[i]._y = targetY+(ob1._width/2);
 }
 }

 center(myMC, [myMC2, myMC3, myMC4]);



 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Quick syntax q: how to write a function that canreceive an undefined number of parameters

2007-05-11 Thread eka

Hello :)

Yes it's funny .. i forget the 0 is a boolean in a conditional
instruction... the problem with this loop is the negative values. but it's a
good notation.

After tests... in AS2 this method is more speed.

var ar:Array = new Array(50) ;

var time ;

Key.addListener(this) ;

onKeyDown = function()
{
   var result ;
   var code:Number = Key.getCode() ;
   var copy:Array = [].concat(ar)
   var len:Number = copy.length ;
   switch (code)
   {
   case Key.UP :
   {
   time = getTimer() ;
   for( var i:Number = 0 ; ilen ; i++ )
   {
   result = copy[len] ;
   }
   time = getTimer() - time ;
   trace( for speed :  + time +  ms) ;
   break ;
   }
   case Key.DOWN :
   {
   time = getTimer() ;
   while( len-- )
   {
   result = copy[len] ;
   }
   time = getTimer() - time ;
   trace( while(len--) speed :  + time +  ms) ;
   break ;
   }
   case Key.LEFT :
   {
   time = getTimer() ;
   while( --len  -1 )
   {
   result = copy[len] ;
   }
   time = getTimer() - time ;
   trace( while(--len  -1) speed :  + time +  ms) ;
   break ;
   }
   case Key.RIGHT :
   {
   time = getTimer() ;
   while( --len -(-1) )
   {
   result = copy[len] ;
   }
   time = getTimer() - time ;
   trace( while(--len -(-1)) speed :  + time +  ms) ;
   break ;
   }
   }
}

for speed : 329 ms
while(len--) speed : 305 ms
while(--len  -1) speed : 324 ms
while(--len -(-1)) speed : 418 ms

Thanks :)

EKA+ :)



2007/5/11, Steven Sacks [EMAIL PROTECTED]:


I think he was pointing out how the loop could be optimized even further.

Pre-decrementing is faster than post-decrementing.

However, his greater than comparison slows it down.  The right way to do
it is:

while (--i -(-1))
{
}

since subtraction is faster than addition.

This is all academic, though.  I used to use --i -(-1) but I gave it up
for the readability of while (i--).

This is my new favorite:

while (i--) i++;

;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Question on removeEventListener and Delegate callback

2007-05-07 Thread eka

Hello :)

use a variable to register your virtual proxy function :

var listener = utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' ,
url) ;

this.currentDisplayObject.addEventListener('onContentCleared' , listener ) ;

//removing it

this.currentDisplayObject.removeEventListener('onContentCleared' , listener
) ;

Now you can keep the variable in memory ;)

PS : if you want use a better event model, you can try my event model in my
opensource framework VEGAS : http://code.google.com/p/vegas

Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
Read the tutorials about the W3C event model :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

For me .. it's more easy with this implementation.

eKA+ :)



2007/5/7, Jiri Heitlager | dadata.org [EMAIL PROTECTED]:


I was wondering if I am doing something correctly when adding listeners
to objects. My question is, if I remove the listener is the code below
then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
when I remove the listener??

//adding a listener
this.currentDisplayObject.addEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))

//removing it
this.currentDisplayObject.removeEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed))

Thank you

Jiri


John Trentini wrote:
 Hi guys,


 I want to create as many text fields (which eventually I would like to
 turn into buttons) as the length of an array. I also want to use the
 content of the array to populate the text of the fields created
 dynamically. I have tried everything I know but all I seem to get is
 one filed with the lasat item in the array, sheesh!

 I've gone absolutely mad on this one (newish to actionScript, I am!) but
 can anyone tell me what  I am doing wrong here? I could do with a
 helping hand or seven =:-)



 var myTxt:Array = new Array(branding, news, about us, print,
 marks, contact);
 var myX = 430;
 var menuArray:Array = new Array();
 var ySpacing:Number = 90;
 //

 /*create  textFields**/
 //
 //

 for(i=0; imyTxt.length; i++) {
_root.createTextField(mytext+[i], 1, myX, 0, 100, 30);
myId = _root[mytext+[i]];
myId._y = ySpacing;
ySpacing += 40;
//  trace(myTxt[i]);//the trace works, it list
 all tyhe lements in the array but
myId.text = myTxt[i];  // this one in not producing the appropriate
 results
//
myId.border = false;
myformat = new TextFormat();
myformat.font = Verdana;
myformat.size = 14;
myformat.bold = true;
myformat.color = 0x55;
myformat.align = right;
//
myId.selectable = false;
myId.setTextFormat(myformat);
//myId.text = myTxt[i];  //tried putting it at the end but no dah!
//
 }
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Question on removeEventListener and Delegatecallback

2007-05-07 Thread eka

Hello :)

VEGAS is full open.. with a MPL licence you can do commercial project with
VEGAS, no problemo :)

The AS3 version of VEGAS is in alpha version for the moment.. i have
implements a VEGAS implementation in AS3 but i think do a big refactoring
this summer over the AS3 version :) For the moment i finish the final
version of the AS2 library.

EKA+ :)

2007/5/7, Ken Rogers [EMAIL PROTECTED]:


Hi Eka!

I have been secretly becoming addicted to VEGAS.  I guess It isn't secret
anymore :P
I wanted to ask you if it was alright to use VEGAS for a commercial
project I am starting this week. It is a kids/parent community site (8-12yrs
old or tweens).

I will also take advantage of this note to say hi to Nicolas, Daniel, Ian
!  I have been so busy lately I have not had any time to work with OpenGL /
SDL(puke) / Haxe.

And big congratulations Nicolas. It sounds as though the good life has
scooped you up and started you on a nice trip!I have a 2 and 4 yr old little
girls and wouldn't trade it for anything. all starts with getting
hitched!(which I thought I would NEVER EVER do)

:)

Thanks for the awesome work on VEGAS Eka. Also is there something that
explains the differences in the AS2 and AS3 versions?  Are they only in how
the view is handled?  Is it not wise to do a project initially in AS2 then
move it to the AS3 version?

Thanks,
Ken Rogers

(howdy Hank Williams! you spider man geek :P)

-Original Message-
From: [EMAIL PROTECTED] on behalf of eka
Sent: Mon 5/7/2007 6:00 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Question on removeEventListener and
Delegatecallback

Hello :)

use a variable to register your virtual proxy function :

var listener = utils.Proxy.create(this ,  onBlockContentDestoyed , 'text '
,
url) ;

this.currentDisplayObject.addEventListener('onContentCleared' , listener )
;

//removing it

this.currentDisplayObject.removeEventListener('onContentCleared' ,
listener
) ;

Now you can keep the variable in memory ;)

PS : if you want use a better event model, you can try my event model in
my
opensource framework VEGAS : http://code.google.com/p/vegas

Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
Read the tutorials about the W3C event model :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

For me .. it's more easy with this implementation.

eKA+ :)



2007/5/7, Jiri Heitlager | dadata.org [EMAIL PROTECTED]:

 I was wondering if I am doing something correctly when adding listeners
 to objects. My question is, if I remove the listener is the code below
 then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
 when I remove the listener??

 //adding a listener
 this.currentDisplayObject.addEventListener('onContentCleared' ,
 utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))

 //removing it
 this.currentDisplayObject.removeEventListener('onContentCleared' ,
 utils.Proxy.create(this ,  onBlockContentDestoyed))

 Thank you

 Jiri


 John Trentini wrote:
  Hi guys,
 
 
  I want to create as many text fields (which eventually I would like to
  turn into buttons) as the length of an array. I also want to use the
  content of the array to populate the text of the fields created
  dynamically. I have tried everything I know but all I seem to get
is
  one filed with the lasat item in the array, sheesh!
 
  I've gone absolutely mad on this one (newish to actionScript, I am!)
but
  can anyone tell me what  I am doing wrong here? I could do with a
  helping hand or seven =:-)
 
 
 
  var myTxt:Array = new Array(branding, news, about us, print,
  marks, contact);
  var myX = 430;
  var menuArray:Array = new Array();
  var ySpacing:Number = 90;
  //
 
  /*create  textFields**/
  //
  //
 
  for(i=0; imyTxt.length; i++) {
 _root.createTextField(mytext+[i], 1, myX, 0, 100, 30);
 myId = _root[mytext+[i]];
 myId._y = ySpacing;
 ySpacing += 40;
 //  trace(myTxt[i]);//the trace works, it list
  all tyhe lements in the array but
 myId.text = myTxt[i];  // this one in not producing the appropriate
  results
 //
 myId.border = false;
 myformat = new TextFormat();
 myformat.font = Verdana;
 myformat.size = 14;
 myformat.bold = true;
 myformat.color = 0x55;
 myformat.align = right;
 //
 myId.selectable = false;
 myId.setTextFormat(myformat);
 //myId.text = myTxt[i];  //tried putting it at the end but no dah!
 //
  }
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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

Re: [Flashcoders] Question on removeEventListener and Delegatecallback

2007-05-07 Thread eka

Hello :)

i you want.. you can show the source code of my last opensource project
AST'r : http://code.google.com/p/astr/

This project is a laboratory to implements application templates based on
VEGAS :) This project can help you to use VEGAS in your commercial project ?
:)

EKA+ :)

2007/5/7, Ken Rogers [EMAIL PROTECTED]:


Thanks for the info.  I will keep you posted on my progress via google
code so you can show commercial work being done with VEGAS. Also let me know
when you would like the AS3 version tested out in any way :)

Keep up the super() work,
Ken


-Original Message-
From: [EMAIL PROTECTED] on behalf of eka
Sent: Mon 5/7/2007 9:41 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Question on removeEventListener and
Delegatecallback

Hello :)

VEGAS is full open.. with a MPL licence you can do commercial project with
VEGAS, no problemo :)

The AS3 version of VEGAS is in alpha version for the moment.. i have
implements a VEGAS implementation in AS3 but i think do a big refactoring
this summer over the AS3 version :) For the moment i finish the final
version of the AS2 library.

EKA+ :)

2007/5/7, Ken Rogers [EMAIL PROTECTED]:

 Hi Eka!

 I have been secretly becoming addicted to VEGAS.  I guess It isn't
secret
 anymore :P
 I wanted to ask you if it was alright to use VEGAS for a commercial
 project I am starting this week. It is a kids/parent community site
(8-12yrs
 old or tweens).

 I will also take advantage of this note to say hi to Nicolas, Daniel,
Ian
 !  I have been so busy lately I have not had any time to work with
OpenGL /
 SDL(puke) / Haxe.

 And big congratulations Nicolas. It sounds as though the good life has
 scooped you up and started you on a nice trip!I have a 2 and 4 yr old
little
 girls and wouldn't trade it for anything. all starts with getting
 hitched!(which I thought I would NEVER EVER do)

 :)

 Thanks for the awesome work on VEGAS Eka. Also is there something that
 explains the differences in the AS2 and AS3 versions?  Are they only in
how
 the view is handled?  Is it not wise to do a project initially in AS2
then
 move it to the AS3 version?

 Thanks,
 Ken Rogers

 (howdy Hank Williams! you spider man geek :P)

 -Original Message-
 From: [EMAIL PROTECTED] on behalf of eka
 Sent: Mon 5/7/2007 6:00 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Question on removeEventListener and
 Delegatecallback

 Hello :)

 use a variable to register your virtual proxy function :

 var listener = utils.Proxy.create(this ,  onBlockContentDestoyed , 'text
'
 ,
 url) ;

 this.currentDisplayObject.addEventListener('onContentCleared' , listener
)
 ;

 //removing it

 this.currentDisplayObject.removeEventListener('onContentCleared' ,
 listener
 ) ;

 Now you can keep the variable in memory ;)

 PS : if you want use a better event model, you can try my event model in
 my
 opensource framework VEGAS : http://code.google.com/p/vegas

 Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
 Read the tutorials about the W3C event model :
 http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

 For me .. it's more easy with this implementation.

 eKA+ :)



 2007/5/7, Jiri Heitlager | dadata.org [EMAIL PROTECTED]:
 
  I was wondering if I am doing something correctly when adding
listeners
  to objects. My question is, if I remove the listener is the code below
  then the right way. Do I use the Proxy class (or mx.utils.Delegate)
also
  when I remove the listener??
 
  //adding a listener
  this.currentDisplayObject.addEventListener('onContentCleared' ,
  utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))
 
  //removing it
  this.currentDisplayObject.removeEventListener('onContentCleared' ,
  utils.Proxy.create(this ,  onBlockContentDestoyed))
 
  Thank you
 
  Jiri
 
 
  John Trentini wrote:
   Hi guys,
  
  
   I want to create as many text fields (which eventually I would like
to
   turn into buttons) as the length of an array. I also want to use the
   content of the array to populate the text of the fields created
   dynamically. I have tried everything I know but all I seem to
get
 is
   one filed with the lasat item in the array, sheesh!
  
   I've gone absolutely mad on this one (newish to actionScript, I am!)
 but
   can anyone tell me what  I am doing wrong here? I could do with a
   helping hand or seven =:-)
  
  
  
   var myTxt:Array = new Array(branding, news, about us, print,
   marks, contact);
   var myX = 430;
   var menuArray:Array = new Array();
   var ySpacing:Number = 90;
   //
  
   /*create  textFields**/
   //
   //
  
   for(i=0; imyTxt.length; i++) {
  _root.createTextField(mytext+[i], 1, myX, 0, 100, 30);
  myId = _root[mytext+[i]];
  myId._y = ySpacing;
  ySpacing += 40;
  //  trace(myTxt[i]);//the trace works, it
list
   all tyhe lements in the array but
  myId.text = myTxt[i

Re: Re: [Flashcoders] LoadVars array.length problem

2007-05-05 Thread eka

Hello :)

for me your method is not good :)

Use JSON or Eden format in your external text file.

Example JSON = Javascript Object Notation ( http://json.org/ )

JSON is better to parse Array, Object, String, Boolean, Number ...

You can use JSON with my openSource framework :
http://code.google.com/p/vegas/


Serialize (ActionScript to String ) :

import vegas.string.JSON ;

var a:Array = [2, true, coucou] ;
var o:Object = { prop1 : 1 , prop2 : 2 } ;
var s:String = hello world ;
var n:Number = 4 ;
var b:Boolean = true ;

trace(* a :  + JSON.serialize( a ) )  ; 
trace(* o :  + JSON.serialize( o ) )  ;
trace(* s :  + JSON.serialize( s ) )  ;
trace(* n :  + JSON.serialize( n ) )  ;
trace(* b :  + JSON.serialize( b ) )  ;

Deserialize (String to ActionScript )

import vegas.string.JSON ;

var source:String = '[ { prop1 : 0xFF , prop2:2,
prop3:hello, prop4:true} , 2, true, 3, [3, 2] ]' ;

var o = JSON.deserialize(source) ;
var l:Number = o.length ;
for (var i:Number = 0 ; il ; i++)
{
trace(  + i +  :  + o[i] +  - typeof ::  + typeof(o[i])) ;
if (typeof(o[i]) == object)
{
 for (var each:String in o[i])
 {
 trace(  + each +  :  + o[i][each] +  ::  +
typeof(o[i][each]) ) ;
 }
}
}


If your string representation contains an error :

import vegas.string.JSON ;
import vegas.string.errors.JSONError ;

var source:String = [3, 2, ;
try
{
   var o = JSON.deserialize(source) ;
}
catch(e:JSONError)
{
   trace( e.toString()) ; // output: [JSONError] Bad Array, at:6 in [3, 2,
}


Now.. with a LoadVars :

import vegas.string.JSON ;

var result ;

var loader = new LoadVars() ;
loader.onData = function ( source:String )
{
result = JSON.deserialize(source) ;
trace(result) ;
}
loader.load(data.txt) ;

In your external data.txt you can write an array with the Javascript
notation :

[ 1 , 2 , true, hello world , { prop1 : value1, prop2 : value2 } ,
0xFF ]

To install my framework you can read this page :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

More easy... more speed :)

EKA+ :)


2007/5/5, John Trentini [EMAIL PROTECTED]:


Thanks sebastian,

I had tried something like:

menuLoadVars.onLoad = function(){
var my = menuLoadVars.split(\r);
for (var i = 0; imy.length; i++) {

trace(my[i])
 }
}

No joy, perhaps I am using the wrong syntax?

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

2007-05-05 Thread eka

Hello :)

you can use the alpha AS3 version of my opensource framework VEGAS :
http://code.google.com/p/vegas/

To install the libraries :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Use the AS3 version of VEGAS with this code :

package
{

import asgard.events.ActionEvent ;  
import asgard.events.RemotingEvent ;

import asgard.net.remoting.RemotingService;
import asgard.net.remoting.RemotingAuthentification;

import flash.display.Sprite ;

import test.User ;

public class TestAsgardRemoting extends Sprite
{

// o Constructor

public function TestAsgardRemoting()
{

// o Register your shared Class.

User.register() ;

// o Create Service

var service:RemotingService = new RemotingService() ;

service.addEventListener(RemotingEvent.ERROR, onError) ;
service.addEventListener(RemotingEvent.FAULT, onFault) ;
service.addEventListener(ActionEvent.FINISH, onFinish) ;
service.addEventListener(RemotingEvent.RESULT, 
onResult) ;
service.addEventListener(ActionEvent.START, onStart) ;
service.addEventListener(RemotingEvent.TIMEOUT, 
onTimeOut) ;

service.gatewayUrl = 
http://localhost/work/vegas/php/gateway.php; ;
service.serviceName = Test ;
service.methodName = getUser ;  
service.params = [eka, 30, 
http://www.ekameleon.net;] ;

// o Launch Service

service.trigger() ;

}

// o Public Methods

public function onError(e:RemotingEvent):void
{
trace(  + e.type +  :  + e.code) ;
}

public function onFinish(e:ActionEvent):void
{
trace(  + e.type) ;
}

public function onFault(e:RemotingEvent):void
{
trace(  + e.type +  :  + e.getCode() +  ::  + 
e.getDescription()) ;
}

public function onProgress(e:ActionEvent):void
{
trace(  + e.type ) ;
}

public function onResult( e:RemotingEvent ):void
{
trace(---) ;
trace( result :  + e.result) ;
trace(---) ;
}

public function onStart(e:ActionEvent):void
{
trace(  + e.type ) ;
}

public function onTimeOut(e:RemotingEvent):void
{
trace(  + e.type ) ;
}

}
}

All information about class mapping in AS3 with AMFPHP in my french
tutorials :
http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3

EKA+ :)

2007/4/16, Mark Walters [EMAIL PROTECTED]:


Is there any class that you know of like RecordSet or ArrayCollection for
AS3 only projects (not flex)?
I'm looking for a class to handle database query results a little easier.

--
Mark Walters

[EMAIL PROTECTED]
http://digitalflipbook.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] LoadVars array.length problem

2007-05-05 Thread eka

Hello :)

It's more easy to use JSON ? Xml is more difficult in AS2 ?

EKA+ :)



2007/5/5, Muzak [EMAIL PROTECTED]:


Dump the textfile idea and use XML instead, which is far better suited for
stuff like menu's.

?xml version=1.0 encoding=UTF-8 ?
menu

item label=about us /

item label=news /

item label=portfolio
sub label=branding /
sub label=interactives /
sub label=marks /
/item

/menu

regards,
Muzak

- Original Message -
From: John Trentini [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Saturday, May 05, 2007 8:56 AM
Subject: [Flashcoders] LoadVars array.length problem


 Hello,

 I am trying to generate two separate menus dynamically and populated by
the content of tow text files.

 The text files have the following info.

 menuItems.txt contains:

var1=about us
var2=news
var3=portfolio  etc.

 submenuItems.txt contains:
   var1=branding
var2=interactives
var3=marks   etc.

 these will be updateable files with any numbers of elements added to or
removed from.


 I have this code at the root level:

menuLoadVars = new LoadVars();
menuLoadVars.load(menuItems.txt);

subMenuLoadVars = new LoadVars();
subMenuLoadVars.load(submenuItems.txt);

 How can I generate an array that only contains the values of each item
if I don't know the length of the text file?

 I have tried:

menuItems.onLoad = function(){

for(i=0; imenuItems.length; i++){
trace(menuItemds[i]);

}

}

 but the menuItems.length is undefined and does not return a value.

 What can I do instead?

 Any tip would be a big help.
 Thanks



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

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


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

2007-05-05 Thread eka

Ok thanks.. the tortoiseSVN download link is changed :
http://tortoisesvn.net/downloads

i have modify the link in my tutorial :)

EKA+ :)

2007/5/5, Leandro Amano [EMAIL PROTECTED]:


The url download not found:
http://tortoisesvn.tigris.org/download.html
:(

Leandro Amano

On 5/5/07, eka [EMAIL PROTECTED] wrote:

 Hello :)

 you can use the alpha AS3 version of my opensource framework VEGAS :
 http://code.google.com/p/vegas/

 To install the libraries :
 http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

 Use the AS3 version of VEGAS with this code :

 package
 {

import asgard.events.ActionEvent ;
import asgard.events.RemotingEvent ;

import asgard.net.remoting.RemotingService;
import asgard.net.remoting.RemotingAuthentification;

import flash.display.Sprite ;

import test.User ;

public class TestAsgardRemoting extends Sprite
{

// o Constructor

public function TestAsgardRemoting()
{

// o Register your shared Class.

User.register() ;

// o Create Service

var service:RemotingService = new
RemotingService()
 ;

service.addEventListener(RemotingEvent.ERROR,
 onError) ;
service.addEventListener(RemotingEvent.FAULT,
 onFault) ;
service.addEventListener(ActionEvent.FINISH,
 onFinish) ;
service.addEventListener(RemotingEvent.RESULT,
 onResult) ;
service.addEventListener(ActionEvent.START,
 onStart) ;
service.addEventListener(RemotingEvent.TIMEOUT,
 onTimeOut) ;

service.gatewayUrl = 
 http://localhost/work/vegas/php/gateway.php; ;
service.serviceName = Test ;
service.methodName = getUser ;
service.params = [eka, 30, 
 http://www.ekameleon.net;] ;

// o Launch Service

service.trigger() ;

}

// o Public Methods

public function onError(e:RemotingEvent):void
{
trace(  + e.type +  :  + e.code) ;
}

public function onFinish(e:ActionEvent):void
{
trace(  + e.type) ;
}

public function onFault(e:RemotingEvent):void
{
trace(  + e.type +  :  + e.getCode() +  ::

 + e.getDescription()) ;
}

public function onProgress(e:ActionEvent):void
{
trace(  + e.type ) ;
}

public function onResult( e:RemotingEvent ):void
{
trace(---) ;
trace( result :  + e.result) ;
trace(---) ;
}

public function onStart(e:ActionEvent):void
{
trace(  + e.type ) ;
}

public function onTimeOut(e:RemotingEvent):void
{
trace(  + e.type ) ;
}

}
 }

 All information about class mapping in AS3 with AMFPHP in my french
 tutorials :


http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3

 EKA+ :)

 2007/4/16, Mark Walters [EMAIL PROTECTED]:
 
  Is there any class that you know of like RecordSet or ArrayCollection
 for
  AS3 only projects (not flex)?
  I'm looking for a class to handle database query results a little
 easier.
 
  --
  Mark Walters
 
  [EMAIL PROTECTED]
  http://digitalflipbook.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




--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http

Re: [Flashcoders] AS2: Design Pattern: event based or pointer? from model or controller?

2007-05-04 Thread eka

Hello :)

To implements MVC or a FrontController in your application you can try to
use the event model of my opensource framework based with the DOM2/3 of the
W3C model events, example :

http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

Vegas page project : http://code.google.com/p/vegas/

Install Vegas : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Tutorial in french to implement Visitor, Observer and FrontController(MVC)
pattern with VEGAS :

http://www.ekameleon.net/blog/index.php?2006/12/13/53--vegas-design-pattern-visitor
http://www.ekameleon.net/blog/index.php?2006/12/16/54--vegas-tutorial-02-design-pattern-mvc-and-observer
http://www.ekameleon.net/blog/index.php?2006/12/22/56--vegas-tutorial-03-design-pattern-mvc-with-frontcontroller
http://www.ekameleon.net/blog/index.php?2006/12/22/57--vegas-tutorial-03-design-pattern-mvc-with-frontcontroller-partie2

you can test this tutorials with the example in the AS2/bin/test/vegas/util
directory of the SVN repository of VEGAS.

To finish i have begin to write a little library based on VEGAS, an
Actionscript Template to creates application with VEGAS :

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

This project is only an opensource example to implements with Vegas a full
application with a global FrontController, MVC , config and localization
model etc... This project is in alpha version but explain the event
implementation of VEGAS.

EKA+ :)

2007/5/3, sebastian [EMAIL PROTECTED]:


Hello folks,

My next question is conceptual...

I've made good progress on many of the classes in my application, but
I'm now caught in a dilemma regarding approach.

As mentioned in a previous mail, I'm building a system that can be
divided into two: 1 part does general world 3D animation until the pages
are opened; this was relatively easy to make... the second part of the
system deals with generating pages [its a templating MVC system]; this
is the tough part!

At the center of the application is my class: PageController

Linked to it are 3 other Classes: PageModel [to load new pages],
StatsCollector [to record new pages called] and MouseController [told to
turn off 3D motion when pages are opened].

I was planning on using an object-instance pointer in the PageController
formed during its construction, to tell the associated Classes that a
new event has ocured, but someone pointed out to me that I should be
using an event based system instead [so that's its easier to add new
Classes that listen to the Controller in the future]

Here is what I have:

class com.blabla.PageController {
//Object pointers
private var pageModel:Object;
private var statsCollector:Object;
private var mouseController:Object;
private var urlMapper:Object;
//Page open/close status
private var activeWindow:Boolean;

function PageController (
__pageModel:Object,
__mouseController:Object,
__statsCollector:Object,
__urlMapper:Object)
{
//Pointers:
this.pageModel = __pageModel;
this.statsCollector = __statsCollector;
this.mouseController = __mouseController;
this.urlMapper = __urlMapper;
//Set initial state:
this.activeWindow = false;
}

//this method is called by SWFAddress on url changes:
public function urlChange(__name:String):Void {

// MOUSE CONTROLLER
//set the page active true to turn off
//3D mouse system:

this.activeWindow = true;

//tell 3D mouse system to check status:
this.mouseController.checkWindowStatus();

// PAGE MODEL
//call URL mapper returns an XML file based
//on the url __name
//this XML file is then passed to the pageModel
//which will then notify the PageView of changes

this.pageModel.buildPage (this.urlMapper.convertLink
(__name));

// STATS COLLECTOR
//run the method in 'statscol' with url:

this.statsCollector.callURL(__name);

}

}

So, my question is... is this the right way to be sending events? By
making pointers and calling methods in connected classes? Also, should I
store my activeWindow parameter in the Controller? I have a feeling
its in the wrong Class; but from a Code-clarity perspective it does make
sense to have it here as the controller is a state-dispatcher...?

Or should I be using an event based system instead of pointers? If so,
could someone lightly outline what the difference would be like in such
a set up? I'm not very familiar with using events to drive app like
this. I'd be very thankful.

Here is the latest diagram of the system:
http://www.chedal.org/temp/uml_design_03.png
[this that are blue/green are things I've built

Re: [Flashcoders] How to call a global method like trace--not the class method?

2007-04-28 Thread eka

Hello :)

Try this code :

class Debug
{


  static public function trace(str:String):void { .. }

  static public function initialize()
  {
 _global.WRITE = Debug.trace ;
  }

}

/// in your code... first in your application :

Debug.initialize() ;

// now you can use the 2 solutions to debug your application :

Debug.trace( hello world ) ;

or

_global.WRITE( hello world ) ;

EKA+ :)




2007/4/28, Douglas Pearson [EMAIL PROTECTED]:


We have a class used in a lot of code that has a trace method in it:

class Debug {
public function trace(str:String):void { .. }
}

Now we'd like to call the regular trace method from within that class,
but
all of our efforts call to the class's trace method.

In C++ you use :: to indicate a global method so it would be ::trace().

Is there anyway to do something similar in ActionScript?  Obviously, we
could rename our method to something else but that would mean changing a
lot
of existing code.

Thanks,

Doug

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

2007-04-25 Thread eka

Hello :)

For me... i wait FDT3 -
http://www.powerflasher.com/fdt/forum/viewtopic.php?t=801

EKA+ :)

2007/4/25, Eric E. Dolecki [EMAIL PROTECTED]:


I like Flex Builder and I know many who like FlashDevelop as well.

The AS editor in Flash CS3 is improved, but I don't like coding in it
as much as a dedicated editor.

- eric


On Apr 25, 2007, at 11:10 AM, [EMAIL PROTECTED] wrote:

 At the latest FITC in Toronto I was surprised by the amount of
 commercial AS3 work being done already.
 Also, it seems that Eclipse is very popular for AS3 development.

 As a long time Flashdevelop fan I was wondering what are some of
 the other favorite AS3 development environments?

 Which one is 'best'?

 Eclipse
 Flexbuilder
 Flash CS3
 Flashdevelop
 or??

 Thanks!
 Jim Bachalo


 [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

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

2007-04-17 Thread eka

Hello :)

in AS2 you can create constants with the ASSetProgFlags global method :

public static var CONNECTED:String =  CONNECTED ;
public static var FAILURE:String= FAILURE ;
public static var NOT_CONNECTED:String = NOT_CONNECTED;

private static var __ASPF__ = _global.ASSetPropFlags( ConnectionState ,
null , 7, 7 ) ;

ConnectionState is the name of your enumeration static class :)

For me.. your code is ok :

public function setConnectionState(cs:String):Void
{
switch(cs)
{
 case ConnectionState.CONNECTED :
 case ConnectionState.FAILURE :
 {
 break;
 }

 default :
 {
  cs = ConnectionState.NOT_CONNECTED ;
 }
  }
  this._connectionState = cs ;
}

EKA+ :)


2007/4/17, Andy Herrman [EMAIL PROTECTED]:


I just realized that there are a number of switch statements in my
code which probably shouldn't work, yet appear to, and I'm wondering
why.

Here's a really simple example.  I have a class that tracks the
connection state of my app, with the following values used as the
states (read-only attributes simulating constants):

  public static function get CONNECTED():String { return CONNECTED; }
  public static function get FAILURE():String { return FAILURE; }
  public static function get NOT_CONNECTED():String { return
NOT_CONNECTED; }

In the code that lets you set the state to a particular value it does
a sanity check to make sure the state value is one that's expected
(since in theory the user could provide any string value):

  public function setConnectionState(cs:String):Void {
switch(cs) {
  case ConnectionState.CONNECTED:
  case ConnectionState.FAILURE:
  case ConnectionState.NOT_CONNECTED:
break;
  default:
cs = ConnectionState.NOT_CONNECTED;
break;
}
this._connectionState = cs;
  }

Now in Java switch statements must use constants for the case values.
You can do something like I just did, but the variables being
referenced must be declared final (so the compiler knows they won't
change).  There isn't any equivalent to this in Flash (I simulate
constants by doing read only properties), so why does the case
statement work?  Does flash actually execute the stuff after the
'case' keyword?  What happens if multiple of those things return the
same value (for instance, say both CONNECTED and FAILURE returned
foo)?

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

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


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

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


Re: [Flashcoders] Delegate.create() not working in flash develop.....

2007-04-10 Thread eka

Hello :)

Can you test my personal vegas.events.Delegate class ? This class is
MTASC/Flash/FDT compatible :

- Project in RIAForge : http://vegas.riaforge.org/
- Project in Google Code : http://code.google.com/p/vegas/

- installation of VEGAS :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

- Tutorials about event model with VEGAS :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

- Tutorial about the vegas.events.Delegate class in VEGAS :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents_delegate

EKA+ :)


2007/4/10, Omar Fouad [EMAIL PROTECTED]:


Hi list,
I was working in a project using Flash develop and mtasc, and i realized
that Delegate isn't working properly, as in The function specified into
the
create() method in Delegate doesn't fire.
so i decided to create simple class just to test the Delegate.createMethod
to know whether the problem is within  my project or not
i got a Main class that calls another class called New.as

Note: I had set the USEMX option in flash develop to true...

import mx.utils.Delegate;
class New {

function New() {
_root.onEnterFrame = Delegate.create(this, traceIt);
}
private function traceIt() {
trace(tracing);
}
}

well this should trace tracing on frame rate, but it doesn't... even if
i
don't use delegate and i i do:



import mx.utils.Delegate;
class New {

function New() {
_root.onEnterFrame = function () {
   traceIt();//of course this wont work but i thought that trying
won't
hurt.
  };
}
private function traceIt() {
trace(tracing);
}
}

same result is someone aware why is this happening?

thanks in advance
--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but
delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] Recommended frameworks

2007-04-09 Thread eka

Hello :)

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

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

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

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

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

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

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

EKA+ :)






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


Hi all,

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

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

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


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

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


Re: [Flashcoders] Constructors in AS2 SWFs not being called when loaded by AS3

2007-04-07 Thread eka

Hello :)

In the FP9 you can find 2 virtual machines, one for the AS3 and one for the
AS1/2 .. you can use AS1/2 or AS3 code but not the AS3 and the AS1/2 in the
same time :)

If you want communicate between your SWFs running in AVM1 and AVM2.. you
must use the LocalConnection class :)

a french article about this :
http://www.envrac.org/index.php/2006/07/07/98-as3-avm1-et-avm2

You can too read the article about the ApplicationDomain :
http://livedocs.adobe.com/flex/2/langref/flash/system/ApplicationDomain.html

EKA+ :)

2007/4/7, Michael Mudge [EMAIL PROTECTED]:


I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a
property on that class... Something like this:

foo = new Thingy();
trace(foo.test);

All the class does is initialize that property; something like this:
class Thingy {
  public var test:String;
  public function Thingy() {
test = hello;
  }
}

This is pretty basic stuff -- and it works as expected.  When run, it
simply traces hello.  I then create an AS3 / Flash 9 app that loads
the aforementioned SWF... Something like this:

As2thing = new Loader();
addChild(As2thing);
As2thing.load(new URLRequest(as2thing.swf));

Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's
constructor doesn't get called -- it traces undefined instead.  Any
idea why?

- Kipp

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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Enumerating properties from outside an instance.

2007-04-05 Thread eka

Hello :)

Your object is a primitive object ? or a object with custom instance inside
?

Do you use AS2 classes in your code ?

Try the ASSetPropFlags global function to destroy the protection of the
object :

var ref = this.someNestedInstance ;

trace(  + ref) ;

_global.ASSetPropFlags( ref , null, 0, 1) ;

for (var property:String in ref)
{
   trace(property) ;
}

You can test the attribute of the properties of your object with my class
Attribute :
http://svn.riaforge.org/vegas/AS2/trunk/src/vegas/util/Attribute.as

To install my framework (VEGAS ) :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

EKA+ :)

2007/4/6, David Ngo [EMAIL PROTECTED]:


If you're looking to iterate through a nested object(s), then you have to
create a nested loop:

function loopMe(target:Object):Void
{
trace('-- looping through: ' + target + '--');
for (var s:String in target) {
trace(s + ': ' + target[s]);
for (var t:String in target) {
trace('\t' + t + ': ' + target[s][t]);
}
}
}

loopMe(myMC);


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason
Lutes
Sent: Thursday, April 05, 2007 3:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Enumerating properties from outside an
instance.

Thanks John,

My loop is even simpler. I failed to mention that I need to examine nested
MovieClip instances for functions. Variables seem to appear as expected,
but
functions only appear for the current scope. Very strange.

Works as expected:

for (var propertyIdentifier:String in this)
{
  trace(propertyIdentifier);
}

Does not work as expected:

for (var propertyIdentifier:String in this.someNestedInstance)
{
  trace(propertyIdentifier);
}


-
Jason


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of John Mark Hawley
 Sent: Thursday, April 05, 2007 3:54 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Enumerating properties from
 outside an instance.

 You can do it; you must have an error in your code.

 for (var prop:String in clip)
 {
 var subObject:Object = clip[prop];
 for (var otherProp:String in subObject)
 {
 trace(otherProp + :  + subObject[otherProp]);
 }
 }

 It should look like that, but not horrible.

 
  From: Jason Lutes [EMAIL PROTECTED]
  Date: 2007/04/05 Thu PM 04:10:48 CDT
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] Enumerating properties from outside
 an instance.
 
  I can't figure this out.
 
  I can set up a for...in loop to show me all the
 (enumerable) properties -- variables and functions -- on the
 MovieClip instance where I place the loop, but I can't
 enumerate properties for other (nested) MovieClip instances
 by simply changing the focus object of that same for...in loop.
 
  Why not?
 
  If I move the enumerating loop into the nested clips it
 works as expected.
 
 
  -
  Jason
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 --
 John Mark Hawley
 The Nilbog Group
 773.968.4980 (cell)

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

2007-04-03 Thread eka

Hello :)

you use the last version of SWFObject ? (1.5)

http://blog.deconcept.com/swfobject/

EKA+ :)

2007/4/3, Adrian Lynch [EMAIL PROTECTED]:


I'm using it and it works. Got any code to have a look at. Maybe you're
using it differently.

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew
Ganz
Sent: 03 April 2007 17:20
To: Flashcoders mailing list
Subject: [Flashcoders] eolas fix for IE7


hi.

i've tried implementing the eolas fix using the flashobject.js method and
swfobject.js method and they both work for IE6 but not for IE7. is there a
different fix needed for IE7?

thanks. -- matt.

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

2007-04-03 Thread eka
 :

import vegas.events.BasicEvent ;
import vegas.events.Delegate ;
import vegas.events.Event ;
import vegas.events.EventDispatcher ;
import vegas.events.FrontController ;

var action:Function = function (ev:Event)
{
   trace(  + this +  ::  + ev.getType() +  -  + ev.getTarget()) ;
}

var listener = {} ;
listener.handleEvent = function(ev:Event):Void
{
   trace(  + this +  ::  + ev.getType() +  -  + ev.getTarget()) ;
}
listener.toString = function () {
   return [MY_LISTENER] ;
}

var controller:FrontController = new FrontController( ) ;
controller.insert(MY_EVENT1, new Delegate(this, action)) ;
controller.insert(MY_EVENT2, listener) ;

// Test

EventDispatcher.getInstance().dispatchEvent( new BasicEvent(MY_EVENT1,
this) ) ;
trace(---) ;
EventDispatcher.getInstance().dispatchEvent( new BasicEvent(MY_EVENT2,
this) ) ;

For me it's the best solution to use an event model AS2 like AS3 !

EKA+ :)


2007/4/3, David Ngo [EMAIL PROTECTED]:


You'll need a reference of the dispatching class in your listener class to
receive events:

// broadcasting class
import mx.events.EventDispatcher;

class EventClass
{
// EventDispatcher methods
public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

public function EventClass()
{

}

public function onInit():Void
{
trace('onInit fired!');
dispatchEvent({type: onInit, target: this});
}
}


// listener class
import mx.utils.Delegate;

class ListenerClass
{
public function ListenerClass(eventClass:MyEventClass)
{
eventClass.addEventListener(onInit, Delegate.create
(this,
onInitHandler));
}

private function onInitHandler(event:Object):Void
{
trace('onInitHandler invoked');
}
}


// implementation
var eventClass:EventClass = new EventClass();
var listenerClass:ListenerClass = new ListenerClass(eventClass);
eventClass.onInit();


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Tuesday, April 03, 2007 9:47 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Events for custom classes?

Actually, I had been meaning to post again because I had lost my code
for getting EventDispatcher working between two classes. Someone posted
a response here and I lost it, as well as my code that was working.  if
anyone can post again on how to get one class to dispatch a CUSTOM event
and get another CUSTOM class to listen to that event, please post!
Helmut and I would like to see an example.  The help docs on
EventDispatcher are really awful, and I haven't seen a lot of stuff
online.

Jason Merrill
Bank of America
GTO Learning  Leadership Development
eTools  Multimedia Team




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Helmut Granda
Sent: Tuesday, April 03, 2007 12:35 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Events for custom classes?

On 4/3/07, Helmut Granda [EMAIL PROTECTED] wrote:

 Jason,

 Were you able to figure this out exactly the way you wanted it?

 -h

 On 2/16/07, Merrill, Jason  [EMAIL PROTECTED] wrote:
 
  Ah - nevermind - figured out I had removed the scope to my
  webservice and forgot to put it back in. Delegate works
fine for me
  now, sorry about the noise, and thanks so much everyone
for the help!!
 
  Jason Merrill
  Bank of America
  Learning  Organizational Effectiveness
 
 
 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 prototype

2007-03-29 Thread eka

Hello :)

try this :

// constructor of the class
_global.MyButton = function()
{
trace( this +  constructor) ;
}

// inject addListener, removeListener and broadcastMessage methods in the
prototype
AsBroadcaster.initialize(MyButton.prototype) ;

// the methods of your custom class
MyButton.prototype.onRollOver = function ()
{
  if (this.onRelease != null || this.onPress != null)
  {
  this.broadcastMessage(click, this) ;
  }
}

// test

var listener:Object = {} ;
listener.click = function( target )
{
 trace( click :  + target ) ;
 functionName(param);
}

mc.__proto__ = MyButton.prototype ; // change the prototype scope of the
visual instance mc
MyButton.call(mc) ; // launch the constructor of the MyButton class over the
visual instance.

mc.addListener( listener ) ;

//

EKA+ :)


2007/3/28, Matheus Araujo [EMAIL PROTECTED]:


Hello coders...

I'm trying to create a MovieClip prototype function to all my MCs that are
buttons:

MovieClip.prototype.onRollOver = function (){
if (this.onRelease != undefined || this.onPress != undefined)




{

functionName(param);
}
}

The problem is that it doesn't work with the movie clips inside the ones
in
the first level...
Is there Any way to accsess these movie clips?

Thanks in advance
Matheus
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 prototype

2007-03-29 Thread eka

Hello :)

you can use VEGAS (http://vegas.riaforge.org/) my openSource framework for
example... with this class DisplayFactory and the method createChild or
attachChild :

1 - download the project on RIAForge or use a Subversion client like
TortoiseSVN to upload all the versionning project with the url :
http://svn1.cvsdude.com/osflash/vegas/

2 - install the AS2/trunk/src directory of the project in your Flash
classpath preferences...

3 - use my DisplayFactory class with your custom class... you can find an
example in the directory AS2/trunk/bin/test/vegas/util/factory with the file
DisplayFactory.fla :

http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/vegas/util/factory/

you can use too my vegas.util.ConstructorUtil class with the method
createVisualInstance() :

import vegas.util.ConstructorUtil ;

var mc1:MyButton = ConstructorUtil.createVisualInstance( MyButton , mc1 ) ;
var mc2:MyButton = ConstructorUtil.createVisualInstance( MyButton , mc2 ) ;

PS : my french tutorial to install VEGAS -
http://www.ekameleon.net/blog/index.php?2006/03/05/27--vegas-installation

If you work in AS2.. you can too create a custom class who extend MovieClip
and use a movieclip symbol in your library with the link parameters of the
symbol.

EKA+ :)






2007/3/29, Matheus Araujo [EMAIL PROTECTED]:


It worked... but just for the mc instance...

I have lots of MCs working as buttons on my movie
and I don't want to call the function on each button...

I need to have a listener to detect which MC has an
onRelease on it and set an onRollover function to them...

Is that possible?
thx


On 3/29/07, eka [EMAIL PROTECTED] wrote:

 Hello :)

 try this :

 // constructor of the class
 _global.MyButton = function()
 {
  trace( this +  constructor) ;
 }

 // inject addListener, removeListener and broadcastMessage methods in
the
 prototype
 AsBroadcaster.initialize(MyButton.prototype) ;

 // the methods of your custom class
 MyButton.prototype.onRollOver = function ()
 {
if (this.onRelease != null || this.onPress != null)
{
this.broadcastMessage(click, this) ;
}
 }

 // test

 var listener:Object = {} ;
 listener.click = function( target )
 {
   trace( click :  + target ) ;
   functionName(param);
 }

 mc.__proto__ = MyButton.prototype ; // change the prototype scope of the
 visual instance mc
 MyButton.call(mc) ; // launch the constructor of the MyButton class over
 the
 visual instance.

 mc.addListener( listener ) ;

 //

 EKA+ :)


 2007/3/28, Matheus Araujo [EMAIL PROTECTED]:
 
  Hello coders...
 
  I'm trying to create a MovieClip prototype function to all my MCs that
 are
  buttons:
 
  MovieClip.prototype.onRollOver = function (){
  if (this.onRelease != undefined || this.onPress != undefined)



 {
  functionName(param);
  }
  }
 
  The problem is that it doesn't work with the movie clips inside the
ones
  in
  the first level...
  Is there Any way to accsess these movie clips?
 
  Thanks in advance
  Matheus
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] How to find yesterday?

2007-03-27 Thread eka

Ooops... my method is the tomorrow method and not the yesterday .. but it's
the same :)

PS : If you want you can use my Calendar class based on my OpenSource AS2
framework (VEGAS : http://vegas.riaforge.org/)

1 - install the Vegas project in your computer with the direct download
button in the riaforge project page or with a SVN client likre tortoire SVN
... use the svn url : http://svn1.cvsdude.com/osflash/vegas/

2 - install in flash the AS2/trunk/src/ directory in the AS2 preferences

3 - test my Calendar class with the examples in the directory
AS2/trunk/bin/test/asgard/date :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/date/ (
Calendar.fla)

4 - You can read the class in this link :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/asgard/date/Calendar.as

I must refresh my documentation to night with the last change over the
libraries  ... http://vegas.ekameleon.net/docs

Example :

import asgard.date.Calendar ;

trace ( yesterday :  + (Calendar.yesterday()).format( -mm-dd) )
;
trace ( toDay :  + (new Calendar()).format( -mm-dd) ) ;
trace ( tomorrow  :  + (Calendar.tomorrow()).format( -mm-dd) ) ;

PS : The calendar class extends the Date class...


EKA+ :)

2007/3/27, eka [EMAIL PROTECTED]:


hello :)

try this :

var d:Date = new Date() ;
var oneDayInMS:Number = 1000*60*60*24 ;

var timestamp:Number = d.valueOf() ;

var yesteday:Date = new Date( timestamp - oneDayInMS ) ;

trace( d +  :  + yesteday ) ;

EKA+ :)

2007/3/27, natalia Vikhtinskaya [EMAIL PROTECTED]:

 I am looking for date object, but not sure it is possible

 cur_day = new Date();
 trace(cur_day)//Tue Mar 27 13:16:34 GMT+0400 2007
 //trace(cur_day.getDate());
 var1=cur_day.getDate()-1;//27
 trace(var1);//26
 so it is not date object

 2007/3/27, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 
  Is this simple?
 
  cur_day = new Date();
  //trace(cur_day.getDate());
  Var1=cur_day.getDate()-1;//27
  trace(var1);//26
 
  -Original Message-
  From: natalia Vikhtinskaya [mailto: [EMAIL PROTECTED]
  Sent: Tuesday, March 27, 2007 2:26 PM
  To: Flashcoders mailing list
  Subject: [Flashcoders] How to find yesterday?
 
  Hi
 
  How to find yesterday  as date object?
 
  cur_day= new Date();
  yest_day=?
 
  What is the simple way for that?
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] How to find yesterday?

2007-03-27 Thread eka

hello :)

try this :

var d:Date = new Date() ;
var oneDayInMS:Number = 1000*60*60*24 ;

var timestamp:Number = d.valueOf() ;

var yesteday:Date = new Date( timestamp - oneDayInMS ) ;

trace( d +  :  + yesteday ) ;

EKA+ :)

2007/3/27, natalia Vikhtinskaya [EMAIL PROTECTED]:


I am looking for date object, but not sure it is possible

cur_day = new Date();
trace(cur_day)//Tue Mar 27 13:16:34 GMT+0400 2007
//trace(cur_day.getDate());
var1=cur_day.getDate()-1;//27
trace(var1);//26
so it is not date object

2007/3/27, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Is this simple?

 cur_day = new Date();
 //trace(cur_day.getDate());
 Var1=cur_day.getDate()-1;//27
 trace(var1);//26

 -Original Message-
 From: natalia Vikhtinskaya [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 27, 2007 2:26 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] How to find yesterday?

 Hi

 How to find yesterday  as date object?

 cur_day= new Date();
 yest_day=?

 What is the simple way for that?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] timer question

2007-03-25 Thread eka

Hello :)

do you use the setInterval method ?

var cpt:Number = 0 ;

var action:Function = function ( msg )
{
  trace( msg ) ;
  if ( cpt ++ == 20 )
  {
  clearInterval(id) ;
  trace(stop the timer) ;
  }
}

var id = setInterval( action, 1, plus 10 seconds) ;

EKA+ :)

2007/3/23, Gustavo Duenas [EMAIL PROTECTED]:


Hi, I'm trying to launch an event using a timer so far the code for
trace something is this:

var now = new Date();

var seconds:Number = now.getSeconds();

trace(seconds);

var newSeconds: Number = seconds+10;

if ( seconds == newSeconds){
trace(plus 10);
}

var seconds:Number = seconds;



the problem is that this ones doesn't trace plus 10, instead just
traces the var seconds.

Do you know what is wrong here?


Regards.



Gustavo Duenas

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

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


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

2007-03-20 Thread eka

Hello :)

if you can change you DOM to create a localization pattern in your
application.. you can use my Eden localization model based on my OpenSource
framework (VEGAS : http://vegas.riaforge.org/) and the EDEN format (
http://code.google.com/p/edenrr/)

You can install my framework and use the Eden implementation based on VEGAS
:

0 - Download VEGAS or use a SVN client (like tortoiseSVN)

1 - install the vegas source project in the AS2 preference of Flash or if
you use MTASC add the AS2/trunk/src package.

2 - try the example based on Eden in the directory :
AS2/trunk/bin/test/asgard/system

http://svn.riaforge.org/vegas/AS2/trunk/bin/test/asgard/system/

The example Localization 02 -
Eden.flahttp://svn.riaforge.org/vegas/AS2/trunk/bin/test/asgard/system/Localization%2002%20-%20Eden.fla
use the EDEN external file :
http://svn.riaforge.org/vegas/AS2/trunk/bin/test/asgard/system/deploy/locale/localize_fr.eden

The Eden format is a format based on ECMAScript and ActionScript notation !
You must create a empty UTF8 text file and creates inside an easy object :)

For me this method is better like XML and this CDATA ;)

EKA+ :)


2007/3/20, Steven Sacks | BLITZ [EMAIL PROTECTED]:


Hey Flashcoders,

I'm having an issue with special characters not showing up from other
languages, such as German (ü, ö, etc.).  The issue is specifically with text
loaded in from XML.

The textfields are set to embed all latin glyphs (1076 glyphs, Uppercase,
Lowercase, Numerals, Punctuation, Latin I, Latin Extended A, Latin Extended
B, and Latin Extended Add'l).

All text is wrapped in CDATA tags.

I've tried saving the xml file with 8 bit and UTF-8 encoding and neither
works.

XML header is
?xml version=1.0 encoding=UTF-8 ?

If I set the text of the textfield with Actionscript to a string with
those characters in it, no problem, they all show up just fine.

// This works
txt.htmlText = wofür benötigen;

However, when I display it from the XML, they show up as regular o and u
characters.

// Does not work
item![CDATA[wofür benötigen]]/item

Any ideas?

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

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

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

2007-03-15 Thread eka

Hello :)

i don't coding with Flash Lite 2.1 but you can try my JSON implementation in
my openSource framework : http://vegas.riaforge.org/

http://svn.riaforge.org/vegas/AS2/trunk/src/vegas/string/JSON.as

EKA+ :)

2007/3/15, Pete Thomas [EMAIL PROTECTED]:


Hi Guys

Has anyone out there managed to successfully implement a JSON interface
with
Flash Lite 2.1 using AS2

I got both AS1 and AS2 versions from json.org but I get Bad String failure
when publishing Flash Lite player (fine in player 7). I'm thinking this is
either a glitch or something in the code that is not supported. But as yet
have not found it...

Any help appreciated

Pete

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.11/722 - Release Date:
14/03/2007
15:38


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How to read variables from file into an array.

2007-03-09 Thread eka

Hello :)

false ... JSON is more fast than XML in ActionScript ;)

You can use JSON or EDEN :

In my OpenSource framework (VEGAS) you can find JSON and EDEN implementation
... more speed, and keep the type of the properties (in xml you must check
the string and transform the type after the parsing)

The Eden page project : http://code.google.com/p/edenrr/

Vegas my OpenSource framework : http://osflash.org/vegas or
http://code.google.com/p/vegas/

The SVN directory of the project : http://svn1.cvsdude.com/osflash/vegas/

The examples in http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/

The JSON examples (JSON 01.fla and JSON 02.fla) :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/vegas/string/
The Eden examples :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/buRRRn/eden/

The tools in the ASGard Extension to use JSON and EDEN :

- http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/net/ (
JSONLoader.fla and EdenLoader.fla)
- http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/config/ (
a config tool for your applications)
- 
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/system/(Localization
02 -
Eden.fla)

For me ... the xml is really a no-ECMAScript solution to use external datas
with Flash ;)

EKA+ :)



2007/3/9, Merrill, Jason [EMAIL PROTECTED]:


Why not using JSON? I haven't used it yet but this seems like
a good opportunity from the examples I've studied.

Because JSON is Javascript and more suited for AJAX applications - IMO
it would take a lot more work using JSON in Flash than XML to get it
working in Flash while achieving the same outcome.

Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team



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

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


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

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


Re: [Flashcoders] sortable map structure

2007-03-01 Thread eka

Hello :)

in vegas you can use vegas.data.map.ArrayMap class (AS3 library) ... this
ArrayMap is a HashMap with two arrays to store the keys and the values...

http://svn.riaforge.org/vegas/AS3/trunk/src/vegas/data/map/ArrayMap.as

The HashMap class in the AS2 version of VEGAS is the same class like the AS3
version.

In AS3 version of the vegas.data.map package the ArrayMap class replace the
AS2 HashMap class ;)

If you want use a ArrayMap with a value with multiple values... (the value
is a collection) you can use the MultiHashMap class (based on the Java
Jakarta implementation) :

http://svn.riaforge.org/vegas/AS3/trunk/src/vegas/data/map/MultiHashMap.as

For the moment i use a HashMap in the MultiHashMap but you can extends this
class and use a ArrayMap.

The AS3 version of vegas is in progress... i want finish the AS2 version
before.

 i write in AS2 for the moment a TreeMap implementation of the TreeMap
java class but this work is in progress... when the AS2 version will be
finished, i think write the AS3 and SSAS version

If you read the source code of my ArrayMap class .. you can extend the
methods and sort the values

EKA+ :)

2007/3/1, Davor Bauk [EMAIL PROTECTED]:


Hello,

I'm looking for a structure for AS3 that can store values in a way that
they are sortable (like in an array) as well as accessible by key of any
type (such as a string).
I've looked through the VEGAS (http://vegas.riaforge.org/) framework but
I couldn't find what I'm looking for.

Can anyone recommend such a structure?

thanks,
Davor
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] sortable map structure

2007-03-01 Thread eka

Hello :)

My vegas.data.map.HashMap AS3 version is based on the Dictionnary object but
you can't sort the values and the keys of the map with this object.

EKA+ :)

2007/3/1, Wagner Amaral [EMAIL PROTECTED]:


Maybe you're looking for the Dictionary Object?
http://www.gskinner.com/blog/archives/2006/07/as3_dictionary.html



On 3/1/07, Davor Bauk [EMAIL PROTECTED] wrote:

 Hello,

 I'm looking for a structure for AS3 that can store values in a way that
 they are sortable (like in an array) as well as accessible by key of any
 type (such as a string).
 I've looked through the VEGAS (http://vegas.riaforge.org/) framework but
 I couldn't find what I'm looking for.

 Can anyone recommend such a structure?

 thanks,
 Davor
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] load jpg/gif to player 6 AS1?

2007-02-19 Thread eka

hello :)

in the FP6 and  you can load gif or png... you must use PHP to transform
the picture server side :
http://www.quasimondo.com/archives/000407.php

EKA+ :)

2007/2/19, Arseniy Shklyaev [EMAIL PROTECTED]:


loadMovie(../widegames/scrnshots/bladeofinnocence.gif,
screenshot);flashcoders@chattyfig.figleaf.com
When I publish it to player 8 AS1 it works. When I publish to player 6 AS1
it not works.
I have help for Flash MX and seems there is the same way.
Need to load screenshots into some movieclip on stage.
my old games works published to 6 player AS1
flashcoders@chattyfig.figleaf.com
--
-Arseniy Shklyaev
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Linked library in loaded swf file

2007-02-19 Thread eka

Hello :)

you must use a shared library.. the best way to use it, it's Swfmill (the
opensource swf builder based on XML)

Example of use :
http://www.deja-vue.net/blog/2006/05/26/as2-sharedfonts-datagrid-example-the-last-stand/

The example try to use shared fonts with SWFMill but you can shared sounds,
movieclips etc...

EKA+ :)

2007/2/19, Coffield, Jim [EMAIL PROTECTED]:


Hi,

I have a flash movie that under various circumstances loads external .swf
flies. Is it possible to access the library of the loaded .swf file.

I have some sound files in the library of the loaded .swf file. The sound
files have the linkage set so that my_sound.attachSound works when the
.swf
file that I am loading is run separately.

But when I load the .swf file into the main movie, the attachSound does
not
work.

Thanks,

Jim Coffield

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

2007-02-17 Thread eka

Hello :)

you can try

_root._lockroot = true ;

?

EKA+ :)

2007/2/17, Hans Wichman [EMAIL PROTECTED]:


So, any ideas anyone? This 'feature' kinda messes up the whole system atm
...

thanks in advance
JC


On 2/14/07, Hans Wichman [EMAIL PROTECTED] wrote:

 Hi,
 in an application I am working on, I was 'forced' to use _lockroot
(until
 the architecture can be reevaluated:))).

 So assume main loads sub into a path _root.sub and sub has _lockroot to
 true.
 If I trace _root from sub, it prints _level0.sub as it should.
 However when I load sub for the second time (with different parameters),
 _root stops pointing to _level0.sub and reverts back to _level0.

 Even more strange, sub initializes some webservices and if i do:
 trace 1:+_root
 var myWS = new webservice
 myWS.onSuccess = onSuccess

 onSuccess = function () {
 trace 2:+_root
 }

 It will print:
 1:_level0.sub
 2:_level0.sub
 the first time sub is loaded, and
  1:_level0.sub
 2:_level0
 the second time.

 Has anyone seen this behavior before?

 greetz
 JC






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

2007-02-17 Thread eka

Hello :)

flashDevelop work in Mac ?

For me the best Flash Editor is Eclipse + FDT but fdt is free only if you
develop an OpenSource projet...

EKA+ :)

2007/2/17, dr.ache [EMAIL PROTECTED]:


Hi Pedr.

My editor of choice is FlashDevelop[www.flashdevelop.org]. Its
absolutely easy to
install and handle. Give it a try!

dr.ache



pedr browne schrieb:
 Hi,

 Just wondering what AS editors people were using? I love sepy but
 can't get
 it to run without errors on my intel mac. Does anyone have a good
 alternative?

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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: for...in property access replacement in AS3?

2007-02-16 Thread eka

Hello :)

my article about the for..in enumeration in AS3 vs AS2 in french ...

http://www.ekameleon.net/blog/index.php?2007/01/30/60-as2-vs-as3-enumerations-avec-un-forin

but you can Bablefish or google translator to translate the article and the
ActionScript is ActionScript :)

You must use a dynamic class to enumerate the content with for..in and not
use public var declaration of the properties !

EKA+ :)

2007/2/16, Matt Garland [EMAIL PROTECTED]:


Thanks Mike, you are the man.

I didn't use setPropertyIsEnumerable, because adding that for every
property would be as much typing as writing a custom conversion
function.

But describeType, that's the trick. It converts class info into XML.
Info is easily accessible with EX4 syntax, one of the many things
that makes AS3 a joy.

Message: 17
Date: Thu, 15 Feb 2007 21:24:28 -0800
From: T. Michael Keesey [EMAIL PROTECTED]
Subject: Re: [Flashcoders] for...in property access replacement in
AS3?
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=UTF-8; format=flowed

You can use Object.setPropertyisEnumerable(propName).

flash.utils.describeType() might be another way.

--
Mike Keesey

On 2/15/07, Matt Garland [EMAIL PROTECTED] wrote:

 Hi,

 I'm converting some AS2 code to AS3. The code manipulates several
 big, complicated data containers to produce an animation.

 In AS2, the data container was a vanilla object. In AS3, for
 performance gains, I turned these containers into several classes.

 The problem is, at various points, I am transferring all the values
 from one container to another. The variables have the same names, but
 the data containers are different. For instance, in the first
 container, there are points. In the second container,the
 corresponding points are actually a subclass of points, one with more
 properties.

 Before, I could just lay the two containers side by side, then use
 recursive for...in loops to transfer all the values. But for...in
 loops don't work for class instances in AS3. Class info is baked into
 the compiled class, and no longer stored in a memory- and cycle-
 wasting object hash.

 What to do?

 Anyway I can access the compiled class info (looping through a
 class's properties), or is that contra the entire point of AS3?

 Save me from writing a long, convoluted one-off conversion function.

 Thanks

 Matt

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 9 standalone - no fullscreen on Linux

2007-02-15 Thread eka

Hello :)

Can you explain the code use to create a fullscreen mode in linux ?

In you web HTML page do you use the property allowFullScreen with the true
value ?

EKA+ :)

2007/2/15, August Gresens [EMAIL PROTECTED]:


Hello

We're developing a kiosk that needs to run on Linux full screen.

The gold release of Flash Player 9 does not support this feature on
Linux.

Is there  a workaround for this problem -  running the Plugin in a browser
that is in full screen mode?

Thanks,

August

--
-


August Gresens
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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

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


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

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


Re: [Flashcoders] Anyone hate flash 9 already?

2007-02-13 Thread eka

Hello :)

Flash 9 ? or AS3 ?

Flash 9 is only in alpha version... We can't hate Flash9 because don't exist
lol

AS3 is the best solution for the moment to develop web  richmedia
application for me ! But we can't compare FP9, flash9 and AS3 ...

EKA+ :)

2007/2/13, Arseniy Shklyaev [EMAIL PROTECTED]:


Why to be specific in such a question?
I just dont like flash more and more. Intuitive feel.
Perhaps cuz I do only games...

On 2/13/07, Alias™ [EMAIL PROTECTED] wrote:

 Could you be more specific as to why one might do so?

 Curious,
 Alias

 On 13/02/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:
  Anyone hate flash 9 already?
 
  --
  -Arseniy Shklyaev
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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




--
-Arseniy Shklyaev
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading images directly to BitmapData in AS2?

2007-02-13 Thread eka

Hello :)

you must load with loadMovie or MovieClipLoader you external picture ... not
solution in AS2 to load a dynamic picture in the BitmapData class only.

EKA+ :)

2007/2/13, Henry Cooke [EMAIL PROTECTED]:


Hey all,

It it possible to load an image (PNG/JPG) directly into memory or (even
better) a BitmapData object without having to faff about loading it into a
MovieClip first, in AS2? I've been poking about a bit, but nothing seems
immediately obvious (disclaimer: I am recovering from a nasty bout of flu,
so brain may not be working properly).

Cheers,
h.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Adding a function to the String prototype

2007-02-13 Thread eka

Hello :)

If you use the strict typing with var s:String you use the AS2 class
interpretor and you must override the String.as file in the
en/firstRun/classes/FP8 directory in your flash install path.

The intrinsic of the String core class must be changed by default in AS2.
The String class isn't dynamic !

For me if you want overrides your Core Objects in think you can use Core2 :
http://code.google.com/p/core2/

This library implement all ECMAScript methods in the core class (Array,
String, etc...). In the AS2 version you can use the custom intrinsic class
of Core2 for example to compare the Adobe class and the Core2 class.

eKA+ :)






2007/2/13, Pete Miller [EMAIL PROTECTED]:


I thought this was as easy as:

String.prototype.traceFoo = function():Void {
trace(foo);
}
var s:String = new String();
s.traceFoo();


But that results in an error, There is no method with the name
'traceFoo'.  Well, duh, traceFoo doesn't exist until the code executes,
but how do you tell the compiler that?  How does one add a function to
String?

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

2007-02-04 Thread eka

Hello :)

try this code :

class Component extends MovieClip
{

 // constructor
 function Component()
 {

 }

 / Init AsBroadcaster

 static private var _INIT_BROADCASTER_ =
_global.AsBroadcaster.initialize( Component.prototype ) ;

 public var addListener:Function ;
 public var broadcastMessage:Function ;
 public var removeListener:Function ;

 /

 public function onPress():Void
 {

   // your code
  this.broadcastMessage( onClick , this) ;

 }

}

If you want use a method inside the class... no problemo but now if you want
use a listener and a movieclip who extend this class :


var mc:MovieClip ; // the movieclip in the _root for example

// Inherit the custom class
mc.__proto__ = Component.prototype ;
Component.prototype.call(mc) ;

mc.addListener(this) ;

this.onClick = function ( target:MovieClip )
{
 trace( click  : target ) ;
}

If you want a better solution .. you can use my openSource framework VEGAS (
http://vegas.riaforge.org/ )  and the package vegas.util.factory.. in this
package you can find the class DisplayFactory :

http://svn.riaforge.org/vegas/AS2/trunk/src/vegas/util/factory/DisplayFactory.as

If you want test this class..

1 - download vegas

2 - install in your actionscript preference (in flash) the classpath of
vegas in AS2/trunk/src

3 - Test the examples in AS2/trunk/bin/test/vegas/util/factory :

http://svn.riaforge.org/vegas/AS2/trunk/bin/test/vegas/util/factory/

You can use the composition pattern and not the extend pattern to control a
movieclip... in my framework you can use the DisplayObject AS2 class in the
asgard.display package.

EKA+ :)


2007/2/4, David Cohn [EMAIL PROTECTED]:


Hey all,

Is it possible to use a class extends MovieClip on a pre-existing
(authored) MovieClip?
I'd like to seamlessly do something like:

class blah extends MovieClip {

public function blah() {
this.onRelease = function() {
// handle release here
};
};
};

... but I can't see how to set this up (I'm using ActionScript 2.0,
but is there a 3.0 only solution?).

If not, what do people think is the most elegant way to handle this,
e.g.:

class blah {

public function blah( caller:MovieClip ) {
caller.onRelease = function() {
(blah instance).handleRelease();
};
};

public function handleRelease() {
// handle release here
};
};

...I'd like to make this as seamless as possible for the graphic
designers.

Thanks,
--Dave

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

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


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

2007-02-01 Thread eka

Hello :)

you must creates benchs to test all solutions but the first is the sort()
method with a custom method

var myArray:Array = [
   [20,40],
   [20,10],
   [30,15],
   [30,35],
   [40,100],
   [1000,1]
];

var compare:Function = function ( a , b )
{

 if ( a[1]  b[1] )
 {
   return -1 ;
 }
 else if (a[1]  b[1] )
 {
   return 1 ;
 }
 else
 {
  return 0 ;
 }
}

trace(myArray) ;

myArray.sort( compare ) ;

trace(myArray) ;

I think the Actionscript in FP8 or FP9 really speed !

EKA+ :)

2007/2/1, [EMAIL PROTECTED] [EMAIL PROTECTED]:




Hello,

Can anybody tell me how to sort the following array based upon the second
value
within each array item

myArray:Array = [ [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];

this should be something like

[[1000,1], [20,10], .

Faster the better cos its for a game and gets called a lot of times.


regards

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] JSON vs. XML for CDROM configuration

2007-01-30 Thread eka

Hello :)

I use Eden (Ecmascript data exchange notation) write by zwetan to creates
config in my application.

For the moment the Eden page project is down in http://www.burrrn.com/ but
you can try this library in my opensource framework with a little version :

VEGAS my openSource project : http://vegas.riaforge.org/

1 - install the sources (SSAS for Flash Media Server, or AS2 or AS3 in the
src directories.

Example : the AS2 version in the Subversion :

The buRRRn package based on VEGAS and not Core2 :
http://svn.riaforge.org/vegas/AS2/trunk/bin/test/buRRRn/eden/
The config and localization tools in my extension ASGard :

  - config :
http://svn.riaforge.org/vegas/AS2/trunk/bin/test/asgard/config/ (you can
find a JSON config tool too...)
 - localization :
http://svn.riaforge.org/vegas/AS2/trunk/bin/test/asgard/system/(Localization
02 -
Eden.fla)

For me Eden is the best with all primitives and you can instanciate your
custom class etc... I wait the final documentation of this framework.

You can download for the moment the original ASTuce (unit tests) , Core2
(extends the core objects in JS, AS2, AS1, SSAS etc... with ecmascript
tools), and Eden write by zwetan in this web page :
http://download.burrrn.com/

EKA+ :)

2007/1/30, Paul Steven [EMAIL PROTECTED]:


Thanks Ian for the useful advice. I would appreciate your thoughts and
indeed the thoughts of anyone else,  on my use of a config file for this
project.

Not sure if a config file is the best solution for what I am doing.
Basically the CDROM consists of 60 separate pages / sections. I have just
used 60 labels on the timeline for these

e.g

1_1
1_2
2_1
2_2
Etc

I have not created separate swf files for each of the 60 sections as the
content of most sections is simply a video clip or one sentence of text. I
therefore thought it was more manageable to keep all the sections within
one
flash movie. All video clips are external flv files.

I have also set up the navigation menu like this, with 60 labels.

The idea of using a config file is to set various things for each section
such as:

What video clip to play
The Page title
Which label of the navigation menu mc to display
Which buttons to display e.g forward / backward
Which label to navigate to when any button is clicked
Assign actions to visible buttons

etc

The idea of doing it this way is to prevent there being lots of code in
all
the 60 labels across the timeline.

Hence the configuration file would have details of what actions to take
upon
arriving at each of the 60 sections.

Does the above solution sound like the right way to go? Or can you suggest
a
better solution. The application is PC only and is being developed with
Flash 8.

Thanks

Paul





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 30 January 2007 08:27
To: Flashcoders mailing list
Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

We've had absolutely no problem reading text files from CD-ROM using Flash
8. :-)

XML/JSON wouldn't be any faster to read in.

I'd choose XML if you had a much more complex configuration task that
needed
lots of nested config (unlikely unless you've got a huge sprawling app -
you
can handle most situations by choosing your key=value keynames
appropriately) or if your config involved chunks of (possibly unicode)
textual data.

I wouldn't use JSON for configuration as I find it far less readable -
it's
primarily a serialisation/data interchange format rather than a
configuration file format. Additionally, it ties you to a particular
implementation/data layout in your app; whereas if, for whatever reason,
you
wanted other apps to read your key/value pairs plain text file (for
example,
for patching or updating or simply cataloguing) then it's very
straightforward.

Cheers,
  Ian

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

 Hmm good point Ian.

 Any reason why people would use xml or json files rather than plain
text?
 Ease of editing, speed of loading etc?

 With regards security implications, just wanted to be sure there was no
 problem reading data from the CDROM as I am sure I read somewhere about
 some
 issue that arised with Flash 8.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
 Sent: 30 January 2007 08:08
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

 Um - surely there's a third option, which is plain text? It does depend
 what
 you're configuring, but our external configuration files look like
 java.properties files:

 language=en
 useDirectX=true

 etc. etc.

 We just read them in using LoadVars (overriding onData) and parse them.
 Very
 straightforward.

 Security implications etc. - well, that entirely depends what you're
 trying
 to protect against, and what info you're putting in the configuration
 file.
 In general, if the config file is on the CD itself, it's unchangeable,
so
 I

Re: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread eka

Hello :)

Flash paper is dead... Apollo is the next big project of Adobe and replace
for me FlashPaper to display books etc. With apollo you can display a PDF or
a HTML page in a MovieClip.

For me Digital Edition is baed on Apollo :
http://labs.adobe.com/technologies/digitaleditions/

In 6 month or 1 year this player for me is the better :)

Now with FlashPaper you can't do nothing... FlashPaper use static text
inside with the TextSnapShot class (read the Flash documentation about this
class). But FlashPaper is based on Macromedia V1/2 components (lots of bug
inside !)

If you want create dynamic documents the best way is a dynamic flipbook :
http://www.page-flip.com/?c=12kw=book-flipgclid=COi63uqViYoCFR8OZwod6gv9eQ

EKA+ :)


eKA+ :)

2007/1/30, nelson ramirez [EMAIL PROTECTED]:


Yeah I normally do the same. but sometimes there are issues with the
safari
browser on macs.
Plus , i really like flash paper, I guess i'm more wondering wether it can
be done or if there are any better methods than the standard way.

thanks

On 1/30/07, Joseph McHeffey [EMAIL PROTECTED] wrote:

 I normally just create a new movieclip and set it up
 with the questions/answers the way that it should
 print.

 Then I just use print(my_mc);


 --- nelson ramirez [EMAIL PROTECTED] wrote:

  So I have this quiz app that at the end allows the
  user to print out their
  answers with results plus some static content.
  We normally use Flash paper for printing the static
  assets. I was wondering
  if there's a way to incorporate the dynamic user
  answers into the static
  flash paper print content.
 
  Does anyone have any experience with this or perhaps
  a better approach?
 
  thanks in advance,
 
  -NR
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the
  archive:
 
 http://chattyfig.figleaf.com/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 PS3 game guru.
 Get your game face on with the latest PS3 news and previews at Yahoo!
 Games.
 http://videogames.yahoo.com/platform?platform=120121
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] - dynamic content for flash paper?

2007-01-30 Thread eka

hello :)

About apollo :

read :

http://blogs.zdnet.com/Stewart/?p=234
http://blog.digitalbackcountry.com/?p=75
http://casario.blogs.com/mmworld/2006/10/load_html_pages.html
http://labs.adobe.com/wiki/index.php/Apollo:DeveloperFAQ

watch : http://video.google.com/videoplay?docid=1551903488172905143

For me with this tools you can create HTML/AJAX/AS3/FLEX/PDF projects in
Linux/OSX/Windows with all tools to creates rich media application.

EKA+ :)

2007/1/30, Merrill, Jason [EMAIL PROTECTED]:


Flash paper is dead... Apollo is the next big project of
Adobe and replace for me FlashPaper to display books etc.

Uh, isn't Apollo going to be a desktop app though?  I understand how
Apollo can render HTML and connect to the internet and the like, what
about users running IE or Firefox?  Wouldn't Flashpaper still be
useful???  I don't understand your argument I suppose. Can you clarify?

Jason Merrill
Bank of America
Learning  Organizational Effectiveness




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] - dynamic content for flash paper?

2007-01-30 Thread eka

helo :)

I think it's very really interesting to speak about the futur of Flash/FLEX
and AS3 ... if you want only ask a question and don't speak about the
question of the future of the Flash technology .. sorry

Now FlashPaper don't work in AS3... and you can't modify the content.

I Use FlashPaper in FMS application with a sharing display of the internal
component in the FlashPaper swf and this component is bugged and very
limit.

Now for me in AS2, i repeat, the good solution is to use a custom flip book
with dynamic content. You can load in a MovieClip : swf/jpg/png/gif/external
datas... FlashPaper is just a little tool with a bad API.

For me if you want extend the FlashPaper.. use ActionScript and external
tools (PHP/JAVA/etc...) and you must create your application. Work with
FlashPaper it's a waste of time.

PS : sorry for my english ... I have evil to render comprehensible my
comment.

EKA+ :)

2007/1/31, Merrill, Jason [EMAIL PROTECTED]:


About apollo :

read :

LOL.  I think you need to read those very links you sent.  Apollo
targets operating systems (Windows and Mac), not browsers.   People
using browsers will not use Apollo in the browser.  Apollo is a desktop
app you download and install, which can load in RIAs.  It's not a
plugin/player.  So Flashpaper will still be used for people not using
Apollo.

For me with this tools you can create HTML/AJAX/AS3/FLEX/PDF
projects in Linux/OSX/Windows with all tools to creates rich
media application.

That statement is irrelevant to my question.  Please answer my question
and explain how this is a Flashpaper killer.

Jason Merrill
Bank of America
Learning  Organizational Effectiveness







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eka
Sent: Tuesday, January 30, 2007 6:02 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] - dynamic content for flash paper?

hello :)

About apollo :

read :

http://blogs.zdnet.com/Stewart/?p=234
http://blog.digitalbackcountry.com/?p=75
http://casario.blogs.com/mmworld/2006/10/load_html_pages.html
http://labs.adobe.com/wiki/index.php/Apollo:DeveloperFAQ

watch : http://video.google.com/videoplay?docid=1551903488172905143

For me with this tools you can create HTML/AJAX/AS3/FLEX/PDF
projects in Linux/OSX/Windows with all tools to creates rich
media application.

EKA+ :)

2007/1/30, Merrill, Jason [EMAIL PROTECTED]:

 Flash paper is dead... Apollo is the next big project of
Adobe and
 replace for me FlashPaper to display books etc.

 Uh, isn't Apollo going to be a desktop app though?  I
understand how
 Apollo can render HTML and connect to the internet and the
like, what
 about users running IE or Firefox?  Wouldn't Flashpaper still be
 useful???  I don't understand your argument I suppose. Can
you clarify?

 Jason Merrill
 Bank of America
 Learning  Organizational Effectiveness




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

2007-01-29 Thread eka

Hello :)

If you can wait between 6 and 12 months... Apollo the project of Adobe can
display HTML pages in a MovieClip :)

EKA+ :)

2007/1/29, vipin chandran [EMAIL PROTECTED]:


Hi All,

I am in search for  a good and faast html or xhtml rendering engine for
using in my project.
I have tried Deng, but the rendering is too slow.

Anyone has any idea about such a tool? a component? or a class?


Thanks in advance...

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

2007-01-27 Thread eka

hello :)

the float number are a problem in Actionscript :)

you can read this article
http://en.wikipedia.org/wiki/Floating-point_numberabout this problem.

If you want fixed this problem you can use the NumberUtil class of my
openSource framework VEGAS :

1 - the page of the project to download the AS2 : framework
http://vegas.riaforge.org/

2 - Use  a Subversion(SVN) client to download the framework or download the
zip

3 - install the classpath ol vegas in your flash IDE in the preference -
ActionScript2 preference ... add the AS2/trunk/src directory

4 - Use the NumberUtil class, example :

import vegas.util.NumberUtil ;

var result = Number(NumberUtil.toFixed(9.3 - 9, 1)) ;
trace(result) ; // 0.3

var result = Number(NumberUtil.toFixed(100.3-100, 1)) ;
trace(result) ; // 0.3

EKA+ :)


2007/1/27, ntasky [EMAIL PROTECTED]:


Hi,

I'm kind of disapointed :
trace (1.3-1) // traces:0.3
but :
trace (9.3-9) // traces: 0.301
trace (100.3-100) //traces: 0.297
...
is there a way that it can traces always 0.3 has it should be normal ?

thx

N.

--
Nicolas TASKY
conseil, analyse et développement multimédia
ntasky.com - (514) 839-6426

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

2007-01-26 Thread eka

Hello :)

1 - eq keyword is depreciated !! don't use eq but the == operator :)

if ( x == 2)
{
   // do it
}

2 - to move a movieclip, a simple example :

// the speed of the move
var speed = 10 ;

// the max x position
var xMax = 500 ;

mc.onEnterFrame = function()
{
 this._x += speed ;
 if ( mc._x   xMax )
 {
   delete this.onEnterFrame ;
 }
}

3 - better solution if you use the Tween class (exist in FlashMX2004 and
Flash8 with a FP7 or FP8 compiler in AS2), you can find this class in the
documentation of flash 8 in the reference of the components. Example :

import mx.transitions.Tween ;
import mx.transitions.easing.* ;

var tw:Tween = new Tween( mc , _x, Elastic.easeOut, mc._x , 500 , 24 ) :
tw.stop() ;

mc.onPress = function
{
   tw.start() ;
}

You can use the Elastic, Bounce, Back, Expo, etc.. class to launch the
interpolation with a custom easing effect :)

The tween class is the work of robertpenner : http://www.robertpenner.com

EKA+ :)

2007/1/26, Gustavo Duenas [EMAIL PROTECTED]:


hi, this is code:



this.onEnterFrame = function(){
if (this.myLoader._x eq this.myLoader._x-1){
delete onEnterFrame;

}
else{ this.myLoader._x-=2;
}
}


I'm trying to move this loader created by code and it looks ok, it
moves, but it doesn't stop,
I hope you might know what I'm doing wrong, you are my last resource.


Regards


Gustavo Duenas




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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Shorhand for if statement without else statement

2007-01-26 Thread eka

hello :)

I don't understand you question ? why you don't use the if keyword ?

if ( isNaN(x) ) x = 0 ;

you can use the || operator too

function write ( txt )
{
   var message = txt || empty message ;
   trace(message) ;
}

write(hello) ; // output : hello
write() ; // output : empty message

if you use the cond?true:false operator to return a true value... you can
use directly the condition with the object.

if ( myObject )
{
   trace(myObject exist !!!) ;
}

myObject is true if is defined and false if is undefined.

EKA+ :)

2007/1/26, Helmut Granda [EMAIL PROTECTED]:


does anybody knows if there is any short hand for if statement without the
else statement?

at the moment I am using

object ? true : null;

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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Shorhand for if statement without else statement

2007-01-26 Thread eka

Hello :)

warning with the Boolean( o ) if your object is a number... the Boolean(0)
is false but :

var n = 0 ;

trace(Boolean(n)) ; // false

When you test a number the isNaN(n) is better i think :)

EKA+ :)

2007/1/26, Helmut Granda [EMAIL PROTECTED]:


thanks everyone for your comments, yes in reallity I use the regular if
{}else{} statement, but I was wondering if there was something similar to
when you dont need the else statement, sort of testing on the fly

but i think Mark made a good comment on use a return Boolean ( object );

I dont know why i figured that the shorthand was something most people
were
used to and using already...

...helmut

On 1/26/07, John Mark Hawley [EMAIL PROTECTED] wrote:

 For that specific example, you can usually turn lines like

 return object ? true : null;

 into

 return Boolean( object );

 as long as object != 0 and your code doesn't mind getting a false
instead
 of a null. Most objects, as long as they exist, evaluate to Boolean
true.

 Really, though, the ternary operator is confusing enough as is. It tends
 to be a lot easier to read and maintain plain old if-statements in the
long
 run.

 -John Mark Hawley


 
  From: Helmut Granda [EMAIL PROTECTED]
  Date: 2007/01/26 Fri PM 03:01:25 CST
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] Shorhand for if statement without else
statement
 
  does anybody knows if there is any short hand for if statement without
 the
  else statement?
 
  at the moment I am using
 
  object ? true : null;
 
  thanks...
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 --
 John Mark Hawley
 The Nilbog Group
 773.968.4980 (cell)

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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: RE: [Flashcoders] how to tell if you're running in the ide

2007-01-26 Thread eka

Hello :)

With VEGAS my openSource framework you can use my vegas.logging package :

Page project : http://vegas.riaforge.org/
Example : in the souces in the AS2/trunk/bin/test/vegas/logging package

1 - use a log library to create channels to debug you application with muli
external targets (trace, SOS console, Firebug, FlashInspector etc..)

You can enabled or disabled you logs when you want :)

My log model is based on the AS3 mx.logging framework in Flex2 SDK (
polymorphism but not the same implementation in the class, i use bubbling
events to propagate the logs)

2 - use the class asgard.system.Application to determinates if you are in a
web application, standalone or flash ide application etc...
http://svn.riaforge.org/vegas/AS2/trunk/src/asgard/system/Application.as

ASGard in an extension of VEGAS :)

example :

import asgard.system.Application ;


if ( Application.isFlashIDE() )
{
// initialize log model
}
else
{
  // do nothing !
}

EKA+ :)

2007/1/26, John Mark Hawley [EMAIL PROTECTED]:


You can also set up your code along these lines:

var inTestMovie:Boolean = false;
trace( inTestMovie = true );

if (inTestMovie)
{
// do wacky test movie stuff
}
else
{
// do normal stuff
}

Then you can just turn off trace statements when you want to see the
'normal' behavior, and leave them on when you want your 'test movie'
behavior. You're probably turning off trace statements on your deliverables
anyway.

If you do a done of stuff like this, though, it might be best to use a
preprocessor on your source and have it dump out two different code branches
for you. (I don't have any recommendations on AS preprocessors; I had to
throw one together in Perl at work myself.)

-John Mark Hawley



 From: Chuck Hoffman [EMAIL PROTECTED]
 Date: 2007/01/26 Fri AM 08:59:59 CST
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] how to tell if you're running in the ide

 I've occasionally used the trick of checking whether this._url begins
 with file:  Doesn't exactly tell you if you're running in the IDE, but
 does tell you whether it's running locally on your machine or in a
 browser, from a web server.


CHUCK HOFFMAN
 PROGRAMMER
 T8DESIGN.COM | P 319.266.7574 - x150 | 877.T8IDEAS | F 888.290.4675


 This e-mail, including attachments, is covered by the Electronic
 Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and
 may be legally privileged. If you are not the intended recipient, you
 are hereby notified that any retention, dissemination, distribution, or
 copying of this communication is strictly prohibited. Please reply to
 the sender that you have received the message in error, and then please
 delete it. Thank you.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Josh
 Santangelo
 Sent: Thursday, January 25, 2007 8:41 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] how to tell if you're running in the ide

 Is there a way for a SWF to know if it's running in the test movie
 environment vs the browser or standalone players? I often have a need
 to compile in different settings in test-movie than I do for
 deployment, and have to manually remember to take them out before
 shipping a build. Or is there a more elegant way to handle that sort
 of thing?

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


--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Shorhand for if statement without else statement

2007-01-26 Thread eka

Hello :)

In FDT for example : cond ? methodA() : methodB() failed :)

The operator cond ? true : false is used to return a value but isn't really
the good solution to launch method i think :)

EKA+ :)


2007/1/26, Steven Sacks | BLITZ [EMAIL PROTECTED]:


 does anybody knows if there is any short hand for if
 statement without the else statement?

1. You can remove the braces.

I always use:
if (true) something();

But rarely use:
if (true) something();
else somethingElse();

because it can get lost visually in code.


2. Inline conditional

I use this all the time.
val = (boolean) ? trueVal : falseVal;


3. Inline or conditional

val = (if true) || (if not true)

This one is a little different than the inline conditional.  val will be
set to what is left of the || if what is left of the || resolves true
(i.e. not 0, undefined or null), otherwise it will be set to what's to
the right of the ||.

You can also use these without setting a variable.

// If boolean is true, call funcA, else call funcB.
(boolean) ? funcA() : funcB();

// if funcA returns false, run funcB()
funcA() || funcB();


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

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


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

2007-01-25 Thread eka

Hello :)

you can use my openSource framework VEGAS : http://vegas.riaforge.org/

the AS2 logging tool in the vegas.logging package is based on the
mx.loggingAS3 framework :)

You can try the examples in the AS2/trunk/bin/test/vegas/logging directory
of the Subversion.

My framework is MTASC and FDT compatible.

EKA+ :)

2007/1/25, Andy Herrman [EMAIL PROTECTED]:


I'm looking for a good logging library compatible with Flash 7 along
the lines of log4j.  I found this one, which looks exactly like what I
want:

http://code.audiofarm.de/Logger/

but it won't build with MTASC (works fine in the FlashIDE though).
Does anyone know if there's a version of it that works with MTASC, or
other similar libraries that do?  I saw log4f, which is an extension
of the one I found, but it looks like the extensions were all for
Flex, which I don't use.

What do you all use for logging?  Up till now I had my own simple
logging classes written, but I keep finding myself extending it, and
I've gotten to the point where it would be better to find a full
logging solution instead of continuing to work on mine (originally
mine was really simple, but keeps getting more and more complicated).

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

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


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

2007-01-25 Thread eka

Hello :)

With my licence you can do commercial, free application etc.

You can use an other licence with my framework and your work keep this
licence ;) For me openSource if open ... the objective is to considerate
my work and the time passed to implement the libraries :)

No problem to use VEGAS in your applications ;)

EKA+ :)


2007/1/25, Andy Herrman [EMAIL PROTECTED]:


I looked at VEGAS actually, but wasn't sure whether I could use it.
I'm not really clear on how the Mozilla license handles linking.
Specifically, if I don't modify any of the VEGAS code and simply use
its classes and such in my own code, does my code have to fall under
the MPL?  I couldn't really tell from reading the license.  If it will
require my code to be MPL (or any other open source license) I won't
be able to use it, as the company isn't going to allow that.

   -Andy

On 1/25/07, eka [EMAIL PROTECTED] wrote:
 Hello :)

 you can use my openSource framework VEGAS : http://vegas.riaforge.org/

 the AS2 logging tool in the vegas.logging package is based on the
 mx.loggingAS3 framework :)

 You can try the examples in the AS2/trunk/bin/test/vegas/logging
directory
 of the Subversion.

 My framework is MTASC and FDT compatible.

 EKA+ :)

 2007/1/25, Andy Herrman [EMAIL PROTECTED]:
 
  I'm looking for a good logging library compatible with Flash 7 along
  the lines of log4j.  I found this one, which looks exactly like what I
  want:
 
  http://code.audiofarm.de/Logger/
 
  but it won't build with MTASC (works fine in the FlashIDE though).
  Does anyone know if there's a version of it that works with MTASC, or
  other similar libraries that do?  I saw log4f, which is an extension
  of the one I found, but it looks like the extensions were all for
  Flex, which I don't use.
 
  What do you all use for logging?  Up till now I had my own simple
  logging classes written, but I keep finding myself extending it, and
  I've gotten to the point where it would be better to find a full
  logging solution instead of continuing to work on mine (originally
  mine was really simple, but keeps getting more and more complicated).
 
 -Andy
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] AS 2 Logging Library

2007-01-25 Thread eka

Hello :)

yes the unit tests of the XPanelTarget (and the vegas.logging package) are
in progress... for the moment the XPanel bug in MTASC ! :( Sorry for this
problem :)

I want clear this bug in the class this next week-end

PS : i have add a new target little time ago with the FireBugTarget and you
can test now this target with the FireBug extension (
https://addons.mozilla.org/firefox/1843/)

For the moment in my projects i use in windows the SOS console and in other
system the FlashInspector... The Xpanel is a good panel but i must search
the problem of my target in MTASC !

My objective is to do my personal console with Apollo when apollo will be in
this beta or final version !

2007/1/25, Andy Herrman [EMAIL PROTECTED]:


I like what I see so far for VEGAS, especially the XPanel target.
However, I'm getting a weird problem where if I build the SWF using
the Flash IDE everything works, but if I use MTASC the logs don't make
it to XPanel.  XPanel does clear the last set of logs, so it's at
least initializing its connection, but the logs themselves don't seem
to be making it.  And it's all the same code.

Here's my test code:

--
import vegas.logging.Log;
import vegas.logging.LogEventLevel;
import vegas.logging.ILogger;
import vegas.logging.targets.XPanelTarget;
import vegas.logging.targets.TraceTarget;

class TestMain {
  private static var LOG:ILogger;
  private var i:Number = 0;

  public static function main(rootMC:MovieClip):Void {
Stage.align = LT;
Stage.scaleMode = noScale;
rootMC.stop();

var target:XPanelTarget = new XPanelTarget(Test);
target.includeLines = true;
target.includeLevel = true;
target.includeTime = true;
target.includeCategory = true;
target.filters = [*];
target.level = LogEventLevel.ALL;

Log.addTarget(target);

var traceTarget:TraceTarget = new TraceTarget();
traceTarget.includeLines = true;
traceTarget.includeLevel = true;
traceTarget.includeTime = true;
traceTarget.includeCategory = true;
traceTarget.filters = [*];
traceTarget.level = LogEventLevel.ALL;

Log.addTarget(traceTarget);

LOG = Log.getLogger(TestMain);

var t:TestMain = new TestMain(rootMC);
  }

  function TestMain(rootMC:MovieClip) {
initMovie();
  }

  function initMovie():Void {
LOG.info(initMovie);

setInterval(this, 'log', 2000);
  }

  private function log():Void {
LOG.debug(Debug + i);
LOG.error(Error + i);
LOG.fatal(Fatal + i);
LOG.info(Info + i);
LOG.warn(Warn + i);
LOG.info(Test {0} formatting {1} of {2} doom, true, i, testy);
i++;
  }
}
--

The FLA has the following on the first frame:
--
TestMain.main(this);
--

The trace target always works, but the XPanel target only works when
built from the Flash IDE.

To build I'm using FlashDevelop, with code injection turned on,
UseMain turned off, and UseMX turned on.

Any idea why this might be happening?

   -Andy

On 1/25/07, eka [EMAIL PROTECTED] wrote:
 Hello :)

 With my licence you can do commercial, free application etc.

 You can use an other licence with my framework and your work keep this
 licence ;) For me openSource if open ... the objective is to
considerate
 my work and the time passed to implement the libraries :)

 No problem to use VEGAS in your applications ;)

 EKA+ :)


 2007/1/25, Andy Herrman [EMAIL PROTECTED]:
 
  I looked at VEGAS actually, but wasn't sure whether I could use it.
  I'm not really clear on how the Mozilla license handles linking.
  Specifically, if I don't modify any of the VEGAS code and simply use
  its classes and such in my own code, does my code have to fall under
  the MPL?  I couldn't really tell from reading the license.  If it will
  require my code to be MPL (or any other open source license) I won't
  be able to use it, as the company isn't going to allow that.
 
 -Andy
 
  On 1/25/07, eka [EMAIL PROTECTED] wrote:
   Hello :)
  
   you can use my openSource framework VEGAS :
http://vegas.riaforge.org/
  
   the AS2 logging tool in the vegas.logging package is based on the
   mx.loggingAS3 framework :)
  
   You can try the examples in the AS2/trunk/bin/test/vegas/logging
  directory
   of the Subversion.
  
   My framework is MTASC and FDT compatible.
  
   EKA+ :)
  
   2007/1/25, Andy Herrman [EMAIL PROTECTED]:
   
I'm looking for a good logging library compatible with Flash 7
along
the lines of log4j.  I found this one, which looks exactly like
what I
want:
   
http://code.audiofarm.de/Logger/
   
but it won't build with MTASC (works fine in the FlashIDE though).
Does anyone know if there's a version of it that works with MTASC,
or
other similar libraries that do?  I saw log4f, which is an
extension
of the one I found, but it looks like the extensions were all for
Flex, which I don't use.
   
What do you all use for logging?  Up till now I had my own simple
logging classes written, but I

Re: [Flashcoders] Multi-dimensional array problems in classes

2007-01-22 Thread eka

Hello :)

If you can compile your code in AS2 you can use my openSource framework
VEGAS and this ADT package (vegas.data) ... you can find in this library all
JAVA collections (Collection, Map, Iterator, List, Queue...) i think you can
find good tools for you problem :)

1 - go in the project pa: http://vegas.riaforge.com

2007/1/22, Merrill, Jason [EMAIL PROTECTED]:


Just a hint.
Often multi-dimensional arrays are just crying out to be
single arrays of objects and if their wish is granted, your
code becomes amazingly small and elegant as your reward for
granting their wish.

I agree - IMO best and most flexible way is an array of objects (which
objectg may have properties that are arrays of objects, etc.).

Jason Merrill
Bank of America
Learning  Organizational Effectiveness






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q;3D vector based site...how done?

2007-01-18 Thread eka

Hello :)

i don't know the 3D engine used in this application but

1 - you can try to test the openSource 3D framework Sandy for example :
http://www.flashsandy.org/

2 - You can search in the robertpenner web site (3D example) :
http://robertpenner.com/index2.html

3 - You can search in the lab of Andre Mitchelle :
http://lab.andre-michelle.com/

All example can explain you how this web site is do.

EKA+ :)

2007/1/18, [EMAIL PROTECTED] [EMAIL PROTECTED]:


Ok, don't normally go 'oh' when seeing flash sites, but I like the
novel way that vector graphics have been used within a 3d environment.

This is great stuff...can anyone tell me how?

Is there a 3d rendering engine behind everything?

http://lab.mathieu-badimon.com/



[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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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;3D vector based site...how done?

2007-01-18 Thread eka

Hello :)

The warped text used the technik of Peter Hall (
http://www.peterjoel.com/blog/) with this tools to creates fx on a movieclip
draw api :)

EKA+ :)



2007/1/18, eka [EMAIL PROTECTED]:


Hello :)

i don't know the 3D engine used in this application but

1 - you can try to test the openSource 3D framework Sandy for example :
http://www.flashsandy.org/

2 - You can search in the robertpenner web site (3D example) :
http://robertpenner.com/index2.html

3 - You can search in the lab of Andre Mitchelle :
http://lab.andre-michelle.com/

All example can explain you how this web site is do.

EKA+ :)

2007/1/18, [EMAIL PROTECTED]  [EMAIL PROTECTED]:

 Ok, don't normally go 'oh' when seeing flash sites, but I like the
 novel way that vector graphics have been used within a 3d environment.

 This is great stuff...can anyone tell me how?

 Is there a 3d rendering engine behind everything?

 http://lab.mathieu-badimon.com/



 [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




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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;3D vector based site...how done?

2007-01-18 Thread eka

Hello :)

the best ? it's a very good project yes but the best ? ;) For the moment
this framework is in a private beta... for me an openSource library must be
public between the version 0 and the final version ;) For the moment i have
not read the scripts... i prefere wait to speak about this library :)

PS : sorry for my english... ;)


EKA+ :)

2007/1/18, eka [EMAIL PROTECTED]:


Hello :)

The warped text used the technik of Peter Hall (
http://www.peterjoel.com/blog/) with this tools to creates fx on a
movieclip draw api :)

EKA+ :)



2007/1/18, eka [EMAIL PROTECTED]:

 Hello :)

 i don't know the 3D engine used in this application but

 1 - you can try to test the openSource 3D framework Sandy for example :
 http://www.flashsandy.org/

 2 - You can search in the robertpenner web site (3D example) : 
http://robertpenner.com/index2.html


 3 - You can search in the lab of Andre Mitchelle :
 http://lab.andre-michelle.com/

 All example can explain you how this web site is do.

 EKA+ :)

 2007/1/18, [EMAIL PROTECTED]  [EMAIL PROTECTED]:
 
  Ok, don't normally go 'oh' when seeing flash sites, but I like the
  novel way that vector graphics have been used within a 3d environment.
 
  This is great stuff...can anyone tell me how?
 
  Is there a 3d rendering engine behind everything?
 
  http://lab.mathieu-badimon.com/
 
 
 
  [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
 




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Override _xscale and _yscale setter in AS2

2007-01-18 Thread eka

Hello :)

Yes you can :) Try this code (not tested)


class Test1 extends MovieClip
{

/**
 * Constructor
 */
function Test1()
{

}

   public function get _xscale ():Number
   {
return _xscale_ ;
   }

   public function set _yscale( value:Number ):Void
   {
  __xscale__ = value ;
 // your code :)
   }

   private var _xscale_ = MovieClip.prototype._xscale ;

}

I use this technik in LUnAS the extension of VEGAS my framework OpenSource
with the enabled property... it's possible it's work with the _xscale
property.

NB 1 : Vegas project : http://vegas.riaforge.org/
NB 2 : the AbstractComponent class in LunAS with this hack over the enabled
property :
http://svn.riaforge.org/vegas/AS2/trunk/src/lunas/display/components/AbstractComponent.as



EKA+ :)




2007/1/19, Patrick Matte | BLITZ [EMAIL PROTECTED]:


In AS2, is it possible to override the _xscale and _yscale setter in a
subclass of MovieClip ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Override _xscale and _yscale setter in AS2

2007-01-18 Thread eka

if you overrides the properties the problem is to keep the resize effect on
the movieclip ?

EKA+ :)

2007/1/19, Thomas Fowler [EMAIL PROTECTED]:


Why not just make a getter and setter called XScale and a getter and
setter
called YScale in your subclass each returning and setting their respective
values?

- Original Message -
From: Patrick Matte | BLITZ [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, January 18, 2007 5:33 PM
Subject: [Flashcoders] Override _xscale and _yscale  setter in AS2

In AS2, is it possible to override the _xscale and _yscale setter in a
subclass of MovieClip ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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


  1   2   3   >