Re: [Flashcoders] Q:JSON vs XML advantages

2006-11-23 Thread eka
F protocol is speed no ? EKA+ :) 2006/11/23, Ben Smeets <[EMAIL PROTECTED]>: JSON Speed? I haven't used it before so can only judge it by what I read on the web :) http://blogs.adobe.com/mikepotter/2006/07/php_and_flex_js.html -Original Message- From: [EMAIL PROTECTED] [mai

Re: [Flashcoders] changing a MovieClip instance class at runtime inAS2 ?

2006-11-26 Thread eka
... Try the examples in AS2/trunk/bin/test/util/... directory EKA+ :) 2006/11/24, Dani Bacon <[EMAIL PROTECTED]>: hey eka. thx it seems to almost do the trick it changes the class prototype but errors when i try to initialize the constructor using the call method. on stage i have a MC

Re: [Flashcoders] setRGB question

2006-11-30 Thread eka
Hello :) use Color.setTransform method to clear the color effect :) var c:Color = new Color(mc) ; c.setRGB(0x00) ; c.setTransform ({ra:100, ga:100, ba:100, rb:0, gb:0, bb:0}) ; EKA+ :) 2006/11/30, dan <[EMAIL PROTECTED]>: Hi guys Im using the setRGB command to change a colo

Re: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka
" + who + " with the value : " + x) ; } var ui:MyUIObject = new MyUIObject(); ui.addListener(this) ; ui.x = 25 ; EKA+ :) 2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>: Hello, I often need to recognize for some of my gui elemets when the embedded gui elements (chil

Re: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka
" with the value : " + x) ; } ui.addListener(this) ; ui.x = 25 ; EKA+ :) 2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>: Hello EKA, thanks for your reply. to your 1: yes, i really don't wanted to use watch. the watch method is less performant, I have read on this list so

Re: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka
ooops... ui.addListener(this) ; is no necessary now in your test in my last message;) the 2006/11/30, eka <[EMAIL PROTECTED]>: Hello :) you can but a good event model use AsBroadcaster or other system to dispatch the events :) In my personnal AS2 OpenSource framework i use a event

Re: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka
, removeListener and broadcastMessage... documented since Flash8 but ready in Flash6/7/8... AsBroadcaster is the good solution to begin to used a event model in your code... (example of tutorials about this class : http://www.actionscript.org/resources/articles/116/1/ASBroadcaster/Page1.html ) EKA

Re: Re[2]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka
- use AsBroadcaster (speed) 2 - use GDispatcher class and not AS2 EventDispatcher: http://www.gskinner.com/blog/archives/27.html 3 - use my event model in VEGAS :) (compte event model) EKA+ :) 2006/11/30, Rákos Attila <[EMAIL PROTECTED]>: MD> perhaps I can cotton up with (btw. is thi

Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka
his } ) ; ... my framework implement 3 event models.. but the vegas.events.EventDispatcher is more complete... with EventListener, Event, EventTarget interface etc.. EKA+ :) 2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>: You guys are right, I have mixed two questions into one: 1: propertie

Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-12-01 Thread eka
this property. } } And in your code : var t:Test = new Test() ; t.value = 2 ; trace(t) ; EKA+ :) 2006/12/1, Matthias Dittgen <[EMAIL PROTECTED]>: The set/get (former addProperty) methodology seemed to offer the solution, but now I see, that I can implicit (not writing uio.setSomethi

Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread eka
ocal variables with a var in a method is remove by the Garbage collector at the end of the call function. EKA+ :) 2006/12/1, Yehia Shouman <[EMAIL PROTECTED]>: function Square(){} Square.prototype=new MovieClip(); Square.prototype.changeColorTo=function (clr:Number) { var tempClr

Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread eka
layer-8.html(english) - http://www.adobe.com/devnet/flashplayer/articles/fp8_performance.html(english) - http://www.informit.com/guides/content.asp?g=flash&seqNum=344&rl=1(english) - http://www.gskinner.com/blog/archives/2006/09/garbage_collect.html (search the key work Garbage collector in this blog) EKA+

Re: [Flashcoders] [AS 3.0] Instantiating a Class from child SWF

2006-12-02 Thread eka
Hello :) read this article in french : http://iteratif.free.fr/blog/index.php?2006/09/14/52-bibliotheque-partagee-sous-flash-9-et-flex-2 i think this article can help you :) EKA+ :) 2006/12/2, James Marsden <[EMAIL PROTECTED]>: Hey all, I have a problem instantiating a class

Re: [Flashcoders] Flashpaper for customized documents

2006-12-04 Thread eka
for your classpath. 3 - test the examples in AS2/trunk/bin/test/asgard/loader/FlashPaperLoader.fla :) Read the documentation of the class to see all methods in this loader (you can hide the logo etc...) EKA+ :) 2006/12/5, redknot <[EMAIL PROTECTED]>: Hi all: I have not used Flashpaper

Re: [Flashcoders] problem with function access into class

2006-12-06 Thread eka
"[Loader]" ; } /** * Internal method to test the result */ private function _test( success:Boolean ) { trace("> " + this + " test : " + success); trace("> " + this + " xml : " + x ) ; // continue your t

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

2007-04-28 Thread eka
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

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

2007-05-04 Thread eka
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 qu

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

2007-05-05 Thread eka
script 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

Re: [Flashcoders] remoting with as3 (not flex)

2007-05-05 Thread eka
me = "Test" ; service.methodName = "getUser" ; service.params = ["eka", 30, "http://www.ekameleon.net";] ; // o Launch Service

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.

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/0

Re: [Flashcoders] Question on removeEventListener and Delegate callback

2007-05-07 Thread eka
i/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 corre

Re: [Flashcoders] Question on removeEventListener and Delegatecallback

2007-05-07 Thread eka
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 startin

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 ? :) EK

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:Numbe

Re: [Flashcoders] Quick syntax q: how to write a function that canreceive an undefined number of parameters

2007-05-11 Thread eka
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(--le

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 wou

Re: [Flashcoders] AS2: capturing link events?

2007-05-16 Thread eka
, 0, 200, 20) ; field.autoSize = true ; field.border = true ; field.setNewTextFormat( format ) ; field.html = true ; field.htmlText = 'Link' ; You can use TextField.StyleSheet to apply a css style in your fields etc Read the actionscript reference with the words TextField and asfunction :) EK

Re: [Flashcoders] survival off eventlisteners on class instance redeclaration?

2007-06-01 Thread eka
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 PROTEC

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

Re: [Flashcoders] IE7 Crashing on FileReference.download()

2007-06-07 Thread eka
. 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 re

Re: [Flashcoders] Private var not accessible?

2007-06-07 Thread eka
ation :) 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 cla

Re: [Flashcoders] Private var not accessible?

2007-06-07 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

Re: [Flashcoders] AS2: Multilanguage-Listener

2007-06-12 Thread eka
ion/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 (englis

Re: [Flashcoders] How can we sum to dates???

2007-06-15 Thread eka
"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 pro

Re: [Flashcoders] How can we sum to dates???

2007-06-16 Thread eka
dar.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 <

Re: [Flashcoders] Stopping a Movie Clip animation

2007-06-24 Thread eka
( 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

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 n

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 op

Re: [Flashcoders] Controllingt he volume of multiple sound objects at the same time

2007-07-06 Thread eka
.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.

Re: [Flashcoders] Application Structure - Flash Remoting& MovieClipLoader

2007-07-12 Thread eka
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 pro

Re: [Flashcoders] Global Error Handler

2007-07-14 Thread eka
.. 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 her

Re: [Flashcoders] Variable argument list

2007-07-18 Thread eka
{ 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

Re: [Flashcoders] AS3 - how do i find the path to where a MC belongs?

2007-07-24 Thread eka
.push( parent.name ) ; parent = parent.parent ; if (parent.name == null) { break ; } } parents.reverse() ; return parents.join( "." ) ; } } but it's not the better solutio

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]>:

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

2007-07-27 Thread eka
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

Re: [Flashcoders] Q:optimizing a Calendar app

2007-07-29 Thread eka
( 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

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

2007-07-30 Thread eka
:) 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? > > thank

Re: [Flashcoders] sending array items as function parameters

2007-08-22 Thread eka
/// 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 varie

Re: [Flashcoders] Iterator question

2007-08-30 Thread eka
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 h

Re: [Flashcoders] Dynamically Loading Sound Files from external SWFs

2007-08-30 Thread eka
ate 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 pro

Re: [Flashcoders] Iterator question

2007-08-31 Thread eka
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. > >

Re: [Flashcoders] creating variable names dynamically in AS3

2007-08-31 Thread eka
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

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

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]>: > >

Re: [Flashcoders] as3 code!!

2007-09-02 Thread eka
public function Test() { for (var i:uint = 0 ; i<10 ; 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]>: > &

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]>

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

2007-09-02 Thread eka
. 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 :) E

Re: [Flashcoders] as3 code!!

2007-09-02 Thread eka
/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 PR

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

2007-09-03 Thread eka
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 > > developpe

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.contentLoaderInfo<http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html#contentLoaderInfo>

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 > ___ > F

Re: [Flashcoders] variable scope

2007-09-09 Thread eka
s 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

Re: [Flashcoders] AS2 Sound.stop()

2007-09-13 Thread eka
t; 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 p

Re: [Flashcoders] Traversing through Object goes backwards

2007-09-13 Thread eka
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 g

Re: [Flashcoders] cs3 remoting...

2007-09-14 Thread eka
SGard) ) : 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... > > ht

Re: [Flashcoders] Scoping Issue with a Function - Help, please

2006-05-22 Thread eka
Hello :) use mx.utils.Delegate class :) [code] myButton.onPress = Delegate.create(_root, _root.action) ; [/code] With Delegate.create method you can create a virtual method with your scope and your method. EKA+ :) 2006/5/22, Loren R. Elks <[EMAIL PROTECTED]>: Hi: Can someone help m

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread eka
TRAC : http://live.burrrn.com/wiki/VEGAS now for the custom object's serialization you can use EDEN : http://live.burrrn.com/wiki/eden EKA+ :) 2006/5/25, Merrill, Jason <[EMAIL PROTECTED]>: You mean the Class type then - for a custom class, I think you would have to create a property t

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread eka
'MyClass' var package:String = ConstructorUtil.getPackage(instance) ; trace("class package : " + package) ; // output : 'myPackage' var path:String = ConstructorUtil.getPath(instance) ; trace("class path : " + path) ; // output : 'myPackage.MyConstructor' [/

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread eka
class each time. It's automatic :) For me the method of macromedia is not at all functional and clean ;) I Use this method in all toString() methods with an enormous framework and it's perfect. EKA+ :) 2006/5/25, Arul Prasad <[EMAIL PROTECTED]>: :) that will work - but won

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread eka
#x27;s FAN... but it's a native method !! EKA+ :) 2006/5/25, Ian Thomas <[EMAIL PROTECTED]>: Having googled to find your code - that's a really nice way of doing it. Well done! (Does anyone know if AS3 has a better reflection system than AS2..?) Ian On 5/25/06, eka <[EMA

Re: [Flashcoders] Disable all buttons

2006-05-26 Thread eka
pour activer ou désactiver tes boutons il te reste plus qu'à parcourir le tableau avec une boucle for par exemple :) Il est possible de cibler un clip et de parcourir son contenu avec un for..in également, mais la technique est un peu plus bordellique :) EKA+ :) 2006/5/26, Éric Thibault <[EMAI

Re: [Flashcoders] Can Variables have listeners?

2006-05-26 Thread eka
Hello :) open Flash help (F1) and search in the actionscript dictionnary > Object.watch and Object.unwatch :) EKA+ :) 2006/5/26, Mike Anderson <[EMAIL PROTECTED]>: Hello All, I have a ton of components scattered throughout my application, and most of them react to changes of a

Re: [Flashcoders] Which eventBroadcaster is most widely used and-or reccomended?

2006-05-30 Thread eka
ts, Capturing events, FrontController ... and more :) EKA+ :) 2006/5/30, Manuel Saint-Victor <[EMAIL PROTECTED]>: I'm looking at adding an EventBraodcaster to my project and was wondering if anyone was aware of which of the current classes out there was more reccomended

Re: [Flashcoders] dispatching events

2006-06-08 Thread eka
et:test_mc } ; dispatchEvent ( e ) ; // test 2 } } or show more code please ;) EKA+ :) 2006/6/8, Sam <[EMAIL PROTECTED]>: Hi, Is it possible to dispatch events from a simple call to a method? I have a view class that extends an abstract view class that contains the EventDispatc

Re: [Flashcoders] dispatching events

2006-06-08 Thread eka
n do a constant with ASSetPropFlags ! ;) EKA+ :) 2006/6/8, Sam <[EMAIL PROTECTED]>: Hi, Thanks, sorry I quickly stripped the classes down for posting here. Can you explain this portion of your code: static private var __ASPF__ = _global.ASSetPropFlags(SampleView, ["LOAD_SOMETHING"],

Re: [Flashcoders] dispatching events

2006-06-08 Thread eka
try this examples here : http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/vegas/events/ Install Vegas and Asgard with Tortoise SVN and try it if you want :) EKA+ :) 2006/6/8, eka <[EMAIL PROTECTED]>: Hello :) With ASSetPropFlags you can change the properties in an object :) (rea

Re: [Flashcoders] how to decode base64 data and display in flash

2006-06-09 Thread eka
hello :) In AS1 or AS2 ... with flash 8 or < ... you can't use directly Base64 picture :) Only with AS3 you can with Binary objects ! If you want transform base64 data ... you must use PHP or other and after load picture with MovieClipLoader.loadClip or MovieClip.loadMovie metho

Re: [Flashcoders] The Delegate class ...

2006-06-14 Thread eka
test3 - scope is a MovieClip with "mc" this instance's name mc.onRelease = action ; // if you release your mc, use action with mc scope (classic) mc.onPress = Delegate.create(o, action) ; // if you press your mc, use custom scope [/code] EKA+ :) 2006/6/14, Stephen Ford <

Re: [Flashcoders] Accessing non-interface methods from an object of an interface type

2006-06-14 Thread eka
interface. [/code] EKA+ :) 2006/6/14, Mark Lapasa <[EMAIL PROTECTED]>: /// // Inside "Interface.as" // /// interface Interface { public function foo():Void; } /// /

Re: [Flashcoders] The Delegate class ...

2006-06-15 Thread eka
EventDispatcher, etc..) - http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/events/ (package vegas.events) More information about VEGAS : http://osflash.org/vegas EKA+ :) 2006/6/15, Ian Thomas <[EMAIL PROTECTED]>: On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >

Re: [Flashcoders] Class overloading question

2006-06-15 Thread eka
Clip ; // -o Public Methods public function stop () { super.stop() ; trace("i stop the sound in : " + target) ; } } EKA+ :) 2006/6/15, Nik Derewianka <[EMAIL PROTECTED]>: Hi All, Im trying to overload the Sound class to add my own features, it works

Re: [Flashcoders] Class overloading question

2006-06-15 Thread eka
est2 in MyClass constructor") ; } } EKA+ :) 2006/6/15, André Goliath <[EMAIL PROTECTED]>: Sorry, I ment That should always be the first line in constructors of inherited classes, not the first line of the class itself... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMA

Re: [Flashcoders] Accessing non-interface methods from an object ofan interface type

2006-06-15 Thread eka
Hello :) i forget ... you can transform your expression too with [] notation : import ConcreteClass; import Interface; var tmp:Interface = new ConcreteClass(); tmp["bar"]() ; // works too EKA+ :) 2006/6/15, Mark Lapasa <[EMAIL PROTECTED]>: Thanks EKA and JC for your an

Re: [Flashcoders] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread eka
throw new Error("Illegal Argument, " + arg0 + " must be String or Number") ; ) } For me ... this method is a good alternative :) EKA+ :) 2006/6/15, Adrian Park <[EMAIL PROTECTED]>: Hi List, What's the neatest way of accepting a single parameter with 2 possib

Re: [Flashcoders] Q:Get name of referring class

2006-06-28 Thread eka
vsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/ConstructorUtil.as For example : import vegas.util.ConstructorUtil ; var u = new myNameSpace.User("eka") ; trace( ConstructorUtil.getName(u) ) ; // return User trace( ConstructorUtil.getPath(u) ) ; // return myNameSpace.User trace(Construc

Re: [Flashcoders] Determining when the Stage *stops* resizing

2006-06-28 Thread eka
artResizing ; // -o TEST var listener = {} ; listener.onStartResize = function () { trace("start resize") ; } listener.onStopResize = function () { trace("stop resize") ; } StageResizer.addListener(listener) ; EKA+ :) 2006/6/29, Matt Bennett <[EMAIL PROTECT

Re: [Flashcoders] Programmatically instantiating a class that extends MovieClip.

2006-06-29 Thread eka
Hello :) it's easy, you must use __proto__ AS2 - MyClass extend MovieClip !!! MyClass extends MovieClip { // o Constructor public function MyClass() { } } var mc = createEmptyMovieClip("myInstance", 1) ; mc.__proto__ == MyClass.prototype ; MyClass.

Re: [Flashcoders] AS2 and watch ...

2006-07-06 Thread eka
ovieClip ) { trace("Click : " + who) ; } Key.addListener(this) ; onKeyDown = function () { myButton.enabled = ! myButton.enabled ; // press key to test please :) } EKA+ :) 2006/7/6, Julien Vignali <[EMAIL PROTECTED]>: Well, I use it sometimes as an update broadcast mecanism. L

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread eka
ass MainClass { public function MainClass() { var i:MyClass = new MyClass() ; // ok var a:AbstractClass = new AbstractClass() ; // throw IllegalOperationError } } } EKA+ :) 2006/7/9, Weyert de Boer <[EMAIL PROTECTED]>: I am blind or is the

Re: [Flashcoders] AS3 Hide props?

2006-07-10 Thread eka
Hello :) It's easy ;) You can use myObject.setPropertyIsEnumerable("myProperty", false) EKA+ :) 2006/7/9, Weyert de Boer <[EMAIL PROTECTED]>: Yes, hiding properties of inherited classes would be nice. Yours, Weyert __

Re: [Flashcoders] private constructors in AS3.0?

2006-07-10 Thread eka
public function testSingleton2() { trace( Singleton.testconst ); trace( Singleton.testvar ); trace( Singleton.testMethod() ); } } } Thanks Zwetan for this good solution. EKA+ :) 2006/7/10, Weyert de Bo

Re: [Flashcoders] parsing XML / xpath

2006-07-10 Thread eka
Hello :) Use XPATH library in http://www.xfactorstudio.com/ EKA+ :) 2006/7/10, keitai guy <[EMAIL PROTECTED]>: hi list - are there any popular AS libs out there for walking thru XML? eg something like xpath - to find a named node.

Re: [Flashcoders] recursive buttons

2006-07-10 Thread eka
Hello :) example in AS1 : var listButton = ["item1", "item2", "item3", "item4] ; var l:Number = listButton.length ; var action = function ( ) { var id:Number = this.index ; switch( id ) { case 0 : trace("press the button : " + id) ;

Re: [Flashcoders] Dynamic access of top-level variables in AS3

2006-07-10 Thread eka
!!! } } EKA+ :) 2006/7/10, Chris McFadyen aka Grayson Carlyle <[EMAIL PROTECTED]>: In doing web apps, we pass a lot of variables directly to the swf files. Some of these are dynamically matched using eval() to write variable values into strings. Example: Reading settings from

Re: [Flashcoders] Dynamic access of top-level variables in AS3

2006-07-11 Thread eka
Hello :) in french : http://www.ekameleon.net/blog/index.php?2006/07/06/35--as3-le-_global-bien-cache- EKA+ :) 2006/7/11, Derek Vadneau <[EMAIL PROTECTED]>: Create an object in the global scope to contain your variables, let's call it "_global". Then reference it as: _

Re: [Flashcoders] Dynamic access of top-level variables in AS3

2006-07-11 Thread eka
Hello :) with a for..each or for..in on your object ! Can you show me your AS3 code please ? EKA+ :) 2006/7/11, Chris McFadyen aka Grayson Carlyle <[EMAIL PROTECTED]>: Merci, (and I'd continue in French, but I'm far better at understanding it than writing it) However, this

Re: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
Hello ;) In AS3 the private keyword it's removed !! ;) You can't use this keyword for your constructor :) EKA+ :) 2006/7/11, Chris Allen <[EMAIL PROTECTED]>: For compile time checks, just use a private constructor. As ActionScript allows one to access a private (not reall

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
e_thread/thread/544f79b0b223b15a/e2b2527f81678da7?lnk=st&q=constructeur+AS3&rnum=1#e2b2527f81678da7 PS : sorry for my english ^_^ EKA+ :) 2006/7/11, Weyert de Boer <[EMAIL PROTECTED]>: Why is it removed? ___ Flashcoders@chattyf

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
yes but i speak very badly in english !!! i can't explain you easily this change :( EKA+ :) 2006/7/11, Mike <[EMAIL PROTECTED]>: That does seem stupid and completely pointless. I use private constructors all the time. Is there an official rationale for this? -- T. Mic

<    1   2   3   >