Re: [Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread ekameleon
Hello :)

Extends the MovieClip or Sprite class and override the methods with custom
event dispatch inside.

EKA+ :)

2011/2/6 Jens Struwe j...@struwe.net

 Does anybody know a way to catch z-index modifications?

 I would like to detect if a sprite becomes the first/last child of its
 parent at runtime.

 :-?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread ekameleon
Sorry... I forget :

or handle the added events with addEventListener( Event.ADDED , .. or
addEventListener( Event.ADDED_TO_STAGE

EKA+ :)

2011/2/6 ekameleon ekamel...@gmail.com

 Hello :)

 Extends the MovieClip or Sprite class and override the methods with custom
 event dispatch inside.

 EKA+ :)

 2011/2/6 Jens Struwe j...@struwe.net

 Does anybody know a way to catch z-index modifications?

 I would like to detect if a sprite becomes the first/last child of its
 parent at runtime.

 :-?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ARgb to Rgb

2010-11-23 Thread ekameleon
Hello :)

you can complete your color conversions with the graphics.colors package in
Maashaack :

http://code.google.com/p/maashaack/source/browse/#svn/branches/maashaack_ekameleon/trunk/src/graphics/colors

HSL, HSV, CMY, CMYK, etc.

EKA+ :)

2010/11/23 Karl DeSaulniers k...@designdrumm.com

 Hi Karim,
 http://www.autohotkey.com/forum/topic45543.html

 3rd link on google searching for ARGB to RGB conversion conversion
 algorithm. :)
 HTH,
 Best,
 Karl



 On Nov 23, 2010, at 5:37 AM, Karim Beyrouti wrote:

  Hello All,

 wondering if anyone has got the ARGB to RGB conversion conversion
 algorithm handy ?

 Thanks...

 - karim



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Actionscript 4?

2010-11-10 Thread ekameleon
Hello :)

For me it's really important to complete AS3 with ES4 features like generic,
Type, iterators, etc. I can't imagine a next version of the langage without
this features... and other important features loose between AS1/2 and AS3
like __resolve__ in all the Object ( Proxy is cool but only with inheritance
:( ) or an better constructor access (use an apply in the super for example
)

EKA+ :)

2010/11/10 co...@moock.org co...@moock.org

 in august 2008, the work on ecmascript 4 by the ecmascript committee was
 officially halted. see:

 https://mail.mozilla.org/pipermail/es-discuss/2008-August/006837.html


 http://www.mikechambers.com/blog/2008/08/14/actionscript-3-and-ecmascript-4/

 as adobe is no longer bound to ecmascript, both the current and aborted
 ecmascript specs may well not have any bearing on actionscript's future.

 the thing i liked most about ecmascript 4 was community transparency in the
 language design process. sadly, that transparency appears to have been lost
 for now. i lobby for it every chance i get. to anyone else who wants to see
 it return, it might help to post a comment on mike's blog (above).

 colin



 On 09/11/10 13:01, Kerry Thompson wrote:

 I think we have at least one ECMA Script committee member on the
 list, Kenneth Kawamoto (I think he works for Adobe). Maybe he'll
 chime in and tell us what he's allowed to say :-)

 Cordially,

 Kerry Thompson


  Thanks Kerry - yeah, I have seen that Moock article, but I'm
 looking for something more recent.

 Jason Merrill Instructional Technology Architect Bank of America
 Global Learning






 -Original Message- From:
 flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
 Kerry Thompson Sent: Tuesday, November 09, 2010 11:47 AM To: Flash
 Coders List Subject: Re: [Flashcoders] Actionscript 4?

 Jason Merrill wrote:

  Anyone heard or know anything about Actionscript 4?  I know I can
 look at the latest ECMA specs to get an idea of what may be
 coming, but I'm curious about what Adobe's doing and when.

 --

 Colin Moock talked about it at FIT in Amsterdam, in 2008. A bit
 dated, but there are some tantalizing tidbits:
 http://moock.org/lectures/newInECMAScript4/

 Or, if you want it straight from the horse's mouth, here's a
 40-page pdf, also a couple of years old:
 http://www.ecmascript.org/es4/spec/overview.pdf

 Cordially,

 Kerry Thompson

 ___ Flashcoders mailing
 list Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] CMYK color palletes in flash

2010-05-31 Thread ekameleon
Hello :)

you can transform RGB colors to CMYK etc. with basic class, example :

http://code.google.com/p/maashaack/source/browse/#svn/branches/maashaack_ekameleon/trunk/src/graphics/colors

The Colors class in this package is the basic tool class to transform color
spaces.

EKA+ :)

2010/5/31 Sumeet Kumar sume...@sebiz.net

 Hi All,

 Our client wants to show CMYK colors in the application. Is there any way
 we can achieve it. One thing that comes to my mind is to choose some colors
 those are common in RGB and CMYK and give those selected colors in the
 application(this is just going to be RGB representation of CMYK colors) But
 i have no idea whether this is possible or not.

 Any ideas in this regard would be a great help

 Thanks in Advance
 Sumeet Kumar
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Writing to text file

2010-05-06 Thread ekameleon
Hello :)

in the FP10 see the FileReference.save() method

http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/

EKA+ :)

2010/5/6 Lehr, Theodore ted_l...@federal.dell.com

 Is it possible to use flash to write to a text file (maybe an xml
 file)?

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] addEventListener - repeat function call

2010-04-23 Thread ekameleon
Hello :)

you can try MouseEvent.MOUSE_MOVE or you can use Event.ENTER_FRAME, you run
the enterFrame in the mouseOver event and you stop it with the mouseOut.

EKA+ :)

2010/4/23 Lehr, Theodore ted_l...@federal.dell.com

 How can I have a function called as long as MOUSE_OVER

 I am trynig:

 bn1.addventListener(MouseEvent.MOUSE_OVER,func);

 function func(e:Event) {
trace(e.target.name);
 }

 I would like it to fire off as long as the mouse is over
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 connecting objects

2010-01-25 Thread ekameleon
Hello :)

you want an engine like it ? :

http://temp.roxik.com/datas/bone/index.html

The problem in the previous link.. NO SOURCE :(

For me you must search a framework who implements bones in AS.

EKA+ :)

2010/1/25 Eric E. Dolecki edole...@gmail.com

 I'm looking for a class whereby I can visually connect elements (say
 Sprites) with thin rules... kind of like marching ants but in both
 directions, dynamically. Animation inside the rules.

 Has anyone seen anything like that?

 --
 http://ericd.net
 Interactive design and development
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread ekameleon
Hello :)
Use an argument in the constructor of you class to passed-in the parent
reference of your display

public function MyDisplay( target:DisplayObjectContainer = null )
{
if ( target != null )
{
 target.addChild( this ) ;
}
}

PS : your code isn't valid in the constructor of a DisplayObject the stage
and parent properties are null ! Only in the main class of your
application this two attributes are not null.

EKA+ :)

2009/8/17 ACE Flash acefl...@gmail.com

 Hi guys,

 I am curious about if am able to add the DisplayObject into a container
 without using addChild() method, this class is very simple...



   1. package
   2. {
   3. import flash.display.Sprite;
   4. import flash.events.Event;
   5.
   6. public class MyClass extends Sprite
   7. {
   8.
   9. public function MyClass ()
   10. {
   11. //addEventListener( Event.ADDED_TO_STAGE , addedHandler );
   12. parent.addChild(this);
   13. }
   14. /*
   15. private function addedHandler( e:Event ):void
   16. {
   17. removeEventListener( Event.ADDED_TO_STAGE , addedHandler );
   18.
   19. parent.addChild(this); // how could I retrieve the instance name of
   this?
   20. }
   21. */
   22. }
   23. }



 I'd like to do something like


 var do:MyClass = new MyClass();
 //addChild(do) // added it into displayobject without using this method
 here


 Is that possible? any suggestions are welcome  :)

 Thank you
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread ekameleon
Hello :)
i prefere use (target != null) ;) question of visibility and to keep the
default value of the argument in the constructor.

EKA+ :)

2009/8/17 Steven Sacks flash...@stevensacks.net

 I don't understand why you would not want to write a single line of code in
 the class where it would provide the most clarity, and instead write MORE
 code in another class obscuring the behavior that is going on.  In other
 words, you're writing more code to write the same code.  You're going to
 write addChild either way, why make it more complicated than it needs to be?

 Always follow the KISS principle.


 BTW, Ekameleon, you should use

 if (target)

 Instead of

 if (target != null)




 ACE Flash wrote:

 ekameleon, you are the man! so sweet.

 Thanks

 On Mon, Aug 17, 2009 at 1:54 PM, ekameleon ekamel...@gmail.com wrote:

  Hello :)
 Use an argument in the constructor of you class to passed-in the parent
 reference of your display

 public function MyDisplay( target:DisplayObjectContainer = null )
 {
   if ( target != null )
   {
target.addChild( this ) ;
   }
 }

 PS : your code isn't valid in the constructor of a DisplayObject the
 stage
 and parent properties are null ! Only in the main class of your
 application this two attributes are not null.

 EKA+ :)

 2009/8/17 ACE Flash acefl...@gmail.com

  Hi guys,

 I am curious about if am able to add the DisplayObject into a container
 without using addChild() method, this class is very simple...



  1. package
  2. {
  3. import flash.display.Sprite;
  4. import flash.events.Event;
  5.
  6. public class MyClass extends Sprite
  7. {
  8.
  9. public function MyClass ()
  10. {
  11. //addEventListener( Event.ADDED_TO_STAGE , addedHandler );
  12. parent.addChild(this);
  13. }
  14. /*
  15. private function addedHandler( e:Event ):void
  16. {
  17. removeEventListener( Event.ADDED_TO_STAGE , addedHandler );
  18.
  19. parent.addChild(this); // how could I retrieve the instance name of
  this?
  20. }
  21. */
  22. }
  23. }



 I'd like to do something like


 var do:MyClass = new MyClass();
 //addChild(do) // added it into displayobject without using this method
 here


 Is that possible? any suggestions are welcome  :)

 Thank you
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3: for in loops with nested MCs

2009-07-24 Thread ekameleon
Hello :)

Read the reference AS3 of the MovieClip class :

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/MovieClip.html

The new display list implementation of the DisplayObjects is different in
AS3.

The MovieClip class inherit the DisplayObjectContainer class and you can use
now :

- the numChildren property to defines the number of childs in the MovieClip
- the getChildAt() method to keep all childs with a specific position

Example :

var action:Function = function( e:Event ):void
{
  trace( e ) ;
}

var item:DisplayObject ;
var size:int = zoomState.numChildren ;
for( var i:int = 0 ; isize ; i++ )
{
 item = zoomState.getChildAt( i ) ;
 item.addEventListener( Event.CLICK , action ) ;
}

If you want learn the AS3, read the documentation :-)

EKA+ :)

2009/7/24 Schnurgle Schnurgle schnur...@yahoo.com

 I'm migrating an AS2 project to AS3. I'm not sure how to approach this part
 of the migration. I have a  MovieClip called us_states_mc. It contains 50
 MovieClips, one of each US state.  us_states_mc  has this code inside it:

 for (var item in this)
 {
this[item].id = item.toString();
this[item].onRelease = function ()
{
_root.zoomToState(this.id);
};
 };

 How can I recreate this functionality in AS3?



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to embed assets in pure as3?

2009-05-13 Thread ekameleon
Hello :)

A gif asset is not a Shape class but a Bitmap ?

try the flash.utils.describeType method to see the real inherited class :

trace( describeType( newImage ) ) ;

If you write as Shape the new filter object is null ... use other display
class (Bitmap) to cast your variable.

EKA+ :)



2009/5/13 ACE Flash acefl...@gmail.com

 hi there, I'd like to use pure  actionscript 3 to embed my assets in flash.
 and use addChild() to add them on the stage.

 The code seem doesn't work for me, any suggestions?

 thanks


[Embed(source=/assets/img1.gif , mimeType=image/gif)]
public var newImage:Class;

[Embed(source=/assets/img2.gif , mimeType=image/gif)]
public var oldImage:Class;


var img1:Shape= new newImage() as Shape;;
addChild( img1 );
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Creating for loops for event listeners

2009-05-01 Thread ekameleon
Hello :)
1 - creates a new class to creates your custom buttons and implement the
addEventListeners in this class (in the constructor for example)

2 - use the dynamic loop :

var down:Function = function( e:MouseEvent ):void
{
 trace( e.type +  :  + e.target ) ; // only one method and use the
target of the event to change your strategy
}

var l:Number = 100 ;

for( var i:int ; il ; i++)
{
this[bt+i].addEventListener( MouseEvent.MOUSE_DOWN ,  down ) ; // use
basic name bt1, bt2, ... it's more easy
}

EKA+ :)

2009/5/1 zu...@zadesigns.com



 Is there a better way to write Event Listeners for a large number of
 buttons that increment the names by 1? example:
 solution_button1.addEventListener(MouseEvent.MOUSE_DOWN, s_btn1_down);
 solution_button2.addEventListener(MouseEvent.MOUSE_DOWN, s_btn2_down);
 solution_button3.addEventListener(MouseEvent.MOUSE_DOWN, s_btn3_down);
 solution_button4.addEventListener(MouseEvent.MOUSE_DOWN, s_btn4_down);
 solution_button5.addEventListener(MouseEvent.MOUSE_DOWN, s_btn5_down);
 solution_button6.addEventListener(MouseEvent.MOUSE_DOWN, s_btn6_down);
 solution_button7.addEventListener(MouseEvent.MOUSE_DOWN, s_btn7_down);
 solution_button8.addEventListener(MouseEvent.MOUSE_DOWN, s_btn8_down);
 solution_button9.addEventListener(MouseEvent.MOUSE_DOWN, s_btn9_down);

  can the above be accomplished with a for loop? what about more than one
 event over, out, down, click. can those also be automated or would I need 4
 loops for that.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FDT SVN + Code Assist

2009-02-14 Thread ekameleon
Hello :)

in eclipse in the FlashExplorer panel in the top right menu of the panel you
must choose the item filters and select the .svn files.

PS : you use Subclipse ? for me the best solution in eclipse to work with
SVN

EKA + :)

2009/2/14 Karim Beyrouti ka...@kurst.co.uk

 Hello All,

 I am using eclipse SVN with FDT - and for the most part it really works a
 treat. However, I am getting all the SVN paths appearing in my code hinting.
 Do you know a way to get code assist to ignore svn paths?


 Regards



 Karim
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to turn off the DEBUG mode with Google Analytics

2009-02-04 Thread ekameleon
Hello :)

?? use the value false in the last argument of the constructor ? Read the
documentation of the class :

http://code.google.com/p/gaforflash/wiki/API

search the GATracker class reference ;)

The full signature of the constructor is :

GATrackerhttp://gaforflash.googlecode.com/svn/documentation/com/google/analytics/GATracker.html#GATracker%28%29(display:DisplayObject,
account:String, mode:String = AS3, visualDebug:Boolean = false, config:
Configurationhttp://gaforflash.googlecode.com/svn/documentation/com/google/analytics/v4/Configuration.html=
null, debug:
DebugConfigurationhttp://gaforflash.googlecode.com/svn/documentation/com/google/analytics/debug/DebugConfiguration.html=
null)

You can disable the visual debug with the parameter visualDebug :

var tracker:AnalyticsTracker = new GATracker( this, UA-111-222, AS3,
false );

or not use the last arguments :

var tracker:AnalyticsTracker = new GATracker( this, UA-111-222, AS3 ) ;

PS : you can use the constructor with only two arguments if you want use the
default AS3 mode :

var tracker:AnalyticsTracker = new GATracker( this, UA-111-222 ) ;

EKA + :)

2009/2/4 ACE Flash acefl...@gmail.com

 Hey there,

 How can I turn off the debug mode by as3? so I am able to run it on the
 production server.  thanks

 ===

 import com.google.analytics.AnalyticsTracker;
 import com.google.analytics.GATracker;
 import com.google.analytics.debug.*;

 var tracker:AnalyticsTracker = new GATracker( this, UA-111-222, AS3,
 true );
 playGame.addEventListener( MouseEvent.CLICK, onButtonClick );
 function onButtonClick( event:Event ):void {
  trace(test);
  tracker.trackPageview(/myGame1);
 }
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Scope of variables declared in for loop

2008-12-23 Thread ekameleon
Hello :)
Your code is in AS3 ?

In AS3 :

var i:int ; // only one

for ( i = 0; i  10; i++)
{
   trace('1st loop: ' + i);
}

for ( i = 0; i  10; i++)
{
   trace('2nd loop: ' + i);
}

The FlashPlayer 9 or 10 optimize the variables and you must implement a
variable one time in the same expression of code ;)

eKA+ :)

2008/12/23 Alexander Farber alexander.far...@gmail.com

 Hello,

 has anybody else noticed, that the code like:

 stop();

 for (var i:Number = 0; i  10; i++) {
trace('1st loop: ' + i);
 }

 for (var i:Number = 0; i  10; i++) {
trace('2nd loop: ' + i);
 }

 won't be accepted by compiler?
 Is there an explanation for that?
 The other languages wouldn't complain here

 Regards
 Alex
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash/Flex Font Embedding

2008-11-25 Thread ekameleon
hello :)
in my opensource framework you can use the FontLoader class to load an
external swf with fonts inside :

http://www.ekameleon.net/vegas/docs/asgard/text/FontLoader.html

This code work in AS3 in Flex or Flash, etc.

To install VEGAs and this extensions you can use the AS3 SVN repository :
http://vegas.googlecode.com/svn/AS3/

And read the tutorial to install it :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

The class is very easy to use and you can use the autoRegister property of
the class to select only your used class or all class in the library
automaticly.

The class :

http://code.google.com/p/vegas/source/browse/AS3/trunk/src/asgard/text/FontLoader.as

EKA+ :)




2008/11/25 Mike Grunwald [EMAIL PROTECTED]

 I've been searching for the best way to handle fonts when localizing Flash
 applications. Ideally I'm looking for a way that I can create SWFs that have
 specific character ranges of specific fonts embedded in them that I can load
 in to my applications as needed based on the language that has been selected
 by the user.

 I've come across many posts of people describing this approach, most
 notably:

 http://troyworks.com/blog/2008/09/12/flash-runtime-font-sharing-
 embedding-with-only-partial-character-sets-how-to/

 The problem for me is I don't know Flex at all. I have Flex Builder 3 and
 use it almost everyday as my primary AS3 editor, but I don't know the first
 thing about MXML or even creating Flex projects. The previous post above
 describes this technique using FlashDevelop and the Flex SDK. Since I have
 Flex builder I'm just looking for a little guidance as to how to get similar
 code to compile a SWF in Flex Builder.

 Any help would be greatly appreciated. Or if any or you have any better
 methods of how to handle this that you would like to pass on, I'm totally
 open to suggestion.

 Thank in advance,
 _mike





 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] api generation tool

2008-11-17 Thread ekameleon
hello :)
In the Flex SDK you can use the command line ASDoc tool.

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=asdoc_127_1.html

You can use it with Google prettify to highlight the source code in your
examples :

French tutorials about it :
http://www.ekameleon.net/blog/index.php?post/2008/03/14/94-use-asdoc-with-google-prettify

EKA+ :)

2008/11/17 Eamonn Faherty [EMAIL PROTECTED]

 Hey all,

 I want to be able to create a html api from as3 source code, a bit like
 the javadoc tool.

 I saw naturaldocs but was wondering if there are any other apps that can
 do this?

 Thanks in advance,

 Eamonn

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Controlling Sound in the timeline - AS3

2008-11-14 Thread ekameleon
Hello :)
Can you create a little script to show your loader in action ?

You target the loader or this content reference ?

var loader:Loader = new Loader() ;
loader.load(mySWF.swf) ;

... when your swf is loading you can target the loader.content reference and
not the loader container.

EKA+ :)

2008/11/14 Karim Beyrouti [EMAIL PROTECTED]

 Hi !

 Another simple AS3 question - well at least I hope so.

 I am trying to set the volume of a sound that has been embedded in the
 'root' timeline of a loaded movieclip (as3). So I tried:

 Themc.soundTransform.volume = 0;


 But nothing happened - no mute or anything in AS2 we used to be able to
 do:

 s:Sound = new Sound( themc ).
 s.volume = 0;

 but this does not work in AS3...

 It's probably something simple but I am really scratching my head with this
 one. Also, it's a little odd, but there is no chapter on Sound in Colin
 Mook's Essential ActionScript 3.0 book...

 Thanks


 Karim

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] frameworks and flash

2008-11-14 Thread ekameleon
Hello :)
You can try Maashaack and VEGAS :

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

To test the IoC/MVC implementation with Maashaack and VEGAS you can try the
documentary framework AST'r :

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

ASTr is only a little template/example who use Maashaack and VEGAS to
implement a little gallery with MVC/ICO/Remoting and eden the ECMAScript
data exchange notation Ridge Racer

PS : eden is included in Maashaack now (eden is a extended
serializer/deserializer based on the ECMAScript notation).

EKA+ :)

2008/11/15 Joel Stransky [EMAIL PROTECTED]

 Well I'm not exactly getting into Flex yet. If after some testing I find
 that I can do normal flash sites as well as RIA's I'll switch to Flex full
 time and in that case, PureMVC or Mate. Right now my focus is the kind of
 stuff you see on FWA.

 On Fri, Nov 14, 2008 at 6:05 PM, David Hershberger [EMAIL PROTECTED]
 wrote:

  Haha!  Before you try Cairngorm, check out this article:
 
 
 
 http://blog.iconara.net/2008/04/13/architectural-atrocities-part-x-cairngorms-model-locator-pattern/
 
  Having used Cairngorm for a while now I have to agree with him.  The
  article
  is pretty harsh, and it only talks about the ModelLocator part.
 
  Dave
 
  On 11/14/08, Joel Stransky [EMAIL PROTECTED] wrote:
  
   Thanks for the post Dave. Cairngorm sounds a lot like PureMVC which
 does
   away with events and implements a global command structure. So far it's
   appealing although my first run in with it was under bad conditions. A
   client of a friend had mangled it something fierce before he was
 brought
  in
   at which point he brought me in to implement deep linking. It was ugly
 to
   say the least. I have however heard great things about it since then.
 My
   gut
   says I should know how to do this stuff on my own before I go relying
 too
   heavily on tools that prevent me from getting to know the inner
 workings
   intimately.
  
   It's just tough to esitmate flash/flex work effictively anymore without
 a
   framework involved it seems. Clients don't have the time or budget for
   builds from scratch. Flash used to be so fun but now it's a constant
   learning curve. ugg.
  
   Interestingly enough I looked up the cairngorm site and saw a link to
  this
   blog post made just yesterday:
   http://www.anandvardhan.com/2008/11/13/popular-flex-frameworks/
  
   This should also be informative.
   http://www.insideria.com/2008/11/new-poll-which-flex-framework.html
  
  
  
   On Fri, Nov 14, 2008 at 1:52 PM, David Hershberger 
 [EMAIL PROTECTED]
   wrote:
  
  
We have been using Adobe Flex for the past year and have really liked
  it.
It would be hard to call it blazing and bloat does seem like it
  might
apply to some extent, but on the other hand it does so many nice
 things
   for
us it is hard to argue with.  MXML is very powerful, but there is
   certainly
a big learning curve.  For basic stuff, buttons and containers and
  text,
it's easy to get started.  There are lots of subtle details though,
 so
   when
you start wanting to do things in ways the Flex authors didn't
  anticipate
it
often takes experimentation to find a way that works.  The Flex
  framework
code is open source at least, so you can always dig into that and see
   what
it's doing.
   
We have also used Cairngorm, with mixed results.  Cairngorm doesn't
   really
give you much code, it is mostly a set of design patterns.  Some of
 the
important code it does give is a controller which connects
 Cairngorm
Events to Cairngorm Commands.  Cairngorm events inherently know their
dispatcher, which is a singleton, so you can just fire off events
 like
   so:
  new SaveGameEvent(game, user).dispatch();
and the controller connects that to the appropriate
   SaveGameCommand.  We've
come to the conclusion that Cairngorm is great for situations where
  most
user actions imply immediate communications with a server, but not so
useful
for situations where user actions are just manipulating data internal
  to
the
.swf.  We have ended up using Cairngorm Events and Commands just on
 the
networking side of our app, and for everything else we do more of a
  basic
Model/View pattern.
   
I don't believe Cairngorm relies on Flex, but Flex gives you data
   binding
which works very nicely with Cairngorm.  Flex data binding lets you
  mark
certain state variables with [Bindable] and then the compiler builds
data-change events for you.  Then your view mxml classes use the data
binding syntax like Label text={game.description}/ and the view
   updates
automagically whenever the Game's description field changes.  A
  Cairngorm
command might query a server and then the server-response-handler in
  the
command can set game.description.
   
Dave
   
On 11/14/08, Joel Stransky [EMAIL PROTECTED] wrote:

 Hello,
 So I'm 

Re: [Flashcoders] AS2 FlashDevelop -- Warning unsupported #include

2008-10-22 Thread ekameleon
Hello :)
If you use MTASC... is normal :)

MTASC dont' support the #include directive, isn't a bug bug a limitation of
MTASC.

See http://www.mtasc.org/ : http://www.mtasc.org/

*#include :*

MMC allows code file inclusion using the #include directive.

MTASC does not allow it.

*Rationale :* Such coding practices are obsoletes with ActionScript2, and
the programmer should keep common duplicated code into separate classes.

For me the #include instruction is important... but not for Nicolas ;)

You can find in OSFlash a patch to transform the mx.* AS2 class and can be
compatible with MTASC ;)

EKA+ :)

2008/10/22 Andrew Sinning [EMAIL PROTECTED]

 In FlashDevelop working with AS2, I get a Warning unsupported #include.
  The warning refers to the line

   #include Version.as

 in mx.transitions.Tween, mx.transitions.easing.Strong and
 mx.transitions.easing.Bounce

 I never use a # in front of my includes, but these are mx files and they
 compile just fine, but what's the deal with the #?

 Thanks!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] json flash 8/9

2008-08-22 Thread ekameleon
Hello :)

You can use my opensource framework with this JSON class :

http://code.google.com/p/vegas/wiki/VegasTutorialsString_JSON
http://www.ekameleon.net/vegas/docs/vegas/string/json/JSONSerializer.html

To install VEGAS :

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

PS : if you use only the AS3 version of VEGAS you can use the branche :
http://vegas.googlecode.com/svn/AS3/

Now... JSON is good but the eden format is BETTER !

eden is in the core library of VEGAS in AS3 (see the system.* package : )

See the official page project of eden :

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

See the features of eden :

http://code.google.com/p/edenrr/wiki/edenFeatures

In VEGAS you can use two class EdenLoader and JSONLoader (based on the
URLLoader class) who load a JSON or eden external file and parse it :

JSON : http://www.ekameleon.net/vegas/docs/andromeda/net/JSONLoader.html
eden  : http://www.ekameleon.net/vegas/docs/andromeda/net/EdenLoader.html

You can see an example of config file in eden in the examples of VEGAS :

http://vegas.googlecode.com/svn/AS3/trunk/bin/test/andromeda/net/deploy/data/config.eden

See the difference with the same JSON config file :

http://vegas.googlecode.com/svn/AS3/trunk/bin/test/andromeda/net/deploy/data/config.json

You can see too my Localization model and config model in the example of the
extension AndromedA :

http://vegas.googlecode.com/svn/AS3/trunk/bin/test/andromeda/config/
http://vegas.googlecode.com/svn/AS3/trunk/bin/test/andromeda/i18n/

If you want optimize your work flow.. you can use eden too with my a full
IoC application library in AndromedA, all examples in the repository :

http://vegas.googlecode.com/svn/AS3/trunk/bin/test/andromeda/ioc/factory/

With my IoC framework you can create a big application with external eden
configuration files, example :

http://vegas.googlecode.com/svn/AS3/trunk/bin/test/asgard/net/deploy/context/hello_world.eden

More information about it for the moment in french but the english tutorials
coming soon !

http://groups.google.com/group/vegasos/web/design-pattern-dinversion-de-contrle

EKA+ :)













2008/8/22 Eduardo Omine [EMAIL PROTECTED]

 On Fri, Aug 22, 2008 at 9:49 AM, Hans Wichman
 [EMAIL PROTECTED] wrote:
  - does n1 know of a good reason to use webservices through json through
  javascript in flash

 Some developers prefer JSON over XML. But there's no need to use a JS
 library to connect Flash to server. With AS3 you load and send JSONs
 with URLLoader. To decode and encode JSON objects use the as3corelib
 library:
 http://code.google.com/p/as3corelib/

 Performance-wise, it is best to use AMF (binary format) if possible.
 Working with JSON should be slower than XML because XML parsing is
 native to AS3.

 --
 Eduardo Omine
 http://blog.omine.net/
 http://www.omine.net/
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] json flash 8/9

2008-08-22 Thread ekameleon
With VEGAS you can work in AS2 or AS3 :)

And for remoting :

http://www.ekameleon.net/vegas/docs/asgard/net/remoting/RemotingService.html

the class asgard.net.remoting.RemotingService work in AS2/AS3 and SSAS
(Server Side ActionScript for Flash Media Server)

EKA+ :)

2008/8/22 Eduardo Omine [EMAIL PROTECTED]

 With AS2 I'd recommend using Flash Remoting with AMF (binary format).
 AMFPHP is the most well-known AMF solution, but there are AMF
 solutions for Python and Java too (and probably other server
 technologies).

 http://www.amfphp.org/
 http://pyamf.org/
 http://sourceforge.net/projects/openamf/


 And yes, you need an AS2 library to parse JSONs too.

 http://www.5etdemi.com/blog/archives/2006/05/cinqetdemijson-a-better-json-parser-for-as2-suited-for-config-files/

 --
 Eduardo Omine
 http://blog.omine.net/
 http://www.omine.net/
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-20 Thread ekameleon
Hello :)

In AS2 or AS1 you can't override the TextField class... if you do that you
destroy the native class :)

You must use the prototype hack with the keyword __proto__ to change the
nature of your instances

Example :

_global.MyTextField = function()
{
super();
//
};

MyTextField.prototype.__proto__ = TextField.prototype ;

MyTextField.prototype.myCustomMethod = function() {}



var tf:TextField = createTextField(field, 1, 10,10,250,250) ;

// Hack the native instance with your custom class
tf.__proto__ = MyTextField.prototype ; // hack the prototype
MyTextField.call(tf) ; // launch the constructor

Now .. you can create a global function or a class, an helper to simplify
this hack :)

eKA+ :)





2008/8/20 Dennis - I Sioux [EMAIL PROTECTED]

 Hey Guys,

 I'm an experienced AS2 coder but i'm finally starting in AS3 and want to
 port a piece of code that alters the Textfield constructor.
 I've tried many things.. but think i'm overlooking something.

 My original AS2 code was:

 // Alter the constructor of the Textfield
 var bfrTextField = TextField;
 var bfrStyleSheet = TextField.StyleSheet;

 _global.TextField = function() {
 super();
 // Do extra code
 };
 // reattach the stylesheet class
_global.TextField.StyleSheet = function() {
 super();
 };

 TextField.prototype = new bfrTextField();
 TextField.StyleSheet.prototype = new bfrStyleSheet();
 delete bfrTextField;
 delete bfrStyleSheet;


 Any help would be appreciated.

 With kind regards,

 Dennis
 Isioux
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] as3 class libraries

2008-07-14 Thread ekameleon
Hello :)

You can add in your list my opensource project VEGAS and this extensions :

http://code.google.com/p/vegas/
http://www.ohloh.net/projects/vegas/

All examples, tutorials, etc... in the SVN repository of the project and all
projects pages (wikis)

EKA+ :)


2008/7/14 Corban Baxter [EMAIL PROTECTED]:

 I am trying to put together a list of some of the best AS3 and Flex
 Libraries, Classes and Frameworks we have available. I was hoping to
 get as much input form you guys as possible and what you guys use and
 enjoy. Here are some examples I am looking for...

 Frameworks:
 GAIA
 MATE
 pureMVC

 Video:
 flvplayerlite

 Data:
 Flare

 Games:
 as3ds
 ape

 Animation:
 Tweenlite
 Tweener
 Go

 3D:
 Papervision 3D
 Away 3D

 Graphics:
 ActiveWindowBlur
 Reflection

 Utilites:
 QueueLoader
 ASMailer
 bulkLoader

 API:
 youtube
 flickr
 yahoo maps

 Audio:
 ?

 If you guys have any more categories and input for my list I would
 appreciate alot. Thanks for the help!


 --
 cb
 http://blog.projectx4.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Hebrew text

2008-06-30 Thread ekameleon
Hello :)

In the new FlashPlayer 10 you can use the right-to-left text. For the moment
the FP10 is beta ! but you can wait the final version this summer ?

EKA+ :)

2008/6/30 natalia Vikhtinskaya [EMAIL PROTECTED]:

 Is that correct that not possible to show Hebrew text in Flash? It
 seems I can embed font but can not show right-to-left text.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Calling super.apply

2008-06-26 Thread ekameleon
Hello :)

In AS3 the apply method don't exist over the constructor.. the constructor
in AS3 isn't a Function but a Class object and the Class object don't
implément the apply or call methods !

It's a big problem for me

For the moment the solutions are :

1 - In your case... use composition over your Array, like :

http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/vegas/data/iterator/ArrayIterator.as(for
me the best solution !)

2 - use a constructor with an Array or Object in arguments

3 - in your class you can use the ...args:Array and use it with a for or
while loop :)

PS : When i wan't create a full object with a custom class reference and a
dynamic array of arguments i use my method buildNewInstance :

http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/vegas/util/ClassUtil.as

EKA+ :)


2008/6/26 Morten Barklund [EMAIL PROTECTED]:

 Hi Sidney,

 You have of course tried the obvious:

  super.apply(this, args)

 How did it fail, compiler error or?

 Regards,
 Morten Barklund

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Sidney de Koning
 Sent: Thursday, June 26, 2008 4:30 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Calling super.apply

 He Jer,

 In the docs it says: public dynamic class Array
 So you can extend it. My problem is that now i have to use push() to
 get items in and i want to use the constructor to pass through items,
 like so var blah:ArrayInterator = new ArrayIterator(1, 2,3);

 My constructor uses ..rest so with apply i pass though all the
 arguments one, by one instead of as one big array because ...rest is
 an array itself

 Does this all makes sense?

 The problem is that i cant seem to figure out how to call apply on the
 super.

 Does any body know? let me know!!!

 Cheers, Sid


 On Jun 26, 2008, at 3:31 PM, Jer Brand wrote:

  I'm probably wrong (and mostly want to know as well), but I didn't
  think you could extend the Array class. Not that AS won't let you do
  it, but it doesn't actually work. I know this is the case with AS2,
  but am only guessing that it's the case with AS3 from the behavior you
  describe.
 
  My suggestion would be to use composition rather than inheritance.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3: public override function set x

2008-06-26 Thread ekameleon
hello :)

In the playerglobal.swc you can find the DisplayObject.x declaration :

public function set x(value:Number):void;

You must keep the same argument name and the same return type in your
override :

public override function set x(value:Number):void
{
  super.x = value ;
  // custom
}

In your code you forget the :void ?

EKA+ :)

2008/6/26 Jason Van Cleave [EMAIL PROTECTED]:

 I have a class that extends Sprite. When the x value of the Class is
 changed
 I want to know so I can change another value.

 So I tried

 override public function set x(n:Number)
 {
   super.x=n;
   //added functionality would happen here
 }
 but I get Incompatible override

 So I could build a setX method but this wouldn't prevent Class.x from being
 directly changed

 public function setX(n:Number)
 {
x=n;
//added functionality would happen here
 }

 Any suggestions?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 Frameworks for Game Development

2008-06-23 Thread ekameleon
Hello :)

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

EKA+ :)

2008/6/23 Pedro Taranto [EMAIL PROTECTED]:

 - GameDataStructure: http://code.google.com/p/as3ds/
 - Lowra: http://code.google.com/p/lowra/

 --
 Pedro Taranto


 On Mon, Jun 23, 2008 at 1:59 PM, August Gresens 
 [EMAIL PROTECTED] wrote:

  Hello
 
  Wondering what is out there as far as open source (or otherwise) AS3
  frameworks for Game Development.
 
  Looking for something that works for desktop and web based apps.
 
  I'm looking for something like AS-HIVE (which doesn't seem too active
 right
  now), with support for:
 
  * state/navigation management
  * asset management
  * IOC container for object initialization (ideally)
  * modality (dialogs)
  * patterns for event handling
 
  What are peeps using for this type of thing? I want to make sure nothing
  exists before I write my own thing.
 
  Note: PureMVC looks interesting but seems more geared toward a data
  driven/server integrated project - RIA. Am I right about that or do
 people
  also use that for games?
 
  Thanks,
 
  August
 
  --
  -
  
 
  August Gresens
  Technical Director
  Black Hammer Productions, NYC
  [EMAIL PROTECTED]
 
  -
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] drawing a tube/cylinder with as

2008-04-26 Thread ekameleon
Hello :)

For me the best way to draw a cylinder is a realtime 3D engine like :

http://code.google.com/p/papervision3d/
http://blog.papervision3d.org/

or

http://www.flashsandy.org/

or others

EKA+ :)


2008/4/27 Pedro Kostelec [EMAIL PROTECTED]:

 Hi

 I am trying to draw a tube/cylinder with as3.
 What i am trying to do is draw 2 circles in different places and then
 findind some points in the circl'es outline and joining and coloring the
 new
 created shapes. My question is How can i find those points in the cilcles
 outline?How should be the loop? Or is there a better way of drawing a
 tube?I
 need it to be in as, because i need to make on of those circles
 draggable
 and the tube shoud be redrawn on every frame again.
 Is my question clear?

 Thanks

 --
 Pedro D.K.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] __proto__ but not prototype?

2008-04-25 Thread ekameleon
Hello :)

Use this code :

var pv:MovieClip = _root.createEmptyMovieClip( pixViewer, 180);

pv.__proto__ = PixViewer.prototype ; // change inherit

PixViewer.call( pv ) ; // launch the constructor over the new instance.

PS1 : i uppercase the first character of your class.. is a better notation
if you respect the ECMAScript/ActionScript notation ;)

PS2 : In my opensource framework you can use the class ConstructorUtil :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/ConstructorUtil.as

you can use now the method createVisualInstance :

{{{

import vegas.util.ConstructorUtil ;

var pv:PixViewer = ConstructrorUtil.createVisualInstance( PixViewer ,
createEmptyMovieClip( pixViewer, 180) , { _x : 25 , _y : 25 } ) ;

}}}

or you can use my vegas.util.factory.DisplayFactory class :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/factory/DisplayFactory.as

Examples :

1 - with movieclip :

import vegas.util.factory.DisplayFactory ;

var pv:PixViewer = DisplayFactory .createChild( PixViewer , pixViewer, 180
, this ,  { _x : 25 , _y : 25 } ) ;

2 - with textfield :

import vegas.util.factory.DisplayFactory ;

var myField:CustomTextField = DisplayFactory .createChild( CustomTextField ,
myField, 180 , this ,  { _width : 400 , _height : 150 } ) ;

PS : This class can change to the depth of all visual instances in AS2
(Video, TextField, MovieClip in the Stage or your code)

More information about my framework :
http://code.google.com/p/vegas/
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

EKA+ :)




2008/4/25 Mendelsohn, Michael [EMAIL PROTECTED]:

 Hi list...

 I have a class (pixViewer extends MovieClip) and an empty MovieClip
 (linkage:emptyMC, not registered to any class in the linkage dialog).  I
 want attached this emptyMC to the stage and I want it to be an instance
 of pixViewer.

 __proto__ works, but why won't prototype or registerClass?

 //works:
 var pv:MovieClip = _root.createEmptyMovieClip(pixViewer, 180);
 pv.__proto__ = new pixViewer();
 pv.onLoad();

 /*
 Why doesn't this work:
 pv.prototype = new pixViewer();
 pv.registerClass(pixViewer);
 */


 Thanks,
 - MM

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] PureMVC vs Cairngorm // who's better?

2008-04-11 Thread ekameleon
Hello :)

You can test my opensource framework too :)

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

Install it with all this extensions :

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

And test it with all examples in the AS3/bin/test directory of the
repository or with my other opensource project AST'r (documentary framework)
based on VEGAS and who contains examples of implementation with all tools of
VEGAS.

The AS3 version of VEGAS is based on a IOC factory who use external data
based on the eden notation :)

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

See example and tutorials in Google code pages and wiki projects :)

http://code.google.com/p/andromed-as/wiki/TutorialsAndromedA_IOC
http://code.google.com/p/vegas/wiki/TutorialsVEGAS
http://code.google.com/p/as-gard/wiki/TutorialsASGARD

The tutorials are in progress ;)

In VEGAS you can find an exemple of MVC, etc. implementation in SVN
directory  :
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/bin/tutorials/andromeda/

EKA+ :)



2008/4/11, Jim Robson [EMAIL PROTECTED]:

 Good timing - I just posted this last night:

 http://www.robsondesign.com/blog/index.php/2008/04/10/puremvc-vs-cairngorm/



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of artur
 Sent: Friday, April 11, 2008 3:09 PM
 To: flashcoders
 Subject: [Flashcoders] PureMVC vs Cairngorm // who's better?

 whats the verdict for using one over the other --  for a Flex+AMFphp  RIA.



 thanks
 --

 *artur :.***

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to use AV1Movie Class?

2008-04-04 Thread ekameleon
Hello :)

For me the problem is the difference between AVM2 and AVM1 in the FP9 :)

It's really difficult to execute AVM1 and AVM2 scripts in the same time.

For me the best way is to transform the AVM1 swf in AVM2 swf or... use AS3
source code from the main swf application to resolve all elements in the
AVM1 swf.

Example in my framework i use 2 class :

http://www.ekameleon.net/vegas/docs/asgard/display/TimelineScript.html
http://www.ekameleon.net/vegas/docs/asgard/display/AVM2Loader.html

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

EKA+ :)

2008/4/4, Sidnei Vladisauskis [EMAIL PROTECTED]:

 Hi,

 I tried use your example, I trace in completeHandler and see that the
 object
 loaded is a AV1Movie, ok...

 But my problemes are some functions not run, for examples hitTest, tweener
 and other functions excluded in AS3.

 Very bugs happen with my swf-AS2 loaded in my swf-AS3.

 I need they run whitout bugs.
 :o(

 Is there any way?


 On Thu, Apr 3, 2008 at 2:37 PM, Sidnei Vladisauskis [EMAIL PROTECTED]
 wrote:


  tks...
 
  I will try this example...
 
  tks a lot...
 
 
  On Thu, Apr 3, 2008 at 12:59 PM, ekameleon [EMAIL PROTECTED] wrote:
 
   hello :)
  
   see the example in the reference of the AS3 class :
  
   http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html
  
   See the example in the end of the page
  
   In the completeHandler callback method you can test the type of the
   event.target.content reference :)
  
   Example
  
   private function completeHandler(event:Event):void
   {
   trace(completeHandler:  + describeType(
   event.target.contentType ) ); // import the flash.utils.describeType
   method in the header of your code.
   }
  
  
  
   and read :
  
   http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html
  
   .. after, open Flex or Flash CS3 and copy the code and test it with an
   external swf in AS2 and AS3...
  
   It's easy to test it :)
  
   EKA+ :)
  
  
   2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:
   
Hi ekameleon ,
   
tks for your help, but was you have a exemple??
   
tks again.
   
   
On Thu, Apr 3, 2008 at 12:17 PM, ekameleon [EMAIL PROTECTED]
   wrote:
   
 hello :)

 yes when you use the Loader class.. inside your reference you can
   find
the
 content reference who is the reference of the Bitmap or
 MovieClip,
 etc...
 if the external swf is a AVM1 file the type of the reference is
   AVM1.

 Use the Loader class and test the content property when the
 external
   swf
 is
 loading.

 EKA+ :)

 2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:
 
  Hi,
 
  I´m developing my new portfolio in AS3 for learn.
 
  I need load swf AS2 into the movieclip in my swf AS3.
 
  I researched, but I don´t find one documentation for this.
 
  I find a reference using AV1Movie Class?
 
  is it correct for load a swf AS2?
 
  But how to use this class with Loader class?
 
  Tks.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to use AV1Movie Class?

2008-04-03 Thread ekameleon
hello :)

yes when you use the Loader class.. inside your reference you can find the
content reference who is the reference of the Bitmap or MovieClip, etc...
if the external swf is a AVM1 file the type of the reference is AVM1.

Use the Loader class and test the content property when the external swf is
loading.

EKA+ :)

2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:

 Hi,

 I´m developing my new portfolio in AS3 for learn.

 I need load swf AS2 into the movieclip in my swf AS3.

 I researched, but I don´t find one documentation for this.

 I find a reference using AV1Movie Class?

 is it correct for load a swf AS2?

 But how to use this class with Loader class?

 Tks.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to use AV1Movie Class?

2008-04-03 Thread ekameleon
hello :)

see the example in the reference of the AS3 class :

http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html

See the example in the end of the page

In the completeHandler callback method you can test the type of the
event.target.content reference :)

Example

private function completeHandler(event:Event):void
{
 trace(completeHandler:  + describeType(
event.target.contentType ) ); // import the flash.utils.describeType
method in the header of your code.
}



and read :

http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html

.. after, open Flex or Flash CS3 and copy the code and test it with an
external swf in AS2 and AS3...

It's easy to test it :)

EKA+ :)


2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:

 Hi ekameleon ,

 tks for your help, but was you have a exemple??

 tks again.


 On Thu, Apr 3, 2008 at 12:17 PM, ekameleon [EMAIL PROTECTED] wrote:

  hello :)
 
  yes when you use the Loader class.. inside your reference you can find
 the
  content reference who is the reference of the Bitmap or MovieClip,
  etc...
  if the external swf is a AVM1 file the type of the reference is AVM1.
 
  Use the Loader class and test the content property when the external swf
  is
  loading.
 
  EKA+ :)
 
  2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:
  
   Hi,
  
   I´m developing my new portfolio in AS3 for learn.
  
   I need load swf AS2 into the movieclip in my swf AS3.
  
   I researched, but I don´t find one documentation for this.
  
   I find a reference using AV1Movie Class?
  
   is it correct for load a swf AS2?
  
   But how to use this class with Loader class?
  
   Tks.
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread ekameleon
Hello :)

You can try my DateFormatter class :
http://www.ekameleon.net/vegas/docs/asgard/date/DateFormatter.html

To use it you can install my opensource Framework :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

This formatter work in AS2 or AS3 with the same features.

EKA+ :)

2008/3/26, Glen Pike [EMAIL PROTECTED]:

 Hi,

 Look at the Date class - you can use getDate, etc.  or getUTCDate,
 etc.  so I guess you could compare and contrast.

 I don't think this would enable you to differentiate between 12  24
 hour clock though.

 Glen


 Pasha wrote:
  Hey!
 
  Is it possible to detect time settings on user computer?
  I would like to know whether he/she uses american (AM/PM) or european 24
  hour time format.
 
  Pasha
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 


 --

 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread ekameleon
Hello :)

The flash player use the timestamp of the current date of the client OS
system. The number of ms since 1970.

EKA+ :)



2008/3/26, Glen Pike [EMAIL PROTECTED]:

 With windows you can decide whether to display 12 or 24 hour, but I am
 not sure if Flash can detect this setting, or if it affects the Date
 functions in Flash - I guess that's an experiment for someone to try...




 eric e. dolecki wrote:
  don't all computers use 24 hour clocks and the user can decide whether
 or
  not to display 12/24?
 
  On Wed, Mar 26, 2008 at 12:13 PM, Glen Pike [EMAIL PROTECTED]
  wrote:
 
 
  Hi,
 
 Look at the Date class - you can use getDate, etc.  or getUTCDate,
  etc.  so I guess you could compare and contrast.
 
 I don't think this would enable you to differentiate between 12  24
  hour clock though.
 
 Glen
 
  Pasha wrote:
 
  Hey!
 
  Is it possible to detect time settings on user computer?
  I would like to know whether he/she uses american (AM/PM) or european
 24
  hour time format.
 
  Pasha
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
 
  Glen Pike
  01736 759321
  www.glenpike.co.uk http://www.glenpike.co.uk
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 


 --


 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] need:: Flex 3 AS3 // tutorials, links, book recs.

2008-03-15 Thread ekameleon
Hello :)

you can try my opensource Framework with this AS2/AS3/SSAS version (full
compatible)

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

My framework contains extensions libraries to develop application with Flex
or Flash CS3 with AS3 or AS2 and MTASC and Flash Media Server.

You can find in the google code projects of VEGAS tutorials and examples :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
http://code.google.com/p/vegas/wiki/TutorialsVEGAS
http://code.google.com/p/andromed-as/wiki/TutorialsAndromedA_IOC

etc...

In the SVN of the project you can find tutorials and examples :

AS2 : http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/bin/
AS3 : http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/

With my framework you can use my documentary framework AST'r based on VEGAS
who contains full example applications in AS2 or AS3 :)
http://code.google.com/p/astr/

In the SVN of AST'r you can find examples and in the AS3 version a full
example with IOC/MVC/Frontcontroller implementation and external datas based
on AMFPHP or eden format
http://astr.googlecode.com/svn/trunk/AS3/trunk/

EKA+ :)


2008/3/15, artur [EMAIL PROTECTED]:

 oh wise list,

 i have some off-shore flex developers that are looking to upgrade their
 capabilities from Flex 2+AS2 -- Flex 3+AS3.

 any bookmarks, blogs, tutorials, and books recs you can give my would be
 incredibly appreciated.

 * if its in spanish..even better ;-)

 thanks!
 --

 *artur :.*

 - *www.artur.com*
 - [EMAIL PROTECTED]
 - *ph:646.797.3320*

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread ekameleon
Hello :)

Test my AVM2Loader class :

Référence : http://www.ekameleon.net/vegas/docs/
Class   :
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/asgard/display/AVM2Loader.as

If you want install my framework :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

you can use the AS3 SVN repository to checkout the sources :
http://svn1.cvsdude.com/osflash/vegas/AS3/

EKA+ :)


2008/3/10, Ian Thomas [EMAIL PROTECTED]:

 Has anyone got any idea why when I create an instance of an AVM1Movie
 (embedded) within an AS3 app, AS2's MovieClip.getBounds() function
 returns undefined within the contained movie whereas it works
 perfectly well if the AS2 movie is run outside the AS3 app?

 Same result with Flex2.01 and Flex3 compilers.

 Cheers,
Ian
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread ekameleon
hello :)

PS : in AS3 application AS2 code source can't work... the AVM2 (new virtual
machine of the flashPlayer 9) can't use AVM1 scripts (AS1 or AS2)

eKA+ :)

2008/3/10, ekameleon [EMAIL PROTECTED]:

 Hello :)

 Test my AVM2Loader class :

 Référence : http://www.ekameleon.net/vegas/docs/
 Class   :
 http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/asgard/display/AVM2Loader.as

 If you want install my framework :
 http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

 you can use the AS3 SVN repository to checkout the sources :
 http://svn1.cvsdude.com/osflash/vegas/AS3/

 EKA+ :)


 2008/3/10, Ian Thomas [EMAIL PROTECTED]:
 
  Has anyone got any idea why when I create an instance of an AVM1Movie
  (embedded) within an AS3 app, AS2's MovieClip.getBounds() function
  returns undefined within the contained movie whereas it works
  perfectly well if the AS2 movie is run outside the AS3 app?
 
  Same result with Flex2.01 and Flex3 compilers.
 
  Cheers,
 Ian
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] positioning along bezier curve

2008-03-03 Thread ekameleon
Hello :)

With the curveTo method you can't find  the bezier equation ;)

http://www.timotheegroleau.com/Flash/articles/cubic_bezier_in_flash.htm

you must use custom maths method

In my opensource framework for example :
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/pegas/util/BezierUtil.as
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/pegas/draw/BezierPen.as

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

And test the examples in the AS3/trunk/bin/test/pegas/draw directory :

http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/bin/test/pegas/draw/


EKA+ :)

2008/3/3, Merrill, Jason [EMAIL PROTECTED]:


 I am drawing a bezier curve using:

 mySprite.graphics.curveTo(X1, Y1, X2, Y2);

 Works, and so I know where the control point is, and the desintation
 point, but is there a way to calculate a point midway along the curve?
 I'd like to position a sprite there.


 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community


 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Animated gif

2008-01-28 Thread ekameleon
Hello :)

You can see too the AS3 Gif Player class : http://www.bytearray.org/?p=95

EKA+ :)

2008/1/29, tommek [EMAIL PROTECTED]:

 Dynamically loading animated gif in flash and get them to play is that
 possible.

 I found

 http://dougmccune.com/blog/2007/01/19/how-to-load-animated-gifs-using-adobe-flex-20/
 it has been done in Flex.

 Can this be done in flash cs3 as3 code?

 Is it possible to the loader |to mimeType=application/octet-stream?|
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] progress Bar in AS3

2008-01-17 Thread ekameleon
Hello :)

In my AS3 opensource framework you can find an extension LunAS who
contains progressbar, scrollbar, containers and button models for the moment
(the other component implementation are in progress :))

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

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

Example to use my components in the SVN repository of the project :
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/bin/test/lunas/display/

EKA+ :)

2008/1/17, Corban Baxter [EMAIL PROTECTED]:

 http://www.bit-101.com/blog/?p=946


 On Jan 14, 2008 9:27 AM, Gustavo Duenas
 [EMAIL PROTECTED] wrote:
  Hi There is a way to set up the progress Bar to load the stage or
  main timeline.
 
  I have the component dragged to my stage, then I've click on pulled
  and in the source I'll write: root, _root
  well this one works in AS2, but Actually I've just migrated to AS3,
  so if you know a way to do this, please let me know.
 
  Regards
 
 
  Gustavo
 
 
  Gustavo A. Duenas
  Creative Director
  LEFT AND RIGHT SOLUTIONS
  904.  265 0330 - 904. 386 7958
  www.leftandrightsolutions.com
  Jacksonville - Florida
 
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Corban Baxter
 http://www.projectx4.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Question about Arrays

2008-01-11 Thread ekameleon
Hello :)

try the typecasting :

(a.pop() as MyClass).myFunction();

you  can decompose the code with a reference and add a test with the null
object

var myInstance:MyClass = a.pop() as MyClass ;

if ( myInstance != null )
{
myInstance.myFunction() ;
}




EKA+ :)

2008/1/11, Mark Lapasa [EMAIL PROTECTED]:

 In the following bit of code...
 // START code
 package {
 import flash.display.Sprite;

 public class SampleClass extends Sprite
 {
 public function SampleClass()
 {
 var a:Array = [new MyClass()];
 a[0].myFunction();
 a.pop().myFunction();
 }
 }
 }

 class MyClass
 {
 public function myFunction():void
 {
 trace(you should see this twice);
 }
 }
 // END code


 Does accessing the array (or poping an element off it) return something
 of type Object? or type MyClass? myFunction() is a part of the interface
 of MyClass so I am guessing when objects are stored in arrays, their
 type is also stored in the array as well.

 Thx,

 -mL
 knowledge.lapasa.net


 Notice of confidentiality:
 The information contained in this e-mail is intended only for the use of
 the individual or entity named above and may be confidential. Should the
 reader of this message not be the intended recipient, you are hereby
 notified that any unauthorized dissemination, distribution or reproduction
 of this message is strictly prohibited. If you have received this message in
 error, please advise the sender immediately and destroy the e-mail.


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] unsetting object property in AS2

2007-10-23 Thread ekameleon
Hello :)

yes with the ADT.. you can use my opensource framework of collections based
on JAVA implementation :

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

http://vegas.ekameleon.net/docs/ (see vegas.data package)

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

EKA+ :)

2007/10/20, Mark Winterhalder [EMAIL PROTECTED]:

 Andrew,

 you can do 'delete myObject.myProperty', and you may want to look into
 linked lists as an alternative to arrays:
 http://en.wikipedia.org/wiki/Linked_list

 HTH,
 Mark



 On 10/19/07, Andrew Sinning [EMAIL PROTECTED] wrote:
  A question in my sent box from when the list went down:
 
  I like to use the Object class as an index, but there doesn't appear to
  be a way to completely remove a property from an object.  I can set the
  value to null, but I'd really like to be able to remove the property
  completely.  Why? Because if I want to do a reverse lookup, then I have
  to iterate through all of the properties, but having to iterate through
  the nulled values seems inefficient.
 
  I can do this with another class, something that includes an Array to
  keep track of current properties and an Object for the index, but I'm
  wondering if I'm overlooking something.  Often I find that I am.
 
  Speaking of Arrays, it's a bit frustrating that there's no easy way to
  remove an item from an array either.  Currently I use:
 
 iterate through the array to find the index of the needle
 splice the Array at the index
 
  Is there a faster way to remove an item from an array?
 
 
  Thanks!
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] unsetting object property in AS2

2007-10-21 Thread ekameleon
Hello :)

See the documentation of the Array class and the splice method :

splice(startIndex:Number 2026.html#419506,
[deleteCount:Number2026.html#419506],
[value:Object 2035.html#421878])


The null value don't remove an item in the Array instances :) clean only the
value in the case :)

If you use a property in an object use 'undefined' or 'delete' :

var o = {} ;
o.prop1 = 1 ;
o.prop2 = 2 ;
trace(o) ;

for (var prop in o )
{
  trace( prop  +  :  + o[prop] ) ;
}

trace(--- remove prop1) ;

trace( remove prop1 :  + delete o.prop1 ) ;

for (var prop in o )
{
  trace( prop  +  :  + o[prop] ) ;
}

... If you want keep the property but this property not must be enumerable
in the for..in loop, use ASSetPropFlags :

var o = {} ;
o.prop1 = 1 ;
o.prop2 = 2 ;
trace(o) ;

ASSetPropFlags(o, [prop1] , 1 ) ;

// with the for..in
for (var prop in o )
{
  trace( prop  +  :  + o[prop] ) ;
}

// but the property exist :
trace(o.prop1 ) ;


EKA+ :)

2007/10/19, Andrew Sinning [EMAIL PROTECTED]:

 A question in my sent box from when the list went down:

 I like to use the Object class as an index, but there doesn't appear to
 be a way to completely remove a property from an object.  I can set the
 value to null, but I'd really like to be able to remove the property
 completely.  Why? Because if I want to do a reverse lookup, then I have
 to iterate through all of the properties, but having to iterate through
 the nulled values seems inefficient.

 I can do this with another class, something that includes an Array to
 keep track of current properties and an Object for the index, but I'm
 wondering if I'm overlooking something.  Often I find that I am.

 Speaking of Arrays, it's a bit frustrating that there's no easy way to
 remove an item from an array either.  Currently I use:

iterate through the array to find the index of the needle
splice the Array at the index

 Is there a faster way to remove an item from an array?


 Thanks!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Voicerecording with flash?

2007-09-17 Thread ekameleon
Hello :)

About FMS you can read the documentation :
http://www.adobe.com/support/documentation/en/flashmediaserver/

And in the client side Actionscript reference :
http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part_CS_ASD.html

Search the NetConnection, NetStream, Camera, Microphone and Video class
examples :)

After... you can use this client class with the FMS Server (official RTMP
server of adobe) but you can use too the opensource solutions Red5 based on
JAVA or HaxeVideo based on Haxe/Neko technologie :

http://osflash.org/red5
http://code.google.com/p/haxevideo/

You can use Wowza server : http://www.wowzamedia.com/index.html (based on
java)

The client Actionscript is the same :)

You can read in french my tutorial about this different technologies :
http://www.ekameleon.net/blog/index.php?2007/04/08/66-haxevideo

EKA+ :)




2007/9/17, Peter Oliver Geller [EMAIL PROTECTED]:

 Hi all together,

 Did somebody know what I need to do a voice recording with flash.
 I heard that it is only possible with a flash media server?

 Is that right?,
 don't find any information about that topic what was useful for me :(

 Maybe someone have an idea?

 Regards

 Peter

 
 Peter Oliver Geller
 interface design, animation development

 Lindenstraße14. 50674 Cologne
 0221 - 92 4281 - 52phone

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