RE: [Flashcoders] Function_answer
erase_btn.onPress = function() { this.var2.text = ; }; Erase_btn.onPress = function(){ This._parent.var2.text = } I'm Korean My name is Jinseok Shin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] CSS styles vs. TextFormat
Hello Flashcoders, It is possible to replace CSS with TextFormat object using styleSheet.transform() . I'd like to know, what are advantages (if any) of using TextFormat instead of CSS ? I'm creating multiple text fields and want to apply tweening to them, so the question above is especially interesting in coordination with embedded fonts. Thanks in advance. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Re: Flash is a single-threaded app? Maybe it'sjusttheAVM? or...
as for onenterframe (as with other 'major' events), I usually bubble that event, as to give me more control of which object(usually a movieclip) listens and which one doesn't, without altering the object itself. Has little to do with threading, but I'm not sure if simulating threading in actionscript actually gives any advantage, performance wise.. On 12/8/05, David Rorex [EMAIL PROTECTED] wrote: You can always write some kind of wrapper, so you don't have to mess around with empty movieclips, and onEnterFrame, etc. function caluculateStuff() { // set up any data needed for calculation // ... TaskManager.forloop(loopFunction, 1, 10, finalFunction); function loopFunction(var i:Number) { trace(calculating number: +i); //traces out 1 thru 10 } function finalFunction() { trace(calculation complete!); } } Then internally in TaskManager, you only run 1 loop per frame, or you could use getTimer() to measure how long it is taking, and do as many per frame as you can, without slowing things down too much. It's slightly more typing than a simple for loop, but it's not that bad. I'll leave the implementation of TaskManager as an exercise for the reader :) -David R On 12/7/05, Chris Allen [EMAIL PROTECTED] wrote: Hahaha, Okay your point is well taken. Especially since I am currently working on fixing a multi-threaded Java socket application at the moment. Multi-threaded programing isn't a walk in the park, that's for sure. But, with that said, depending on how Scott implements his MovieClip approach it might be a lot cleaner than doing onEnterFrame() all over the place. It certainly sounds like a legitimate approach to me. -Chris On 12/7/05, A.Cicak [EMAIL PROTECTED] wrote: Believe me multithreding is lot harder to debug, read and maintain in most cases assuming that onEnterFrame is not made in way that you put 20 loops all in one function (onEnterFrame) . You could make object (MultiLoop) which has method Update, some private counters, etc. and for each problematic loop you just make object MultiLoop, define its Update method, add it to array, and in on enter frame loop through that array and for each element call Update. In this way you could even do stuff like set priority to each loop, and for example call update in each pass same number of times as is MultiLoop.Priority value. Code to process all loops including priority support wouldnt be longer that 10-15 lines of code, and thats only thing you put in onEnterFrame. Although in real world program should be designed so there are not too much problematic loops anyway. Chris Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 12/7/05, A.Cicak [EMAIL PROTECTED] wrote: I dont understand how your UI could lock in the first place? Sockets and sounds are already working in another thread and all other code which could lock the UI (like some long loops, etc.) can be made by emulating loop with onEnterFrame and few counters. Yeah, but onEnterFrame and counters make for some pretty nasty code that is hard to read, debug, maintain, etc... Scott Hyndman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Windows 3.1 was single threaded. As I understand it, programs would hook into the event loop and be given a handle. While they held the handle, they could run their own code, but they were supposed to release it when they were finished to allow other running programs to use it. I guess what I'm trying to say is quite a bit you can do without multiple threads. And just as a side note, I came up with an interesting idea today on how to emulate multiple threads in Flash. Just use more than one movie! Talk between the UI movie and the background worker movie with a LocalConnection object, and you're in business. No more UI lock. Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew Sent: December 3, 2005 8:24 PM To: Flashcoders mailing list Subject: [Flashcoders] Flash is a single-threaded app? Maybe it's just theAVM? or... I have read in this forum that someone loosely coined the phrase Flash is a single thread app, it's hard to imagine something as high performance and intricate as Flash to be a single-threaded app. So I started to take the above statement to mean that the Actionscript VM executes all the code in a sequential fashion but that Flash player itself is multithreaded, is that a right assumption? And what about code that are asynchronous in nature, such as sound playing ( new Sound(), onSoundComplete), server-side call return (such as LoadVars, XML.onLoad)? Are these all happening in the single
RE: [Flashcoders] universal toString() function
Helen, Jobe - thanks for your replies! Jobe: excellent, that comes very close and does help. The only issue I had was that the for-in loop messes up the order of the items in the Array. While for one-dimensional Arrays it's just reversed and can be 'cured' easily by a call to Array.reverse(), with multi-dimensional Arrays the order of the for-in loop is a non-intuitive mess. Taking your ideas and starting over I came up with this: /* Accepts a complex object and returns its String representation Handy for saving complex data structures as Strings The object may contain nested Variables of the following types: Object, Array, String, Number, Boolean Example: o = {a:1, b:'Beta', c:{c1:[c1_0, c1_1, c1_2], c2:true}}; var s:String = stringify(o); trace(s); // Output: // {a:1, b:Beta, c:{c1:[c1_0, c1_1, c1_2], c2:true}} */ function stringify(o:Object):String { s = arguments[1] ? s : ''; var isArray:Boolean = o instanceof Array ? true : false; s += isArray ? '[' : '{'; if(isArray) { for(var i=0, len=o.length; ilen; i++){ if(i){ s += , } s+= (typeof o[i] == object) ? stringify(o[i], ) : (typeof(o[i]) == 'string' ? ''+o[i]+'' : o[i]); } }else{ var c = ''; for(var p in o){ s += c + p +:+((typeof o[p] == object) ? stringify(o[p], ) : (typeof(o[p]) == 'string' ? ''+o[p]+'' : o[p])); c = , ; } } s += isArray ? ']' : '}'; return s; } It's not much more readable though ;-) Thanks again! Andreas Weber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jobe Makar Sent: Mittwoch, 7. Dezember 2005 17:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] universal toString() function Hi Andreas, Give this a shot I think it will do what you need. Its a little messy since I just typed it really quick. Hope it helps: //---Some contrived complex structure to trace var myOb = new Object(); myOb.name = jobe myOb.animals = [free, gulliver]; myOb.someArr = [{email:[EMAIL PROTECTED], vocation:programmer, male:true, hasKids:false}, 30]; //-- checkIt(); function checkIt() { var output:String = inspect(myOb, ); trace(output); } function inspect(ob, str, parent) { if (ob instanceof Array) { str += [; } else if (ob instanceof Object) { str += {; } var firstone:Boolean = true; for (var i in ob) { var type = typeof ob[i]; if (!firstone) { str += , ; } else { firstone = false; } if (type == object) { var val = inspect(ob[i], , ob); if (ob instanceof Array) { str += val; } else { str += i+: +val; } } else { if (ob instanceof Array) { str += interpretValue(ob[i]) } else if (ob instanceof Object) { str += i+:+interpretValue(ob[i]); } } } if (ob instanceof Array) { str += ]; } else if (ob instanceof Object) { str += }; } return str; } function interpretValue(val) { if (Number(val) === val){ //number return val; } else if (val == true || val == false) { return val; } else { return '+val+'; } return val; } Jobe Makar http://www.electrotank.com http://www.electro-server.com phone: 919-609-0408 mobile: 919-610-5754 fax: 919-341-8104 - Original Message - From: Andreas Weber [EMAIL PROTECTED] To: Flashcoders flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 10:14 AM Subject: [Flashcoders] universal toString() function I'm quite sure that this must be around somewhere, but this time I didn't have any luck searching the archives... What I'm looking for is similar to a deep-copy/clone method (e.g. Arul/Tatsuo http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2004-March/106149 .htm l) but instead of getting a clone of the object in return, I'd like to get a String representation of the object. Example of the desired functionality: o = {a:1, b:2, c:{c1:['a','b','c'], c2:true}}; var s:String = universalToString(o); trace(s); Output: {a:1, b:2, c:{c1:['a','b','c'], c2:true}} In my case the object will not contain any methods, just (deeply nested) 'vanilla' Objects, Arrays, Strings, Numbers and Booleans. Thanks for any pointers! -- Andreas Weber motiondraw.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
Re: [Flashcoders] motion detection
... so I didn't go to far with research, but it seems that motion detection in f8 is pretty strong ... (because of BitmapData) to be honest, from the first tests I did, the getPixel/setPixel method seems to have a very low performance and for this reason I wouldn't define computer-vision with flash that strong. Better examples of computer-vision in general, can be found here http://www.setpixel.com/ cheers, chr -- ___ { Christian Giordano's site and blog @ http://cgws.nuthinking.com } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] CSS styles vs. TextFormat
You cant use CSS styles when working with input textfields, so, in an application where you use CSS for text styling you would have to convert the styles to textformats when styling input textfields. That is one situation where you would have to use TextFormat. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of GregoryN Sent: den 8 december 2005 09:37 To: Flashcoders mailing list Subject: [Flashcoders] CSS styles vs. TextFormat Hello Flashcoders, It is possible to replace CSS with TextFormat object using styleSheet.transform() . I'd like to know, what are advantages (if any) of using TextFormat instead of CSS ? I'm creating multiple text fields and want to apply tweening to them, so the question above is especially interesting in coordination with embedded fonts. Thanks in advance. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 and duplicateMovieClip
Thanks for pointing me to the migration section! I see now theres all kinds of methods replaced by OOP structuring. And I guess that means that movieclips can be duplicated to anywhere beyond it's own container in AS3! Correct me if I'm wrong! Sascha - Original Message - From: Troy Rollins [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 1:03 PM Subject: Re: [Flashcoders] AS3 and duplicateMovieClip On Dec 7, 2005, at 10:53 PM, Sascha Balkau wrote: I'm not very familiar with AS3 yet but is there no duplicateMovieClip anymore? At least I couldn't find anything about it on the AS3 reference (http://livedocs.macromedia.com/labs/1/flex/langref/index.html). Or does some of these methods completely have been replaced by something else? With Flash 8 AS2 nothing has been changed about duplicateMovieClip, so it's still not possible to duplicate a clip from one container into another. I was hoping it will be possible with AS3. Anyone knows more about it? duplicateMovieClip() - flash.display.MovieClip.MovieClip() (Replaced by new MovieClip class constructor function.) Found under the AS2 to AS3 migration section. -- Troy RPSystems, Ltd. http://www.rpsystems.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] Re: Re: Flash is a single-threaded app? Maybeit'sjusttheAVM? or...
Problem im having What does the mask number stand for in threshold function I get the color but I don't understand what the mask is for? 20x ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 and duplicateMovieClip
youre absolutely right. at last you can re-parent clips :) Sascha Balkau wrote: Thanks for pointing me to the migration section! I see now theres all kinds of methods replaced by OOP structuring. And I guess that means that movieclips can be duplicated to anywhere beyond it's own container in AS3! Correct me if I'm wrong! Sascha -- Martin Wood http://relivethefuture.com/choronzon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Problems with MovieClipLoader: IT FROZES!
i'm using MovieclipLoader to make several actions during load of externarl swf's. But when i try to make a big load (f.e 7Mb in a external swf) Flash get frozen, and events doesn't go as i was expecting. All events are fired or make actions like traces at the same time: this is, at the end of the load (the onLoadStart, and onLoadProgress traces or onLoadInit at the end). But this isn't the worst thing. If i make simply things like change Icon/Pointer of the Mouse, and this is a MovieClip with movement (imported from a gif) before star Load, it appears Stopped or frozen during load... may i make a doEvents or some similar instruction that i doesn't know in flash??? i need your help! PLEASE! this frozen-state are mading me crazy! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
Making MIDI available through Flash will open another market for Adobe. Right now graphic designers and programmers are using Flash, so having musicians on board would definately make Flash a universal tool. So, I'm all for it! While we're at it, I suggest take the effort to the next level by consider Roland GS and Yamaha XG format, and MIDI2 if you will. For those who're not familiar, Roland GS and Yamaha XG are richer format yet is backword compatible with GM MIDI, which has only 128 instrument sampler and 1 drum kit. Oh, supporting SYSEX would be fun too Am I asking for too much? He he... From, Moses Tyler Wright wrote: The Flash Player has evolved through the ages to provide the most needed functionality. Through each version there have always remained a few common goals. What I have found is that: Flash is small -- from the player itself to the swf file format to the assets it is optimized to load, focus has been placed on small file sizes (this of course is not as apparent in many websites that are heavy in multimedia) Flash supports standards -- the player supports many web and multimedia formats standard in the industry, such as jpg, mp3 and xml Flash is interactive -- the players greatest strength is the dynamic behavoir through ActionScript to allow user interactivity MIDI, a music standard format that most computers support today, fits all of these categories (like a glove). In fact there's an opensource project being developed to allow MIDI through Flash, though it requires an additional download and install to the user apart from the Flash Player itself (seen at osflash.org) I'd like to take a poll. Do you think MIDI should be included in the Flash Player? Why or why not? I want both votes and opinions as I'll organize the results and send them off to Adobe, formerly known as Macromediahttp://www.macromedia.com. Please respond with some sort of opinion whether it's pro or con. I'll list the pros/cons I can think of below (you don't have to read the rest of this email if you already have your opinion). A little more on MIDI: MIDI is a standard music format (some will argue that it's the onlystandard) that represents pitches and instruments to be played as a song. It's extremely small, being the vector of music, and has to be interpreted by a users soundcard. Almost all computers these days support standard MIDI, though it sounds synthesized (especially on the voice and string instruments). Some soundcards or additional software transform the common MIDI into amazing orchestrations, but most users don't have this advanced playback. MIDI pros: can be generated dynamically and played through a sequencer to allow complete on-the-fly customization of sound. very small in filesize supported by almost all soundcards numerous applications for the creation of MIDI songs (many are free) it's a standard that has been around for a long time (so there is a lot of support for it) a small implementation (wouldn't increase the Flash Player size by more than 50K) MIDI cons: most people will have a more synthesized sound user experience isn't guarenteed to be consistant (for those with higher quality soundcards) as with all advancements, could make it really easy for developers to have annoying sounds playing on their sites ;) In short, if the Flash Player had a midi sequencer built in it would allow developers to create lightweight interactive music applications, such as this sheet music rendering application http://mediarain.com/musicrain or music creation applications. It could also allow users to experience a website that contained sound effects or decent background music at very little bandwidth cost. Formerly know as Macromedia has always been good about listening to the developer community and will surely make efforts to build the features we need, if we tell them. This is your forum. Tyler ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] getting XY of caret or selection in textField
Hi there I'm taking a long shot. Is there any way (without calculations and workarounds involving textExtent, etc) to obtain the X,Y position of the caret (the actual caret character) in a textField? Hoping there is something nasty and (un)documented... Thanks Fla ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] getting XY of caret or selection in textField
No -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of fla coder Sent: Thursday, December 08, 2005 7:44 AM To: Flashcoders mailing list; Open Source Flash Mailing List Subject: [Flashcoders] getting XY of caret or selection in textField Hi there I'm taking a long shot. Is there any way (without calculations and workarounds involving textExtent, etc) to obtain the X,Y position of the caret (the actual caret character) in a textField? Hoping there is something nasty and (un)documented... Thanks Fla ___ 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] Who wants MIDI in the Flash Player?
If Flash will have anything it won't be general MIDI banks embeded in the player (= huge size). SF2 player would be more than enough with ability to embed SF2 files like we do wijth fonts.. But that.. later. Making MIDI available through Flash will open another market for Adobe. Right now graphic designers and programmers are using Flash, so having musicians on board would definately make Flash a universal tool. So, I'm all for it! While we're at it, I suggest take the effort to the next level by consider Roland GS and Yamaha XG format, and MIDI2 if you will. For those who're not familiar, Roland GS and Yamaha XG are richer format yet is backword compatible with GM MIDI, which has only 128 instrument sampler and 1 drum kit. Oh, supporting SYSEX would be fun too Am I asking for too much? He he... From, Moses ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] [OT] Color Scheme Websites
Hello I once saw a link on the list to a great site which presented favorites color schemes from designers. I cannot find it again at all. Anyone see what site i'm talking about ? Anyhelp apreciated thanks mika ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
Who wants MIDI in the Flash Player? YES PLEASE - I WANT MIDI in the Flash Player... Too many people assume MIDI is just for music, musicians and for musical instruments. It is not. Arguably MIDI's greatest success has been in interoperative hardware of many kinds. http://www.google.com/search?q=show+control In addition to keyboards, drum boxes, synths, FX devices and PCs, there is a valuable world of MIDI control surfaces which include Mixers. The control surfaces are rally a subset of the industrial uses of MIDI which fall under the rubrik MIDI SHOW CONTROL used by major entertainment developers for show biz extravaganzas, such as Rock and Broadway shows, Las Vegas themed developments and Theme parks like Disney World etc. Midi Show Control was at origin a broad and visionary protocol extension anticipating all kinds of devices and uses -- for example: laser discs [remember them], lighting systems, smoke machines, networked MPEG video players, hydraulic equipment, etc.. See list at end of this post or Check out the original 1991 spec MIDI SHOW CONTROL (MSC) 1.0 http://www.richmondsounddesign.com/txt/mscspec.txt THE SHOW CONTROL MAILING LIST There is a very intelligent and informative mailing list where dedicated professional Show Control developers discuss everything from precise programming issues, bug sleuthing, general brainstorming, security, project research and Show Control business. The list also addresses life beyond current MSC spec - next generation MIDI Show control if you will, Show Control over Ethernet, Wifi and so forth. http://groups.yahoo.com/group/show-control/ Let's be clear MIDI is only a subset of ShowControl. And most show control developers would not could not take Flash seriously for many applications and formany reasons - at least until now perhaps/ Among the obvious that there was NO midi, no hardware I/o, and not even an attempt to syncchronize sound with video. Flash sucks compared to other systems. Likewise Public security of big instsallations could be a nightmare in a theme park based on Flash. But the name of the game is to use each tool for what it doews BEST. And as all here know, Flash has some special virtues. So for designing and developing end user interfaces, especially the many stages of design mockups, aided by the growing portability of Flash makes it very attractive. For Show Control applications, Flash 8 offers convivial, easily customizable options. Thus the need for MIDI. In reality even if Flash had MIDI in the player, [which it should], full professional use would be limited due to likely timing unreliability. There are better and well known tools for handling that. But Show Control developers are famously ingenious and route around most problems by combining technologies in new ways, optimizing the benefits of each. For small scale applications or where timing and public safety are not an issues, MIDI in the Flash Player opens up a fascinating new world of using FLASH to drive an exciting range of external media hardware. Flash will probably never be able to compete with the likes of MAX, PD [PureData], KeyKit and others. But given the skill of programmers on this list I would not be surprised at what emerges, especially when used WITH those other MIDI-friendly hardware and software. KeyKit [Tim Thompson] FREE http://nosuch.com/keykit/ PD [PureData] FREE http://puredata.info/ http://www-crca.ucsd.edu/~msp/software.html GEM for PD GEM stands for Graphics Environment for Multimedia and is an external (plugin) for the computer-music software PD. http://gem.iem.at/ MAX/MSP [commercial sold by Cycling74] http://www.cycling74.com/products/index.html Be sure to look at 'Jitter' - a set of over 150 brilliant video, matrix, and 3D graphics objects for the Max programming environment. http://www.google.com/search?q=max+msp Today we can begin to freely experiment interfacing Flash to the above using Alexis Isaac's promissing Flash MIDI and the plugin he has developed http://www.alexisisaac.net/products/flashMidi/ The goodies emerging rapidly in the world of Processing further suggest why Flash Player should include MIDI. http://processing.org/ enjoy, Jason *** excerpt from MSC 1.0 spec *** Hex command_format -- 00 reserved for extensions 01 Lighting (General Category) 02 Moving Lights 03 Colour Changers 04 Strobes 05 Lasers 06 Chasers 10 Sound (General Category) 11 Music 12 CD Players 13 EPROM Playback 14 Audio Tape Machines 15 Intercoms 16 Amplifiers 17 Audio Effects Devices 18 Equalisers 20 Machinery (General Category) 21 Rigging 22 Flys 23 Lifts 24 Turntables 25 Trusses 26 Robots 27 Animation 28 Floats 29 Breakaways 2A Barges 30 Video (General
Re: [Flashcoders] Who wants MIDI in the Flash Player?
oops, I forgot to include links to the I-CUBEX set of MIDI sensors http://infusionsystems.com/catalog/all_categories.php?osCsid=540ddd8aa0ac63e6fb8054c988afefd4 and to Alcorn McBride Show Control equipment http://www.alcorn.com/products/showcontrol/index.html Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
In addition to keyboards, drum boxes, synths, FX devices and PCs, there is a valuable world of MIDI control surfaces which include Mixers. The control surfaces are rally a subset of the industrial uses of MIDI which fall under the rubrik MIDI SHOW CONTROL used by major Keyboards are very nice for re-using in physical interfaces, earlier today I mentioned a music painting device which was based on the electronics of an old keyboard.The keyboard only needs to have a circuit board instead of those plastic ones. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [OT] Color Scheme Websites
Maybe this one? http://www.colorschemer.com/ - Original Message - From: mika [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 8:26 AM Subject: [Flashcoders] [OT] Color Scheme Websites Hello I once saw a link on the list to a great site which presented favorites color schemes from designers. I cannot find it again at all. Anyone see what site i'm talking about ? Anyhelp apreciated thanks mika ___ 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] Who wants MIDI in the Flash Player?
Yes, MAXMSP and PureData are nice applications, do you know how to trigger a AppleScript with MaxMSP? I would like to change a playlist in iTunes when a specific value is set. If you know something may I contact you off list? Sorry I am not up on Applescript at all... Try contracting some of these people: http://www.synthesisters.com/hypermail/max-msp/Sep05/30402.html good luck, Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
In combination of a MIDI converter thingy you can control stuff. At a seminar a group used a gypsy suite as the interface of a game. If you did specific gestures with your arms and/or legs. A specific MIDI command got send out to MaxMSP from MotionBuilder. This would then control create the appropriate sounds such as rain. Really fun. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
This is another side which would be great to open up. It would be amazing to integrate flash with MIDI controllers and audio software. I've thought of many interfaces to control audio which would be a lot easier to create in flash. Also i can imagine some amazing interactive work combining flash and the jazz mutant lemur. mmm, the lemur... http://www.jazzmutant.com/lemur_overview.php Jason Cunliffe wrote: oops, I forgot to include links to the I-CUBEX set of MIDI sensors http://infusionsystems.com/catalog/all_categories.php?osCsid=540ddd8aa0ac63e6fb8054c988afefd4 and to Alcorn McBride Show Control equipment http://www.alcorn.com/products/showcontrol/index.html Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Martin Wood http://relivethefuture.com/choronzon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
Of course, in thinking about this, with the new binary socket functionality, midi control could all be done by just writing a simple localhost to midi gateway. This would be pretty simple to do, and is probably what is needed anyway to deal with different drivers etc. And it makes total sense that if you want to control some local hardware that you need to download a piece of software. problem solved!! :) Regards Hank On 12/8/05, Martin Wood [EMAIL PROTECTED] wrote: This is another side which would be great to open up. It would be amazing to integrate flash with MIDI controllers and audio software. I've thought of many interfaces to control audio which would be a lot easier to create in flash. Also i can imagine some amazing interactive work combining flash and the jazz mutant lemur. mmm, the lemur... http://www.jazzmutant.com/lemur_overview.php Jason Cunliffe wrote: oops, I forgot to include links to the I-CUBEX set of MIDI sensors http://infusionsystems.com/catalog/all_categories.php?osCsid=540ddd8aa0ac63e6fb8054c988afefd4 and to Alcorn McBride Show Control equipment http://www.alcorn.com/products/showcontrol/index.html Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Martin Wood http://relivethefuture.com/choronzon ___ 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] [OT] Color Scheme Websites
Wasn't the one, but interesting as well. The link i'm searching for was close to http://returnofdesign.com/colors/ mika 2005/12/8, Jim Berkey [EMAIL PROTECTED]: Maybe this one? http://www.colorschemer.com/ - Original Message - From: mika [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 8:26 AM Subject: [Flashcoders] [OT] Color Scheme Websites Hello I once saw a link on the list to a great site which presented favorites color schemes from designers. I cannot find it again at all. Anyone see what site i'm talking about ? Anyhelp apreciated thanks mika ___ 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] Who wants MIDI in the Flash Player?
Sure, it can already be done without binary sockets using a simple xml socket based server which translates whichever protocol to and from XML, for instance theres already flosc, a flash / java solution for OSC communication, and the same idea can be done for MIDI...but it would just be nice to minimise the number of pieces in the puzzle. :) still, my main interest is still in getting better sound in flash itself. I agree with you in that i see no reason not to allow access to the sound buffer of flash itself. Its no different from writing bitmap data. thanks, Martin hank williams wrote: Of course, in thinking about this, with the new binary socket functionality, midi control could all be done by just writing a simple localhost to midi gateway. This would be pretty simple to do, and is probably what is needed anyway to deal with different drivers etc. And it makes total sense that if you want to control some local hardware that you need to download a piece of software. problem solved!! :) Regards Hank On 12/8/05, Martin Wood [EMAIL PROTECTED] wrote: This is another side which would be great to open up. It would be amazing to integrate flash with MIDI controllers and audio software. I've thought of many interfaces to control audio which would be a lot easier to create in flash. Also i can imagine some amazing interactive work combining flash and the jazz mutant lemur. mmm, the lemur... http://www.jazzmutant.com/lemur_overview.php Jason Cunliffe wrote: oops, I forgot to include links to the I-CUBEX set of MIDI sensors http://infusionsystems.com/catalog/all_categories.php?osCsid=540ddd8aa0ac63e6fb8054c988afefd4 and to Alcorn McBride Show Control equipment http://www.alcorn.com/products/showcontrol/index.html Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Martin Wood http://relivethefuture.com/choronzon ___ 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 -- Martin Wood http://relivethefuture.com/choronzon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
Yeah, I guess you really dont need binary for this although it might be a tad more efficient. But the data is really pretty low bandwidth so a XML socket server would be fine. And you are right it would be a nice to have in flash. Its just that I recently setup a small studio and everything seems to need a driver. I just wonder how comprehensive/seamless a system built into flash could be. I dont know much about how midi works on the pc and whether the OS already has a kind of internal midi bus so that app developers dont need to worry about compatibility. If all that is already there then it could be done in flash wihout any compatibility issues. Regards Hank On 12/8/05, Martin Wood [EMAIL PROTECTED] wrote: Sure, it can already be done without binary sockets using a simple xml socket based server which translates whichever protocol to and from XML, for instance theres already flosc, a flash / java solution for OSC communication, and the same idea can be done for MIDI...but it would just be nice to minimise the number of pieces in the puzzle. :) still, my main interest is still in getting better sound in flash itself. I agree with you in that i see no reason not to allow access to the sound buffer of flash itself. Its no different from writing bitmap data. thanks, Martin hank williams wrote: Of course, in thinking about this, with the new binary socket functionality, midi control could all be done by just writing a simple localhost to midi gateway. This would be pretty simple to do, and is probably what is needed anyway to deal with different drivers etc. And it makes total sense that if you want to control some local hardware that you need to download a piece of software. problem solved!! :) Regards Hank On 12/8/05, Martin Wood [EMAIL PROTECTED] wrote: This is another side which would be great to open up. It would be amazing to integrate flash with MIDI controllers and audio software. I've thought of many interfaces to control audio which would be a lot easier to create in flash. Also i can imagine some amazing interactive work combining flash and the jazz mutant lemur. mmm, the lemur... http://www.jazzmutant.com/lemur_overview.php Jason Cunliffe wrote: oops, I forgot to include links to the I-CUBEX set of MIDI sensors http://infusionsystems.com/catalog/all_categories.php?osCsid=540ddd8aa0ac63e6fb8054c988afefd4 and to Alcorn McBride Show Control equipment http://www.alcorn.com/products/showcontrol/index.html Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Martin Wood http://relivethefuture.com/choronzon ___ 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 -- Martin Wood http://relivethefuture.com/choronzon ___ 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] FAQ Adobe acquisition of Macromedia
The only thing I really like on the surface of this merger is the fact the Macromedia apps will get tabbed palettes back. Doesn't Flash 8, Dreamweaver 8, etc. already have that? At least, they do on my machine. Unless what you mean by a tabbed palette isn't what I am thinking. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FAQ Adobe acquisition of Macromedia
The only thing I really like on the surface of this merger is the fact the Macromedia apps will get tabbed palettes back. Doesn't Flash 8, Dreamweaver 8, etc. already have that? At least, they do on my machine. Unless what you mean by a tabbed palette isn't what I am thinking. Not really. He means Adobe-like paletters that MM was forced to stop using by a lawsuit from Adobe a couple of years ago (or so the story goes). On Photoshop, Illustrator and other Adobe tools, you can group panels together (using 'tabs') so space is a bit better used. MM's current solution is close to it, but not as good, IMO, as you can just fold and unfold panels but they can never share the same space. Funny enough, it's also one of the best things I expect from this merger/aquisition. - zeh ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
MIDI bandwidth demands can be very misleading. So routing via XML sockets, Jabber whatever is _great_ for some applications and hopeless real-time performance-wise for others. Just depends.. Consider simple example of even few sliders built in Flash app from which you want to send/receive continuous control messages to some midi device. XIFF library might come in handy for passing non-real-time Flash MIDI in collaborative apps. For example remote Flash driven Audio/Video jukebox type instruments remixing hardware playback from Flash-TiVos. This could mean an end to Flash Video horrors and much more like interactive video apps that Director suggested way back when.. Re: interface idea, I encourage everyone to play with KeyKit. It has a brilliant unique modular interface GUI design including a lovely idea of savable 'pages'. Stuff like that can now finally be done in Flash. without too much grief. [Based on Plan9 I think.]. If anyone has a heads-up on actionscript to do that, I'd love to hear from them. Keykit has so much to inspire and offer FlashMIDI. Cross platform, programmable free, fun, very different. KeyKit could make a powerful background midi processor for FlashMIDI uses. For example already includes a neato telnet interface.Nasty timing MIDI timing and routing issues could be handled by KeyKit, Flash could do cool parts of the interface. oh And let's not forget GeoMaestro KeyKit extension: http://www.zogotounga.net/GM/eGM0.html I believe adding MIDI to the Flash Player could have similar catalytic creative effect to when Atari first built a MIDI port into their computers -- opening the floodgates to some of the best original sequencer software like Dr Ts. Commodore Amiga did the same thing when they included Video in gamut. Revolutionary in its day and still some great ideas from that machine have not reappeared .. like multiple multi-tasked 'screens' you can switch between. Avoided the hideous visual clutter we have since advent of rectangular windows forever. KeyKit Pages is actually a pickup on that same interface idea. Now that PCs and now [again] merging deeper with consumer video appliances in the form of new DVD recorders all with Tivo functions, it seems to me that Flash _should_ be an ideal user interface environment. - Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who wants MIDI in the Flash Player?
Hank Can you expand on that idea please. Sounds interesting... thanks, Jason - Original Message - From: hank williams [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 3:26 PM Subject: Re: [Flashcoders] Who wants MIDI in the Flash Player? Of course, in thinking about this, with the new binary socket functionality, midi control could all be done by just writing a simple localhost to midi gateway. This would be pretty simple to do, and is probably what is needed anyway to deal with different drivers etc. And it makes total sense that if you want to control some local hardware that you need to download a piece of software. problem solved!! :) Regards Hank ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Flashcoders Digest, Vol 11, Issue 24
Thanks Chris, good to know. So there's no good Flash 6 solution? Yeah, this is a problem in flash. A better loading method is to use the MovieClipLoader class: var mcl = new MovieClipLoader(); mcl.loadClip(movie.swf,_root.clipToLoadIn); mcl.addListener(this); onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) { trace(loaded=+bytesLoaded+, total=+bytesTotal); }; David Cohn wrote: Hey all, After using loadMovie on a blank movieclip, I do: onClipEvent(data) { trace(loaded=+this._framesloaded+, total=+this._totalframes); } ...which always gives: loaded=16000, total=65535 (both values should be way smaller) Yet _currentframe reports the correct value... is there something I'm missing? Thanks in advance, --Dave p.s. is there a way to search the flashcoders archives? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: SPAM-LOW: Re: [Flashcoders] FAQ Adobe acquisition of Macromedia
Actually you can group panels together in Flash 8, and they'll have tabs. Click the icon on the right in a tab header and select Group [PanelName] with. Then choose the panel you want it to be grouped with. Once they are grouped, they'll each have a tab. There seems to be a bug: the first time you group panels, then click a tab, the tabs disappear. Just collapse the panel and open it again and all is well. Derek Vadneau - Original Message - From: Zeh Fernando [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 10:21 AM Subject: SPAM-LOW: Re: [Flashcoders] FAQ Adobe acquisition of Macromedia Not really. He means Adobe-like paletters that MM was forced to stop using by a lawsuit from Adobe a couple of years ago (or so the story goes). On Photoshop, Illustrator and other Adobe tools, you can group panels together (using 'tabs') so space is a bit better used. MM's current solution is close to it, but not as good, IMO, as you can just fold and unfold panels but they can never share the same space. Funny enough, it's also one of the best things I expect from this merger/aquisition. - zeh ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] remote debugger lagging
Happened to me a couple of times in MX 2004. Sometimes my fault (bad code!), other times I was just munging around in the debugger, looking at vars, etc. and the message came up. No consistency to it. Miles At 11:50 AM 12/8/2005, elibol wrote: Hi guys, has anyone had any problems using the remote debugger in conjuction with applications that rely on dynamic content via remoting CFC's? It seems to occur only with Flash 8, but I'm not absolutely sure. Guys, whenever I use remote debugging the rendering shell application freezes, be it IE or Firefox. It looks exactly as if there is an infinite loop the application is caught in when this happens, as it gives me the 'there is a script chomping on your resources, do you want to kill it' dialogue, however, if I stop the script nothing changes. On the flip though, if I end remote debugging by closing the debugger panel then everything is ok. Is this known? I appeciate it guys, H ___ 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] Re: _framesloaded and _totalframes
Sorry, I responded too early... (and forgot to change the subject line-- where's that coffee?!?) What I'm looking for is actually the totalframes of the movieclip I'm loading-- not bytes. The MovieClipLoader class doesn't seem to provide this-- and I can't even get this when the clip is fully loaded. Is this information available at all from outside a loaded clip? Thanks, --Dave On Dec 8, 2005, at 8:14 AM, David Cohn wrote: Thanks Chris, good to know. So there's no good Flash 6 solution? Yeah, this is a problem in flash. A better loading method is to use the MovieClipLoader class: var mcl = new MovieClipLoader(); mcl.loadClip(movie.swf,_root.clipToLoadIn); mcl.addListener(this); onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) { trace(loaded=+bytesLoaded+, total=+bytesTotal); }; David Cohn wrote: Hey all, After using loadMovie on a blank movieclip, I do: onClipEvent(data) { trace(loaded=+this._framesloaded+, total=+this._totalframes); } ...which always gives: loaded=16000, total=65535 (both values should be way smaller) Yet _currentframe reports the correct value... is there something I'm missing? Thanks in advance, --Dave p.s. is there a way to search the flashcoders archives? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Display same value in 3 fields
Bit of a glitch. I need to display the same value in 3 different locations and was wondering if it's possible to do it in any way other than setting values in 3 text fields. What I'm doing right now - Field1.text = OK Field2.text = OK Field3.text = OK What I'd like to do - GlobalField.text = OK [change propogates to 3 instances of the movieclip] I played around a bit with static class variables and feel it might be the right way. Any pointers anyone? Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Display same value in 3 fields
Or even just a function.. public function updateDisplay(str:String):Void{ Field1.text = str; Field2.text = str; Field3.text = str; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Thursday, December 08, 2005 12:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Display same value in 3 fields Will something like this work? Not the best solution im sure but it gets the job done! ;) for(i=1;itotalFields;i++){ this[Field+i].text = OK; } Mike Boutin Juicy Studios Pranav Negandhi wrote: Bit of a glitch. I need to display the same value in 3 different locations and was wondering if it's possible to do it in any way other than setting values in 3 text fields. What I'm doing right now - Field1.text = OK Field2.text = OK Field3.text = OK What I'd like to do - GlobalField.text = OK [change propogates to 3 instances of the movieclip] I played around a bit with static class variables and feel it might be the right way. Any pointers anyone? Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.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
RE: [Flashcoders] Display same value in 3 fields
Thanks Mike. Yup. That would work. But sometimes I like to be hard on myself :P Besides, when else would I get to learn where to use fancy words like static. Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Thursday, December 08, 2005 10:35 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Display same value in 3 fields Will something like this work? Not the best solution im sure but it gets the job done! ;) for(i=1;itotalFields;i++){ this[Field+i].text = OK; } Mike Boutin Juicy Studios Pranav Negandhi wrote: Bit of a glitch. I need to display the same value in 3 different locations and was wondering if it's possible to do it in any way other than setting values in 3 text fields. What I'm doing right now - Field1.text = OK Field2.text = OK Field3.text = OK What I'd like to do - GlobalField.text = OK [change propogates to 3 instances of the movieclip] I played around a bit with static class variables and feel it might be the right way. Any pointers anyone? Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.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
RE: [Flashcoders] Display same value in 3 fields
Let me rephrase my question. I've used Macromedia (Adobe?) Director for several years before jumping ship to Flash. There, field members are placed in the cast, and changing value in one place automatically updates values in all sprite instances. E.g. member(message).text = OK [updates all sprites where the member message has been placed] I wanted to do something similar in Flash, and possibly put it into my code library for future reuse, which is why I'm exploring a more OO solution. Thanks for inputs people. Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Chyko Sent: Thursday, December 08, 2005 10:40 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Display same value in 3 fields Or even just a function.. public function updateDisplay(str:String):Void{ Field1.text = str; Field2.text = str; Field3.text = str; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Thursday, December 08, 2005 12:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Display same value in 3 fields Will something like this work? Not the best solution im sure but it gets the job done! ;) for(i=1;itotalFields;i++){ this[Field+i].text = OK; } Mike Boutin Juicy Studios Pranav Negandhi wrote: Bit of a glitch. I need to display the same value in 3 different locations and was wondering if it's possible to do it in any way other than setting values in 3 text fields. What I'm doing right now - Field1.text = OK Field2.text = OK Field3.text = OK What I'd like to do - GlobalField.text = OK [change propogates to 3 instances of the movieclip] I played around a bit with static class variables and feel it might be the right way. Any pointers anyone? Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash is a single-threaded app? Maybe it's just the AVM? or...
You can't count with Flash player for consistent and fast performance apps. The AVM engine never had the proper attention from Macromedia as a serious development platform. So the term multi-threading in AS just scares me. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Display same value in 3 fields
Have you investigated the string table? (Press CTRL+F11 in authoring) We use the MX04 string table alongside a (heavily modified) version of the built-in Locale code all the time. We also use our own handrolled XML string tables (just files full of tagged-up string resources), depending on the circumstances. This lets you put some sort of symbol in your code - e.g. myField.text=Locale.loadString(IDS_TITLE); and then you change either a value in the string table (if you're doing it that way) or a value in an XML file somewhere. e.g. (fragment of standard Macromedia string table XML) trans-unit id=001 resname=IDS_TITLE sourceMain Menu/source /trans-unit Hope that's useful, Ian On 12/8/05, Pranav Negandhi [EMAIL PROTECTED] wrote: Let me rephrase my question. I've used Macromedia (Adobe?) Director for several years before jumping ship to Flash. There, field members are placed in the cast, and changing value in one place automatically updates values in all sprite instances. E.g. member(message).text = OK [updates all sprites where the member message has been placed] I wanted to do something similar in Flash, and possibly put it into my code library for future reuse, which is why I'm exploring a more OO solution. Thanks for inputs people. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] targeting duplicateMovieClip
What is this 'setupDrag()' you speak of? -Keith -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dominic Fee Sent: Thursday, December 08, 2005 9:26 AM To: 'Flashcoders mailing list' Subject: [Flashcoders] targeting duplicateMovieClip Hi guys im having trouble targeting duplicated movie clips I am using the following code to produce them: mycount = 30; dom = 40; //function to create multiple movieclips from single movie clip function createFlyingMC() { if (mycountdom) { _root.flying_mc.duplicateMovieClip(flying_mc+mycount,_root.getNextHighestD epth()); randomX = 500*Math.random(); randomY = 500*Math.random(); eval(flying_mc+mycount)._x = randomX; eval(flying_mc+mycount)._y = randomY; mycount++; } else { clearInterval(ID); for (var i = 0; i1000; i++) { //removeMovieClip(eval(flying_mc+i)); } } } //function to periodically call another function ID = setInterval(createFlyingMC, 50); flying_mc.setupDrag(); now what I want to do is control the 10 flying_mc ive created I thought it would be as simple as using flying_mc2.setupDrag(); or flying_mc3.setupDrag(); but this seems not to be the case Any help would be much appreciated Thanks dudes Dom ___ 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] Loading Image _width _height
Can anyone tell me why when I call the displayImage() function after I fully loaded, and try to get the _width and _height of holderClip, it comes back as zero. But if I wait 1 second after the load and run the displayImage() function through the button click, it then finds the width and height. #include lmc_tween.as var num:Number = 1; var space:Number = 20; function loadImage(){ holderClip.loadMovie(num+.jpg); //holderClip._alpha = 0; this.onEnterFrame = function(){ var lvBytesLoaded:Number = holderClip.getBytesLoaded(); var lvBytesTotal:Number = holderClip.getBytesTotal(); var percent = (lvBytesLoaded/lvBytesTotal)*100; if (lvBytesLoaded == lvBytesTotal) { trace(Image + num + loaded.); displayImage(); delete this.onEnterFrame; } } } function displayImage():Void { //Image is not loaded. var w = holderClip._width + space; trace(Image width: +holderClip._width); trace(Image new width: +w); var h = holderClip._height + space; trace(Image height: +holderClip._height); trace(Image new height: +h); /* //Fade in Image / resize border holderClip.tween(_alpha, 100, 2, easeOut); border.tween(_width, w, 1, easeOutElastic); border.tween(_height, h, 1, easeOutElastic); */ } myButton.onRelease = function(){ displayImage(); } //Start it up! loadImage(); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Setting the _width and _height of a List component
I am currently setting the _width and _height of a List component and it is strecthing the scrollbar and shadow. Does anyone know how to avoid this? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FWD- code completion ASDT
I've only used FAMES on Windows, so this might be a little different. To be able to use code completion for std8, go to the File-New-Other. In the New dialog choose the Simple folder, and choose Folder. Hit Next. Click on Advanced. Check Link to folder in the file system. Then browse to your folder. Make sure you put a name in the Folder name box above that. You can call it anything, but remember the name. Hit finish. Now the project knows where those classes are. The next step is to make the code completion engine see it. Goto Project-Properties, then AS2 Classpath. Type the name of the folder that you chose above in Classpath of . for Project. Click Add. Then OK. That should be it. Any classes in the folder you chose should be available for code completion. Make sure to use import on any if they are in namespaces. Josh Tynjala Original Message Subject:code completion ASDT Date: Wed, 07 Dec 2005 06:24:33 +0100 From: Latcho spamthaman at gmail.com Reply-To: spamthaman at gmail.com To: Open Source Flash Mailing List osflash at osflash.org References: S365572AbVLFQO3/20051206161429Z+2536 at ams003.ftl.affinity.com 4395F6D6.10808 at gmail.com Hi their, pretty a newbee but trying hard to go FAMES on 'NIX have ANT working, even executing flash8player via wine and ASDT installed. Ignoring flashout for the time beign till player 8(.5 ) becomes available and a good opportunity to learn to work with ant (am i wright?). The only thing I miss is the code completion like in SEPY, where I can get to (the methods of) the standard mx classes via CTRL+space. Now I only get asdt to display the predefined snippets or newly declared classes'n stuff. I can't get the std(8) folder defined in the eclipse projects classpath nor doing it via the the declarations of paths in eclipse-preferences-AS2 MTASC submenu's gives me predefined mx class code hinting. Is their a way? What I noticed is that it works perfect if I hard-import the std folder in my project's src folder. But that's not the way, wright? Hard to find info on this, and some advice about a good workflow setup and code-hinting setup would do me great pleasure! Thanks in advance, Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Setting the _width and _height of a List component
Those properties private. Use yourList.setSize(theWidth, theHeight) instead, where theWidth and theHeight are your values. - Original Message - From: Kris Hadlock [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 12:47 PM Subject: [Flashcoders] Setting the _width and _height of a List component I am currently setting the _width and _height of a List component and it is strecthing the scrollbar and shadow. Does anyone know how to avoid this? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Calculating future date
Searched the archives, couldn't find an answer. How can I calculate a date which is X number of days in the future? - should of course take into account leap years as well. Date + 3023days = Date? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Display same value in 3 fields
Thanks Ian. Looks quite interesting from a distance. Will the mx.lang.* classes add too many extra KB's into my published movie? Can I manipulate the string values at runtime? Does someone have code examples to do this? Also, my very basic investigation shows that using this creates a separate XML file to store the string values. Is this avoidable? I'm on a pretty firm spec where the swf has to be completely standalone with no external dependencies except the host application. Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Thursday, December 08, 2005 11:00 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Display same value in 3 fields Have you investigated the string table? (Press CTRL+F11 in authoring) We use the MX04 string table alongside a (heavily modified) version of the built-in Locale code all the time. We also use our own handrolled XML string tables (just files full of tagged-up string resources), depending on the circumstances. This lets you put some sort of symbol in your code - e.g. myField.text=Locale.loadString(IDS_TITLE); and then you change either a value in the string table (if you're doing it that way) or a value in an XML file somewhere. e.g. (fragment of standard Macromedia string table XML) trans-unit id=001 resname=IDS_TITLE sourceMain Menu/source /trans-unit Hope that's useful, Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] fyi : AS3 Info on String /StringBuilderinFlashPlayer 8.5
I apologize Scott, I understand the discussion better now, and to contribute, I haven't seen prefixing strings in any other language either. I'm left wondering though, is it said that string prefixing is faster than the StringBuilder technique? H On 12/8/05, elibol [EMAIL PROTECTED] wrote: Hi Scott, I read the article, however I don't see any statements regarding the stringbuilder being slower than prefix string support. Forgive me if I'm wrong, but it seems that prefix string support serves for concatenation of strings ( a+=b; ) and StringBuilder would be a class that handles various string operations, so this doesn't necessarily mean that for one to be in order, the other would have to be left out. What I think it means is that both string prefixes and the StringBuilder class will significantly increase string operations in general. Correct me if I'm wrong friends, H On 12/7/05, JesterXL [EMAIL PROTECTED] wrote: I did, that response is to my question about what was faster, string += or StringBuilder since my tests a month ago yeiled no difference, and as you know it's challenging to do memory tests in Flash. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:57 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String /StringBuilderinFlashPlayer 8.5 Of course. The same goes for every language, except for Flash it seems. You should probably read the article. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of JesterXL Sent: Wed 12/7/2005 2:42 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] fyi : AS3 Info on String / StringBuilderinFlashPlayer 8.5 All I know is, in .NET, if you are concatenating a lot of strings, if you use .NET's StringBuilder class instead, it'll greatly improve resource usage, so I expect the same will hold true in Flash Player 8.5. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:34 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String / StringBuilder inFlashPlayer 8.5 Very cool Mike. I've never heard of this capability in any language (by which I mean string prefix support). Can anyone support this? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Mike Chambers Sent: Wed 12/7/2005 12:31 PM To: Flashcoders mailing list Cc: Subject: [Flashcoders] fyi : AS3 Info on String / StringBuilder in FlashPlayer 8.5 fyi http://labs.macromedia.com/wiki/index.php/ActionScript_3:articles:string_stringbuilder mike chambers [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ 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] fyi : AS3 Info on String/StringBuilderinFlashPlayer 8.5
I only meant that string concats were faster than using a StringBuilder.append()...which is kind of cool I think. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of elibol Sent: Thu 12/8/2005 1:11 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer 8.5 Hi Scott, I read the article, however I don't see any statements regarding the stringbuilder being slower than prefix string support. Forgive me if I'm wrong, but it seems that prefix string support serves for concatenation of strings ( a+=b; ) and StringBuilder would be a class that handles various string operations, so this doesn't necessarily mean that for one to be in order, the other would have to be left out. What I think it means is that both string prefixes and the StringBuilder class will significantly increase string operations in general. Correct me if I'm wrong friends, H On 12/7/05, JesterXL [EMAIL PROTECTED] wrote: I did, that response is to my question about what was faster, string += or StringBuilder since my tests a month ago yeiled no difference, and as you know it's challenging to do memory tests in Flash. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:57 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String /StringBuilderinFlashPlayer 8.5 Of course. The same goes for every language, except for Flash it seems. You should probably read the article. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of JesterXL Sent: Wed 12/7/2005 2:42 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] fyi : AS3 Info on String / StringBuilderinFlashPlayer 8.5 All I know is, in .NET, if you are concatenating a lot of strings, if you use .NET's StringBuilder class instead, it'll greatly improve resource usage, so I expect the same will hold true in Flash Player 8.5. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:34 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String / StringBuilder inFlashPlayer 8.5 Very cool Mike. I've never heard of this capability in any language (by which I mean string prefix support). Can anyone support this? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Mike Chambers Sent: Wed 12/7/2005 12:31 PM To: Flashcoders mailing list Cc: Subject: [Flashcoders] fyi : AS3 Info on String / StringBuilder in FlashPlayer 8.5 fyi http://labs.macromedia.com/wiki/index.php/ActionScript_3:articles:string_stringbuilder mike chambers [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ 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] remote debugger lagging
Thanks for your reply Miles; does your problem occur when your client application dispatches a remote call? Is there any documentation/articles that would elaborate on remote debugging performance? Thanks again bro, H On 12/8/05, Miles Thompson [EMAIL PROTECTED] wrote: Happened to me a couple of times in MX 2004. Sometimes my fault (bad code!), other times I was just munging around in the debugger, looking at vars, etc. and the message came up. No consistency to it. Miles At 11:50 AM 12/8/2005, elibol wrote: Hi guys, has anyone had any problems using the remote debugger in conjuction with applications that rely on dynamic content via remoting CFC's? It seems to occur only with Flash 8, but I'm not absolutely sure. Guys, whenever I use remote debugging the rendering shell application freezes, be it IE or Firefox. It looks exactly as if there is an infinite loop the application is caught in when this happens, as it gives me the 'there is a script chomping on your resources, do you want to kill it' dialogue, however, if I stop the script nothing changes. On the flip though, if I end remote debugging by closing the debugger panel then everything is ok. Is this known? I appeciate it guys, H ___ 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] Calculating future date
Cool - thanks Jesse. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of JesterXL Sent: Thursday, December 08, 2005 1:11 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Calculating future date Not sure if this takes leap-year into acccount; assume it does. var today:Date = new Date(); var future:Date = new Date(); future.setDate(future.getDate() + 3023); trace(today); trace(future); NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer 8.5
Last sentence: My guess is that simple string concatenation would be faster but both are much more efficient than our earlier implementation. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of elibol Sent: Thu 12/8/2005 1:18 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer 8.5 I apologize Scott, I understand the discussion better now, and to contribute, I haven't seen prefixing strings in any other language either. I'm left wondering though, is it said that string prefixing is faster than the StringBuilder technique? H On 12/8/05, elibol [EMAIL PROTECTED] wrote: Hi Scott, I read the article, however I don't see any statements regarding the stringbuilder being slower than prefix string support. Forgive me if I'm wrong, but it seems that prefix string support serves for concatenation of strings ( a+=b; ) and StringBuilder would be a class that handles various string operations, so this doesn't necessarily mean that for one to be in order, the other would have to be left out. What I think it means is that both string prefixes and the StringBuilder class will significantly increase string operations in general. Correct me if I'm wrong friends, H On 12/7/05, JesterXL [EMAIL PROTECTED] wrote: I did, that response is to my question about what was faster, string += or StringBuilder since my tests a month ago yeiled no difference, and as you know it's challenging to do memory tests in Flash. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:57 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String /StringBuilderinFlashPlayer 8.5 Of course. The same goes for every language, except for Flash it seems. You should probably read the article. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of JesterXL Sent: Wed 12/7/2005 2:42 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] fyi : AS3 Info on String / StringBuilderinFlashPlayer 8.5 All I know is, in .NET, if you are concatenating a lot of strings, if you use .NET's StringBuilder class instead, it'll greatly improve resource usage, so I expect the same will hold true in Flash Player 8.5. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:34 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String / StringBuilder inFlashPlayer 8.5 Very cool Mike. I've never heard of this capability in any language (by which I mean string prefix support). Can anyone support this? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Mike Chambers Sent: Wed 12/7/2005 12:31 PM To: Flashcoders mailing list Cc: Subject: [Flashcoders] fyi : AS3 Info on String / StringBuilder in FlashPlayer 8.5 fyi http://labs.macromedia.com/wiki/index.php/ActionScript_3:articles:string_stringbuilder mike chambers [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ 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] Display same value in 3 fields
Thanks Johan. Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Thursday, December 08, 2005 11:47 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Display same value in 3 fields http://www.actionscript.nl/ Goto Flash MX 2004 category in red Strings Panel. HTH, /Johan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer 8.5
That's great news Scott, except, the contrary is stated in the article. I suppose this is why I am confused. Presumably, If that's the case, why isn't StringBuilder based on the prefixing string technique? I hope Chambers posts another article that goes into detail as to why one is quicker than the other, and why StringBuilder uses the standard concatenation if this is the case. H On 12/8/05, Scott Hyndman [EMAIL PROTECTED] wrote: I only meant that string concats were faster than using a StringBuilder.append()...which is kind of cool I think. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of elibol Sent: Thu 12/8/2005 1:11 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer 8.5 Hi Scott, I read the article, however I don't see any statements regarding the stringbuilder being slower than prefix string support. Forgive me if I'm wrong, but it seems that prefix string support serves for concatenation of strings ( a+=b; ) and StringBuilder would be a class that handles various string operations, so this doesn't necessarily mean that for one to be in order, the other would have to be left out. What I think it means is that both string prefixes and the StringBuilder class will significantly increase string operations in general. Correct me if I'm wrong friends, H On 12/7/05, JesterXL [EMAIL PROTECTED] wrote: I did, that response is to my question about what was faster, string += or StringBuilder since my tests a month ago yeiled no difference, and as you know it's challenging to do memory tests in Flash. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:57 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String /StringBuilderinFlashPlayer 8.5 Of course. The same goes for every language, except for Flash it seems. You should probably read the article. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of JesterXL Sent: Wed 12/7/2005 2:42 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] fyi : AS3 Info on String / StringBuilderinFlashPlayer 8.5 All I know is, in .NET, if you are concatenating a lot of strings, if you use .NET's StringBuilder class instead, it'll greatly improve resource usage, so I expect the same will hold true in Flash Player 8.5. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:34 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String / StringBuilder inFlashPlayer 8.5 Very cool Mike. I've never heard of this capability in any language (by which I mean string prefix support). Can anyone support this? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Mike Chambers Sent: Wed 12/7/2005 12:31 PM To: Flashcoders mailing list Cc: Subject: [Flashcoders] fyi : AS3 Info on String / StringBuilder in FlashPlayer 8.5 fyi http://labs.macromedia.com/wiki/index.php/ActionScript_3:articles:string_stringbuilder mike chambers [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ 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] Flash is a single-threaded app? Maybe it's just the AVM? or...
It scares me too, but so does UI lock, something that's been happening to me a lot lately. Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer8.5
Well, the article isn't completely clear, but the way I'm reading it backs up what I'm saying. Perhaps you should point out the sentence that is creating this confusion. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of elibol Sent: Thu 12/8/2005 1:30 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer8.5 That's great news Scott, except, the contrary is stated in the article. I suppose this is why I am confused. Presumably, If that's the case, why isn't StringBuilder based on the prefixing string technique? I hope Chambers posts another article that goes into detail as to why one is quicker than the other, and why StringBuilder uses the standard concatenation if this is the case. H On 12/8/05, Scott Hyndman [EMAIL PROTECTED] wrote: I only meant that string concats were faster than using a StringBuilder.append()...which is kind of cool I think. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of elibol Sent: Thu 12/8/2005 1:11 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer 8.5 Hi Scott, I read the article, however I don't see any statements regarding the stringbuilder being slower than prefix string support. Forgive me if I'm wrong, but it seems that prefix string support serves for concatenation of strings ( a+=b; ) and StringBuilder would be a class that handles various string operations, so this doesn't necessarily mean that for one to be in order, the other would have to be left out. What I think it means is that both string prefixes and the StringBuilder class will significantly increase string operations in general. Correct me if I'm wrong friends, H On 12/7/05, JesterXL [EMAIL PROTECTED] wrote: I did, that response is to my question about what was faster, string += or StringBuilder since my tests a month ago yeiled no difference, and as you know it's challenging to do memory tests in Flash. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:57 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String /StringBuilderinFlashPlayer 8.5 Of course. The same goes for every language, except for Flash it seems. You should probably read the article. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of JesterXL Sent: Wed 12/7/2005 2:42 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] fyi : AS3 Info on String / StringBuilderinFlashPlayer 8.5 All I know is, in .NET, if you are concatenating a lot of strings, if you use .NET's StringBuilder class instead, it'll greatly improve resource usage, so I expect the same will hold true in Flash Player 8.5. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:34 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String / StringBuilder inFlashPlayer 8.5 Very cool Mike. I've never heard of this capability in any language (by which I mean string prefix support). Can anyone support this? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Mike Chambers Sent: Wed 12/7/2005 12:31 PM To: Flashcoders mailing list Cc: Subject: [Flashcoders] fyi : AS3 Info on String / StringBuilder in FlashPlayer 8.5 fyi http://labs.macromedia.com/wiki/index.php/ActionScript_3:articles:string_stringbuilder mike chambers [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ 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] fyi : AS3 Info on String/StringBuilderinFlashPlayer8.5
Thanks Scott, it's all very clear to me now. My guess is that simple string concatenation would be faster but both are much more efficient than our earlier implementation. It appears that my jargen isn't up to snuff, simple string concatenation refers to the String one + String two operation; I thought it refered to the StringBuilder class. It seems to make sense, so why not omit the StringBuilder completely, or base the technique in order to utilize the StringBuilders operations? I appeciate it, H On 12/8/05, Scott Hyndman [EMAIL PROTECTED] wrote: Well, the article isn't completely clear, but the way I'm reading it backs up what I'm saying. Perhaps you should point out the sentence that is creating this confusion. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of elibol Sent: Thu 12/8/2005 1:30 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer8.5 That's great news Scott, except, the contrary is stated in the article. I suppose this is why I am confused. Presumably, If that's the case, why isn't StringBuilder based on the prefixing string technique? I hope Chambers posts another article that goes into detail as to why one is quicker than the other, and why StringBuilder uses the standard concatenation if this is the case. H On 12/8/05, Scott Hyndman [EMAIL PROTECTED] wrote: I only meant that string concats were faster than using a StringBuilder.append()...which is kind of cool I think. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of elibol Sent: Thu 12/8/2005 1:11 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] fyi : AS3 Info on String/StringBuilderinFlashPlayer 8.5 Hi Scott, I read the article, however I don't see any statements regarding the stringbuilder being slower than prefix string support. Forgive me if I'm wrong, but it seems that prefix string support serves for concatenation of strings ( a+=b; ) and StringBuilder would be a class that handles various string operations, so this doesn't necessarily mean that for one to be in order, the other would have to be left out. What I think it means is that both string prefixes and the StringBuilder class will significantly increase string operations in general. Correct me if I'm wrong friends, H On 12/7/05, JesterXL [EMAIL PROTECTED] wrote: I did, that response is to my question about what was faster, string += or StringBuilder since my tests a month ago yeiled no difference, and as you know it's challenging to do memory tests in Flash. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:57 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String /StringBuilderinFlashPlayer 8.5 Of course. The same goes for every language, except for Flash it seems. You should probably read the article. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of JesterXL Sent: Wed 12/7/2005 2:42 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] fyi : AS3 Info on String / StringBuilderinFlashPlayer 8.5 All I know is, in .NET, if you are concatenating a lot of strings, if you use .NET's StringBuilder class instead, it'll greatly improve resource usage, so I expect the same will hold true in Flash Player 8.5. - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 07, 2005 2:34 PM Subject: RE: [Flashcoders] fyi : AS3 Info on String / StringBuilder inFlashPlayer 8.5 Very cool Mike. I've never heard of this capability in any language (by which I mean string prefix support). Can anyone support this? Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Mike Chambers Sent: Wed 12/7/2005 12:31 PM To: Flashcoders mailing list Cc: Subject: [Flashcoders] fyi : AS3 Info on String / StringBuilder in FlashPlayer 8.5 fyi http://labs.macromedia.com/wiki/index.php/ActionScript_3:articles:string_stringbuilder mike chambers [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list
Re: [Flashcoders] JM Events Calendar v1.2.0
mb a lockroot issue? edolecki On 12/8/05, Ryan Mayer [EMAIL PROTECTED] wrote: Hello all, I've been playing around with Jeremy Jonas' JM Events Calendar and I absolutely love it! However, I've tried to place it into a separate swf (events.swf) that is loaded into a main movie. The calendar shows up, but all text fields are blank. I can select different months, as well as see the date squares that have info on them (from the xml file). But no info (numbers, months, etc) is anywhere. I've combed through the code, but I can't seem to figure out why they're not displaying. Has anyone else poked around with this and would be able to help me out? What am I missing? Thanks for your time, ¬ ryan mayer, mgdc bluehaus communications bluehaus.com Professional member Graphic Designers Society of Canada (GDC) http://www.gdc.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] JM Events Calendar v1.2.0
mb a lockroot issue? I'm not really sure. I checked throughout the code and there isn't any reference to _root. Just this since it's a componet. There's no embeded fonts either, just a default _sans. ¬ r. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JM Events Calendar v1.2.0
There have been issues with TextFields blanking out when they are placed at authortime onto the stage, and then that SWF is loaded into another one. One way to fix it is to create the textfields dyanmically, but I'm sure that's a lot of work. I can't remember the other solutions. - Original Message - From: Ryan Mayer [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 2:16 PM Subject: RE: [Flashcoders] JM Events Calendar v1.2.0 mb a lockroot issue? I'm not really sure. I checked throughout the code and there isn't any reference to _root. Just this since it's a componet. There's no embeded fonts either, just a default _sans. ¬ r. ___ 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] Display same value in 3 fields
What about putting the same variable on each field (in the prop inspector)? -- You could have them all reference a _parent, _root or _global value if they all exists in differerent scopes... On 12/8/05, Pranav Negandhi [EMAIL PROTECTED] wrote: Thanks Johan. Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Thursday, December 08, 2005 11:47 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Display same value in 3 fields http://www.actionscript.nl/ Goto Flash MX 2004 category in red Strings Panel. HTH, /Johan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Lanny McNie ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] JM Events Calendar v1.2.0
Damn... Can anyone recommend a good calendar script that uses xml I can use then? All I need is to be able to show there's an event on a certain day and then have that day clickable which will bring up more details. Thanks, ¬ r. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: December 8, 2005 12:27 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] JM Events Calendar v1.2.0 There have been issues with TextFields blanking out when they are placed at authortime onto the stage, and then that SWF is loaded into another one. One way to fix it is to create the textfields dyanmically, but I'm sure that's a lot of work. I can't remember the other solutions. - Original Message - From: Ryan Mayer [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 2:16 PM Subject: RE: [Flashcoders] JM Events Calendar v1.2.0 mb a lockroot issue? I'm not really sure. I checked throughout the code and there isn't any reference to _root. Just this since it's a componet. There's no embeded fonts either, just a default _sans. ¬ r. ___ 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] Display same value in 3 fields
No, there's no way of avoiding the external XML files without a lot of fudging with the code. Sounds like your best bet would be to simply create a look-up table somewhere in your code - as a static singleton if needs be. e.g. class Strings { public var static MENU_TITLE:String=Main Menu; public var static APP_TITLE:String=My Application; } myTextField.text=Strings.APP_TITLE; and so on... HTH, Ian On 12/8/05, Pranav Negandhi [EMAIL PROTECTED] wrote: Thanks Ian. Looks quite interesting from a distance. Will the mx.lang.* classes add too many extra KB's into my published movie? Can I manipulate the string values at runtime? Does someone have code examples to do this? Also, my very basic investigation shows that using this creates a separate XML file to store the string values. Is this avoidable? I'm on a pretty firm spec where the swf has to be completely standalone with no external dependencies except the host application. Regards, Pranav Negandhi ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Loading Movieclip with JSFL
What I want to do is to load a movieclip form the curren flash documents library in to a widowsSWF Panel. More explination.. I have a moviclip in page.fla named 'p1' and then I have a swf loading in a panel and I want p1 to display in the panel. if this possible with jsfl Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Display same value in 3 fields
class Strings { public var static MENU_TITLE:String=Main Menu; public var static APP_TITLE:String=My Application; } function setTFVariable(f:TextField, v:String){ f.variable = v; } var i=-1, l=3; while(++il) setTFVariable( scope['myTextField'+i], '_global.Strings.APP_TITLE' ); I am redundant, good luck bro. H On 12/8/05, Ian Thomas [EMAIL PROTECTED] wrote: No, there's no way of avoiding the external XML files without a lot of fudging with the code. Sounds like your best bet would be to simply create a look-up table somewhere in your code - as a static singleton if needs be. e.g. class Strings { public var static MENU_TITLE:String=Main Menu; public var static APP_TITLE:String=My Application; } myTextField.text=Strings.APP_TITLE; and so on... HTH, Ian On 12/8/05, Pranav Negandhi [EMAIL PROTECTED] wrote: Thanks Ian. Looks quite interesting from a distance. Will the mx.lang.* classes add too many extra KB's into my published movie? Can I manipulate the string values at runtime? Does someone have code examples to do this? Also, my very basic investigation shows that using this creates a separate XML file to store the string values. Is this avoidable? I'm on a pretty firm spec where the swf has to be completely standalone with no external dependencies except the host application. Regards, Pranav Negandhi ___ 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] Who wants MIDI in the Flash Player?
We built a MIDI sequencer for the PC that talks to Flash through an XMLSocket (though we just send smaller strings, not XML). On both Mac and Windows versions the code to make a sequencer capable of changing instruments, transposing, changing tempo, and indivudual volume of instruments, etc. was less than 70K. There are API's for each OS that abstract the different hardware and allow for such small implementation. The great thing about Alexis Isaac's MIDI Sequencer is that you can buildmusic on the fly based on user interaction. We could have easily streamed MP3's from the server with a better sound if we wanted to be static. We even looked into building MP3's on the server dynamically, but the smallest process we could find would be at least 3% processor per song. That sounds small, but it means 33 users geting sound simultaneously is 99% processor. It absolutely has to be on the client. It would be a great solution to avoid requiring an additional download from a less-known source than Macromedia/Adobe and immediately integrate dynamic sound into your applications. Tyler ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3: Sandbox violation on BitmapData.draw()
In Flash 8.5 I don't recall getting any sandbox violations when running a local swf. However, I'm in AS3 and I can load a jpg that is in the same directory as my swf but get a Sandbox Violation when I attempt to pass that loaded jpg to BitmapData.draw() *** Security Sandbox Violation *** SecurityDomain 'file:///c://bin/Image3d-debug.swf' tried to access incompatible context file:///c://bin/mona.jpg' Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] UplOAd with F8 and PHP ?
I m looking for Upload source with flash 8, have you got link ?? Thank You ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] simulating narrowband connection
Hi there, Are there any tools out there that enable you to simulate a low bandwidth connection (e.g. modem or slow broadband connection) I'm currently working on a project which uses flv files that interact with my flash movie. In the past I always used the simulate download option in flash but this obviously doesn't work for flvs. Robin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] simulating narrowband connection
Run Bit Torrent at full downloads ;) Hi there, Are there any tools out there that enable you to simulate a low bandwidth connection (e.g. modem or slow broadband connection) I'm currently working on a project which uses flv files that interact with my flash movie. In the past I always used the simulate download option in flash but this obviously doesn't work for flvs. Robin ___ 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] simulating narrowband connection
Particular I seen 'serviceCapture' work quite well for this purpose. I'm sure there are others, that are free -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer Sent: Friday, 9 December 2005 9:21 AM To: Flashcoders mailing list Subject: [Flashcoders] simulating narrowband connection Hi there, Are there any tools out there that enable you to simulate a low bandwidth connection (e.g. modem or slow broadband connection) I'm currently working on a project which uses flv files that interact with my flash movie. In the past I always used the simulate download option in flash but this obviously doesn't work for flvs. Robin ___ 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] simulating narrowband connection
Try Sloppy. It's a Java proxy that creates a narrowband connection to your browser. No install, runs over the web. http://www.dallaway.com/sloppy/index.html -- andy makely On 12/8/05, Robin Burrer [EMAIL PROTECTED] wrote: Hi there, Are there any tools out there that enable you to simulate a low bandwidth connection (e.g. modem or slow broadband connection) I'm currently working on a project which uses flv files that interact with my flash movie. In the past I always used the simulate download option in flash but this obviously doesn't work for flvs. Robin ___ 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] simulating narrowband connection
I made a .net one really simple then someone sudgested : http://xk72.com/charles/ its java based :o) Campbell Hi there, Are there any tools out there that enable you to simulate a low bandwidth connection (e.g. modem or slow broadband connection) I'm currently working on a project which uses flv files that interact with my flash movie. In the past I always used the simulate download option in flash but this obviously doesn't work for flvs. Robin ___ 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] simulating narrowband connection
Thanks everybody! Just tried sloppy and it works perfect!! I'm gonna check out the other ones as well. Cheers Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Campbell Anderson Sent: Friday, 9 December 2005 9:42 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] simulating narrowband connection I made a .net one really simple then someone sudgested : http://xk72.com/charles/ its java based :o) Campbell Hi there, Are there any tools out there that enable you to simulate a low bandwidth connection (e.g. modem or slow broadband connection) I'm currently working on a project which uses flv files that interact with my flash movie. In the past I always used the simulate download option in flash but this obviously doesn't work for flvs. Robin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3: Sandbox violation on BitmapData.draw()
I've had no problems converting a loaded PNG, using the docs example code no less. When the loader's done, you just cast it to a bitmap: var myBitmap:Bitmap = Bitmap(loader.content); addChild(myBitmap) - Original Message - From: Shaw, Matt (MTVN) [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 5:08 PM Subject: [Flashcoders] AS3: Sandbox violation on BitmapData.draw() In Flash 8.5 I don't recall getting any sandbox violations when running a local swf. However, I'm in AS3 and I can load a jpg that is in the same directory as my swf but get a Sandbox Violation when I attempt to pass that loaded jpg to BitmapData.draw() *** Security Sandbox Violation *** SecurityDomain 'file:///c://bin/Image3d-debug.swf' tried to access incompatible context file:///c://bin/mona.jpg' Any ideas? ___ 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] UplOAd with F8 and PHP ?
http://www.macromedia.com/devnet/flex/articles/fp8_features.html - Original Message - From: CARABUS mobile+ [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 5:20 PM Subject: [Flashcoders] UplOAd with F8 and PHP ? I m looking for Upload source with flash 8, have you got link ?? Thank You ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] simulating narrowband connection
The proxy-based tools are somewhat clunky to use, I've found. There's 'NetLimiter' a tool which works on a lower level, and lets you set upload vs download speeds, on a per application basis. Also makes nice graphs and stuff. http://www.netlimiter.com/ Things like charles servicecapture are very useful as a tool to see what requests / responses are being made. They don't work as well for speed limiting. Also, the proxy-based tools won't let you limit flashcom or xmlsocket traffic. -David R On 12/8/05, Campbell Anderson [EMAIL PROTECTED] wrote: I made a .net one really simple then someone sudgested : http://xk72.com/charles/ its java based :o) Campbell Hi there, Are there any tools out there that enable you to simulate a low bandwidth connection (e.g. modem or slow broadband connection) I'm currently working on a project which uses flv files that interact with my flash movie. In the past I always used the simulate download option in flash but this obviously doesn't work for flvs. Robin ___ 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] Convert .FLV to Quicktime
Just curious. Is it possible to convert .FLV captured through Communication Server to Quicktimes? If not, does anyone know of a screen capture software that will allow you to record the video and audio? We have some training videos captured through Comm Server that we would like to convert to Quicktime. Thanks in advance, Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Display same value in 3 fields
What I'm doing right now - Field1.text = OK Field2.text = OK Field3.text = OK What I'd like to do - GlobalField.text = OK [change propogates to 3 instances of the movieclip] private function set GlobalField(s:String):Void{ Field1.text = s; Field2.text = s; Field3.text = s; } GlobalField = OK; ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Relative Paths, Relative to What?
I thought that relative paths were relative to the path of the HTML file. This rule has worked for me without trouble until today when I found a .flv was relative to the path of the .swf. My situation is that I have a .fla that references both a xml file and a .flv file. I assign the .flv to a MM media display component with the contentPath parameter. I find that the path to the .flv is relative to the path of the .swf which I think is odd and a bit disconcerting. Does anyone have a rule of thumb about relative paths and what is relative to what? --- John laPlante Carnegie Mellon University ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: SPAM-LOW: Re: [Flashcoders] FAQ Adobe acquisition of Macromedia
Actually you can group panels together in Flash 8, and they'll have tabs. Click the icon on the right in a tab header and select Group [PanelName] with. Then choose the panel you want it to be grouped with. Once they are grouped, they'll each have a tab. There seems to be a bug: the first time you group panels, then click a tab, the tabs disappear. Just collapse the panel and open it again and all is well. Well, bite me, you're right. Still slightly different from Adobe's ones, but the tabs are there. - zeh ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] [OT] Color Scheme Websites
Maybe this? http://www.colourlovers.com/ - Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mika Sent: Thursday, December 08, 2005 8:27 AM To: Flashcoders mailing list Subject: [Flashcoders] [OT] Color Scheme Websites Hello I once saw a link on the list to a great site which presented favorites color schemes from designers. I cannot find it again at all. Anyone see what site i'm talking about ? Anyhelp apreciated thanks mika ___ 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] Who wants MIDI in the Flash Player?
Well, its basically what tyler describes but using binary sockets instead of xml sockets. The binary socket is just more efficient. I am not sure what the issues are in implementing any of this since I am not a midi guru, so I cant provide to much detail. Sounds like tyler knows what he is talking about. Regards Hank On 12/8/05, Jason Cunliffe [EMAIL PROTECTED] wrote: Hank Can you expand on that idea please. Sounds interesting... thanks, Jason - Original Message - From: hank williams [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 3:26 PM Subject: Re: [Flashcoders] Who wants MIDI in the Flash Player? Of course, in thinking about this, with the new binary socket functionality, midi control could all be done by just writing a simple localhost to midi gateway. This would be pretty simple to do, and is probably what is needed anyway to deal with different drivers etc. And it makes total sense that if you want to control some local hardware that you need to download a piece of software. problem solved!! :) Regards Hank ___ 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] Even odds
Is it possible to check a number to see if its even / odd? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Even odds
Use your friend the modulus operater: If( I % 2 == 0) { //even number code } Else { //odd number code } This operater returns the remainder of a numbers division. (stupid email app is trying to capitilize my code) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Thursday, December 08, 2005 4:40 PM To: Flashcoders mailing list Subject: [Flashcoders] Even odds Is it possible to check a number to see if its even / odd? 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] Even odds
var isOdd:Boolean = number % 2 == 1; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: December 8, 2005 7:40 PM To: Flashcoders mailing list Subject: [Flashcoders] Even odds Is it possible to check a number to see if its even / odd? 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] Display same value in 3 fields
Looks like String objects are passed by value instead of by reference. //create a string variable var myVar:String = Bob; //create another string value using the myVar value var myVar2:String = myVar; //change the original myVar value myVar = Lucy; //trace myVar Trace(myVar); //outputs Lucy //trace myVar2 Trace(myVar2); //outputs Bob; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pete Hotchkiss Sent: Thursday, December 08, 2005 5:08 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Display same value in 3 fields To state the obvious. Why cant the text fields point to a single variable ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pranav Negandhi Sent: 08 December 2005 16:57 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Display same value in 3 fields Bit of a glitch. I need to display the same value in 3 different locations and was wondering if it's possible to do it in any way other than setting values in 3 text fields. What I'm doing right now - Field1.text = OK Field2.text = OK Field3.text = OK What I'd like to do - GlobalField.text = OK [change propogates to 3 instances of the movieclip] I played around a bit with static class variables and feel it might be the right way. Any pointers anyone? Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.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
Re: [Flashcoders] Even odds
Yet another way (and probably the fastest): var isOdd:Boolean = Boolean(num 1); - boon Mike Boutin [EMAIL PROTECTED] wrote: Is it possible to check a number to see if its even / odd? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] strange compiler error
Hi there, I try compile a fla file with the flash 8 IDE. It always gives me this pointless error message. **Error** E:\vss_data\ActionScriptClasses\org\hubb\flashBrowser\UserVO.as: Line 2: The name of this class, 'org.hubb.flashBrowser.UserVO', conflicts with the name of another class that was loaded, 'org.hubb.flashBrowser.UserVO'. Where's the conflict here? That's the same class? All my project classes are in the same directory org.hubb.flashBrowser; My main class imports all required classes. e.g. import org.hubb.flashBrowser.UserVO' And here's the wired thing: When I try to compile this fla at home it works just fine. Also if I do a syntax check with MTASC it's not giving me an error. Any ideas? Robin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] strange compiler error
Are your classes on a network drive? This usually is a time stamp syncing error Try restarting your machine or deleting the aso files Hi there, I try compile a fla file with the flash 8 IDE. It always gives me this pointless error message. **Error** E:\vss_data\ActionScriptClasses\org\hubb\flashBrowser\UserVO.as: Line 2: The name of this class, 'org.hubb.flashBrowser.UserVO', conflicts with the name of another class that was loaded, 'org.hubb.flashBrowser.UserVO'. Where's the conflict here? That's the same class? All my project classes are in the same directory org.hubb.flashBrowser; My main class imports all required classes. e.g. import org.hubb.flashBrowser.UserVO' And here's the wired thing: When I try to compile this fla at home it works just fine. Also if I do a syntax check with MTASC it's not giving me an error. Any ideas? Robin ___ 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] strange compiler error
I tried deleting the aso files and restarted my computer - nothing helped :-( ---Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Johnston Sent: Friday, 9 December 2005 2:25 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] strange compiler error Are your classes on a network drive? This usually is a time stamp syncing error Try restarting your machine or deleting the aso files Hi there, I try compile a fla file with the flash 8 IDE. It always gives me this pointless error message. **Error** E:\vss_data\ActionScriptClasses\org\hubb\flashBrowser\UserVO.as: Line 2: The name of this class, 'org.hubb.flashBrowser.UserVO', conflicts with the name of another class that was loaded, 'org.hubb.flashBrowser.UserVO'. Where's the conflict here? That's the same class? All my project classes are in the same directory org.hubb.flashBrowser; My main class imports all required classes. e.g. import org.hubb.flashBrowser.UserVO' And here's the wired thing: When I try to compile this fla at home it works just fine. Also if I do a syntax check with MTASC it's not giving me an error. Any ideas? Robin ___ 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] Even odds
I just did a test. The bitwise approach is not faster...although when you think about it, it really should be. Here is the test code: // Modulo - Time ~225ms var time:Number = getTimer(); for (var i:Number = 0; i 8; i++) { var isOdd:Boolean = 50010001 % 2 == 1; } trace(getTimer() - time); // Bitwise And - Time: ~356ms time = getTimer(); for (var i:Number = 0; i 8; i++) { var isOdd:Boolean = Boolean(50010001 1); } trace(getTimer() - time); I also did a quick test in Java. The bitwise AND approach is about 50% faster...really makes you wonder. Maybe AS3 is an improvement. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Boon Chew Sent: Thu 12/8/2005 9:34 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] Even odds Yet another way (and probably the fastest): var isOdd:Boolean = Boolean(num 1); - boon Mike Boutin [EMAIL PROTECTED] wrote: Is it possible to check a number to see if its even / odd? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping ___ 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] strange compiler error
*Shrug* http://www.epresenterplus.com/blog/archives/30.html I tried deleting the aso files and restarted my computer - nothing helped :-( ---Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Johnston Sent: Friday, 9 December 2005 2:25 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] strange compiler error Are your classes on a network drive? This usually is a time stamp syncing error Try restarting your machine or deleting the aso files Hi there, I try compile a fla file with the flash 8 IDE. It always gives me this pointless error message. **Error** E:\vss_data\ActionScriptClasses\org\hubb\flashBrowser\UserVO.as: Line 2: The name of this class, 'org.hubb.flashBrowser.UserVO', conflicts with the name of another class that was loaded, 'org.hubb.flashBrowser.UserVO'. Where's the conflict here? That's the same class? All my project classes are in the same directory org.hubb.flashBrowser; My main class imports all required classes. e.g. import org.hubb.flashBrowser.UserVO' And here's the wired thing: When I try to compile this fla at home it works just fine. Also if I do a syntax check with MTASC it's not giving me an error. Any ideas? Robin ___ 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] Even odds
On 12/9/05, Scott Hyndman [EMAIL PROTECTED] wrote: I just did a test. The bitwise approach is not faster...although when you think about it, it really should be. Hi Scott, the test won't work because (50010001 % 2 == 1) always resolves to false and the compiler will optimize it (at least MMC, not sure about MTASC). basically, the same is true for Boolean(50010001 1), but maybe it just optimizes the (50010001 1) part because Boolean might be a custom replacement for the intrinsic class? mark Here is the test code: // Modulo - Time ~225ms var time:Number = getTimer(); for (var i:Number = 0; i 8; i++) { var isOdd:Boolean = 50010001 % 2 == 1; } trace(getTimer() - time); // Bitwise And - Time: ~356ms time = getTimer(); for (var i:Number = 0; i 8; i++) { var isOdd:Boolean = Boolean(50010001 1); } trace(getTimer() - time); I also did a quick test in Java. The bitwise AND approach is about 50% faster...really makes you wonder. Maybe AS3 is an improvement. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Boon Chew Sent: Thu 12/8/2005 9:34 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] Even odds Yet another way (and probably the fastest): var isOdd:Boolean = Boolean(num 1); - boon Mike Boutin [EMAIL PROTECTED] wrote: Is it possible to check a number to see if its even / odd? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping ___ 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 -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] strange compiler error
I set my system clock two years back (even though I'm pretty sure the system clock of the computer I created the file originally is set correctly) -didn't help either. I had similar problem a couple of moth ago. I had two classes which both had a variable of the data type of the other class. The flash complier (back then it used flash 7) gave me the same error message. I found a workaround by declaring one of the variables as an object datatype so I didn't have to import the class. In this application this is however not the case. I hope all these issues will be solved in AS3. Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Johnston Sent: Friday, 9 December 2005 3:15 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] strange compiler error *Shrug* http://www.epresenterplus.com/blog/archives/30.html I tried deleting the aso files and restarted my computer - nothing helped :-( ---Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Johnston Sent: Friday, 9 December 2005 2:25 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] strange compiler error Are your classes on a network drive? This usually is a time stamp syncing error Try restarting your machine or deleting the aso files Hi there, I try compile a fla file with the flash 8 IDE. It always gives me this pointless error message. **Error** E:\vss_data\ActionScriptClasses\org\hubb\flashBrowser\UserVO.as: Line 2: The name of this class, 'org.hubb.flashBrowser.UserVO', conflicts with the name of another class that was loaded, 'org.hubb.flashBrowser.UserVO'. Where's the conflict here? That's the same class? All my project classes are in the same directory org.hubb.flashBrowser; My main class imports all required classes. e.g. import org.hubb.flashBrowser.UserVO' And here's the wired thing: When I try to compile this fla at home it works just fine. Also if I do a syntax check with MTASC it's not giving me an error. Any ideas? Robin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] HTML text font size issue
Hi, Does anyone know about what is the maximum font size can be given toHTML text in Flash? If I create a HTML text field and change the font size to 127 pt, when I compare the SWF text size and text size in Flash authoring, SWF text size is smaller than what is in the authoring. When I trace textField.htmlText the size comes out to be 127, but it writes the correct HTML tags to SWF file with whatever size was given. I couldn't figure out about this type of behavior? Does anyone have clue about this? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders