Re: [Flashcoders] Newbie AS3 question
Cedric Muller wrote: in the end, using 'this' or leaving it does make a difference, doesn't it ? I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? I'm pretty sure it's just compiled into the same bytecode either way. There are a number of ways to test that, although I don't have time to try any of them just now. A decompiler probably won't tell you anything, because the decompilers job is by definition, to reconstruct the source code, not show you the bytecode. - Robert ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
Unless someone has coded a very odd compiler*, for most compilers of most languages including 'this' won't make any difference to the compiled bytecode. Ian *But then, it _is_ Macromedia. You never know. ;-) On 10/31/05, Cedric Muller [EMAIL PROTECTED] wrote: in the end, using 'this' or leaving it does make a difference, doesn't it ? I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
so, people not using 'this' assume something not really achievable in terms of 'technology' ? ;) I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? No, if you leave it off, it is added at compile time. Like I said, you can't call methods that aren't members of an object; all functions must be members of some object. AS1/2 allows you to *pretend* like you're calling a method that doesn't belong to an object, but only by assuming that it is a member of the current timeline (which is an object). Similarly, a method call in a class without an object specified will assume that it is of the current scope (this), and add that object reference during compilation (or, technically, just before). The bytecode is exactly the same, except in the (admittedly rare) case where there is a name conflict with a method in a superceding scope, in which case the object reference inserted by the precompiler will point to a different (and probably wrong) object. ryanm ___ 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] Newbie AS3 question
correction/confirmation: 'this' keyword is added everywhere it is needed during compile time. Cedric Muller wrote: in the end, using 'this' or leaving it does make a difference, doesn't it ? I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? I'm pretty sure it's just compiled into the same bytecode either way. There are a number of ways to test that, although I don't have time to try any of them just now. A decompiler probably won't tell you anything, because the decompilers job is by definition, to reconstruct the source code, not show you the bytecode. - Robert ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Is Not a Number
Run this, once in flash player6-setting, and one time in 7/8, both compiled with as2. The Strong-typing of the parameter doesn't affect the result. But how come this is so indifferent results, was perhaps the output of flsahplayer6 wrong accordingly to ecma? trace(!isNaN(undefined)) / martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strict Datatyping Question
Chris Velevitch wrote: I think the confusion occurs because you seem to be mixing up the distinction between declaration and reference. Another distinction, which isn't very clear in ActionScript, is the distinction between declaration and definition. The declaration is where you tell the compiler what is supposed to exist. The definition is where you create the things that actually exist. The definition needs to match the declaration. In ActionScript these generally happen at the same time, e.g.: var x : Number; That means: 1. Declare that a variable called x exists and has the type Number 2. Define a variable called x and allocate the memory for it. Make it a Number. In ActionScript, you can't have a declaration without a definition. However, you can have a definition without a declaration. E.g.: this.x = 10; That's a definition. x is a variable of type Number containing the number 10. If you happen to have a declaration elsewhere that says, for instance, that x should be a String, then this will cause a compiler error because the definition doesn't match the declaration. However, if there is no declaration and you are not working with a non-dynamic class, ActionScript just allows this to go as a dynamic variable: one whose type is not known at compile time because it is defined at runtime without a formal declaration. Variables are always declared with var because that ensures they are being created in the local scope. You can't go declaring things in a different scope, because aside from anything else, that would break the OOP black-box model. It would be like me coming into your house and rearranging your furniture while you were out. It doesn't work like that, because the compiler needs to rely on a single, authoritative declaration. - Robert ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Is Not a Number
Martin Klasson wrote: Run this, once in flash player6-setting, and one time in 7/8, both compiled with as2. The Strong-typing of the parameter doesn't affect the result. But how come this is so indifferent results, was perhaps the output of flsahplayer6 wrong accordingly to ecma? trace(!isNaN(undefined)) That would be pretty old news and was one of the things changed back then. var t; trace(Number(t)); // gives: // 0 in Flash 6 // NaN in Flash 7+ Just like: var s; trace(String(s)); // gives: // in Flash 6 // undefined in Flash 7+ That is, Number- and String-conversion of undefined was changed. So was String-to-Boolean-conversion (non-empty string are alwas true now) and null-to-Number-conversion (null is NaN, not 0) - at least those are the 4 primitive datatype conversion changes that I remember :) It was done in order to conform with the ECMAScript standard, yes. :) -- Morten Barklund - Information Architect - Shockwaved Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV's dropping frames on import for timeline playback.
Putting videos directly on the timeline (if I'm right in thinking that's what you're doing) is not really the way to go, it's notoriously unreliable for anything other than really small videos. Have you tried using one of the Media Display components? Matt Muller wrote: Hi, I have a 360 of a car in 3d I'm importing for timeline playback, and yes i have set 1 keyFrame for every frame, but it seems to drop a few frames making playback a little jerky, Ive tried with the same FLV output from Flix Pro and Flash Video Encoder, frame rate matches the Flash doc (25fps) and Ive exported png seqs, there are no irregular frames. Also done an export from AE as FLV with Sorenson (will have to wait for AE7 forr ON2) and thats perfect, did sorenson from Flash Video Encoder and it was dropping frames, so my conclusion is there are bugs in the encoder, or in the import proceess, anyone else had similar trouble? cheers MaTT ___ 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] Newbie AS3 question
Ian Thomas wrote: Unless someone has coded a very odd compiler*, ... *But then, it _is_ Macromedia. You never know. ;-) Yes, it _is_ Macromedia :-) For a very odd compiler, look no further than Lingo. - Robert ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
ryanm wrote: I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? No, if you leave it off, it is added at compile time. Like I said, you can't call methods that aren't members of an object; all functions must be members of some object. AS1/2 allows you to *pretend* like you're calling a method that doesn't belong to an object, but only by assuming that it is a member of the current timeline (which is an object). Similarly, a method call in a class without an object specified will assume that it is of the current scope (this), and add that object reference during compilation (or, technically, just before). The bytecode is exactly the same, except in the (admittedly rare) case where there is a name conflict with a method in a superceding scope, in which case the object reference inserted by the precompiler will point to a different (and probably wrong) object. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Two things: 1. Personally, in the end, i think the concept of readability is a matter of taste. Omitting this because it clutters the code is a strange notion to me, because to a lot of people it actually humanizes the code somewhat. If you're going to ask me about code clutter, i'd point you to classes such as Robert Penner's tween functions, which have about as nondescriptive variable names as i can imagine and do little to educate you. They supply the functionality, and that is that: Cue reference to how the quintessential software developer often denies himself the role of the teacher by force of habit. I'm the guy that types long variable names so i can pass the class on to the next man without figuring 15 minutes of tutoring into the idea, and this happens when you're the one scripter guy in an office full of designers. To pertain to self-imposed rules of truncated code because you have some idea as to what reads better TO YOU and what other people SHOULD strive for is arrogance, not craftsmanship. To me, clutter is obfuscated script that makes no sense on first glance, and that takes you several reads through to catch the functionality and scope. A few thises here and there in addition to commentary is not a matter of bad form insofar as it helps the next man make sense of your work. You may be engineers on the lowest level, but to a certain extent you are also educators and authors, which is an element to programming too many ignore. What good does your script do if all it becomes is an interchangable cog in the system which only you can make sense enough of to alter or customize? Of course this has less to do with spamming this and more with general programming form, but i think this as a descriptor is a good symbolic measure of how too much is sometimes just enough. 2. What the hell is going on with this here class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String){ xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } trace this in this case traces out the xml doc. Is this because onLoad = handleXML declares the scope of handleXML as being the xmlDoc? Sometimes the onLoad = functionReference; syntax weirds me out. I tend to go for the onLoad = function(){ more specific functionality here } method - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
this is logical: you assign handleXML function to 'xmlDoc.onLoad' handler which means that 'handleXML' belongs to xmlDoc from now on ... In such cases, I do the following: class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(owner); } function ParseXML(url:String){ var owner = this; xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } 2. What the hell is going on with this here class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String){ xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } trace this in this case traces out the xml doc. Is this because onLoad = handleXML declares the scope of handleXML as being the xmlDoc? Sometimes the onLoad = functionReference; syntax weirds me out. I tend to go for the onLoad = function(){ more specific functionality here } method ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
Why? haha, sorry, but to me it looks like you just added var owner = this just to avoid putting trace(this) for no reason other than avoiding to use this. What's the specific reason you did that? I'm guessing you're smarter than me :) - Andreas Cedric Muller wrote: this is logical: you assign handleXML function to 'xmlDoc.onLoad' handler which means that 'handleXML' belongs to xmlDoc from now on ... In such cases, I do the following: class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(owner); } function ParseXML(url:String){ var owner = this; xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } 2. What the hell is going on with this here class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String){ xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } trace this in this case traces out the xml doc. Is this because onLoad = handleXML declares the scope of handleXML as being the xmlDoc? Sometimes the onLoad = functionReference; syntax weirds me out. I tend to go for the onLoad = function(){ more specific functionality here } method ___ 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] Newbie AS3 question
Andreas Rønning wrote: 2. What the hell is going on with this here class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String){ xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } I'd write that like this: class ParseXML { private var _xmlDoc : XML; function ParseXML( url : String ) { _xmlDoc = new XML(); _xmlDoc.ignoreWhite = true; _xmlDoc.onLoad = function () { trace( this ); }; _xmlDoc.load( url ); } } Clearer? The original version isn't defining a method for the class, it's defining a function and assigning it to a variable. In the spirit of calling a spade a spade, it's better to define an anonymous function where it's actually used. - Robert ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
I am not smarter than you, oh no! Delegate's smarter than us, and AS3 is King!! (problem solved in the future) I am simply declaring a variable in the class which refers to the class itself. This frees me from the scope trap (using this with 'onLoad') : public function handleXML () { trace(owner); } public function parseXML (url:String) { xmlDoc = new XML(); xmlDoc.onLoad =handleXML; xmlDoc.load(url); } public function init(url:String) { var owner = this; this.parseXML(url); } by doing this, I guarantee myself that this variable will be available to every object of the class. Its scope is the class. Now, when you assign handleXML to xmlDoc.onLoad, you mainly transfer the method's owner (from the class to the xmlDoc object). By using 'owner', I can target back my class without any problem... I may be off tracks ;) Cedric Why? haha, sorry, but to me it looks like you just added var owner = this just to avoid putting trace(this) for no reason other than avoiding to use this. What's the specific reason you did that? I'm guessing you're smarter than me :) - Andreas Cedric Muller wrote: this is logical: you assign handleXML function to 'xmlDoc.onLoad' handler which means that 'handleXML' belongs to xmlDoc from now on ... In such cases, I do the following: class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(owner); } function ParseXML(url:String){ var owner = this; xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } 2. What the hell is going on with this here class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String){ xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } trace this in this case traces out the xml doc. Is this because onLoad = handleXML declares the scope of handleXML as being the xmlDoc? Sometimes the onLoad = functionReference; syntax weirds me out. I tend to go for the onLoad = function(){ more specific functionality here } method ___ 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] Newbie AS3 question
Morten Barklund Shockwaved wrote: Andreas Rønning wrote: class ParseXML{private var xmlDoc:XML;private function handleXML(){trace(this);}function ParseXML(url:String){xmlDoc = new XML(); xmlDoc.ignoreWhite = true;xmlDoc.onLoad = handleXML; xmlDoc.load(url);} } It is amazing how we can turn back to this first-grade example of understanding scoping in ActionScript almost daily. But I'll go with the flow and return the most common answer (that I also personally use): class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String):Void { xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = mx.utils.Delegate.create(this, handleXML); xmlDoc.load(url); } private function toString():String { return i am not the xmlDoc; } } The issue is, that you have to make the xmlDoc call the handleXML-function with containing class as the activating scope. That can only be done via either hacking the XML-class or creating a special function, that will make the proper invocation of the proper function in the proper scope! :) *Yawn* here we go again, another new guy trying to understand this OBVIOUS concept that we've been through so many times already. I can't believe he's bothering us with this again! Thank you for the completely unnecessary derogatory tone. Obviously it goes without saying that you HAD to exhibit the most common of scandinavian traits: When the opportunity arises, belittle, then enlighten, because such an opportunity to come out on top cannot be missed under any circumstances, and emphasizing the apparent difference in experience between the master and pupil is first order . It is amazing how we can turn back to this first-grade example of lacking social skills almost daily. Avoid the acute angle. There is no need whatsoever to adapt a belittling tone, and it rings particularly harsh on a pure text medium, which no amount of smiley action is going to alleviate. - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
On 10/31/05, Morten Barklund Shockwaved [EMAIL PROTECTED] wrote: It is amazing how we can turn back to this first-grade example of understanding scoping in ActionScript almost daily. True - but this highlights a flaw in the language rather than a flaw in the questioner... if the same non-obvious question always comes up. :-) Which, I assume, is why MM have addressed it in AS3. So until AS3 becomes the standard, unfortunately we're going to have to keep answering the question. Or pointing them at the FAQ. And there is one on OSFlash, I know, but it isn't immediately obvious to people joining this list. I wonder whether a link to a FAQ could become part of the mailing list signature..? Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
Andreas Rønning wrote: [snip] *Yawn* here we go again, another new guy trying to understand this OBVIOUS concept that we've been through so many times already. I can't believe he's bothering us with this again! [snip] Sorry, I was in a bad mood due to other circumstances, had just explained the very same thing in some other fora, and it's another monday morning... :) (though I truely fail to see, how that is a scandinavian trademark?) I just saw your posting: 2. What the hell is going on with this here class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String){ xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } } trace this in this case traces out the xml doc. Is this because onLoad = handleXML declares the scope of handleXML as being the xmlDoc? Sometimes the onLoad = functionReference; syntax weirds me out. I tend to go for the onLoad = function(){ more specific functionality here } method And wanted to reply with an explanation - and the archives doesn't really give the mails their true position in the hierarchy with this many replies to replies and thus I really cannot see, if you've been given a proper answer. Maybe I've misinterpreted your question from the above posting as stating a common question and not really asking it - are you? If so, disregard the below. Otherwise, consider the below my view of how things are actually interpreted. :) this-references are dynamically evaluated. It is what i personally refer to as the activating scope and can as such be anything, that is pushed in to the function as the activating scope. The defining scope on the other hand cannot be changed. Thus I can create a function that trace's this - no matter what this is: var my_function:Function = function () { trace(this is +this); } I can then apply it to - say - a movieclip: my_movieclip.some_function = my_function; my_movieclip.some_function(); I can also invoke it runtime with the movieclip pushed in as the activating scope: my_function.call(my_movieclip); // or .apply() - which ever suits you The XML-class will internally call the onLoad-function as (pseudo-code): private function __dataArrived():Void { // parse stuff, set status, do other stuff this.onLoad(this.status == 0); } Thus it will call the onLoad-function with the XML-object itself as the activating scope. Some suggest it been worked around using a local property of the surrounding object as: class Test { private var owner:Test; private var xml:XML; public function Test() { owner = this; xml = new XML(); xml.ignoreWhite = true; xml.onLoad = handleXML; xml[owner] = local property of xml; } private function handleXML(success:Boolean):Void { trace(I am Test: +(this instanceof Test)); trace(I am XML: +(this instanceof XML)); trace(owner is Test: +(owner instanceof Test)); trace(owner is XML: +(owner instanceof XML)); trace(What is owner then: +owner); } public function load(some_url:String):Void { xml.load(some_url); } private function toString():String { return some Test-instance; } } But that will not work (as owner will be repaced with this.owner and will then point to the XML-instance-property and thus be a string). Maybe someone suggests it being worked around using a static property (changing private var owner:Test to private static var owner:Test). Then it _will_ work (as owner is replaced with Test.owner when compiled), but then you can only have one instance simultanously - which may or may not be useful. At least not very pretty. The defining scope can never be changed as explained. That is why the otherwise very used approach of: class Test { private var xml:XML; public function Test() { xml = new XML(); xml.ignoreWhite = true; var owner:Test = this; var callback:Function = handleXML; xml[owner] = local property of xml; xml[callback] = something not a function; xml.onLoad = function() { callback.apply(owner, arguments); }; } private function handleXML(success:Boolean):Void { trace(I am Test: +(this instanceof Test)); trace(I am XML: +(this instanceof XML)); } public function load(some_url:String):Void { xml.load(some_url); } } Now it works - and now callback and owner is read from the defining scope - and will always be the same. That is, we can copy this function to any object, invoke it using
[Flashcoders] bidimensional array in as
hi maybe a silly question, but here i go anyway: how would you write something like this in actionscript: int matrix[3][3]; for(i=0;i3;i++) for(j=0;j3;j++) matrix[i][j]=0; i've done something like this in my code, mtasc doesnt complained, but the program doesnt work, and i have a feeling that something wrong. i would appreciate any help cornel ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Scope Issues was :Newbie AS3 question
Now it's not buried at the end of a thread - Dave (Watts), or any other list admin - would it be possible (and desirable) to add a link to the FAQ in the list signature? Then we might actually remember to update it, and newcomers might know where to find it? Cheers, Ian On 10/31/05, Martin Wood [EMAIL PROTECTED] wrote: anyway, lets not get too excited, if someone knows of a good article that explains this clearly with good examples, please post the link and i'll make a reference to it from the flashcoders faq section on the osflash wiki. http://osflash.org/flashcoders/as2 thanks, Martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] map GIS of italy
what you search? A browsable map (viamichelin, mappe.libero.it etc...) or GIS data ? In second case the only data available at high detail are teleatlas and navteq cartography, but are very loud and price is high. Look at services like msn virtual earth and google maps (but from now italy is not covered by google). 2005/10/31, Marco Sottana [EMAIL PROTECTED]: where i can find a map of italy i wish coordinates in a database.. i like www.mappy.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] bidimensional array in as
On Oct 31, 2005, at 7:22 AM, cornel wrote: hi maybe a silly question, but here i go anyway: how would you write something like this in actionscript: int matrix[3][3]; for(i=0;i3;i++) for(j=0;j3;j++) matrix[i][j]=0; i've done something like this in my code, mtasc doesnt complained, but the program doesnt work, and i have a feeling that something wrong. i would appreciate any help cornel Unlike C, Actionscript can't create a two-dimensional array like that. var matrix = []; for (;i3;i++) matrix[i] = [0]; That's the super shorthand way of doing it. cheers, Jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] bidimensional array in as
int matrix[3][3]; for(i=0;i3;i++) for(j=0;j3;j++) matrix[i][j]=0; You have to create the initial array and then create any sub array. Kinda like: matrix = []; for(i=0;i3;i++) { matrix[i] = []; for(j=0;j3;j++) { matrix[i][j] = 0; } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie AS3 question
Ok. Since I was the 'ass' that started this junk by asking why this was needed, maybe I can be the 'ass' that will end it. This thread started with Andreas asking about addChild. Fair enough. I asked about a specific example that used this on a method which was a member of the same class and was invoked by using this.member. I was curious why that was there, nothing more, as I haven't explored AS3 too much. Is it too hard to just answer the question at hand without providing more information than is really necessary and making some of us think we're being patronized? Can we move on to some more high-level stuff already? cheers, Jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Profiling the clients CPU
Hi guys, I'm working on a project which involves reducing the amount of work done, based on the client's CPU speed. I'm wondering - does anyone have a tried tested method of doing this? I'm thinking something along the lines of: startTime = getTimer(); //do something timeconsuming - loop 100 times, for example speed = doSomethingTimeconsuming() if (speed 5){ doSomethingEasy(); } else{ doSomethingHard(); } What I'm wondering is the doing something timeconsuming part - I need a simple operation that will be reasonably consistent across player types - is there any operation that *hasn't* been improved or that has always been fast? The target player is FP6 (pre 6.65), so I need an operation that will be consistently slow or fast on every player since then Has anyone done this much? Thanks in advance, Alias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Profiling the clients CPU
maybe it would be best to do the profiling using the code that is being performed, otherwise your results may be unreliable. i dont know if thats possible in your case, but you could start from the bottom and work up. run a few loops of the doSomethingEasy() and see how fast its running, if its blindingly fast assume they have a fast cpu and move up to the doSomethingHard() martin Alias wrote: Hi guys, I'm working on a project which involves reducing the amount of work done, based on the client's CPU speed. I'm wondering - does anyone have a tried tested method of doing this? I'm thinking something along the lines of: startTime = getTimer(); //do something timeconsuming - loop 100 times, for example speed = doSomethingTimeconsuming() if (speed 5){ doSomethingEasy(); } else{ doSomethingHard(); } What I'm wondering is the doing something timeconsuming part - I need a simple operation that will be reasonably consistent across player types - is there any operation that *hasn't* been improved or that has always been fast? The target player is FP6 (pre 6.65), so I need an operation that will be consistently slow or fast on every player since then Has anyone done this much? Thanks in advance, Alias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- want to know what i think? probably not http://relivethefuture.com/choronzon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
AW: [Flashcoders] Profiling the clients CPU
I used this in my last projects... var result : Number = 0; for(var i : Number = 0; i 3; i++) { var t : Number = getTimer(); while(getTimer() - t 50) { var r : Number = random(10); mc._x = r; mc._y = r; mc._xscale = r; mc._yscale = r; mc._alpha= r; result++; } } Works for me. Of course you need a mc on stage. Result is the performance. But with this test you only get the performance of the system. We set up a little benchmark on http://bench.powerflasher.de/ maybee you find some usefull stuff there. regards Lars Heinrich Powerflasher GmbH Tel: +49 (0)241 91880-230 -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Alias Gesendet: Montag, 31. Oktober 2005 14:46 An: Flashcoders mailing list Betreff: [Flashcoders] Profiling the clients CPU Hi guys, I'm working on a project which involves reducing the amount of work done, based on the client's CPU speed. I'm wondering - does anyone have a tried tested method of doing this? I'm thinking something along the lines of: startTime = getTimer(); //do something timeconsuming - loop 100 times, for example speed = doSomethingTimeconsuming() if (speed 5){ doSomethingEasy(); } else{ doSomethingHard(); } What I'm wondering is the doing something timeconsuming part - I need a simple operation that will be reasonably consistent across player types - is there any operation that *hasn't* been improved or that has always been fast? The target player is FP6 (pre 6.65), so I need an operation that will be consistently slow or fast on every player since then Has anyone done this much? Thanks in advance, Alias ___ 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 and ASP/MSSQL
Hi Amanda This link may be of great use: Cheers Dom http://www.cybergrain.com/tech/demos/flashhtml/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amanda Kuek Sent: 30 October 2005 04:39 To: Flashcoders mailing list Subject: [Flashcoders] Flash and ASP/MSSQL Hello everyone, This is a question about Flash in an ASP form which communicates with an MSSQL db. I'm not really sure how to phrase the question, so I'm afraid that I'll just have to explain the story. Imagine an ASP page about faulty garments. Let's just say that if you had a hole in your T-shirt, you could visit this page to report it. The page would have normal HTML fields for name and email, and it would also have a SWF with a picture of a T-shirt. The disgruntled hole-y user clicks on the T-shirt to leave an X representing where the hole is. The form information (including that of the hole location, in the SWF) is then submitted using a normal HTML submit button and stored in the MSSQL db. I spose my question is, is this scenario possible? Is it only possible to store user-submitted information (in this case, the X,Y coordinates of the hole) by clicking on a Send button WITHIN flash, or is there another way? I'd like to avoid making a user explicitly submit the SWF information AS WELL AS the form information. Any ideas and comments much appreciated, Thanks muchly, Amanda. ___ 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] bidimensional array in as
You must create empty arrays first, like this: // bidimensional array in AS var matrix2:Array = []; for(i=0;i3;i++){ matrix2[i] = []; for(j=0;j3;j++){ matrix2[i][j]=0; } } trace(matrix2); -- original message -- On Oct 31, 2005, at 7:22 AM, cornel wrote: hi maybe a silly question, but here i go anyway: how would you write something like this in actionscript: int matrix[3][3]; for(i=0;i3;i++) for(j=0;j3;j++) matrix[i][j]=0; i've done something like this in my code, mtasc doesnt complained, but the program doesnt work, and i have a feeling that something wrong. i would appreciate any help cornel Unlike C, Actionscript can't create a two-dimensional array like that. var matrix = []; for (;i3;i++) matrix[i] = [0]; That's the super shorthand way of doing it. cheers, Jon -- Best regards, Gregory http://GOusable.com Flash components development. Usability services. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] bidimensional array in as
On Oct 31, 2005, at 9:24 AM, Gregory wrote: You must create empty arrays first, like this: // bidimensional array in AS var matrix2:Array = []; for(i=0;i3;i++){ matrix2[i] = []; for(j=0;j3;j++){ matrix2[i][j]=0; } } trace(matrix2); Yea, I'm a dufus. I think I was in AS3 mode when i posted that - then again, I didn't test it either... i'll be quiet now. :) Jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Database based flash application
My other basic issue is for an application which displays approx 50 boxes each of which i currently have formed using movie symbols, can be fully rotated in 45 degree increments have 6 options of contents (this would leave each box having 2 varients (8 for position, 6 for content), or 48 total varients) The arrangement / setup of the 50 boxes makes up a group (basicaly a list of each box content) These are stored in the form of a database. The function i want to give to the program is that a user can select a group the relevant contents of each box will be shown, also to beable to change each box enter a name producing a new group. This is basically simple Microsoft Access functionality, but each peice of stored data relating to a movie clip / frame / action within the program. This maybe a simple / complicated question, but any help / pointing in the right direction would be much appreciated. Thanks again for any help, Danny Kirkwood Danny Kirkwood Technical Sales Assistant Technical Department Balluff Ltd The Automation Centre Finney Lane Cheadle Cheshire SK8 3DF Phone +44 161 2824 706 Fax [EMAIL PROTECTED] Disclaimer Confidentiality Notice This email, together with any attachments, is for the exclusive and confidential use of the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is strictly unauthorised and prohibited. If you have received this message in error, please notify the sender by e-mail immediately or contact us at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] and delete the message and attachments from your system and any associated computers without making any copies. Any views expressed in this email are those of the author and may not necessarily represent the views of Balluff Ltd.Please note that the Internet is inherently insecure. It is not appropriate for sensitive material. Please bear this in mind when emailing us. Although we have taken steps to check that this email and any attachments are free from viruses, it is the responsibility of the recipient in keeping with good computing practice to ensure they are actually virus free and Balluff Ltd accepts no responsibility for such viruses. Balluff Ltd. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] JavaDoc in as2
Hi People. I have been reading about the JavaDoc, and that is really what I will implement into my documentation-routine. But now when I know all the tags and so on, I don't know what is a general good way to use for params and how to really actually turn javadoc into a good use within the AS-class. Is there any good basics out on some simple sites? I cant really find it myself though googling and searching. Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Simple serial reading application
Try Zinc v2 for PPC. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kirkwood Sent: segunda-feira, 31 de Outubro de 2005 14:50 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Simple serial reading application I am a beginner although quick to learn not yet a very good programmer atall. I am currently trying to create a small flash application which will eventually be uploaded to a PDA, I need it to read 192 Bytes from a serial port display this in ascii code. Any help / links / info would be much appeciated as I`ve been searching forums with no avail :o( do i need to use external programming / software etc... to read the serial data first import ? Thanks for your interest, Danny Danny Kirkwood Technical Sales Assistant Technical Department Balluff Ltd The Automation Centre Finney Lane Cheadle Cheshire SK8 3DF Phone +44 161 2824 706 Fax [EMAIL PROTECTED] Disclaimer Confidentiality Notice This email, together with any attachments, is for the exclusive and confidential use of the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is strictly unauthorised and prohibited. If you have received this message in error, please notify the sender by e-mail immediately or contact us at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] and delete the message and attachments from your system and any associated computers without making any copies. Any views expressed in this email are those of the author and may not necessarily represent the views of Balluff Ltd.Please note that the Internet is inherently insecure. It is not appropriate for sensitive material. Please bear this in mind when emailing us. Although we have taken steps to check that this email and any attachments are free from viruses, it is the responsibility of the recipient in keeping with good computing practice to ensure they are actually virus free and Balluff Ltd accepts no responsibility for such viruses. Balluff Ltd. ___ 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] JavaDoc in as2
http://java.sun.com/j2se/javadoc/writingdoccomments/ On Mon, 31 Oct 2005, Martin Klasson ([EMAIL PROTECTED]) wrote: Hi People. I have been reading about the JavaDoc, and that is really what I will implement into my documentation-routine. But now when I know all the tags and so on, I don't know what is a general good way to use for params and how to really actually turn javadoc into a good use within the AS-class. Is there any good basics out on some simple sites? I cant really find it myself though googling and searching. Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Right-Click Pauses Movie
Hey Gang! I've got a time dependent Flash file. When the user right-clicks on the movie, the movie pauses. I do understand it is possible to disable the menu, however , does anyone know if it is possible for the Flash movie not to pause when a right-click is registered? Thanks! David Politi Super Genius ___ 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] Simple serial reading application
This is a strange thing to want to do in Flash. Is using Flash a requirement? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Pedro Furtado Sent: Mon 10/31/2005 10:34 AM To: 'Flashcoders mailing list' Cc: Subject:RE: [Flashcoders] Simple serial reading application Try Zinc v2 for PPC. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kirkwood Sent: segunda-feira, 31 de Outubro de 2005 14:50 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Simple serial reading application I am a beginner although quick to learn not yet a very good programmer atall. I am currently trying to create a small flash application which will eventually be uploaded to a PDA, I need it to read 192 Bytes from a serial port display this in ascii code. Any help / links / info would be much appeciated as I`ve been searching forums with no avail :o( do i need to use external programming / software etc... to read the serial data first import ? Thanks for your interest, Danny Danny Kirkwood Technical Sales Assistant Technical Department Balluff Ltd The Automation Centre Finney Lane Cheadle Cheshire SK8 3DF Phone +44 161 2824 706 Fax [EMAIL PROTECTED] Disclaimer Confidentiality Notice This email, together with any attachments, is for the exclusive and confidential use of the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is strictly unauthorised and prohibited. If you have received this message in error, please notify the sender by e-mail immediately or contact us at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] and delete the message and attachments from your system and any associated computers without making any copies. Any views expressed in this email are those of the author and may not necessarily represent the views of Balluff Ltd.Please note that the Internet is inherently insecure. It is not appropriate for sensitive material. Please bear this in mind when emailing us. Although we have taken steps to check that this email and any attachments are free from viruses, it is the responsibility of the recipient in keeping with good computing practice to ensure they are actually virus free and Balluff Ltd accepts no responsibility for such viruses. Balluff Ltd. ___ 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] Strict Datatyping Question
Nope. my_win, the variable, is still declared (to the compiler) as a MovieClip. It only knows about it as type MovieClip. The object it 'points to' happens to be of type MyCustomForm, which is an object that inherits from MovieClip. It does all the things that MovieClip does, just does more stuff too. From a compiler perspective, you can get away with calling methods of MyCustomForm on your my_win _only because_ MovieClip is a dynamic class, and so the compiler throws away all type-checking for my_win. It does mean that anything you call on my_win will not be properly type checked. If you had used a non-dyamic class in your example, the problem would have become a lot more obvious. For example: class A { public function doSomething() {trace(Do Something);} } class B extends A { public function doSomethingElse() {trace(Do Something Else);} } var my_a:A; my_a=B(createBSomeHow()); // The compiler will choke on this line my_a.doSomething(); // Compiler will be fine with this my_a.doSomethingElse(); // Compiler would choke on this or if it was: var my_a:A; my_a = A(createBSomeHow()); // Perfectly legal 'cos B inherits from A my_a.doSomething(); // No problems my_a.doSomethingElse(); // Compiler chokes, because it only knows that 'a' is an A. So in short - you can do exactly what you wrote down, but: - Only because MovieClip is a dynamic class - You're skipping compiler type-checking because MovieClip is a dynamic class (so any type-signatures of methods of MyCustomForm you call will be unchecked - which might be an issue if you, for example, went back and redefined them later) - You aren't actually changing the type of my_win. It's still a MovieClip, as far as the compiler can see. Cheers, Ian On 10/31/05, JesterXL [EMAIL PROTECTED] wrote: You can't change the type of a variable during an assignment Yes you can. var my_win:MovieClip; my_win = MyCustomForm(PopUpManager.createPopUp(this, MyCustomForm, false)); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash vs Flex
Amen brother... Testify! !K -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: October 27, 2005 10:47 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash vs Flex Admittingly, something needs to be done. Hopefully either Blaze (Flash 9) can be made to have integration extensions with FlexBuilder2, made to be basically a glorified library asset manager, or somethihng. The current alternatives really suck. A Singleton classe that holds all linkageID's, an images folder that contains both production graphics and source graphics... while I love having all of this open and accessible instead of buried deep in a binary FLA, at least Flash was damn good at managing it. - Original Message - From: Mike Britton [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 27, 2005 12:42 PM Subject: Re: [Flashcoders] Flash vs Flex you can create an ActionScript 3 project in Flex Builder that never goes anywhere near the Flex Framework. That's the reason I was soothsaying about FlexBuilder 2 becoming the defacto development environment and the Flash IDE evolving into a tool for design. Eclipse will eclipse the Flash IDE (rim shot). I have spent a good portion of the last 2 years writing plugins for Eclipse I wonder if one could be written to manage the Library. Then I'd never have to open the Flash IDE. 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] DHTML and Flash Player 8 Bugs Fixed?
Hello all, I received an email stating that the Layering problem between Flash Content and DHTML (for example drop down menues) has been fixed in flash player 8. And that this is a bug in flash player 7. I dont know if this is true, so I was trying to get some insight from some one that can point me out to verify that this information is accurate. IMHO I dont think that the flash player can fix a layering issue that is being handled with HTML/CSS/JS/DHTML. I believe that this is more of a browser issue but I might be totally wrong. Any thoughts? TIA. ...helmut. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JavaDoc in as2
Doug Miller wrote: http://java.sun.com/j2se/javadoc/writingdoccomments/ On Mon, 31 Oct 2005, Martin Klasson ([EMAIL PROTECTED]) wrote: Hi People. I have been reading about the JavaDoc, and that is really what I will implement into my documentation-routine. But now when I know all the tags and so on, I don't know what is a general good way to use for params and how to really actually turn javadoc into a good use within the AS-class. Is there any good basics out on some simple sites? I cant really find it myself though googling and searching. Thanks. What are you running to produce the HTML documentation, the JavaDoc app itself? It will work with .AS classes and packages? I've already added all the documentation comments to my .AS files but that's as far as I got. I was looking for a way to then transform those comments into actual HTML documentation but haven't tried JavaDoc yet. I didn't think it would read AS packages. JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strict Datatyping Question
You don't ever actually change anything in AS2 though; you can't. My example is just showing you are telling the compiler that you are changing it's type; I know full well it's type never changes. You can use Number, int, String, parseInt, and parseFloat; but only 2 of those can be used as datatyping, but no coercion. - Original Message - From: Ian Thomas [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 10:42 AM Subject: Re: [Flashcoders] Strict Datatyping Question Nope. my_win, the variable, is still declared (to the compiler) as a MovieClip. It only knows about it as type MovieClip. The object it 'points to' happens to be of type MyCustomForm, which is an object that inherits from MovieClip. It does all the things that MovieClip does, just does more stuff too. From a compiler perspective, you can get away with calling methods of MyCustomForm on your my_win _only because_ MovieClip is a dynamic class, and so the compiler throws away all type-checking for my_win. It does mean that anything you call on my_win will not be properly type checked. If you had used a non-dyamic class in your example, the problem would have become a lot more obvious. For example: class A { public function doSomething() {trace(Do Something);} } class B extends A { public function doSomethingElse() {trace(Do Something Else);} } var my_a:A; my_a=B(createBSomeHow()); // The compiler will choke on this line my_a.doSomething(); // Compiler will be fine with this my_a.doSomethingElse(); // Compiler would choke on this or if it was: var my_a:A; my_a = A(createBSomeHow()); // Perfectly legal 'cos B inherits from A my_a.doSomething(); // No problems my_a.doSomethingElse(); // Compiler chokes, because it only knows that 'a' is an A. So in short - you can do exactly what you wrote down, but: - Only because MovieClip is a dynamic class - You're skipping compiler type-checking because MovieClip is a dynamic class (so any type-signatures of methods of MyCustomForm you call will be unchecked - which might be an issue if you, for example, went back and redefined them later) - You aren't actually changing the type of my_win. It's still a MovieClip, as far as the compiler can see. Cheers, Ian On 10/31/05, JesterXL [EMAIL PROTECTED] wrote: You can't change the type of a variable during an assignment Yes you can. var my_win:MovieClip; my_win = MyCustomForm(PopUpManager.createPopUp(this, MyCustomForm, false)); ___ 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] blog presentation flash
I need to do a product site which is viewed in flash, but want to use a blogging system to manage the content updates. seems like wordpress has well documented DB apis etc to pull the post content out of; has anyone seen other blogging systems that someone has written a flash presentation layer on top of? are there any open source projects in this direction? I like Drupal's UI as a way to input content, but the API is a little much to pull data out of ... I havent looked at mambo, but it may work. I could also use a wiki, as the site content is not really -timeline- oriented, but most wiki systems seem a little too free-form with the data. Thanks! /dc --- David DC Collier mailto:[EMAIL PROTECTED] +81 (0)80 6521 9559 skype: callto://d3ntaku --- Pikkle 株式会社 http://www.pikkle.com --- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strict Datatyping Question
To clarify, it changes to the type as far as the compiler is concerned, but at runtime, yes, it's just a MovieClip. - Original Message - From: Ian Thomas [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 10:44 AM Subject: Re: [Flashcoders] Strict Datatyping Question On 10/31/05, Ian Thomas [EMAIL PROTECTED] wrote: So in short - you can do exactly what you wrote down, but: - Only because MovieClip is a dynamic class Actually, skip that - it only works later in your code if you call methods of MyCustomForm because it's a dynamic class. The assignment you make is perfectly legal - but still doesn't change the type. ___ 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] Simple serial reading application
dosn`t have to be flash, but we have a shell everything i need setup in flash im not very good with other softwares- just thought there may be some backdoor way to read com ports to flash. what software would you reccomend scott ? The application is for reading some kind of tag - displaying any information stored on the tag maybe detailing the tag type. Just a standard serial reading software would do (although i`d much rather develop into a personalised program - obviously it would leave much more options for attaching data to pictures etc..) but there seems to be no standard software such as hyperterminal for PPC which dosn`t need a licence for each device (which wouldn`t be acceptable- ideally the solution would beable to be ran straight from an SSD card) I`ll have a look at Zinc V2 - looks very expensive though just to give me the possibility to read from a comm port, but i suppose if it gets the job done ;o) Much appreciate you feedback time Danny -Original Message- From: Scott Hyndman [mailto:[EMAIL PROTECTED] Sent: 31 October 2005 15:39 To: Flashcoders mailing list Subject: RE: [Flashcoders] Simple serial reading application This is a strange thing to want to do in Flash. Is using Flash a requirement? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Pedro Furtado Sent: Mon 10/31/2005 10:34 AM To: 'Flashcoders mailing list' Cc: Subject:RE: [Flashcoders] Simple serial reading application Try Zinc v2 for PPC. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kirkwood Sent: segunda-feira, 31 de Outubro de 2005 14:50 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Simple serial reading application I am a beginner although quick to learn not yet a very good programmer atall. I am currently trying to create a small flash application which will eventually be uploaded to a PDA, I need it to read 192 Bytes from a serial port display this in ascii code. Any help / links / info would be much appeciated as I`ve been searching forums with no avail :o( do i need to use external programming / software etc... to read the serial data first import ? Thanks for your interest, Danny Danny Kirkwood Technical Sales Assistant Technical Department Balluff Ltd The Automation Centre Finney Lane Cheadle Cheshire SK8 3DF Phone +44 161 2824 706 Fax [EMAIL PROTECTED] Disclaimer Confidentiality Notice This email, together with any attachments, is for the exclusive and confidential use of the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is strictly unauthorised and prohibited. If you have received this message in error, please notify the sender by e-mail immediately or contact us at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] and delete the message and attachments from your system and any associated computers without making any copies. Any views expressed in this email are those of the author and may not necessarily represent the views of Balluff Ltd.Please note that the Internet is inherently insecure. It is not appropriate for sensitive material. Please bear this in mind when emailing us. Although we have taken steps to check that this email and any attachments are free from viruses, it is the responsibility of the recipient in keeping with good computing practice to ensure they are actually virus free and Balluff Ltd accepts no responsibility for such viruses. Balluff Ltd. ___ 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 Danny Kirkwood Technical Sales Assistant Technical Department Balluff Ltd The Automation Centre Finney Lane Cheadle Cheshire SK8 3DF Phone +44 161 2824 706 Fax [EMAIL PROTECTED] Disclaimer Confidentiality Notice This email, together with any attachments, is for the exclusive and confidential use of the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is strictly unauthorised and prohibited. If you
Re: Re: [Flashcoders] JavaDoc in as2
http://www.as2doc.com/ I believe there are other applications out there that will do it as well. Anyone know if there are any eclipse plugins that will generate docs for as2, that would be nice! Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag On Mon, 31 Oct 2005, JOR ([EMAIL PROTECTED]) wrote: Doug Miller wrote: http://java.sun.com/j2se/javadoc/writingdoccomments/ On Mon, 31 Oct 2005, Martin Klasson ([EMAIL PROTECTED]) wrote: Hi People. I have been reading about the JavaDoc, and that is really what I will implement into my documentation-routine. But now when I know all the tags and so on, I don't know what is a general good way to use for params and how to really actually turn javadoc into a good use within the AS-class. Is there any good basics out on some simple sites? I cant really find it myself though googling and searching. Thanks. What are you running to produce the HTML documentation, the JavaDoc app itself? It will work with .AS classes and packages? I've already added all the documentation comments to my .AS files but that's as far as I got. I was looking for a way to then transform those comments into actual HTML documentation but haven't tried JavaDoc yet. I didn't think it would read AS packages. JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.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] blog presentation flash
dc wrote: I need to do a product site which is viewed in flash, but want to use a blogging system to manage the content updates. Do you need to update just text? or also images? or also display structure (columns, layout etc)? or also database structure (new catalog items, etc)? Knowing the media types in the updates, and then knowing how deeply the changes will update the presentation, can help distinguish between ftp an xml file and grab the rss types of solutions. (Towards the end you ask about a blog with a Flash front-end, which seems another thing... it's usually easy to add SWF to a weblog, and I've seen some weblogs constructed entirely out of SWF, but swf site with easy updates seems different.) jd -- John Dowdell . Macromedia Developer Support . San Francisco CA USA Weblog: http://www.macromedia.com/go/blog_jd Aggregator: http://www.macromedia.com/go/weblogs Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] DHTML and FLash Player 8 Bugs Fixed
I believe I hickjaked a thread. Sorry about that here is the new thread: Hello all, I received an email stating that the Layering problem between Flash Content and DHTML (for example drop down menues) has been fixed in flash player 8. And that this is a bug in flash player 7. I dont know if this is true, so I was trying to get some insight from some one that can point me out to verify that this information is accurate. IMHO I dont think that the flash player can fix a layering issue that is being handled with HTML/CSS/JS/DHTML. I believe that this is more of a browser issue but I might be totally wrong. Any thoughts? TIA. ...helmut. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Right-Click Pauses Movie
Hey Gang! I've got a time dependent Flash file. When the user right-clicks on the movie, the movie pauses. Just to clarify, I do not want to uncheck the play item, I want to ensure that the flash movie keeps playing when a right-click is registered. I do understand it is possible to disable the menu, however , does anyone know if it is possible for the Flash movie not to pause? Thanks! David Politi Super Genius ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do I make a new post?
Hahahah. Thanks man! Now I know I am a complete idiot. Thanks for your patience. On Oct 31, 2005, at 9:31 AM, Helmut Granda wrote: You just did. DP wrote: Hey! I think I might be really dumb by asking this How do I make a new topic in this group? I've tried posting a new topic twice. Maybe it is over my head! David ___ 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] blog presentation flash
probably worth checking out mosxml, a version of mambo that outputs xml and has a basic flash skin in the download http://www.ciadd.co.uk/mosxml/index.php?option=contenttask=viewid=41 On 10/31/05, dc [EMAIL PROTECTED] wrote: I need to do a product site which is viewed in flash, but want to use a blogging system to manage the content updates. seems like wordpress has well documented DB apis etc to pull the post content out of; has anyone seen other blogging systems that someone has written a flash presentation layer on top of? are there any open source projects in this direction? I like Drupal's UI as a way to input content, but the API is a little much to pull data out of ... I havent looked at mambo, but it may work. I could also use a wiki, as the site content is not really -timeline- oriented, but most wiki systems seem a little too free-form with the data. Thanks! /dc --- David DC Collier mailto:[EMAIL PROTECTED] +81 (0)80 6521 9559 skype: callto://d3ntaku --- Pikkle 株式会社 http://www.pikkle.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] DHTML and Flash Player 8 Bugs Fixed?
EMAIL TIP: Try hitting New Message in your emailer when starting a new discussion, rather than hitting Reply, to avoid becoming invisible in emailers which thread conversations. (Right now your post is found in the archive as a reply to Right-Click Pauses Movie!) The references field in your message header will show what happened. For What's the status on layering HTML and non-HTML? then you're right, it's more of a browser issue -- the Macromedia Flash Player has hooked into WMODE compositing for many years now, and browsers still vary in their offscreen buffering support. Websearches on wmode dowdell focus closely on this area. (That private email you paraphrased sounds strange to me, for the same reasons you listed.) Summary: You can layer JavaScript atop Flash if the browser supports it, and more browsers support it now than did five, eight years ago. jd -- John Dowdell . Macromedia Developer Support . San Francisco CA USA Weblog: http://www.macromedia.com/go/blog_jd Aggregator: http://www.macromedia.com/go/weblogs Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strict Datatyping Question
No - it _doesn't_ change the type of the variable from the compiler's PoV, that's my point. :-) I've probably been explaining really badly. The statement: var my_var:A; defines a thing which can point to objects of type A. This thing can only _ever_ hold references to objects of type A and objects derived from A; never anything else. So, assuming class C extends class B which extends class A: var b1:B = new A(); // Compiler chokes, as it can't guarantee that all the methods B defines are available in A. Compilation would stop here. var b2:B = new B(); // no problem var b3:B = new C(); // again, no problem, because C inherits from B and the compiler is happy that C can do everything B can. b2.doAMethodDefinedInA(); // Fine - compiler knows that B extends A b2.doAMethodDefinedInB(); // Again, fine. b3.doAMethodDefinedInA(); // Still fine b3.doAMethodDefinedInB(); // Yup. b3.doAMethodDefinedInC(); // Nope. The compiler thinks that b3 is of object type B - it knows nothing of C, because 'b3' was defined as being of type B in it's declaration. Note that the last line would compile fine if class B were defined as 'dynamic' - because it's dynamic, the compiler throws out all type-checking on B. There go the safety-nets... which is what was happening in your MovieClip example. Now, if the _programmer_ was happy that b3 was _actually_ a C, he could always type: var c:C=C(b3); // Downcasting is perfectly legal... c.doAMethodDefinedInC(); // And now the compiler is happy I hope that's clearer. :-D But now I'm probably waaay off the original topic, whatever it was... sorry, it's been a helluva weekend. ;-) Ian On 10/31/05, JesterXL [EMAIL PROTECTED] wrote: To clarify, it changes to the type as far as the compiler is concerned, but at runtime, yes, it's just a MovieClip. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Updating MS Outlook calendar from Flash app
Is it possible to create a calendar application in Flash which allows the user to click on an event and to have that event automatically added to their MS Outlook calendar? I know that Microsoft has done a lot to tighten up security in Outlook, and a lot of things that used to be possible are not any more. I expect this is one of them. If it is not possible, is there any way anyone knows of to make it easier for someone to get the event info. out of the Flash app and into the Outlook calendar - for instance cutting and pasting the info. in an appropriate format? Cheers for any help you can give. James ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do I make a new post?
Summary: The New button in your emailer helps get attention for a new thread better than the Reply button does. DP wrote: How do I make a new topic in this group? I've tried posting a new topic twice. You just did so here... you can check it in the archive too: http://chattyfig.figleaf.com/pipermail/flashcoders/2005-October/thread.html First post was Looping Loaded Sound, which you actually sent as a reply to a message in a Flash in Firefox in conversation, which in turn had hijacked a thread titled tracking inactivity. Then there was a thread you tried to start titled simply ming, but this was hidden within a discussion about cancelling a loading process. A later request on right-clicking was shoved into a Flash vs Flex discussion, which many people may have deleted as a group. The cause of all this was hitting Reply in your emailer and changing the title -- this doesn't change the instructions in the email header, and so you get lost in the archives, and don't get seen by those of us who use a threaded email reader. Just hit New for a new message, paste in the address, and you'll get better visibility. Use a good thread title (like the one you have above), and clearly ask something that others can answer, and you'll usually get good results on mailing lists! :) ... but in this latest case, I haven't tested for ways to keep rendering during a held right-click, and so don't have a good way to reply to the other thread, sorry. -- John Dowdell . Macromedia Developer Support . San Francisco CA USA Weblog: http://www.macromedia.com/go/blog_jd Aggregator: http://www.macromedia.com/go/weblogs Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Strict Datatyping Question
Has the bug been fixed in 8? Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, October 31, 2005 11:01 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Strict Datatyping Question To clarify, it changes to the type as far as the compiler is concerned, but at runtime, yes, it's just a MovieClip. - Original Message - From: Ian Thomas [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 10:44 AM Subject: Re: [Flashcoders] Strict Datatyping Question On 10/31/05, Ian Thomas [EMAIL PROTECTED] wrote: So in short - you can do exactly what you wrote down, but: - Only because MovieClip is a dynamic class Actually, skip that - it only works later in your code if you call methods of MyCustomForm because it's a dynamic class. The assignment you make is perfectly legal - but still doesn't change the type. ___ 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 --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do I make a new post?
John, I really feel like an idiot, but this is not the first time. Thank you for you instructions and patience, and your reply. I also can't cook rice to save my life! David On Oct 31, 2005, at 10:02 AM, John Dowdell wrote: Summary: The New button in your emailer helps get attention for a new thread better than the Reply button does. DP wrote: How do I make a new topic in this group? I've tried posting a new topic twice. You just did so here... you can check it in the archive too: http://chattyfig.figleaf.com/pipermail/flashcoders/2005-October/ thread.html First post was Looping Loaded Sound, which you actually sent as a reply to a message in a Flash in Firefox in conversation, which in turn had hijacked a thread titled tracking inactivity. Then there was a thread you tried to start titled simply ming, but this was hidden within a discussion about cancelling a loading process. A later request on right-clicking was shoved into a Flash vs Flex discussion, which many people may have deleted as a group. The cause of all this was hitting Reply in your emailer and changing the title -- this doesn't change the instructions in the email header, and so you get lost in the archives, and don't get seen by those of us who use a threaded email reader. Just hit New for a new message, paste in the address, and you'll get better visibility. Use a good thread title (like the one you have above), and clearly ask something that others can answer, and you'll usually get good results on mailing lists! :) ... but in this latest case, I haven't tested for ways to keep rendering during a held right-click, and so don't have a good way to reply to the other thread, sorry. -- John Dowdell . Macromedia Developer Support . San Francisco CA USA Weblog: http://www.macromedia.com/go/blog_jd Aggregator: http://www.macromedia.com/go/weblogs Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, 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] Strict Datatyping Question
Matt, See all the previous mails. It's not a bug, so won't have been fixed. It's the way that the language is supposed to work. Ian On 10/31/05, Adams, Matt [EMAIL PROTECTED] wrote: Has the bug been fixed in 8? Matt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DHTML and FLash Player 8 Bugs Fixed
So this becomes Does anyone know of WMODE support in various browsers for Linux? If so, then I just tried some quick searches with mixed results -- I found many incidental mentions, but no document which seems to answer Which Linux browsers can buffer plugins offscreen? The Flash Release Notes usually all mention linux and wmode, but not always together -- it's hard to find an appropriate citation in the Flash docs, either. If your private correspondent included a link to his source info we might be able to search faster. We do know that *some* of the overall audience will usually fail with such browser-specific features, but in this case I'm not able to quickly research how the minorities in various Linux configurations do. jd -- John Dowdell . Macromedia Developer Support . San Francisco CA USA Weblog: http://www.macromedia.com/go/blog_jd Aggregator: http://www.macromedia.com/go/weblogs Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Why does Mask, mask dynamic text?
Is there a way around this? I'm applying a mask on top of a dynamically loaded .swf. The Mask is removing all dynamic text - why? -Original Message- From: Bolo Michelin [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 8:28 AM To: Flashcoders mailing list Subject: Re: SV: [Flashcoders] Zoom effect this http://windows.com/ zoom effect on characters Fredrik Lantz wrote: I Havent read this thread from the begining, is there a url to the effect or what? //Fredik -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Tom Rhodes Skickat: den 6 oktober 2005 13:12 Till: Flashcoders mailing list Ämne: Re: [Flashcoders] Zoom effect and i'd venture a little scale = focal length / focal length + z. - Original Message - From: Muzak [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 06, 2005 2:04 PM Subject: Re: [Flashcoders] Zoom effect That's 100% actionscript. regards, Muzak - Original Message - From: Adam Robertson [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 06, 2005 1:23 PM Subject: RE: [Flashcoders] Zoom effect Yup, I think he's right, it's a bunch of tweens, nothing smart or 3d going on there (perhaps a little maths to get the circular type motion). Adam ___ 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] JavaDoc in as2
Doxygen and the eclox plug-in. Ron Doug Miller wrote: http://www.as2doc.com/ I believe there are other applications out there that will do it as well. Anyone know if there are any eclipse plugins that will generate docs for as2, that would be nice! Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag On Mon, 31 Oct 2005, JOR ([EMAIL PROTECTED]) wrote: Doug Miller wrote: http://java.sun.com/j2se/javadoc/writingdoccomments/ On Mon, 31 Oct 2005, Martin Klasson ([EMAIL PROTECTED]) wrote: Hi People. I have been reading about the JavaDoc, and that is really what I will implement into my documentation-routine. But now when I know all the tags and so on, I don't know what is a general good way to use for params and how to really actually turn javadoc into a good use within the AS-class. Is there any good basics out on some simple sites? I cant really find it myself though googling and searching. Thanks. What are you running to produce the HTML documentation, the JavaDoc app itself? It will work with .AS classes and packages? I've already added all the documentation comments to my .AS files but that's as far as I got. I was looking for a way to then transform those comments into actual HTML documentation but haven't tried JavaDoc yet. I didn't think it would read AS packages. JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DHTML and FLash Player 8 Bugs Fixed
Thanks for all your help, not only I learned how exactly indetify the problem but also how to post more accurate subjects to the list. I will try to get the source info for this problem and post it back to the list. ...helmut John Dowdell wrote: So this becomes Does anyone know of WMODE support in various browsers for Linux? If so, then I just tried some quick searches with mixed results -- I found many incidental mentions, but no document which seems to answer Which Linux browsers can buffer plugins offscreen? The Flash Release Notes usually all mention linux and wmode, but not always together -- it's hard to find an appropriate citation in the Flash docs, either. If your private correspondent included a link to his source info we might be able to search faster. We do know that *some* of the overall audience will usually fail with such browser-specific features, but in this case I'm not able to quickly research how the minorities in various Linux configurations do. jd ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Why does Mask, mask dynamic text?
On 10/31/05, Noyes, Jeff [EMAIL PROTECTED] wrote: Is there a way around this? I'm applying a mask on top of a dynamically loaded .swf. The Mask is removing all dynamic text - why? 1. Try doing a dynamic mask, applied at runtime. I think there's a bug with applying masks in the authoring environment to dynamic text 2. Why did you reply to a completly unrelated message? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Simple serial reading application
Try Google. I came up with this tutorial http://people.interaction-ivrea.it/h.barragan/flashserialinterface.html It does not describe how to write the server but that might come from the manufacturere of the device. Ron Danny Kirkwood wrote: dosn`t have to be flash, but we have a shell everything i need setup in flash im not very good with other softwares- just thought there may be some backdoor way to read com ports to flash. what software would you reccomend scott ? The application is for reading some kind of tag - displaying any information stored on the tag maybe detailing the tag type. Just a standard serial reading software would do (although i`d much rather develop into a personalised program - obviously it would leave much more options for attaching data to pictures etc..) but there seems to be no standard software such as hyperterminal for PPC which dosn`t need a licence for each device (which wouldn`t be acceptable- ideally the solution would beable to be ran straight from an SSD card) I`ll have a look at Zinc V2 - looks very expensive though just to give me the possibility to read from a comm port, but i suppose if it gets the job done ;o) Much appreciate you feedback time Danny -Original Message- From: Scott Hyndman [mailto:[EMAIL PROTECTED] Sent: 31 October 2005 15:39 To: Flashcoders mailing list Subject: RE: [Flashcoders] Simple serial reading application This is a strange thing to want to do in Flash. Is using Flash a requirement? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Pedro Furtado Sent: Mon 10/31/2005 10:34 AM To: 'Flashcoders mailing list' Cc: Subject:RE: [Flashcoders] Simple serial reading application Try Zinc v2 for PPC. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kirkwood Sent: segunda-feira, 31 de Outubro de 2005 14:50 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Simple serial reading application I am a beginner although quick to learn not yet a very good programmer atall. I am currently trying to create a small flash application which will eventually be uploaded to a PDA, I need it to read 192 Bytes from a serial port display this in ascii code. Any help / links / info would be much appeciated as I`ve been searching forums with no avail :o( do i need to use external programming / software etc... to read the serial data first import ? Thanks for your interest, Danny Danny Kirkwood Technical Sales Assistant Technical Department Balluff Ltd The Automation Centre Finney Lane Cheadle Cheshire SK8 3DF Phone +44 161 2824 706 Fax [EMAIL PROTECTED] Disclaimer Confidentiality Notice This email, together with any attachments, is for the exclusive and confidential use of the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is strictly unauthorised and prohibited. If you have received this message in error, please notify the sender by e-mail immediately or contact us at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] and delete the message and attachments from your system and any associated computers without making any copies. Any views expressed in this email are those of the author and may not necessarily represent the views of Balluff Ltd.Please note that the Internet is inherently insecure. It is not appropriate for sensitive material. Please bear this in mind when emailing us. Although we have taken steps to check that this email and any attachments are free from viruses, it is the responsibility of the recipient in keeping with good computing practice to ensure they are actually virus free and Balluff Ltd accepts no responsibility for such viruses. Balluff Ltd. ___ 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 Danny Kirkwood Technical Sales Assistant Technical Department Balluff Ltd The Automation Centre Finney Lane Cheadle Cheshire SK8 3DF Phone +44 161 2824 706 Fax [EMAIL PROTECTED] Disclaimer Confidentiality Notice This email, together with any attachments, is for the exclusive and confidential use of the person or entity to which it is addressed and may contain confidential and/or
Re: [Flashcoders] Bizare...AS3.0 packages have methods?
It's a method of the package. When you create an AS 3 class you can put methods inside the package {} block, but outside any class definitions. I'm not sure why it works that way, but that's the way it works. Spike On 10/31/05, Martin Wood [EMAIL PROTECTED] wrote: i think its just a function declared with package scope. Mark Lapasa wrote: flash.util.trace() Is that a method of a package? Or a compiler directive? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Bizare...AS3.0 packages have methods?
Another one that looks even weird is flash.util.getTimer. Adding camel case makes it weird, but in usage it's not so bad. If you do: import flash.util.trace; You can then just do: trace(normal); In your classes. - Original Message - From: Martin Wood [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 1:18 PM Subject: Re: [Flashcoders] Bizare...AS3.0 packages have methods? i think its just a function declared with package scope. Mark Lapasa wrote: flash.util.trace() Is that a method of a package? Or a compiler directive? ___ 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] blog presentation flash
Hi dc, I started a Flash UI for drupal project a while ago. After my research I figured you could do a Flash front end to display data but it would be difficult to do the data entry. So the option would be a mixed site with Flash to display content and HTML to create it. I came to the conclusion that Drupal needed an xml api to pull in straight from the index.php page otherwise I would have had to write my own xml api or parse the html in an xml object. At the time (~Feb, 05) someone said they had made an xml api but it was not ready to be released to the public. My conclusion is that you can easily enough use Flash for sections of the site template but not the whole thing. Looking at it now it may take just as much time to setup flash remoting and pull in data from the drupal database or a custom database. The only advantage of drupal at this point is using the editors and login system already built into it. I still have the design documents (rough drafts) if you are interested. HTH Judah dc wrote: I need to do a product site which is viewed in flash, but want to use a blogging system to manage the content updates. seems like wordpress has well documented DB apis etc to pull the post content out of; has anyone seen other blogging systems that someone has written a flash presentation layer on top of? are there any open source projects in this direction? I like Drupal's UI as a way to input content, but the API is a little much to pull data out of ... I havent looked at mambo, but it may work. I could also use a wiki, as the site content is not really -timeline- oriented, but most wiki systems seem a little too free-form with the data. Thanks! /dc --- David DC Collier mailto:[EMAIL PROTECTED] +81 (0)80 6521 9559 skype: callto://d3ntaku --- Pikkle 株式会社 http://www.pikkle.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] map GIS of italy
Is this flash- or actionscript-related? The only thing I can recommend as far as flash and maps is http://www.neave.com/lab/flash_earth/ Liam On 10/31/05, Marco Sottana [EMAIL PROTECTED] wrote: where i can find a map of italy i wish coordinates in a database.. i like www.mappy.com http://www.mappy.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] Bizare...AS3.0 packages have methods?
Yeah - if I had £1 for every time I said - hmmm, I wish I could redirect all the traces to a different function (like a screen logger) without changing my code too much... I have at least £10. :) Alias On 10/31/05, Stan Vassilev [EMAIL PROTECTED] wrote: Well that's one thing I always wanted to do in AS2 so if it stays like this it'd be great. There are many functions that just perfectly without class in front of them (after you import the package). For example those you mentioned. When I was implementing my trace utils I was forced to import fmethod.debug.* and still having to type every time DebugUtils.log(); now I could just make it package method and type log(); ... it's great to have that Regards, Stan Vassilev - Original Message - From: Spike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 8:49 PM Subject: Re: [Flashcoders] Bizare...AS3.0 packages have methods? It's a method of the package. When you create an AS 3 class you can put methods inside the package {} block, but outside any class definitions. I'm not sure why it works that way, but that's the way it works. Spike On 10/31/05, Martin Wood [EMAIL PROTECTED] wrote: i think its just a function declared with package scope. Mark Lapasa wrote: flash.util.trace() Is that a method of a package? Or a compiler directive? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org ___ 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] How to get value of passed array element
I have a text field of references, like so ... A HREF='asfunction:_root.addStory, _root.arrStorys[0]' bBULLETIN:SPECULATION HOUNDS SEAMARK/b/A A HREF='asfunction:_root.addStory, _root.arrStorys[1]' bHEADLINES OCTOBER 31, 2005/b/A A HREF='asfunction:_root.addStory, _root.arrStorys[2]' bFORBES SEESbr /FUTURE IN THE TUBE/b/A A HREF='asfunction:_root.addStory, _root.arrStorys[3]' bKEATING SEESbr /FUTURE IN WIRELESS INTERNET/b/A and clicking on any of them triggers addStory(). If I click on FORBES SEES ... the text area which is supposed to display the story, displays this instead: _root.arrStorys[2] At least it's displaying something!! I really need the contents of the array, however. I know that asfunction passes the parameter as a string, how do I convert it so the contents of that array element display? In other words, so that it's a pointer rather than a label, to put it another way. Here's what I have for the function: function addStory(stryElement:Array):Void{ // assign contents of passed array element to text control. txtNews.html = True; txtNews.text = stryElement; txtNews.refresh; } I also tried passing just the number of the desired array element, assembling it like so: txtNews.text = _root.arrStorys[ + stryElement + ]; but all it displayed was the name of the element, eg _root.arrStorys[2], not what that element contains. String, Array and Object have all been tried for the type of stryElement. FoxPro had a macro command, so that you could, in a situation like this where the name of the variable rather than its contents displays, force the contents, like so: stryElement. Guidance and suggestions will be most welcome. Thanks - Miles Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Metadata injection
Hi Simon, I think you'll need to look into the file format specification for this. Try the H263VideoPacket tag near the end. I'd suggest using a tool that can convert an existing tagged FLV into a XML document so you can have a look at what's going on. You might be able to alter the XML and convert it back into an FLV - but for better performance you'd need to be editing the binary directly. HTH, Alex http://www.centralquestion.com/flauntit/ On 10/31/05, Simon Lord [EMAIL PROTECTED] wrote: Hi all, let me preface my question by stating that I am *not* looking for a tool to perform metadata injection, I'm interested in learning *how* to do it myself. The idea is to pass a directory of jpgs to FFMPEG to create an flv movie. The idea would be to configure FFMPEG to add metadata to the flv as it's being generated. In order to do this I need to discover/ learn how exactly we go about writing metadata (what's it look like etc) and how or where or when to inject it into the flv. Any pointers? ___ 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] Why does Mask, mask dynamic text?
So you have to set the mask through actionscript - that's the only way? -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 1:54 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Why does Mask, mask dynamic text? Not true; if you use Flash Player 6.0.41.0 or higher, you can mask device fonts using the setMask function. - Original Message - From: Marc Hoffman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 1:16 PM Subject: Re: [Flashcoders] Why does Mask, mask dynamic text? You have to embed the font for the dynamic text in order for it to show through a mask. At 10:00 AM 10/31/2005, you wrote: I'm applying a mask on top of a dynamically loaded .swf. The Mask is removing all dynamic text - why? 1. Try doing a dynamic mask, applied at runtime. I think there's a bug with applying masks in the authoring environment to dynamic text 2. Why did you reply to a completly unrelated message? ___ 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] Flash Org Chart: Anyone seen an example?
I need to find an example of a Flash Org Chart - preferably one that's built off of an XML file. Has anyone seen anything like this? -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 1:54 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Why does Mask, mask dynamic text? Not true; if you use Flash Player 6.0.41.0 or higher, you can mask device fonts using the setMask function. - Original Message - From: Marc Hoffman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 1:16 PM Subject: Re: [Flashcoders] Why does Mask, mask dynamic text? You have to embed the font for the dynamic text in order for it to show through a mask. At 10:00 AM 10/31/2005, you wrote: I'm applying a mask on top of a dynamically loaded .swf. The Mask is removing all dynamic text - why? 1. Try doing a dynamic mask, applied at runtime. I think there's a bug with applying masks in the authoring environment to dynamic text 2. Why did you reply to a completly unrelated message? ___ 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] Why does Mask, mask dynamic text?
Embedding a font works, but for smaller fonts, even in Flash Player 7, it's all blurry. Flash Player 8 looks pretty good. Both solutions, however, add a ton of CPU RAM overhead because embedded fonts use anti-aliasing to make them look nice so slow down animations and use more ram. However, setting a mask via code isn't always preferrable for some designs. Pick the solution that's best. - Original Message - From: Éric Thibault [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 3:52 PM Subject: Re: [Flashcoders] Why does Mask, mask dynamic text? Or like said: embed the font in your loaded swf Noyes, Jeff wrote: So you have to set the mask through actionscript - that's the only way? -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 1:54 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Why does Mask, mask dynamic text? Not true; if you use Flash Player 6.0.41.0 or higher, you can mask device fonts using the setMask function. - Original Message - From: Marc Hoffman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 1:16 PM Subject: Re: [Flashcoders] Why does Mask, mask dynamic text? You have to embed the font for the dynamic text in order for it to show through a mask. At 10:00 AM 10/31/2005, you wrote: I'm applying a mask on top of a dynamically loaded .swf. The Mask is removing all dynamic text - why? 1. Try doing a dynamic mask, applied at runtime. I think there's a bug with applying masks in the authoring environment to dynamic text 2. Why did you reply to a completly unrelated message? ___ 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 -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ 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] Bizare...AS3.0 packages have methods?
:/ Something like trace should be globalized (but somehow could be overrided). I guess I can't have everything. In MM's anti-method-globalization approach, it seems like a whole bunch of handy methods like... trace() fscommand() getTimer() LoadVars.send() ...got kicked out of the global house and have no class of their own to call their home. So it seems they've been squished in with package definitions. Better than accessing static methods like DebugUtils.log() I guess. The reason why all of this is of any concern to me is that I am attempting to write solid AS2.0 today that has the potential to be migrated to AS3.0 tommorow. The reason why I havn't gone head first into AS3.0 is that my present target audience is Flash Player 7. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stan Vassilev Sent: Monday, October 31, 2005 2:24 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Bizare...AS3.0 packages have methods? Well that's one thing I always wanted to do in AS2 so if it stays like this it'd be great. There are many functions that just perfectly without class in front of them (after you import the package). For example those you mentioned. When I was implementing my trace utils I was forced to import fmethod.debug.* and still having to type every time DebugUtils.log(); now I could just make it package method and type log(); ... it's great to have that Regards, Stan Vassilev - Original Message - From: Spike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 8:49 PM Subject: Re: [Flashcoders] Bizare...AS3.0 packages have methods? It's a method of the package. When you create an AS 3 class you can put methods inside the package {} block, but outside any class definitions. I'm not sure why it works that way, but that's the way it works. Spike On 10/31/05, Martin Wood [EMAIL PROTECTED] wrote: i think its just a function declared with package scope. Mark Lapasa wrote: flash.util.trace() Is that a method of a package? Or a compiler directive? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org ___ 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] casting to a boolean
hi. i had a similar problem casting a string to a boolean last week but someone showed me the correct way to do it. unfortunately, it's not working in my latest exercise. when i trace out the value i always get false even when i change it to true. what happened to my conditional? ( i'm publishing to fp7 ) loadVariablesNum( text.txt, 2 ); function checkParamsLoaded() { if ( _level2 == undefined ) { trace( not yet. ); } else { trace( finished loading. killing interval. ); trace( - ); for ( i in _level2 ) { trace( i + : + _level2[i] ); } var temp:Boolean = ( _level2.textloaded == true ); // 'textloaded' is the var specified in the text file trace( temp: + temp ); // PROBLEM -- always outputs to 'false', even when var is set to 'true' trace( typeof(temp): + typeof(temp) ); // outputs to Boolean = GOOD. trace(-); clearInterval( param_interval ); } } var param_interval = setInterval(checkParamsLoaded, 100); i know that loadVariablesNum changed its behavior in fp7 but i'm not sure if that has anything to do with it. does anyone spot anything wrong in there? thanks for any tips. -- matt. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Making a function var global
Hey man. You could create a variable outside of the function, declare it to be global, and then assign it like you have below. DP On Oct 31, 2005, at 2:26 PM, jleonard wrote: I'm using the line below inside a function to create a var using the xml's node name tag. But outside the function, it's tracing undefined. I understand that in AS2 this has something to do with public/private calls. How do I get this to be seen globally? this [mediaNode.nodeName] = mediaNode.firstChild.nodeValue; -- Using Opera's revolutionary e-mail client: http://www.opera.com/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
[Flashcoders] Fwd: casting to a boolean -- SOLVED.
apparently the problem was with the encoding of the text file. it was originally encoded as Western Roman and as soon as i encoded it as utf-8 it worked just fine. -- Forwarded message -- From: Matt Ganz [EMAIL PROTECTED] Date: Oct 31, 2005 4:23 PM Subject: casting to a boolean To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com hi. i had a similar problem casting a string to a boolean last week but someone showed me the correct way to do it. unfortunately, it's not working in my latest exercise. when i trace out the value i always get false even when i change it to true. what happened to my conditional? ( i'm publishing to fp7 ) loadVariablesNum( text.txt, 2 ); function checkParamsLoaded() { if ( _level2 == undefined ) { trace( not yet. ); } else { trace( finished loading. killing interval. ); trace( - ); for ( i in _level2 ) { trace( i + : + _level2[i] ); } var temp:Boolean = ( _level2.textloaded == true ); // 'textloaded' is the var specified in the text file trace( temp: + temp ); // PROBLEM -- always outputs to 'false', even when var is set to 'true' trace( typeof(temp): + typeof(temp) ); // outputs to Boolean = GOOD. trace(-); clearInterval( param_interval ); } } var param_interval = setInterval(checkParamsLoaded, 100); i know that loadVariablesNum changed its behavior in fp7 but i'm not sure if that has anything to do with it. does anyone spot anything wrong in there? thanks for any tips. -- matt. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] DHTML and FLash Player 8 Bugs Fixed
Really neat...but may I suggest that you change the name? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Judah Frangipane Sent: Mon 10/31/2005 3:14 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] DHTML and FLash Player 8 Bugs Fixed Hi Saunder, It is possible. Until I send some example links you can look at these screenshots here: http://drumbeatinsight.com/system/files?file=screenshot1.jpg http://drumbeatinsight.com/system/files?file=screenshot2.jpg http://drumbeatinsight.com/htmloverlay I am thinking of making this open source if anyone is interested. Best Regards, Judah Sander wrote: Er... Linux issue only? How do you layer *any* content above flash? It's just not possible! Even a layer with plain text with a higher ID will drop under flash... Thanks for all your help, not only I learned how exactly indetify the problem but also how to post more accurate subjects to the list. I will try to get the source info for this problem and post it back to the list. ___ 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] Debugging wih FAMES?
Flashout is the debugging part of Eclipse Brent Gore wrote: Here goes my first post to flashcoders. I recently began experimenting with the FAMES development setup. So far the IDE is really awesome, but is there anyway to debug? I've played with the debug settings in Eclipse but no luck. Are there any additional plugins for this? I guess I need FAMEDS. :P As a related question, do any other FAMES users recommend switching to Flex? Since I've been using Fames it's been bothering me that I can't write in AS3 (not to mention the many other benefits to Flex). As it is widely discussed in this forum, Flex seems to be bridging the gap from Flash to a true programmer's IDE, but in my opinion it still has a ways to go and I really like what Fames has to offer. Thanks for your suggestions. Best, Brent G ___ 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] Bizare...AS3.0 packages have methods?
The reason why all of this is of any concern to me is that I am attempting to write solid AS2.0 today that has the potential to be migrated to AS3.0 tommorow. The reason why I havn't gone head first into AS3.0 is that my present target audience is Flash Player 7. Easy to migrate (for the mentioned functions) in a single line of code: import flash.util.* Then your trace() calls will work just like the do now. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strict Datatyping Question
You might find the answer here: http://www.ecma-international.org/publications/standards/Ecma-262.htm Furthermore, in Flash 4, a colon was used to get/set a variable in a certain timeline. If I remember correcty, it looked something like this: phrases/introduction:String = blah; Where 'String' would be a variable and 'introduction' a MovieClip inside 'phrases', also a MovieClip. regards, Muzak - Original Message - From: Jason Lutes [EMAIL PROTECTED] I also find it strange that you can't do this: var phrases:Object = new Object(); phrases.introduction:String = 'Bem vindo a todos.'; - or even - var phrases:Array = new Array(); phrases[0]:String = 'Bem vindo a todos.'; Should dynamically created properties/elements really be that bastardized in ActionScript? One of the advantages of strict data typing is the disambiguation of the code. I miss the ability to completely disambiguate in certain situations. For example, I occasionally use loops to generate objects or populate arrays, and would like to be able to strictly identify (for the sake of readability) any new properties/elements added within that loop. I can get around the limitation by directly passing a value to a _simple_ datatype's constructor during assignment. This identifies the expected value's type for me in many situations, but other constructors don't accept a direct value this way. I'm not encouraging/perpetuating bad programming practices here. There's legitimate reason to wonder about this. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash and ASP/MSSQL
Thanks James. It's a good idea, but I think for this project I'll go with the Javascript sets hidden form fields idea. But thanks for adding this idea to my spongey brain! On 31/10/05, JOR [EMAIL PROTECTED] wrote: I wouldn't hit the server until the location was considered final by the user. Maybe have a lock hole or finalize hole button in the flash movie that triggers the POST. It wouldn't work to put the POST on something like a mouseMove event and I'd be hesitant about using mouseUp either for the exact reason you mention. You don't want the user to keep hitting the server over and over for nothing. The advantage to using the session object would be for two different ASP pages... A) The one your Flash movie POSTs to behind the scenes and B) the one your HTML form POSTs to when the form is complete. In order for the two ASP pages to share data you need to store the X and Y locations somewhere they both can access. Session seemed like a logical place but you have other options like a database or even cookies. It's up to you what makes the most sense for your needs. JOR ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash and ASP/MSSQL
Thanks a heap Dominic and Richard! You're right - that flash demo at http://www.cybergrain.com/tech/demos/flashhtml/ was of extremely great use. It's always nice to do something for the first time in Flash, that you didn't think was possible. Cheers again. On 01/11/05, Dominic Fee [EMAIL PROTECTED] wrote: Hi Amanda This link may be of great use: Cheers Dom http://www.cybergrain.com/tech/demos/flashhtml/ On 31/10/05, Richard [EMAIL PROTECTED] wrote: Hi Amanda There's a reasonably simple javascript solution for you. Javascript !-- //sends var to form from your swf function setFormText(XYpos) { textobject = document.myForm.XYlocation; //change myForm to the name of your form textobject.value = XYpos; } //-- Add a hidden textfield to your form named XYlocation In Flash swf // var xStyle_fmt = new TextFormat(); xStyle_fmt.font = _sans; xStyle_fmt.bold = true; xStyle_fmt.size = 16; //-- this.onMouseDown = function() { this.createEmptyMovieClip(x_mc, ); with (this.x_mc) { this.createTextField(x_txt, 1200, _parent._xmouse-10, _parent._ymouse-10, 20, 20); //_xmouse-10 and _ymouse-10 places the centre of the text X at the mouse arrow point this.x_txt.setNewTextFormat(_parent.xStyle_fmt); this.x_txt.text = X; this.x_txt.textColor = 0xFF; } }; this.onMouseUp = function() { var XYpos = X= + this._xmouse + Y+ + this._ymouse; trace(XY+ + XYpos); getURL(javascript:setFormText(XYpos)) }; //-- HTH Richard ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Debugging wih FAMES?
I used to use FAME because MTASC is extremely fast at compiling compared to Flash. However, MTASC is apparently not going to support AS3, thus the whole point of using FAME, for me anyway, is dead. While Flashout has some nicely formatted traces, and ASDT has some neat templates, it doesn't compare to FlexBuilder 2. So, yeah, I'd dump FAME and go to FlexBuilder 2. - Original Message - From: Brent Gore [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 6:17 PM Subject: [Flashcoders] Debugging wih FAMES? Here goes my first post to flashcoders. I recently began experimenting with the FAMES development setup. So far the IDE is really awesome, but is there anyway to debug? I've played with the debug settings in Eclipse but no luck. Are there any additional plugins for this? I guess I need FAMEDS. :P As a related question, do any other FAMES users recommend switching to Flex? Since I've been using Fames it's been bothering me that I can't write in AS3 (not to mention the many other benefits to Flex). As it is widely discussed in this forum, Flex seems to be bridging the gap from Flash to a true programmer's IDE, but in my opinion it still has a ways to go and I really like what Fames has to offer. Thanks for your suggestions. Best, Brent G ___ 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] Debugging wih FAMES?
Learning FlexBuilder 2 can coincide with your FAMES learning because it all happens in the same IDE (Eclipse). I don't recommend switching entirely unless you don't plan to release anything until Flex 2 comes out (Jan?). Flex is simply another way to develop apps on the Flash Platform. (It's really exciting to people like me who remember using the Flash IDE and View-Actions to get to the scripting environment. I feel spoiled by all this awesome new stuff.) Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Player 8.5 standalone on OSX?
I'd like the answer to this also... On 10/28/05, Jon Bradley [EMAIL PROTECTED] wrote: No answer from MM on their labs forums, or anywhere else for that matter. Anyone locate the standalone player for OS X yet? It aint in the FlexBuilder2 installer or in the plug-in installer. Only the PC exe files are standalone. ?? thanks... Jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Michael Bianco http://mabwebdesign.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Import Outlook contacts or MSN emails into Flash application
Im pretty sure outlook at export CSV file or something similiar.. Can't tell you for sure as I dont use either product.. On 10/31/05, Wouter Steidl [EMAIL PROTECTED] wrote: Hi there, Does anyone know if it is possible to import Outlook contacts or people from your MSN or AOL list into a Flash application? I want to use this for a birthday calender I am building where you can send an email to a friend asking for his or her birthday. It would be nice if people could add a lot of emails at once without having to type them all in manually Wouter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Cheng Sent: Monday, October 31, 2005 6:32 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Updating MS Outlook calendar from Flash app James Johnson wrote: Is it possible to create a calendar application in Flash which allows the user to click on an event and to have that event automatically added to their MS Outlook calendar? You can, but it's rather tricky. Microsoft closely guards their proprietary ActiveSync protocol used for sync'ing external applications and devices with Exchange Server. While a number of large phone and device manufacturers have licensed the protocol recently, this probably out of reach to all but the largest of clients. Failing that, there's several other options available. The simplest way to go about this would be to create and e-mail a vCalendar meeting request to the recipient and depend on them to accept and add it onto their calendar. It's not quite automatic and doesn't sync in real-time, but is probably the easiest solution. As vCalendar is an open format (http://www.imc.org/pdi/), this shouldn't be very difficult to do with Flash and a little bit of server-side code. Alternatively, Novell had worked around the issue of licensing the ActiveSync protocol with Exchange Connector by reimplementing the RPC over HTTP calls used by the Outlook web application (OWA). This has been open-sourced into Gnome's Evolution mail/address/calendaring client (http://www.gnome.org/projects/evolution/), so you could reuse their code to sync with Exchange Server that way. Lastly, you could always screen-scrape OWA yourself and add the event that way through HTTP, though I'd imagine this would probably be even more work then reusing the code from Evolution. In theory, you could probably do all of this from within the Flash client if you go this route, though this would probably involve lots of work. ;( Jim ___ 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] map GIS of italy
Hi, Douglas... :) I was wondering if it is possible to see that in action or perhaps some screenshot if it is okay... :) Thanks... Jason - Original Message - From: douglas morrison [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 10:33 AM Subject: Re: [Flashcoders] map GIS of italy you can go to teleatlas or esri, and a fewother vendors for spatial data to load in your database. we started out using this method, but it became large and expensive. we now use data from a webservice call to esri's arcwebservice (arcweb.esri.com http://arcweb.esri.com). it pulls back the maps (we use italy street level addressing too) and the scale and i then place our POI in flash allowing users to zoom like in mappy... On 10/31/05, Marco Sottana [EMAIL PROTECTED] wrote: where i can find a map of italy i wish coordinates in a database.. i like www.mappy.com http://www.mappy.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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] ASDT data loss?
Just curious if anyone else has lost data when using Eclipse with ASDT? e.dolecki ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ASDT data loss?
i had it clear my entire desktop. I didn't have it all in SVN at the time. Pretty freaking scary when it happens. On 10/31/05, JesterXL [EMAIL PROTECTED] wrote: I've had Eclipse 3.1 delete an entire project directory when I removed a project, and said No, please don't delete the project. It crashed, deleted everything. I told it to f'off because I had just checked everything in via SVN, but close call. - Original Message - From: eric dolecki [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 10:27 PM Subject: [Flashcoders] ASDT data loss? Just curious if anyone else has lost data when using Eclipse with ASDT? e.dolecki ___ 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] DHTML and FLash Player 8 Bugs Fixed
Great work! By any chance Do you have a list of platforms you have tested this on? The main problem I have is with Linux. Thanks ...helmut Judah Frangipane wrote: Hi Saunder, It is possible. Until I send some example links you can look at these screenshots here: http://drumbeatinsight.com/system/files?file=screenshot1.jpg http://drumbeatinsight.com/system/files?file=screenshot2.jpg http://drumbeatinsight.com/htmloverlay I am thinking of making this open source if anyone is interested. Best Regards, Judah Sander wrote: Er... Linux issue only? How do you layer *any* content above flash? It's just not possible! Even a layer with plain text with a higher ID will drop under flash... Thanks for all your help, not only I learned how exactly indetify the problem but also how to post more accurate subjects to the list. I will try to get the source info for this problem and post it back to the list. ___ 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] EventDispatcher and JavaDoc
I have read through several JavaDocs-documents and am still not having any clue about how to write down that a method uses dispatchEvent. class A{ public function addToQueue(){ // code.. // dispatchEvent(...) } } Is there any @anything for dealing with how to write down the dispatchEvent. Or I will write it down in description, not that nice -but will work of course. Is there also some as2-class files that has some good usage of the JavaDoc anywhere? Would be fun to see how JavaDoc is used within the flash-community. / martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders