Re: [Flashcoders] Microsoft Sparkle
Calv J schrieb: Sorry if someone already sent this in (I'm in digest mode and haven't seen it mentioned yet) - but you can download sparkle preview release: does this help me with my bad coding skills ? micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problems with Flash Plugin Switcher 2.1.0
2006/1/25, JesterXL [EMAIL PROTECTED]: Having the same problem with 8 for IE. Magically disappears even though the 8.0.22.0 folder for it is clearly there. Just a quick fix, until the new version is out: rename flash8.ocx to flash.ocx, then it should be able to find 8.x versions. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Problems with Flash Plugin Switcher 2.1.0
Thanks all. I'll give it a blast. Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of JesterXL Sent: 25 January 2006 01:22 To: Flashcoders mailing list Subject: Re: [Flashcoders] Problems with Flash Plugin Switcher 2.1.0 Having the same problem with 8 for IE. Magically disappears even though the 8.0.22.0 folder for it is clearly there. - Original Message - From: David Rorex [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 24, 2006 8:05 PM Subject: Re: [Flashcoders] Problems with Flash Plugin Switcher 2.1.0 I had trouble with it remembering my 8.5 plugin (it could uninstall it fine, but next time i startes flash plugin switcher, 8.5 wasn't in the dropdown list). otherwise no problems. -David r On 1/22/06, Nathan Derksen [EMAIL PROTECTED] wrote: Yup, works great. I wish there was a version for the Mac as well. Nathan http://www.nathanderksen.com On Jan 22, 2006, at 4:35 PM, Johannes Nel wrote: not an insatller just an executable and it works like a charm. On 1/22/06, Adrian Lynch [EMAIL PROTECTED] wrote: I'm just about to install Flash Plugin Switcher 2.1.0 and wondered if this has caused any problems for anyone. I'm coming to the end of a project and I don't fancy trying to fix player issues when I should be working :O) Oh and does it work as nicely as it sounds? Thanks. Adrian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Microsoft Sparkle
Hehe no ;-) Its pretty buggy too, so Id wait for a more stable build before evaluating... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stuhr Sent: 25 January 2006 09:02 To: Flashcoders mailing list Subject: Re: [Flashcoders] Microsoft Sparkle Calv J schrieb: Sorry if someone already sent this in (I'm in digest mode and haven't seen it mentioned yet) - but you can download sparkle preview release: does this help me with my bad coding skills ? micha ___ 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] Microsoft Sparkle
Nick Weekes schrieb: Hehe no ;-) Its pretty buggy too, so Id wait for a more stable build before evaluating... so why does someone post it to this list ? micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] number casting weirdness
geoffrey and josh, thx it woks great! On 1/24/06, Geoffrey Williams [EMAIL PROTECTED] wrote: The leading zero signifies that the number is an octal; like 0x is hex. Use parseInt. parseInt (0023, 10); /** * Timestamp, to see how long this thing takes to post: 1:58 PM EST */ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of quinrou . Sent: Tuesday, January 24, 2006 1:01 PM To: Flashcoders mailing list Subject: [Flashcoders] number casting weirdness Hi all, I am having some really strange things with the Number casll here are some tests I've been running and some unexpecting things happened. var str:String = 0023; trace(str); // output 0023 - this correct and expected var numb:Number = Number(str) trace(numb); // output 19 - this incorrect and unexpected - was expecting either 0023 or 23 var numb2:Number = Number(23) trace(numb2); // output 23 - this correct and expected var numb3:Number = Number(00+23) trace(numb3); // output 19 - this incorrect and unexpected - was expecting either 0023 or 23 var numb4:Number = Number(11+23) trace(numb4); // output 1123 - this correct and expected is there a bug with the class number and the use of 0 ? how am I supposed to get 0023 or 23 out of 0023 (string) without cleaning the string and looking for the 0's. thanks Seb ___ 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
SV: [Flashcoders] Microsoft Sparkle
so why does someone post it to this list ? Since it's going to be a direct competitor/alternative to Flash, and since it's pushed by Microsoft. Wether you like it or not you'll need to keep your eyes on what happening over there. Personally I think it's great to finally see a promising new standard for creating web 3d. Hopefully Adobe can create a competitive 3d-solution to integrate i flash, but looking at Acrobat 3d I'm not impressed, and they stopped developing Shockwave 3d a long time ago (still the best solution despite lack of updates last 5 years). /David -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006-01-24 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: SV: [Flashcoders] Microsoft Sparkle
I couldn't give less of a crap about putting 3d on the web, and i'm pretty sure the average consumer agrees with me. Content rules. I seem to recall Shockwave 3d not ever really taking off, and if 3d is the only thing sparkle has over Flash it ain't gonna do much good as a competitor. - Andreas David Skoglund wrote: so why does someone post it to this list ? Since it's going to be a direct competitor/alternative to Flash, and since it's pushed by Microsoft. Wether you like it or not you'll need to keep your eyes on what happening over there. Personally I think it's great to finally see a promising new standard for creating web 3d. Hopefully Adobe can create a competitive 3d-solution to integrate i flash, but looking at Acrobat 3d I'm not impressed, and they stopped developing Shockwave 3d a long time ago (still the best solution despite lack of updates last 5 years). /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Intermittent Bug With Movie(s) Not Showing
Weird bug here which I cannot find a solution anywhere. Basically I use flash as headings in a html page. This enables me to create dynamic headings in nice fonts so that I don't have to create thousands of gifs/jpgs :-) The problem is however that sometimes none of the titles show. This is an intermittent problem and is difficult to replicate so not sure why it is doing it!! The Flash movies are one frame long and I pass through the variable of what the title is. When they don't show and right click on the area where the flash movie is supposed to be the flash context menu does not appear. It is as if flash does not exist in that location at all. I also put an onEnterFrame aswell as I thought that it might not be finding the variable in time and therefore not completing the function. I have included the code below. Any ideas or help greatly appreciated otherwise I shall have to use plain html text, urgg... _sTitle and _sTitle2 are values that I pass in via flashvars also the movie has the following param so that dhtml menus are able to be seen param name=wmode value=transparent/ this.onEnterFrame = function(){ if(_sTitle!=undefined){ //_sTitle = 'Welcome to Ellesco.co.uk'; //_sTitle2 = '+Market Leaders In Finishing Polishing Machines'; oTxt._width = oTxt2._width = mcGreyBar._width = Stage.width; oTxt.htmlText = _sTitle; oTxt2.htmlText = _sTitle2.toUpperCase(); delete this.onEnterFrame; } } It can be viewed on the following test site: http://86.11.48.101/013/fe/htm/home/index.asp Cheers Michael Ypes The 3rd Room e: [EMAIL PROTECTED] w: http://www.the3rdroom.com http://www.the3rdroom.com/ The information within this e-mail is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not use, copy, distribute or disclose the e-mail or any part of its contents or take any action in reliance on it. If you have received this e-mail in error, please notify the sender by replying to the sender of this message. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. The 3rd Room cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments and recommend that you subject these to your own virus checking procedures prior to use. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: SV: [Flashcoders] Microsoft Sparkle
3D on the web is a niche market at best. So are all '3d desktop' metaphors. It doesn't simplify the user experience one bit, quite to the contrary. As long as computer screens are flat surfaces, 3D desktop interfaces and 3d websites will never have the ease of use, flexibility and editability of a traditional 2D window metaphor. 3D is not the solution to desktop clutter, good interface design is. Sure, doing 3D-ish stuff in Flash is cool, but it has almost no real-world use. There are some 3D kitchen and bathroom designers out there, but that's about it. This whole 'virtual 3D environment' idea as a website interface is very, very dated. The 'feel' of being in a 3D richly textured space can be emulated by using 2.5D with parallax scrolling and clever use of (edited) photographs, which is generally cheaper and faster than building a 3D world. Most of the time, it's also easier to use, because it's flatter, as is your screen. On 1/25/06, Andreas Rønning [EMAIL PROTECTED] wrote: I couldn't give less of a crap about putting 3d on the web, and i'm pretty sure the average consumer agrees with me. Content rules. I seem to recall Shockwave 3d not ever really taking off, and if 3d is the only thing sparkle has over Flash it ain't gonna do much good as a competitor. - Andreas David Skoglund wrote: so why does someone post it to this list ? Since it's going to be a direct competitor/alternative to Flash, and since it's pushed by Microsoft. Wether you like it or not you'll need to keep your eyes on what happening over there. Personally I think it's great to finally see a promising new standard for creating web 3d. Hopefully Adobe can create a competitive 3d-solution to integrate i flash, but looking at Acrobat 3d I'm not impressed, and they stopped developing Shockwave 3d a long time ago (still the best solution despite lack of updates last 5 years). /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Toon Van de Putte Pannenhuisstraat 63 2500 Lier Belgium mobile: +32 (0)497 52 74 51 [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
SV: SV: [Flashcoders] Microsoft Sparkle
OK, you maybe YOU don't care much for it, but a RIA-platform needs to be flexible as possible and give the developers as much freedom as possible. Content rules, but why restrict content to 2d? I'm not talking about wacky 3d interfaces where they are clearly not needed, but games, simulations, product presentations etc. As I see it Macromedia has always been making good tools for creating interactive experiences but are now trying hard with Flex 2 to compete in the corporate applications. Microsoft comes from the opposite side. They already have most of the corporate developers, and are now trying to get the designers attention. And looking at the feature lists they seem to beat Macromedia on their own turf... I hope that Macromedia/Adobe can compete. Shockwave 3d has a very steep learning curve and it's just in the last couple of years that people have really learned to create really nice games with it. Look for example att my own first try on creating a shockwave 3d-game: www.monsterland.se/snowwarfare I wouldn't have been able to create this without the tutorials and helpful communities that's been built up during the years. In my view Macromedia had a good state of the art product, but threw it away since it didn't create short term profit. Sparkle on the other side seems quite easy to get into. The 3d-functions are well integrated into the IDE so you can navigate between 3d-models in a scene as easily as you do between movie clips in flash. And there are lot's of features beside this 3d-part. Intresting times ahead! /David -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Andreas Rønning Skickat: den 25 januari 2006 10:58 Till: Flashcoders mailing list Ämne: Re: SV: [Flashcoders] Microsoft Sparkle I couldn't give less of a crap about putting 3d on the web, and i'm pretty sure the average consumer agrees with me. Content rules. I seem to recall Shockwave 3d not ever really taking off, and if 3d is the only thing sparkle has over Flash it ain't gonna do much good as a competitor. - Andreas David Skoglund wrote: so why does someone post it to this list ? Since it's going to be a direct competitor/alternative to Flash, and since it's pushed by Microsoft. Wether you like it or not you'll need to keep your eyes on what happening over there. Personally I think it's great to finally see a promising new standard for creating web 3d. Hopefully Adobe can create a competitive 3d-solution to integrate i flash, but looking at Acrobat 3d I'm not impressed, and they stopped developing Shockwave 3d a long time ago (still the best solution despite lack of updates last 5 years). /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006-01-24 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006-01-24 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] remoting.net with mssql
I think that my (alck of) .net skills are the problem. this code is fine... code %@ Page language=C#% %@ Import Namespace=System.Data % %@ Import Namespace=System.Data.OleDb % %@ Register TagPrefix=MM Namespace=FlashGateway Assembly=flashgateway % script langauge=C# runat=server void Page_Load(Object sender, EventArgs e){ // build a connection string string cnnString = Provider=SQLOLEDB.1;Data Source=xyz ; Initial Catalog=xyz;User ID=xyz;Password=xyz; Network Library =dbmssocn; // connect to the server OleDbConnection sqlCnn = new OleDbConnection(cnnString); string sqlQuery=SELECT * FROM TABLE'; OleDbDataAdapter sqlData = new OleDbDataAdapter(sqlQuery,sqlCnn); // fill the DataSet DataSet myDataSet = new DataSet(); sqlData.Fill(myDataSet,productList); // set the dataSource property to the resulting table myFlash.DataSource = myDataSet.Tables[0]; // bind the data to the Flash Control myFlash.DataBind(); } /script MM:Flash id='myFlash' runat=server/ /code when i try to adapt to use sp with the following... code %@ Page language=C#% %@ Import Namespace=System.Data % %@ Import Namespace=System.Data.OleDb % %@ Register TagPrefix=MM Namespace=FlashGateway Assembly=flashgateway % script langauge=VB runat=server Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) // build a connection string Set objConnection = Server.CreateObject(ADODB.Connection) Set objCommand = Server.CreateObject(ADODB.Command) Set objRecordset= Server.CreateObject(ADODB.Recordset) with objCommand .ActiveConnection = Provider=SQLOLEDB.1;Data Source=xyz ; Initial Catalog=xyz;User ID=xyz;Password=xyz; Network Library =dbmssocn; .CommandText = spgetstarfromtable .CommandType = 4 .Parameters.refresh() .Parameters(@paramID).value = star .Execute end with objRecordset.Cursorlocation = 3 objRecordset.Open objCommand, , 3 myFlash.Result = objRecordset.RecordCount myFlash.DataBind() end sub /script MM:Flash id='myFlash' runat=server/ /code this is currently where I am at, if anyone can hint me in the right direct then I am all ears! -- Gavin Lilley. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Network Tools in Flash
My latest project is to build a network monitor tool to provide data like ping or traceroute. One thing I'd like to do is monitor webservers/sites to keep track of uptime. I've done some searching but haven't found much yet on how to get started. Any advice? Thanks, Don. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Network Tools in Flash
Oh yeah, I'm using Flash MX 2004 Pro. Thanks, Don. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Network Tools in Flash
I'd forget Flash for the minute and look at regular tools that give you the info you're after. Once you have that, you'll need to look at ways to get at the data. I would look at command line tools, I'd write some ColdFusion to use these and then write the output of using these tools to XML for Flash to read. A bit rough around the edges but I'd say it's more than doable. Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Don Rinderknecht Sent: 25 January 2006 11:12 To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Network Tools in Flash My latest project is to build a network monitor tool to provide data like ping or traceroute. One thing I'd like to do is monitor webservers/sites to keep track of uptime. I've done some searching but haven't found much yet on how to get started. Any advice? Thanks, Don. ___ 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: SV: [Flashcoders] Microsoft Sparkle
David, I tend to agree with what your saying. Although Im definitely in the RIA camp, it seems ridiculous to criticise the development of a technology such as this simply because of what the 'average consumer' wants. How about using the games industry to make my point? If this technology is successful (either for Adobe or MS), then browser based DirectX online gaming isnt too far away. No 5Gb installs, just point to a URL and away you go. Dismissing the idea of decent 3D is wy too short sighted. Cheers, Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Skoglund Sent: 25 January 2006 10:26 To: 'Flashcoders mailing list' Subject: SV: SV: [Flashcoders] Microsoft Sparkle OK, you maybe YOU don't care much for it, but a RIA-platform needs to be flexible as possible and give the developers as much freedom as possible. Content rules, but why restrict content to 2d? I'm not talking about wacky 3d interfaces where they are clearly not needed, but games, simulations, product presentations etc. As I see it Macromedia has always been making good tools for creating interactive experiences but are now trying hard with Flex 2 to compete in the corporate applications. Microsoft comes from the opposite side. They already have most of the corporate developers, and are now trying to get the designers attention. And looking at the feature lists they seem to beat Macromedia on their own turf... I hope that Macromedia/Adobe can compete. Shockwave 3d has a very steep learning curve and it's just in the last couple of years that people have really learned to create really nice games with it. Look for example att my own first try on creating a shockwave 3d-game: www.monsterland.se/snowwarfare I wouldn't have been able to create this without the tutorials and helpful communities that's been built up during the years. In my view Macromedia had a good state of the art product, but threw it away since it didn't create short term profit. Sparkle on the other side seems quite easy to get into. The 3d-functions are well integrated into the IDE so you can navigate between 3d-models in a scene as easily as you do between movie clips in flash. And there are lot's of features beside this 3d-part. Intresting times ahead! /David -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Andreas Rønning Skickat: den 25 januari 2006 10:58 Till: Flashcoders mailing list Ämne: Re: SV: [Flashcoders] Microsoft Sparkle I couldn't give less of a crap about putting 3d on the web, and i'm pretty sure the average consumer agrees with me. Content rules. I seem to recall Shockwave 3d not ever really taking off, and if 3d is the only thing sparkle has over Flash it ain't gonna do much good as a competitor. - Andreas David Skoglund wrote: so why does someone post it to this list ? Since it's going to be a direct competitor/alternative to Flash, and since it's pushed by Microsoft. Wether you like it or not you'll need to keep your eyes on what happening over there. Personally I think it's great to finally see a promising new standard for creating web 3d. Hopefully Adobe can create a competitive 3d-solution to integrate i flash, but looking at Acrobat 3d I'm not impressed, and they stopped developing Shockwave 3d a long time ago (still the best solution despite lack of updates last 5 years). /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006-01-24 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006-01-24 ___ 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] weird loading prob
Hello All, Dunno if anyone has seen this before, I have a php page which gets vars off the query string and writes them into the object/embed tags of a movie, along with doing a bit of tracking too. Problem is this, very occasionally, every other element apart from the flash loads on the page, and only on refresh does the page behave normally. Anyone had this prob, it is very occasional, about 1 in 20 or so but I can't work it out.. Cheers, Tom. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Hybrid CD's
He, I am planning to make a cd with FLV's on it. It needs to become a hybrid cd. I was wondering if somebody maybe knows some good resources that explain how to make an Hybrid cd and what potentially could be some difficulties. Thnx in advance, Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: SV: [Flashcoders] Microsoft Sparkle
Sparkle doesn't supply decent 3d. xaml 3d is little more than vrml 2006. It's not even a step in the right direction, it's just an excuse to use directx online, and frankly, putting directx online is a shit idea that dilutes the web. Complete and utter cross platform compatibility is a simple absolute that web developers MUST conform to. MS have a history of introducing products that weaken the integrity of the web, and i'm in no way a fan of any sort. The average consumer dictates what technology makes money. This is another truth. It wasnt until recently that Flash became even remotely accepted by the average consumer, and we are only now beginning to reap the true benefits of that acceptance. Sparkle is another hurdle, more noise in the ether. Consumers don't need it, developers don't need it. The only party requiring Sparkle-type-content is the kind of bloated site Flash has been criticized the most for since its inception, and in that regard Sparkle, to me, looks like Flash 4 with polygons and an even more limited user base. The internet reads like a book. This is why it works with smartphones, this is why it works with Nokia series 40 phones, this is why it works with tablets, laptops, desktop computers, and why puretext browsers like lynx are an actual viability. This flat book structure isn't a brick of the establishment to be broken down and destroyed, it isn't a hampering factor, it is a unifying factor. As for games? We have decent 3d online NOW with Shockwave 3d. I've seen a working Unreal tournament in Shockwave with a great framerate and decent AI. It just hasn't taken off, and it probably won't anytime soon. Why? Because it's an aberration. It's an abnormality that confuses and destabilizes. As a gamer, i will never play a game in a browser because that's not what a browser is for. For that i'll hook up my gamecube or pick up my PSP. Putting a technological shove into online 3d is like designing a car that can double as a screwdriver. As much as i dig what MS did with the xbox, Sparkle and the whole 3d kajoozle is just another way for them to integrate the web tighter with their whole crazy Live idea, and it's an ugly thing that messes up for developers and users alike. And i'm not a mac user btw :P - Andreas Nick Weekes wrote: David, I tend to agree with what your saying. Although Im definitely in the RIA camp, it seems ridiculous to criticise the development of a technology such as this simply because of what the 'average consumer' wants. How about using the games industry to make my point? If this technology is successful (either for Adobe or MS), then browser based DirectX online gaming isnt too far away. No 5Gb installs, just point to a URL and away you go. Dismissing the idea of decent 3D is wy too short sighted. Cheers, Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Skoglund Sent: 25 January 2006 10:26 To: 'Flashcoders mailing list' Subject: SV: SV: [Flashcoders] Microsoft Sparkle OK, you maybe YOU don't care much for it, but a RIA-platform needs to be flexible as possible and give the developers as much freedom as possible. Content rules, but why restrict content to 2d? I'm not talking about wacky 3d interfaces where they are clearly not needed, but games, simulations, product presentations etc. As I see it Macromedia has always been making good tools for creating interactive experiences but are now trying hard with Flex 2 to compete in the corporate applications. Microsoft comes from the opposite side. They already have most of the corporate developers, and are now trying to get the designers attention. And looking at the feature lists they seem to beat Macromedia on their own turf... I hope that Macromedia/Adobe can compete. Shockwave 3d has a very steep learning curve and it's just in the last couple of years that people have really learned to create really nice games with it. Look for example att my own first try on creating a shockwave 3d-game: www.monsterland.se/snowwarfare I wouldn't have been able to create this without the tutorials and helpful communities that's been built up during the years. In my view Macromedia had a good state of the art product, but threw it away since it didn't create short term profit. Sparkle on the other side seems quite easy to get into. The 3d-functions are well integrated into the IDE so you can navigate between 3d-models in a scene as easily as you do between movie clips in flash. And there are lot's of features beside this 3d-part. Intresting times ahead! /David -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Andreas Rønning Skickat: den 25 januari 2006 10:58 Till: Flashcoders mailing list Ämne: Re: SV: [Flashcoders] Microsoft Sparkle I couldn't give less of a crap about putting 3d on the web, and i'm pretty sure the average consumer agrees with me. Content rules. I seem to recall
RE: SV: [Flashcoders] Microsoft Sparkle
Forgetting your argument for a second, these two lines are something I can't stand to hear: web developers MUST conform to i will never play a game in a browser because that's not what a browser is for As a developer I can do what I like(within reason). As for browsers, they can do whatever you want them to do(again within reason). I'm always weary of people who are at either end of the scale on any particular thought. When I hear words like 'MUST', it puts me right off listening. Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andreas Rønning Sent: 25 January 2006 11:46 To: Flashcoders mailing list Subject: Re: SV: [Flashcoders] Microsoft Sparkle Sparkle doesn't supply decent 3d. xaml 3d is little more than vrml 2006. It's not even a step in the right direction, it's just an excuse to use directx online, and frankly, putting directx online is a shit idea that dilutes the web. Complete and utter cross platform compatibility is a simple absolute that web developers MUST conform to. MS have a history of introducing products that weaken the integrity of the web, and i'm in no way a fan of any sort. The average consumer dictates what technology makes money. This is another truth. It wasnt until recently that Flash became even remotely accepted by the average consumer, and we are only now beginning to reap the true benefits of that acceptance. Sparkle is another hurdle, more noise in the ether. Consumers don't need it, developers don't need it. The only party requiring Sparkle-type-content is the kind of bloated site Flash has been criticized the most for since its inception, and in that regard Sparkle, to me, looks like Flash 4 with polygons and an even more limited user base. The internet reads like a book. This is why it works with smartphones, this is why it works with Nokia series 40 phones, this is why it works with tablets, laptops, desktop computers, and why puretext browsers like lynx are an actual viability. This flat book structure isn't a brick of the establishment to be broken down and destroyed, it isn't a hampering factor, it is a unifying factor. As for games? We have decent 3d online NOW with Shockwave 3d. I've seen a working Unreal tournament in Shockwave with a great framerate and decent AI. It just hasn't taken off, and it probably won't anytime soon. Why? Because it's an aberration. It's an abnormality that confuses and destabilizes. As a gamer, i will never play a game in a browser because that's not what a browser is for. For that i'll hook up my gamecube or pick up my PSP. Putting a technological shove into online 3d is like designing a car that can double as a screwdriver. As much as i dig what MS did with the xbox, Sparkle and the whole 3d kajoozle is just another way for them to integrate the web tighter with their whole crazy Live idea, and it's an ugly thing that messes up for developers and users alike. And i'm not a mac user btw :P - Andreas Nick Weekes wrote: David, I tend to agree with what your saying. Although Im definitely in the RIA camp, it seems ridiculous to criticise the development of a technology such as this simply because of what the 'average consumer' wants. How about using the games industry to make my point? If this technology is successful (either for Adobe or MS), then browser based DirectX online gaming isnt too far away. No 5Gb installs, just point to a URL and away you go. Dismissing the idea of decent 3D is wy too short sighted. Cheers, Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Skoglund Sent: 25 January 2006 10:26 To: 'Flashcoders mailing list' Subject: SV: SV: [Flashcoders] Microsoft Sparkle OK, you maybe YOU don't care much for it, but a RIA-platform needs to be flexible as possible and give the developers as much freedom as possible. Content rules, but why restrict content to 2d? I'm not talking about wacky 3d interfaces where they are clearly not needed, but games, simulations, product presentations etc. As I see it Macromedia has always been making good tools for creating interactive experiences but are now trying hard with Flex 2 to compete in the corporate applications. Microsoft comes from the opposite side. They already have most of the corporate developers, and are now trying to get the designers attention. And looking at the feature lists they seem to beat Macromedia on their own turf... I hope that Macromedia/Adobe can compete. Shockwave 3d has a very steep learning curve and it's just in the last couple of years that people have really learned to create really nice games with it. Look for example att my own first try on creating a shockwave 3d-game: www.monsterland.se/snowwarfare I wouldn't have been able to create this without the tutorials and helpful communities that's been built up during the years. In my view Macromedia had a good state of the art product, but threw
[Flashcoders] flash communication server and ISA client
Hi, i have a client for which i developed a flash comm app. It works fine on some pc's, but on others it doesnt ;). Now they claim that the correct ports are open, that it didnt help, but now that they have installed an ISA client (?) it all seems to work. Now i dont know that much about hardware/sysadmin/ports etc when it goes beyond simple firewall issues. Does the story ring a bell with anyone, who possibly could explain to me in clearer terms what might have been the problem, and why installing an ISA client solved it? What is an ISA client for that matter? ;) greetz Hans ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: SV: [Flashcoders] Microsoft Sparkle
You MUSTN'T avoid putting your hand in boiling water. But you bloody well should. Certain truths are just that. As a developer, your task is to circumvent and overcome limitations and create a superior product. Your task is not to break the balance. So as a developer you CAN do what you like, sure. But should you? I'm as much a fan of innovation as anyone, i'm totally stoked about the new Nintendo Revolution controller for instance; go go Nintendo, break the mold! Sparkle isn't about breaking the mold, and the mold of the web right now is a very sound infrastructure that serves a highly specific purpose, which is at its most basic the delivery of information. In this case i don't consider must hyperbole. I firmly believe that the web requires compliance among developers to survive as a cohesive whole. - Andreas Adrian Lynch wrote: Forgetting your argument for a second, these two lines are something I can't stand to hear: web developers MUST conform to i will never play a game in a browser because that's not what a browser is for As a developer I can do what I like(within reason). As for browsers, they can do whatever you want them to do(again within reason). I'm always weary of people who are at either end of the scale on any particular thought. When I hear words like 'MUST', it puts me right off listening. Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andreas Rønning Sent: 25 January 2006 11:46 To: Flashcoders mailing list Subject: Re: SV: [Flashcoders] Microsoft Sparkle Sparkle doesn't supply decent 3d. xaml 3d is little more than vrml 2006. It's not even a step in the right direction, it's just an excuse to use directx online, and frankly, putting directx online is a shit idea that dilutes the web. Complete and utter cross platform compatibility is a simple absolute that web developers MUST conform to. MS have a history of introducing products that weaken the integrity of the web, and i'm in no way a fan of any sort. The average consumer dictates what technology makes money. This is another truth. It wasnt until recently that Flash became even remotely accepted by the average consumer, and we are only now beginning to reap the true benefits of that acceptance. Sparkle is another hurdle, more noise in the ether. Consumers don't need it, developers don't need it. The only party requiring Sparkle-type-content is the kind of bloated site Flash has been criticized the most for since its inception, and in that regard Sparkle, to me, looks like Flash 4 with polygons and an even more limited user base. The internet reads like a book. This is why it works with smartphones, this is why it works with Nokia series 40 phones, this is why it works with tablets, laptops, desktop computers, and why puretext browsers like lynx are an actual viability. This flat book structure isn't a brick of the establishment to be broken down and destroyed, it isn't a hampering factor, it is a unifying factor. As for games? We have decent 3d online NOW with Shockwave 3d. I've seen a working Unreal tournament in Shockwave with a great framerate and decent AI. It just hasn't taken off, and it probably won't anytime soon. Why? Because it's an aberration. It's an abnormality that confuses and destabilizes. As a gamer, i will never play a game in a browser because that's not what a browser is for. For that i'll hook up my gamecube or pick up my PSP. Putting a technological shove into online 3d is like designing a car that can double as a screwdriver. As much as i dig what MS did with the xbox, Sparkle and the whole 3d kajoozle is just another way for them to integrate the web tighter with their whole crazy Live idea, and it's an ugly thing that messes up for developers and users alike. And i'm not a mac user btw :P - Andreas Nick Weekes wrote: David, I tend to agree with what your saying. Although Im definitely in the RIA camp, it seems ridiculous to criticise the development of a technology such as this simply because of what the 'average consumer' wants. How about using the games industry to make my point? If this technology is successful (either for Adobe or MS), then browser based DirectX online gaming isnt too far away. No 5Gb installs, just point to a URL and away you go. Dismissing the idea of decent 3D is wy too short sighted. Cheers, Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Skoglund Sent: 25 January 2006 10:26 To: 'Flashcoders mailing list' Subject: SV: SV: [Flashcoders] Microsoft Sparkle OK, you maybe YOU don't care much for it, but a RIA-platform needs to be flexible as possible and give the developers as much freedom as possible. Content rules, but why restrict content to 2d? I'm not talking about wacky 3d interfaces where they are clearly not needed, but games, simulations, product presentations etc. As I see it Macromedia has always been making good
Re: [Flashcoders] Final Class Question
On 21 Jan 2006, at 21:19, Nathan Derksen wrote: The variables that you are passing through the constructor actually obscure those two properties because they share the same variable name; ... Third, it's good to name private properties using a naming convention that allows you to easily identify in your code the fact that it is a class property. I prepend a p to the variable name, others like prepending a _ character. Do whatever you want, just use it consistently. Not wishing to diminish Nathen's advise, it may be useful to know how to distinguish between parameters and properties sharing the same name in a class... class Example { private var theNum : Number; // class property function Example() {} public function changeNum( theNum : Number ):Void { // to set class property theNum to the value of method parameter theNum this.theNum = theNum; } } Paul -- [ http://www.creative-cognition.co.uk/ ] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] small code question
But why not? In the first example you say in the first line myVar = new Number(); But not more, only that it is a number e.g not a string or a bolean. Than in the second line you say myVar = 0; So you give it a Number. In the second example you do it in one way you say hey the variable myVar is a number and is a 0. See you Toon Van de Putte schrieb: I was wondering if the following two lines of code are just different ways of doing the same thing: var myVar = new Number(); myVar =0; var myVar= Number(0); -- Toon Van de Putte Pannenhuisstraat 63 2500 Lier Belgium mobile: +32 (0)497 52 74 51 [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] sync to flash 7 flv-files
Hi! I will soon start building a production where I will need to sync five or six quite long HTPP-streaming flv movies (2-3 min each flash 7 flv:s) with a flow of animations. There will be start, pause and stop buttons in the production, but potentially the production will run for 15 minutes with very little user interaction. Thus i will need to get some nice and accurate sync info from the flv files. My idea is to use NetStream.time for this. Is there anything I should be warned about with this approach ? (trouble with values when loading or dropped info when starting after a pause and so on...) And it has to be Flash 7 by the way... /Eskil ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] XPathDocument()
Hey All, This is my first time here, but I am a regular at Flashnewbie. The reason I am posting here is because i didnt get a reply at newbie, so thought this might be something only FlashCoders might be able to help me with. :-) I am using XPath for building one of my applications and retrieved 2 version of the Xpath component at this link http://www.xfactorstudio.com/ . And the way my application is built only the older version works and my code runs like this import com.xfactorstudio.xml.xpath.*; var myDoc = new XPathDocument(); myDoc.onLoad = function(success){ if(success == true){ var thisLocale = this.selectNodes(/loc/dnam); location.text = thisLocale[0].stringValue(); } And I realized XPathDocument() is not supported in the new version of XPath. But I really dont understand this. Are there any reasons why the XPathDocument() is not supported anymore and along with that .stringValue(). I think the transition happened over the past 1 year or so. Did anybody know why this was done. It would be a great eye opener for me if somebody who saw the transition would help me out with the decision of sticking to the old or the new version of Xpath. Thank you. Sincerely, Chaitu. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Setting the last pressed key in the Key class
Hi, An application I'm building requires me to be able to invoke key presses as if the user typed something. Since I cannot control the user input from Flash (or, can I?) I was thinking of a way to manipulate the Key class as to make it think that I'm hitting keys, invoking onKeyDown is no problem, but setting the last key pressed is. Is there a way for me to set the key pressed value in the Key class? There's got to be a way... H ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Access DropShadow filter via AS?
Ahhh got it. Thanks a bunch! Charles P. On 1/24/06, Johan Karlsson [EMAIL PROTECTED] wrote: 1.) because the property does not return a reference to the true filters-array of the movieclip. Just a copy of it. So you need to assign it back to the movieclip after you've edited it. 2.) you can't if it's not the only filter applied. If not you should loop through the array looking for an instance of the DropShadowFilter class. You haven't already you need to import the class flash.filters.DropShadowFilter The following code will search for the dropshadow in the array and set it's quality property to 15. var myList:Array = myMC.filters; for(i in myList) { if(myList[i] instanceof DropShadowFilter) { myList[i].quality = 15; break; } } myMC.filters = myList; /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Charles Parcell Sent: den 24 januari 2006 07:03 To: Flashcoders mailing list Subject: Re: [Flashcoders] Access DropShadow filter via AS? Two questions 1) Why couldn't I just do... myMC.filters[0].quality = 15; 2) In your example, how do you know that DropShadow is at index 0? Thanks, Charles P. On 1/23/06, M S [EMAIL PROTECTED] wrote: Hello, var myList:Array = myMC.filters; myList[0].quality = 15; myMC.filters = myList; should do it, the filters array is a property of the MovieClip object, from there you can access all of the properties of said indexed filter. Peace, Mike On 1/23/06, Charles Parcell [EMAIL PROTECTED] wrote: Does anyone know how to access the parameters of a dropshadow attached (part of) a MC? Thanks, Charles P. ___ 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: SV: SV: [Flashcoders] Microsoft Sparkle
Hi friends, I agree with Adrian, polar extremes never solve anything, they cause people to take sides and bicker endlessly. I can see it happening already. An opinion free approach would be most intelligent, there is no telling what you will run into if you give your presuppositions a rest. The bottom line is that when an idea is taken seriously, it's clear that there is much to consider. 3D on the web opens and closes doors, like any change in life does (not just technology). What is important is exploring the effects of the new technology, not with reasoning motivations for defeating opposing arguments. I hope noone takes offense to my approach, I'm simply of the opinion that we should stick together as internet programmers. H ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XPathDocument()
I seem to remember something about a version of XPath having problems with AS2what exact version of XPath are you using? I'll check to see if it's newer than the one I'm using...if not, I'll send you my 'xfactorstudio' source tree, as I have had to modify it in order to make it work. Cheers On 1/25/06, Chaitu Vadlapatla [EMAIL PROTECTED] wrote: Hey All, This is my first time here, but I am a regular at Flashnewbie. The reason I am posting here is because i didnt get a reply at newbie, so thought this might be something only FlashCoders might be able to help me with. :-) I am using XPath for building one of my applications and retrieved 2 version of the Xpath component at this link http://www.xfactorstudio.com/ . And the way my application is built only the older version works and my code runs like this import com.xfactorstudio.xml.xpath.*; var myDoc = new XPathDocument(); myDoc.onLoad = function(success){ if(success == true){ var thisLocale = this.selectNodes(/loc/dnam); location.text = thisLocale[0].stringValue(); } And I realized XPathDocument() is not supported in the new version of XPath. But I really dont understand this. Are there any reasons why the XPathDocument() is not supported anymore and along with that .stringValue(). I think the transition happened over the past 1 year or so. Did anybody know why this was done. It would be a great eye opener for me if somebody who saw the transition would help me out with the decision of sticking to the old or the new version of Xpath. Thank you. Sincerely, Chaitu. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Jordan Snyder Applications Developer Image Action LLC http://www.imageaction.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Hybrid CD's
Get a Mac and buy Toast. Charles P. On 1/25/06, Jiri Heitlager [EMAIL PROTECTED] wrote: He, I am planning to make a cd with FLV's on it. It needs to become a hybrid cd. I was wondering if somebody maybe knows some good resources that explain how to make an Hybrid cd and what potentially could be some difficulties. Thnx in advance, Jiri ___ 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] Player 8 Statistics
Does anybody know where I could find some numbers on Player 8 installs? The most recent info I can find on Flash Player stats on Macromedia.com is from last September, and doesn't include Player 8. - Josh ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XPathDocument()
Hi, I couldnt find the version number but both the versions are on this page http://www.xfactorstudio.com/ without any explanation about why some of the classes in the older version were deleted. the version that works for me is *OLD XPath for ActionScript 2* implementation on this page and the one that Doesn't work is *new version of the XPath for ActionScript 2 on the same page. *Hope somebody knows why i shouldnt use the older version and why some classes were deleted.* thanks Chaitu. * Jordan Snyder wrote: I seem to remember something about a version of XPath having problems with AS2what exact version of XPath are you using? I'll check to see if it's newer than the one I'm using...if not, I'll send you my 'xfactorstudio' source tree, as I have had to modify it in order to make it work. Cheers On 1/25/06, Chaitu Vadlapatla [EMAIL PROTECTED] wrote: Hey All, This is my first time here, but I am a regular at Flashnewbie. The reason I am posting here is because i didnt get a reply at newbie, so thought this might be something only FlashCoders might be able to help me with. :-) I am using XPath for building one of my applications and retrieved 2 version of the Xpath component at this link http://www.xfactorstudio.com/ . And the way my application is built only the older version works and my code runs like this import com.xfactorstudio.xml.xpath.*; var myDoc = new XPathDocument(); myDoc.onLoad = function(success){ if(success == true){ var thisLocale = this.selectNodes(/loc/dnam); location.text = thisLocale[0].stringValue(); } And I realized XPathDocument() is not supported in the new version of XPath. But I really dont understand this. Are there any reasons why the XPathDocument() is not supported anymore and along with that .stringValue(). I think the transition happened over the past 1 year or so. Did anybody know why this was done. It would be a great eye opener for me if somebody who saw the transition would help me out with the decision of sticking to the old or the new version of Xpath. Thank you. Sincerely, Chaitu. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Jordan Snyder Applications Developer Image Action LLC http://www.imageaction.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XPathDocument()
I think that they pulled it out because it's really just a wrapper for the Xpath classes static methods. In addition he was also using the old prototype syntax to add the functionality directly to the XMLNode class. This pattern worked well when you weren't concerned with strong typing and the whole AS2 philosophy. Anyway, I had the same issue, in that I have a project that makes extensive use of the XPathDocument class, so I created my own when they removed it. Here it is, in case you are interested. It's really quite simple. Just remember that the methods return instances of XML not XPathDocuments, so you have to convert those if you need that functionality on the results. It's working this way, because I decided not to alter the XMLNode class's prototype. -Chris /** Copyright (c) 2002 Neeld Tanksley. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: This product includes software developed by Neeld Tanksley (http://xfactorstudio.com). Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. 4. The name Neeld Tanksley must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact [EMAIL PROTECTED] THIS SOFTWARE IS PROVIDED AS IS AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NEELD TANKSLEY BE LIABLE FOR ANY DIRECT, INDIRECT,INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OFLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **/ import com.xfactorstudio.xml.xpath.XPath; import com.xfactorstudio.xml.xpath.XPathAxes; import com.xfactorstudio.xml.xpath.XPathFunctions; /** * Based on Neeld Tanksley's original XPathDocument wrapper class. Changed the * prototypes to simple public methods. Note that this implementation * does not return XMLNode instances with an altered prototype. * * @author Chris Allen */ class com.xfactorstudio.xml.xpath.XPathDocument extends XML{ var callback:Object; public function XPathDocument(text:String){ super(text); } public function selectNodes(query:String) { return XPath.selectNodes(this,query); } public function selectSingleNode(query:String) { return XPath.selectNodes(this,query)[0]; } public function ancestor(){ return XPathAxes.ancestor(this); } public function ancestorOrSelf(){ return XPathAxes.ancestorOrSelf(this); } public function attribute(){ return XPathAxes.attribute(this); } public function child(){ return XPathAxes.child(this); } public function descendant(){ return XPathAxes.descendant(this); } public function descendantOrSelf(){ return XPathAxes.descendantOrSelf(this); } public function following(){ return XPathAxes.following(this); } public function followingSibling(){ return XPathAxes.followingSibling(this); } public function parent(){ return XPathAxes.parent(this); } public function preceding(){ return XPathAxes.preceding(this); } public function precedingSibling(){ return XPathAxes.precedingSibling(this); } public function self(){ return XPathAxes.self(this); } public function namespace(){ return XPathAxes.namespace(this); } public function root(){ return XPathAxes.root(this); } public function getNamedNodes(name){ return XPath.getNamedNodes(this.childNodes,name); } public function stringValue(){ return XPathAxes.stringValue(this); } public function name(){ return XPathFunctions.name([[this]]); } public function localName(){ return XPathFunctions.localName([[this]]); } public function namespaceURI(){ return
RE: [Flashcoders] Player 8 Statistics
I saw a post from John Dowdell a couple of weeks back and he indicated that the latest research data would be available on Jan 31. He also said that preliminary numbers point to an extremely fast adoption rate, even by Flash standards. I'd try hitting his blog archives if you're not happy with my summation :) Brooks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] sync to flash 7 flv-files
See my blog post on the drawbacks of the NetStream class for more info: http://www.brooksandrus.com/blog/?p=20 Brooks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XPathDocument()
that helps. Thanks a bunch!! Chaitu. Chris Allen wrote: I think that they pulled it out because it's really just a wrapper for the Xpath classes static methods. In addition he was also using the old prototype syntax to add the functionality directly to the XMLNode class. This pattern worked well when you weren't concerned with strong typing and the whole AS2 philosophy. Anyway, I had the same issue, in that I have a project that makes extensive use of the XPathDocument class, so I created my own when they removed it. Here it is, in case you are interested. It's really quite simple. Just remember that the methods return instances of XML not XPathDocuments, so you have to convert those if you need that functionality on the results. It's working this way, because I decided not to alter the XMLNode class's prototype. -Chris /** Copyright (c) 2002 Neeld Tanksley. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: This product includes software developed by Neeld Tanksley (http://xfactorstudio.com). Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. 4. The name Neeld Tanksley must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact [EMAIL PROTECTED] THIS SOFTWARE IS PROVIDED AS IS AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NEELD TANKSLEY BE LIABLE FOR ANY DIRECT, INDIRECT,INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OFLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **/ import com.xfactorstudio.xml.xpath.XPath; import com.xfactorstudio.xml.xpath.XPathAxes; import com.xfactorstudio.xml.xpath.XPathFunctions; /** * Based on Neeld Tanksley's original XPathDocument wrapper class. Changed the * prototypes to simple public methods. Note that this implementation * does not return XMLNode instances with an altered prototype. * * @author Chris Allen */ class com.xfactorstudio.xml.xpath.XPathDocument extends XML{ var callback:Object; public function XPathDocument(text:String){ super(text); } public function selectNodes(query:String) { return XPath.selectNodes(this,query); } public function selectSingleNode(query:String) { return XPath.selectNodes(this,query)[0]; } public function ancestor(){ return XPathAxes.ancestor(this); } public function ancestorOrSelf(){ return XPathAxes.ancestorOrSelf(this); } public function attribute(){ return XPathAxes.attribute(this); } public function child(){ return XPathAxes.child(this); } public function descendant(){ return XPathAxes.descendant(this); } public function descendantOrSelf(){ return XPathAxes.descendantOrSelf(this); } public function following(){ return XPathAxes.following(this); } public function followingSibling(){ return XPathAxes.followingSibling(this); } public function parent(){ return XPathAxes.parent(this); } public function preceding(){ return XPathAxes.preceding(this); } public function precedingSibling(){ return XPathAxes.precedingSibling(this); } public function self(){ return XPathAxes.self(this); } public function namespace(){ return XPathAxes.namespace(this); } public function root(){ return XPathAxes.root(this); } public function getNamedNodes(name){ return XPath.getNamedNodes(this.childNodes,name); } public function stringValue(){ return XPathAxes.stringValue(this); } public function name(){ return XPathFunctions.name([[this]]); } public function localName(){ return XPathFunctions.localName([[this]]); }
[Flashcoders] Strange text scaling issue
I'm getting something odd: When I rescale my Flash movie (imported into Director) the text fields are scaling incorrectly: instead of stretching, they seem to be changing point sizes in a quantized way. The result is that text fields that were previously next to one another are overlapping or separating. This doesn't happen with other Flash movies, so I'm guessing I've accidentally set some kind of scaling property, but I can't find it. Anyone know? Thanks Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Setting the last pressed key in the Key class
I have another idea, would it be possible to delegate Key class functions to a custom class I've built? I've tried _global.ASSetPropFlags(Key,null,6,true); It still doesn't allow me to delegate the functions. Does anyone know of a way around this? H ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strange text scaling issue
Hi Danny, Don't know of any relevant scaling property - but are you using embedded fonts? If not, at a guess it could be rendering using device/system fonts and messing up the scaling? HTH, Ian On 1/25/06, Danny Kodicek [EMAIL PROTECTED] wrote: I'm getting something odd: When I rescale my Flash movie (imported into Director) the text fields are scaling incorrectly: instead of stretching, they seem to be changing point sizes in a quantized way. The result is that text fields that were previously next to one another are overlapping or separating. This doesn't happen with other Flash movies, so I'm guessing I've accidentally set some kind of scaling property, but I can't find it. Anyone know? Thanks Danny ___ 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: SV: SV: [Flashcoders] Microsoft Sparkle
I'd have to agree with elibol. And, just as a reminder, here are some famously wrong expert predictions about what would or wouldn't happen in our industry:Computers in the future may weigh no more than 1.5 tons. -- Popular Mechanics, forecasting the relentless march of science, 1949 I think there is a world market for maybe five computers. -- Thomas Watson, chairman of IBM, 1943 I have traveled the length and breadth of this country and talked with the best people, and I can assure you that data processing is a fad that won't last out the year. -- The editor in charge of business books for Prentice Hall, 1957 But what ... is it good for? -- Engineer at the Advanced Computing Systems Division of IBM, 1968,commenting on the microchip. There is no reason anyone would want a computer in their home. -- Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977 At 08:24 AM 1/25/2006, you wrote: Hi friends, I agree with Adrian, polar extremes never solve anything, they cause people to take sides and bicker endlessly. I can see it happening already. An opinion free approach would be most intelligent, there is no telling what you will run into if you give your presuppositions a rest. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strange text scaling issue
Are these TF static or dynamic? Check if you've embedded fonts. Probably text fields that behave properly are either static or with fonts embedded, and ones strange are dynamic w/o embedded fonts. If so, with emb. fonts they are rendered as vector shapes (espesially when embedFonts=true). -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. -- Danny Kodicek wrote: I'm getting something odd: When I rescale my Flash movie (imported into Director) the text fields are scaling incorrectly: instead of stretching, they seem to be changing point sizes in a quantized way. The result is that text fields that were previously next to one another are overlapping or separating. This doesn't happen with other Flash movies, so I'm guessing I've accidentally set some kind of scaling property, but I can't find it. Anyone know? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Q: Best tweening engine for Flash 8 filters
Hi I was wondering what everyone is using to tween flash filters. The built in tween in Flash, or some third party tweening engine. Thanks in advance Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] checking combinations
Sounds like you're trying to do something like this, but even still your approach seems overly complex. Maybe a more detailed explaination of what you're trying to do and what combinations are would help. Meanwhile, if I understand you, would something like this work? a = false b = false c = true d = true e = true f = false g = true h = false i = false //etc. myArray = [2,3,6,12,34,54,345,45,76,34] vars = [a,b,c,d,e,f,g,h,i,j] counter = 0; counter_arr = []; function checkVars(){ for(i=0; imyArray.length; i++){ if(this[vars[i]]){ counter_arr.push(counter+=myArray[i]) trace(vars[i]+ in vars array is true.); trace(counter is at: +counter); } } } checkVars(); Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Wednesday, January 25, 2006 1:03 PM To: Flashcoders mailing list Subject: [Flashcoders] checking combinations I have 4 variables I need to check the states of routinely... and combinations thereof. I am assuming that if I have a counter, and interogate and += them values, I can then check the value of the counter to determine the combinations. psudeo-code: var counter:Number = 0; if ( a ){ counter += 2; } if ( b ){ counter += 3; } if ( c ){ counter += 6; } if ( d ){ counter += 12;} if ( counter == 2 ){ // only a was true } else if ( counter == 3 ){ // only b was true } ... Which is fine, but thats gonna be one honkin' if else statement to catch all the combinations. Is there a better way of doing this that will catch all the possible combinations in an elegant way? - edolecki ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 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] checking combinations
i've got to go out now so cant give the full answer i have in my head, but one way of tackling it is to make each state variable's value a power of 2 a = 1 b = 2 c = 4 d = 8 then you know that any combination of them has a unique value. (its basically a 4 bit number) then to handle the dispatch depending on the state combination you can build a function table. functionTable = new Array(); // create a handler for the combination a + b functionTable[a + b] = Delegate.create(this,combinationAB); and when you check the variables just call the function directly from the table : // a,b,c,d are just passed as boolean flags here function handleUpdate(a:boolean,b:boolean,c:boolean,d:boolean) { // taking advantage of a true being 1 in flash // and ideally you would setup these numbers // as static class variables var state = a + (b * 2) + (c * 4) + (d * 8); // call the defined function functionTable[state](); } of course you could do a check first to see if the function is defined and do something like log a warning or whatever is appropriate for your situation. hope that makes sense. martin eric dolecki wrote: I have 4 variables I need to check the states of routinely... and combinations thereof. I am assuming that if I have a counter, and interogate and += them values, I can then check the value of the counter to determine the combinations. psudeo-code: var counter:Number = 0; if ( a ){ counter += 2; } if ( b ){ counter += 3; } if ( c ){ counter += 6; } if ( d ){ counter += 12;} if ( counter == 2 ){ // only a was true } else if ( counter == 3 ){ // only b was true } ... Which is fine, but thats gonna be one honkin' if else statement to catch all the combinations. Is there a better way of doing this that will catch all the possible combinations in an elegant way? - edolecki ___ 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: SV: SV: [Flashcoders] Microsoft Sparkle
Hi Andreas, To clarify, my statement was not directed at you only, but I can say that it certainly did include you. On the topic of opinion, I agree that an opinion free approach is dangerous to the ignorant, but only dangerous in this situation if we're to say that we're all ignorant as children are. Not to doubt the contrary, becase we all aren't ignorant either. My point is that if we're able to reason and adjust our opinions, we can accually come to a collective agreement, regardless of whether one is ignorant or not. I apologize, I should have been more specific about the type of opinion; I feel that assumptions are being made, and these are opinions of inexperience. I apologize because I agree that opinions should be held, but not defended until a reasonable amount of consideration of the opposing argument is made. There is truth in this discussion, but it is yet to be known, therefore the opinions we do have should not be as strong as you believe they should be. In this particular case, most arguments presented are assumptions of the future. They should be treated as that, and noone should take offense. I hope I was able to actualize my idea accurately this time around. High Regards, H On 1/25/06, Andreas Rønning [EMAIL PROTECTED] wrote: last post from me on this thread so we can put it to rest and all agree that i was an opinionated dick and that nothing really matters. I don't really pay much attention to what MIGHT happen. What the web is like in 2060 is of no consequence to me or my job. I will however put my family's honor at stake over the validity of my argument; the web in its current state, where browsers are slowly becoming more and more compliant and compatible, with IE6 the only real bastard left on the block, requires patience and respect from developers to allow it to grow and mature properly, so that the end user can grow and mature right along with it. Watching MS prepare to dump another load of proprietary junk on the market only to watch it fizz out over the next 4-5 years or so isn't something i'm totally stoked about, and i've read specs, watched demonstrations, i've TRIED to be excited, but all i can tell is that it's another proprietary tech trying to cash in on a growing market. Opinion free approaches is the worst side of leftism. In a child's upbringing moral ambiguity is not only stupid but dangerous, and if people don't feel strongly about things they're better off not talking about them at all. As far as i can see, the only bickering here is me stating my opinion, and some others facing it down on the basis that it's close minded. I don't mean to attack other people's opinions, but i think i have the right to state my own. Anywho, sorry if i come off horrid. I've had a rough day/week/month so far. nd i've used the word web so many times now it's starting to sound funny to me O_o - Andreas Marc Hoffman wrote: I'd have to agree with elibol. And, just as a reminder, here are some famously wrong expert predictions about what would or wouldn't happen in our industry:Computers in the future may weigh no more than 1.5 tons. -- Popular Mechanics, forecasting the relentless march of science, 1949 I think there is a world market for maybe five computers. -- Thomas Watson, chairman of IBM, 1943 I have traveled the length and breadth of this country and talked with the best people, and I can assure you that data processing is a fad that won't last out the year. -- The editor in charge of business books for Prentice Hall, 1957 But what ... is it good for? -- Engineer at the Advanced Computing Systems Division of IBM, 1968,commenting on the microchip. There is no reason anyone would want a computer in their home. -- Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977 At 08:24 AM 1/25/2006, you wrote: Hi friends, I agree with Adrian, polar extremes never solve anything, they cause people to take sides and bicker endlessly. I can see it happening already. An opinion free approach would be most intelligent, there is no telling what you will run into if you give your presuppositions a rest. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Andreas Rønning --- Flash guy Rayon Visual Concepts, Oslo, Norway --- ___ 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] Cellrenderer confirmation
Hi all, I just want to verify a few things in case I've thought about this incorrectly. I've built three cellrenderer classes for a datagrid. I've got everything working but I'm trying to optimize the classes so things don't get cycled when they don't need to be. Am I correct in assuming that a datagrid (and a list-based component in general) only produces X number of instances of a cellrenderer, where X is the number of VISIBLE rows, as opposed to TOTAL rows? When I scroll, it's as if the rows cycle: 0-6 are visible. Scroll so 7 is visible, but the cellrenderer in row 7 traces out data that was kept in row 0. If that's the case, then you can't store row-specific information in a cellrenderer instance. In which case, my optimizations are probably as good as they're going to get. Also, I've searched through the archives and it seems the only way to trigger the change event, or any event, in the datagrid from the cellrenderer is to have the cellrenderer execute the dispatchEvent method. Is that the only way? It seems a little hackish to me. It does work, but you'd think there would be a mechanism in place to have the cellrenderer tell the datagrid that it wants to update the dataProvider. Any thoughts? Derek Vadneau ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash Developer Wanted in New York City
I hope it is ok to post a job offer in this list. Flash Developer, ActionScript Coder CONDITIONS: - Project-to-project, part-time, and possibly fulltime in the future. - This is a Flash Developer position in an Advertising agency based in New York City, with clients in the Real Estate business. Projects here offer an excellent opportunity for creative programming, since our agency is committed to constant innovation. MUSTS: - Able to produce clean and moderately commented Object-oriented ActionScript 2.0 code, while observing agency standards and general best practices. - Experience building data-driven Flash applications, and custom components. - Extensive experience with data exchange formats such as XML and Flash Remoting, particularly AMFPHP. - Extreme attention to detail. - For consideration, candidate is expected to show and explain code samples, at the time of the interview. DESIRED: - Advertising agency experience. - Sensibility to design aesthetics. - Working knowledge of video streaming technologies, front-end development (PHP, ColdFusion, ASP, JSP, etc.) Only local candidates will be considered. If interested, please forward your resume to Xavier Thomas, Director of Interactive at The 7th Art ([EMAIL PROTECTED] ) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] checking combinations
You can also use: combo=0; if(a){combo+=1000;} if(b){combo+=100;} if(c){combo+=10;} if(d){combo+=1;} Then convert combo to a string and check the character at each position ( charAt(0), charAt(1), etc.) for a one or zero, which will tell you if the associated variable is true or false. -Marc At 10:47 AM 1/25/2006, you wrote: You seem to have something like a 'Round Robin' situation, only more complex as it is not only about pairs, but also about singles/triplets/quadruplets. If each of these possible combinations leads to a different action, the if/else if or switch statement will naturally be very long... To make it quite a bit more readable and thus managable, maybe you could do combo = ''; if ( a ){ combo += 'a'; } if ( b ){ combo += 'b'; } if ( c ){ combo += 'c'; } if ( d ){ combo += 'd'; } switch(combo){ case 'a': // do stuff brek; case 'ab': // do some other stuff break; case 'abc': //etc. } For finding all the 'pairs' see my RoundRobin class below (used to be in the archives, but can't find it anymore) hth -- Andreas Weber motiondraw.com class com.motiondraw.util.RoundRobin{ /* Usage import com.motiondraw.util.RoundRobin numPlayers = 12; // create players players = new Array(); for(var i=0; inumPlayers; i++){ players[i] = String.fromCharCode(65+i); } var rr:RoundRobin = new RoundRobin(players); rr.displaySchedule(); */ public var players:Array; public var schedule:Array; function RoundRobin(players:Array){ init.apply(this, arguments); } function init(players){ this.players = players; var pc = players.slice(0); var n = pc.length; if(n%2){ var odd = true; pc.push('@'); n++; } var nr = n - 1; var r = new Array(); schedule = new Array(); for (var i=0; inr; i++) { r[i] = new Array(); r[i][0] = pc[nr]; for (var j=0; jn-1; j++) { r[i][j+1] = pc[(i+j) % (n-1)]; } } for(var i=0, len=r.length; ilen; i++){ schedule[i] = new Array(); for(var j=0; jnr/2; j++){ if(!(odd j==0)){ schedule[i].push([r[i][j], r[i][nr-j]]); } } } } public function displaySchedule(short:Boolean){ var output = new Array(); for(var i=0, len=schedule.length; ilen; i++){ //trace('--- '+(i+1)+'. round ---'); for(var j=0, len2=schedule[i].length; jlen2; j++){ //trace(' '+j+' '+schedule[i][j][0]+' vs. '+schedule[i][j][1]) output.push(''+schedule[i][j][0]+''+schedule[i][j][1]+''); } } trace(output); trace(output.length); } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of eric dolecki Sent: Wednesday, January 25, 2006 7:03 PM To: Flashcoders mailing list Subject: [Flashcoders] checking combinations I have 4 variables I need to check the states of routinely... and combinations thereof. I am assuming that if I have a counter, and interogate and += them values, I can then check the value of the counter to determine the combinations. psudeo-code: var counter:Number = 0; if ( a ){ counter += 2; } if ( b ){ counter += 3; } if ( c ){ counter += 6; } if ( d ){ counter += 12;} if ( counter == 2 ){ // only a was true } else if ( counter == 3 ){ // only b was true } ... Which is fine, but thats gonna be one honkin' if else statement to catch all the combinations. Is there a better way of doing this that will catch all the possible combinations in an elegant way? - edolecki ___ 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] Cellrenderer confirmation
For the event part, CellRenderers have access to both the cell and list they are in. So, if you do this.listOwner; that's the DataGrid. You can either dispatch events and make them bubble, or dispatch them from the DataGrid's scope; listOwner.dispatchEvent. Additionally, if you want to update the dataProvider's data, easiest way is to use editField. For example, if your cell renderer has a CheckBox in it, in the click event, you could do: var lbl:String = getDataLabel(); var index:Number = getCellIndex().itemIndex; listOwner.editField ( index, lbl, my_ch.selected); - Original Message - From: Derek Vadneau [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, January 25, 2006 2:08 PM Subject: [Flashcoders] Cellrenderer confirmation Hi all, I just want to verify a few things in case I've thought about this incorrectly. I've built three cellrenderer classes for a datagrid. I've got everything working but I'm trying to optimize the classes so things don't get cycled when they don't need to be. Am I correct in assuming that a datagrid (and a list-based component in general) only produces X number of instances of a cellrenderer, where X is the number of VISIBLE rows, as opposed to TOTAL rows? When I scroll, it's as if the rows cycle: 0-6 are visible. Scroll so 7 is visible, but the cellrenderer in row 7 traces out data that was kept in row 0. If that's the case, then you can't store row-specific information in a cellrenderer instance. In which case, my optimizations are probably as good as they're going to get. Also, I've searched through the archives and it seems the only way to trigger the change event, or any event, in the datagrid from the cellrenderer is to have the cellrenderer execute the dispatchEvent method. Is that the only way? It seems a little hackish to me. It does work, but you'd think there would be a mechanism in place to have the cellrenderer tell the datagrid that it wants to update the dataProvider. Any thoughts? Derek Vadneau ___ 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] checking combinations
Well, lets say you have 4 objects that have selected states fired no events on their own. So there are many different possible combinations for the combined states of those 4 objects. Each possible combination triggers an entirely seperate action. Thats a lot of actions to account for. So its all about detecting the unique combinations, and acting upon them. Perhaps there really is no truly elegant way of doing this... On 1/25/06, Merrill, Jason [EMAIL PROTECTED] wrote: Sounds like you're trying to do something like this, but even still your approach seems overly complex. Maybe a more detailed explaination of what you're trying to do and what combinations are would help. Meanwhile, if I understand you, would something like this work? a = false b = false c = true d = true e = true f = false g = true h = false i = false //etc. myArray = [2,3,6,12,34,54,345,45,76,34] vars = [a,b,c,d,e,f,g,h,i,j] counter = 0; counter_arr = []; function checkVars(){ for(i=0; imyArray.length; i++){ if(this[vars[i]]){ counter_arr.push(counter+=myArray[i]) trace(vars[i]+ in vars array is true.); trace(counter is at: +counter); } } } checkVars(); Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Wednesday, January 25, 2006 1:03 PM To: Flashcoders mailing list Subject: [Flashcoders] checking combinations I have 4 variables I need to check the states of routinely... and combinations thereof. I am assuming that if I have a counter, and interogate and += them values, I can then check the value of the counter to determine the combinations. psudeo-code: var counter:Number = 0; if ( a ){ counter += 2; } if ( b ){ counter += 3; } if ( c ){ counter += 6; } if ( d ){ counter += 12;} if ( counter == 2 ){ // only a was true } else if ( counter == 3 ){ // only b was true } ... Which is fine, but thats gonna be one honkin' if else statement to catch all the combinations. Is there a better way of doing this that will catch all the possible combinations in an elegant way? - edolecki ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Q: Best tweening engine for Flash 8 filters
I love these... http://hosted.zeh.com.br/mctween/downloads.html There are F8 filter tweens included. On Jan 25, 2006, at 12:51 PM, [EMAIL PROTECTED] wrote: Hi I was wondering what everyone is using to tween flash filters. The built in tween in Flash, or some third party tweening engine. Thanks in advance Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders 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] checking combinations
Seems to be an ispiring question/problem! Eric - if you'd go with the combo - Strings - these are the 16 possible combinations: ,a,ab,abc,abcd,abd,ac,acd,ad,b,bc,bcd,bd,c,cd,d (first one is an empty string if a b c d are false) I'm not overly proud of how I found the combinations, but sometimes nothing beats brute force :-) arr = ['a','b','c','d']; numElems = arr.length; combos = new Array(); c=0; while(c10){ combo = ''; for(var i=0; inumElems; i++){ if(Math.random() 0.5){ combo += arr[i]; } } inArray = false; for(var i=0, len=combos.length; ilen; i++){ if(combo == combos[i]){ inArray = true; break } } if(!inArray){ combos.push(combo); } c++; } combos.sort(); trace(combos); trace(combos.length); -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Wood Sent: Wednesday, January 25, 2006 8:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations i've got to go out now so cant give the full answer i have in my head, but one way of tackling it is to make each state variable's value a power of 2 a = 1 b = 2 c = 4 d = 8 then you know that any combination of them has a unique value. (its basically a 4 bit number) then to handle the dispatch depending on the state combination you can build a function table. functionTable = new Array(); // create a handler for the combination a + b functionTable[a + b] = Delegate.create(this,combinationAB); and when you check the variables just call the function directly from the table : // a,b,c,d are just passed as boolean flags here function handleUpdate(a:boolean,b:boolean,c:boolean,d:boolean) { // taking advantage of a true being 1 in flash // and ideally you would setup these numbers // as static class variables var state = a + (b * 2) + (c * 4) + (d * 8); // call the defined function functionTable[state](); } of course you could do a check first to see if the function is defined and do something like log a warning or whatever is appropriate for your situation. hope that makes sense. martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Cellrenderer confirmation
I believe the list components calculate the visible space divided by the row height and figure out how many rows to render. Visible being the amount of rows the height and row height of the component will allow - not being total rows in reference to amount of dataprovider items. Not sure that is what you were asking. But you know me D, not always there, but always pretending to be :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Derek Vadneau Sent: Wednesday, January 25, 2006 2:09 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Cellrenderer confirmation Hi all, I just want to verify a few things in case I've thought about this incorrectly. I've built three cellrenderer classes for a datagrid. I've got everything working but I'm trying to optimize the classes so things don't get cycled when they don't need to be. Am I correct in assuming that a datagrid (and a list-based component in general) only produces X number of instances of a cellrenderer, where X is the number of VISIBLE rows, as opposed to TOTAL rows? When I scroll, it's as if the rows cycle: 0-6 are visible. Scroll so 7 is visible, but the cellrenderer in row 7 traces out data that was kept in row 0. If that's the case, then you can't store row-specific information in a cellrenderer instance. In which case, my optimizations are probably as good as they're going to get. Also, I've searched through the archives and it seems the only way to trigger the change event, or any event, in the datagrid from the cellrenderer is to have the cellrenderer execute the dispatchEvent method. Is that the only way? It seems a little hackish to me. It does work, but you'd think there would be a mechanism in place to have the cellrenderer tell the datagrid that it wants to update the dataProvider. Any thoughts? Derek Vadneau ___ 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] Player 8 Statistics
Josh Buhler wrote: Does anybody know where I could find some numbers on Player 8 installs? The most recent info I can find on Flash Player stats on Macromedia.com is from last September, and doesn't include Player 8. The NPD/MediaMetrix consumer audit from December should be up on the website Real Soon Now, and this will be the first audit to have real data. (FP8 was released to the general public in the last days of August, so the mid-September tests were too early for meaningful measure.) http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html I'm not sure whether that page will be updated on, before, or after the Jan 31 analysts meeting, but over the next two weeks I expect a whole lot of talk about the adoption of this new generation of Flash Platform -- the Player consumer engine, the new Flex 2 framework and workflow, the upcoming Adobe technology initiatives. Anecdotally, all Player 8 evidence I've personally seen has been consistent with a faster-than-ever adoption rate, as Brooks noted. I don't think we'll hit 50% consumer viewership in this December audit, but the first three months of public distribution should about match the adoption Windows XP reached during four years of distribution: http://weblogs.macromedia.com/jd/archives/2005/06/enterprise_adop.cfm Sorry I don't have hard data yet, but the above shows what I've seen, and what I expect, if that context is of use to you today. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] checking combinations
I think which each combination being completely unique, i have no other option than a honkin' switch or if/else. Lots of typing but will work. I can work on making it more readable, but thats about it methinks. On 1/25/06, Andreas Weber [EMAIL PROTECTED] wrote: Seems to be an ispiring question/problem! Eric - if you'd go with the combo - Strings - these are the 16 possible combinations: ,a,ab,abc,abcd,abd,ac,acd,ad,b,bc,bcd,bd,c,cd,d (first one is an empty string if a b c d are false) I'm not overly proud of how I found the combinations, but sometimes nothing beats brute force :-) arr = ['a','b','c','d']; numElems = arr.length; combos = new Array(); c=0; while(c10){ combo = ''; for(var i=0; inumElems; i++){ if(Math.random() 0.5){ combo += arr[i]; } } inArray = false; for(var i=0, len=combos.length; ilen; i++){ if(combo == combos[i]){ inArray = true; break } } if(!inArray){ combos.push(combo); } c++; } combos.sort(); trace(combos); trace(combos.length); -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Wood Sent: Wednesday, January 25, 2006 8:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations i've got to go out now so cant give the full answer i have in my head, but one way of tackling it is to make each state variable's value a power of 2 a = 1 b = 2 c = 4 d = 8 then you know that any combination of them has a unique value. (its basically a 4 bit number) then to handle the dispatch depending on the state combination you can build a function table. functionTable = new Array(); // create a handler for the combination a + b functionTable[a + b] = Delegate.create(this,combinationAB); and when you check the variables just call the function directly from the table : // a,b,c,d are just passed as boolean flags here function handleUpdate(a:boolean,b:boolean,c:boolean,d:boolean) { // taking advantage of a true being 1 in flash // and ideally you would setup these numbers // as static class variables var state = a + (b * 2) + (c * 4) + (d * 8); // call the defined function functionTable[state](); } of course you could do a check first to see if the function is defined and do something like log a warning or whatever is appropriate for your situation. hope that makes sense. martin ___ 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] checking combinations
Aren't there 256 possible combinations? Or if one value can be null, then 625? What about dab, cab, bac, da, ca, etc? Or are you saying for the sake simplicity, cab is the same combination as abc and dab the same as abd? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Andreas Weber Sent: Wednesday, January 25, 2006 2:21 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] checking combinations Seems to be an ispiring question/problem! Eric - if you'd go with the combo - Strings - these are the 16 possible combinations: ,a,ab,abc,abcd,abd,ac,acd,ad,b,bc,bcd,bd,c,cd,d (first one is an empty string if a b c d are false) I'm not overly proud of how I found the combinations, but sometimes nothing beats brute force :-) arr = ['a','b','c','d']; numElems = arr.length; combos = new Array(); c=0; while(c10){ combo = ''; for(var i=0; inumElems; i++){ if(Math.random() 0.5){ combo += arr[i]; } } inArray = false; for(var i=0, len=combos.length; ilen; i++){ if(combo == combos[i]){ inArray = true; break } } if(!inArray){ combos.push(combo); } c++; } combos.sort(); trace(combos); trace(combos.length); -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Wood Sent: Wednesday, January 25, 2006 8:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations i've got to go out now so cant give the full answer i have in my head, but one way of tackling it is to make each state variable's value a power of 2 a = 1 b = 2 c = 4 d = 8 then you know that any combination of them has a unique value. (its basically a 4 bit number) then to handle the dispatch depending on the state combination you can build a function table. functionTable = new Array(); // create a handler for the combination a + b functionTable[a + b] = Delegate.create(this,combinationAB); and when you check the variables just call the function directly from the table : // a,b,c,d are just passed as boolean flags here function handleUpdate(a:boolean,b:boolean,c:boolean,d:boolean) { // taking advantage of a true being 1 in flash // and ideally you would setup these numbers // as static class variables var state = a + (b * 2) + (c * 4) + (d * 8); // call the defined function functionTable[state](); } of course you could do a check first to see if the function is defined and do something like log a warning or whatever is appropriate for your situation. hope that makes sense. martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 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] checking combinations
dab, abd, adb, bda, dba, ... all the same combination. On 1/25/06, Merrill, Jason [EMAIL PROTECTED] wrote: Aren't there 256 possible combinations? Or if one value can be null, then 625? What about dab, cab, bac, da, ca, etc? Or are you saying for the sake simplicity, cab is the same combination as abc and dab the same as abd? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Andreas Weber Sent: Wednesday, January 25, 2006 2:21 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] checking combinations Seems to be an ispiring question/problem! Eric - if you'd go with the combo - Strings - these are the 16 possible combinations: ,a,ab,abc,abcd,abd,ac,acd,ad,b,bc,bcd,bd,c,cd,d (first one is an empty string if a b c d are false) I'm not overly proud of how I found the combinations, but sometimes nothing beats brute force :-) arr = ['a','b','c','d']; numElems = arr.length; combos = new Array(); c=0; while(c10){ combo = ''; for(var i=0; inumElems; i++){ if(Math.random() 0.5){ combo += arr[i]; } } inArray = false; for(var i=0, len=combos.length; ilen; i++){ if(combo == combos[i]){ inArray = true; break } } if(!inArray){ combos.push(combo); } c++; } combos.sort(); trace(combos); trace(combos.length); -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Wood Sent: Wednesday, January 25, 2006 8:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations i've got to go out now so cant give the full answer i have in my head, but one way of tackling it is to make each state variable's value a power of 2 a = 1 b = 2 c = 4 d = 8 then you know that any combination of them has a unique value. (its basically a 4 bit number) then to handle the dispatch depending on the state combination you can build a function table. functionTable = new Array(); // create a handler for the combination a + b functionTable[a + b] = Delegate.create(this,combinationAB); and when you check the variables just call the function directly from the table : // a,b,c,d are just passed as boolean flags here function handleUpdate(a:boolean,b:boolean,c:boolean,d:boolean) { // taking advantage of a true being 1 in flash // and ideally you would setup these numbers // as static class variables var state = a + (b * 2) + (c * 4) + (d * 8); // call the defined function functionTable[state](); } of course you could do a check first to see if the function is defined and do something like log a warning or whatever is appropriate for your situation. hope that makes sense. martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Q: Best tweening engine for Flash 8 filters
mc_tween2 is indeed very handy. - edolecki On 1/25/06, Gerry Creighton [EMAIL PROTECTED] wrote: I love these... http://hosted.zeh.com.br/mctween/downloads.html There are F8 filter tweens included. On Jan 25, 2006, at 12:51 PM, [EMAIL PROTECTED] wrote: Hi I was wondering what everyone is using to tween flash filters. The built in tween in Flash, or some third party tweening engine. Thanks in advance Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders 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] checking combinations
Well, if only 16 possibilities, then just use a switch statement (not an if-else - too hairy IMO) Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Wednesday, January 25, 2006 2:50 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations dab, abd, adb, bda, dba, ... all the same combination. On 1/25/06, Merrill, Jason [EMAIL PROTECTED] wrote: Aren't there 256 possible combinations? Or if one value can be null, then 625? What about dab, cab, bac, da, ca, etc? Or are you saying for the sake simplicity, cab is the same combination as abc and dab the same as abd? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Andreas Weber Sent: Wednesday, January 25, 2006 2:21 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] checking combinations Seems to be an ispiring question/problem! Eric - if you'd go with the combo - Strings - these are the 16 possible combinations: ,a,ab,abc,abcd,abd,ac,acd,ad,b,bc,bcd,bd,c,cd,d (first one is an empty string if a b c d are false) I'm not overly proud of how I found the combinations, but sometimes nothing beats brute force :-) arr = ['a','b','c','d']; numElems = arr.length; combos = new Array(); c=0; while(c10){ combo = ''; for(var i=0; inumElems; i++){ if(Math.random() 0.5){ combo += arr[i]; } } inArray = false; for(var i=0, len=combos.length; ilen; i++){ if(combo == combos[i]){ inArray = true; break } } if(!inArray){ combos.push(combo); } c++; } combos.sort(); trace(combos); trace(combos.length); -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Wood Sent: Wednesday, January 25, 2006 8:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations i've got to go out now so cant give the full answer i have in my head, but one way of tackling it is to make each state variable's value a power of 2 a = 1 b = 2 c = 4 d = 8 then you know that any combination of them has a unique value. (its basically a 4 bit number) then to handle the dispatch depending on the state combination you can build a function table. functionTable = new Array(); // create a handler for the combination a + b functionTable[a + b] = Delegate.create(this,combinationAB); and when you check the variables just call the function directly from the table : // a,b,c,d are just passed as boolean flags here function handleUpdate(a:boolean,b:boolean,c:boolean,d:boolean) { // taking advantage of a true being 1 in flash // and ideally you would setup these numbers // as static class variables var state = a + (b * 2) + (c * 4) + (d * 8); // call the defined function functionTable[state](); } of course you could do a check first to see if the function is defined and do something like log a warning or whatever is appropriate for your situation. hope that makes sense. martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 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 ___ 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] checking combinations
What about something like this: var results:Array = [ a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p ]; function getResult( value1:Boolean, value2:Boolean, value3:Boolean, value4:Boolean ):Number { var resultIndex:Number = 0; if( value1 ) resultIndex |= 8; if( value2 ) resultIndex |= 4; if( value3 ) resultIndex |= 2; if( value4 ) resultIndex |= 1; return results[ resultIndex ]; } trace( getResult( true, true, false, true) ); /* Results Table value1 value2 value3 value4 Results 0 0 0 0 a 0 0 0 1 b 0 0 1 0 c 0 0 1 1 d 0 1 0 0 e 0 1 0 1 f 0 1 1 0 g 0 1 1 1 h 1 0 0 0 i 1 0 0 1 j 1 0 1 0 k 1 0 1 1 l 1 1 0 0 m 1 1 0 1 n 1 1 1 0 o 1 1 1 1 p */ On 1/25/06, eric dolecki [EMAIL PROTECTED] wrote: I have 4 variables I need to check the states of routinely... and combinations thereof. -- Daniel Cascais Tel: +56 (0)2 4589495 Cel: +56 (0)9 9417355 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Cellrenderer confirmation
Thanks Jesse. What do you mean by make the events bubble? I know I can do listOwner.dispatchEvent - it's what I'm doing now - but is there a better way than accessing the listOwner? By better I mean accessing the listOwner's method feels wrong somehow ... I tried using editField but it causes all items in the list to get updated, or at least all cellrenderers get their setValue called. Instead, I'm accessing listOwner.getItemAt(getCellIndex().itemIndex)[getDataLabel()] to write values. Then I'm triggering the change event through dispatchEvent. That works and avoids the multiple calls to setValue. Do you see any issues with that? Derek Vadneau - Original Message - From: JesterXL [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, January 25, 2006 2:15 PM Subject: Re: [Flashcoders] Cellrenderer confirmation For the event part, CellRenderers have access to both the cell and list they are in. So, if you do this.listOwner; that's the DataGrid. You can either dispatch events and make them bubble, or dispatch them from the DataGrid's scope; listOwner.dispatchEvent. Additionally, if you want to update the dataProvider's data, easiest way is to use editField. For example, if your cell renderer has a CheckBox in it, in the click event, you could do: var lbl:String = getDataLabel(); var index:Number = getCellIndex().itemIndex; listOwner.editField ( index, lbl, my_ch.selected); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] checking combinations
Thats interesting. A bit more involved than what I was doing but it is indeed interesting. On 1/25/06, Daniel Cascais [EMAIL PROTECTED] wrote: What about something like this: var results:Array = [ a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p ]; function getResult( value1:Boolean, value2:Boolean, value3:Boolean, value4:Boolean ):Number { var resultIndex:Number = 0; if( value1 ) resultIndex |= 8; if( value2 ) resultIndex |= 4; if( value3 ) resultIndex |= 2; if( value4 ) resultIndex |= 1; return results[ resultIndex ]; } trace( getResult( true, true, false, true) ); /* Results Table value1 value2 value3 value4 Results 0 0 0 0 a 0 0 0 1 b 0 0 1 0 c 0 0 1 1 d 0 1 0 0 e 0 1 0 1 f 0 1 1 0 g 0 1 1 1 h 1 0 0 0 i 1 0 0 1 j 1 0 1 0 k 1 0 1 1 l 1 1 0 0 m 1 1 0 1 n 1 1 1 0 o 1 1 1 1 p */ On 1/25/06, eric dolecki [EMAIL PROTECTED] wrote: I have 4 variables I need to check the states of routinely... and combinations thereof. -- Daniel Cascais Tel: +56 (0)2 4589495 Cel: +56 (0)9 9417355 ___ 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] checking combinations
I guess a switch is a little nicer to look at. On 1/25/06, Merrill, Jason [EMAIL PROTECTED] wrote: Well, if only 16 possibilities, then just use a switch statement (not an if-else - too hairy IMO) Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Wednesday, January 25, 2006 2:50 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations dab, abd, adb, bda, dba, ... all the same combination. On 1/25/06, Merrill, Jason [EMAIL PROTECTED] wrote: Aren't there 256 possible combinations? Or if one value can be null, then 625? What about dab, cab, bac, da, ca, etc? Or are you saying for the sake simplicity, cab is the same combination as abc and dab the same as abd? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Andreas Weber Sent: Wednesday, January 25, 2006 2:21 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] checking combinations Seems to be an ispiring question/problem! Eric - if you'd go with the combo - Strings - these are the 16 possible combinations: ,a,ab,abc,abcd,abd,ac,acd,ad,b,bc,bcd,bd,c,cd,d (first one is an empty string if a b c d are false) I'm not overly proud of how I found the combinations, but sometimes nothing beats brute force :-) arr = ['a','b','c','d']; numElems = arr.length; combos = new Array(); c=0; while(c10){ combo = ''; for(var i=0; inumElems; i++){ if(Math.random() 0.5){ combo += arr[i]; } } inArray = false; for(var i=0, len=combos.length; ilen; i++){ if(combo == combos[i]){ inArray = true; break } } if(!inArray){ combos.push(combo); } c++; } combos.sort(); trace(combos); trace(combos.length); -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Wood Sent: Wednesday, January 25, 2006 8:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations i've got to go out now so cant give the full answer i have in my head, but one way of tackling it is to make each state variable's value a power of 2 a = 1 b = 2 c = 4 d = 8 then you know that any combination of them has a unique value. (its basically a 4 bit number) then to handle the dispatch depending on the state combination you can build a function table. functionTable = new Array(); // create a handler for the combination a + b functionTable[a + b] = Delegate.create(this,combinationAB); and when you check the variables just call the function directly from the table : // a,b,c,d are just passed as boolean flags here function handleUpdate(a:boolean,b:boolean,c:boolean,d:boolean) { // taking advantage of a true being 1 in flash // and ideally you would setup these numbers // as static class variables var state = a + (b * 2) + (c * 4) + (d * 8); // call the defined function functionTable[state](); } of course you could do a check first to see if the function is defined and do something like log a warning or whatever is appropriate for your situation. hope that makes sense. martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 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 ___ 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] checking combinations
The return type should really be String in this case function getResult( value1:Boolean, value2:Boolean, value3:Boolean, value4:Boolean ):String On 1/25/06, eric dolecki [EMAIL PROTECTED] wrote: Thats interesting. A bit more involved than what I was doing but it is indeed interesting. -- Daniel Cascais Tel: +56 (0)2 4589495 Cel: +56 (0)9 9417355 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Player 8 Statistics
Thanks for the info. I was able to pull together some info just from the page stats that we have setup for various clients, I was just looking for some official numbers. The numbers didn't really matter in the meeting with clients though - once we showed them the benefits 8 would bring (in this case, video quality), and the Express Install, player stats were a non-issue. They decided to go with 8 . - Josh On Jan 25, 2006, at 12:34 PM, John Dowdell wrote: Josh Buhler wrote: Does anybody know where I could find some numbers on Player 8 installs? The most recent info I can find on Flash Player stats on Macromedia.com is from last September, and doesn't include Player 8. The NPD/MediaMetrix consumer audit from December should be up on the website Real Soon Now, and this will be the first audit to have real data. (FP8 was released to the general public in the last days of August, so the mid-September tests were too early for meaningful measure.) http://www.macromedia.com/software/player_census/flashplayer/ version_penetration.html I'm not sure whether that page will be updated on, before, or after the Jan 31 analysts meeting, but over the next two weeks I expect a whole lot of talk about the adoption of this new generation of Flash Platform -- the Player consumer engine, the new Flex 2 framework and workflow, the upcoming Adobe technology initiatives. Anecdotally, all Player 8 evidence I've personally seen has been consistent with a faster-than-ever adoption rate, as Brooks noted. I don't think we'll hit 50% consumer viewership in this December audit, but the first three months of public distribution should about match the adoption Windows XP reached during four years of distribution: http://weblogs.macromedia.com/jd/archives/2005/06/enterprise_adop.cfm Sorry I don't have hard data yet, but the above shows what I've seen, and what I expect, if that context is of use to you today. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Cellrenderer confirmation
listOwner was put there for the explicit purpose of getting a reference to the grid. Otherwise, you'd do some insane monkey-swing to walk your way up the timeline via cell... if you didn't have cell, replace with _parent._parent, blah blah blah. This isn't AS3 bro, hehe! Besides, it's documented and in the API, so its' legal and was put there for this exclpicit purpose. Well yeah, I do actually. editField: editField(someValue, 2, newValue); basically does this behind the scenes: dataProvider[2][someValue] = newValue; modelChanged(); And, since modelChanged is only actually sent once per frame, there is no point in you handling the invalidation; it already does this for you. So, setValue could run 50 million times, and all Views associated with that dataProvider are only updated once per frame. If you are not using editField, and are accessing the dataProvider array directly, then yes, you have to manually call modelChanged. Of course, even if you call it once or 50 billion times, it still only gets updated visually once. - Original Message - From: Derek Vadneau [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, January 25, 2006 3:08 PM Subject: Re: [Flashcoders] Cellrenderer confirmation Thanks Jesse. What do you mean by make the events bubble? I know I can do listOwner.dispatchEvent - it's what I'm doing now - but is there a better way than accessing the listOwner? By better I mean accessing the listOwner's method feels wrong somehow ... I tried using editField but it causes all items in the list to get updated, or at least all cellrenderers get their setValue called. Instead, I'm accessing listOwner.getItemAt(getCellIndex().itemIndex)[getDataLabel()] to write values. Then I'm triggering the change event through dispatchEvent. That works and avoids the multiple calls to setValue. Do you see any issues with that? Derek Vadneau - Original Message - From: JesterXL [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, January 25, 2006 2:15 PM Subject: Re: [Flashcoders] Cellrenderer confirmation For the event part, CellRenderers have access to both the cell and list they are in. So, if you do this.listOwner; that's the DataGrid. You can either dispatch events and make them bubble, or dispatch them from the DataGrid's scope; listOwner.dispatchEvent. Additionally, if you want to update the dataProvider's data, easiest way is to use editField. For example, if your cell renderer has a CheckBox in it, in the click event, you could do: var lbl:String = getDataLabel(); var index:Number = getCellIndex().itemIndex; listOwner.editField ( index, lbl, my_ch.selected); ___ 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] Player 8 Statistics
Josh Buhler wrote: The numbers didn't really matter in the meeting with clients though - once we showed them the benefits 8 would bring (in this case, video quality), and the Express Install, player stats were a non-issue. They decided to go with 8 . Cool, glad to hear it's smooth, thanks for the followup. :) jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] checking combinations
I guess I must be missing something here - I still don't understand the advantage of 'encoding' the conditions as numbers. As I see it, there is no way around evaluating 16 conditions. We can either make this transparent or we can 'elegantly' hide it behind numbers - which we'll have to comment heavily to 'decode' the meaning of the numbers and to make the code readable for humans. It's about reacting to the possible combinations of 4 different events, right? Let's say the events are 'Inited','Clicked','Bedazzeled','Dragged'. We could now just do this: // When event 'Inited' is dispatched, set the flag Inited to true, etc. combo = ''; if(events[i]){ combo += 'Inited';} if(events[i]){ combo += 'Clicked';} if(events[i]){ combo += 'Bedazzeled';} if(events[i]){ combo += 'Dragged';} switch(combo){ case : //do stuff here break; case Bedazzeled: //do stuff here break; case BedazzeledDragged: //do stuff here break; case Clicked: //do stuff here break; case ClickedBedazzeled: //do stuff here break; case ClickedBedazzeledDragged: //do stuff here break; case ClickedDragged: //do stuff here break; case Dragged: //do stuff here break; case Inited: //do stuff here break; case InitedBedazzeled: //do stuff here break; case InitedBedazzeledDragged: //do stuff here break; case InitedClicked: //do stuff here break; case InitedClickedBedazzeled: //do stuff here break; case InitedClickedBedazzeledDragged: //do stuff here break; case InitedClickedDragged: //do stuff here break; case InitedDragged: //do stuff here break; } //-- - Imo this is a very readable solution - no comments needed to explain what the code is doing. Above code is generated and traced to the Output window with this: events = ['Inited','Clicked','Bedazzeled','Dragged']; numElems = events.length; combos = new Array(); // find the combinations c=0; while(cnumElems*numElems){ combo = ''; for(var i=0; inumElems; i++){ if(Math.random() 0.5){ combo += events[i]; } } inArray = false; for(var i=0, len=combos.length; ilen; i++){ if(combo == combos[i]){ inArray = true; break } } if(!inArray){ combos[c++] = combo; } } combos.sort(); // write the code for copy/paste from the output window trace(// When event '+ events[0]+' is dispatched, set the flag +events[0]+ to true, etc.); trace(combo = '';); for(var i=0, len=events.length; ilen; i++){ trace(if(events[i]){ combo += '+events[i]+';}); } trace('\nswitch(combo){'); // write the switch statement for(var i=0, len=combos.length; ilen; i++){ trace('\n case '+combos[i]+':'); trace(' //do stuff here'); trace(' break;'); } trace('}'); Just overwrite the 'events' Array to accommodate your needs. hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Mittwoch, 25. Januar 2006 21:17 To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations Thats interesting. A bit more involved than what I was doing but it is indeed interesting. On 1/25/06, Daniel Cascais [EMAIL PROTECTED] wrote: What about something like this: var results:Array = [ a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p ]; function getResult( value1:Boolean, value2:Boolean, value3:Boolean, value4:Boolean ):Number { var resultIndex:Number = 0; if( value1 ) resultIndex |= 8; if( value2 ) resultIndex |= 4; if( value3 ) resultIndex |= 2; if( value4 ) resultIndex |= 1; return results[ resultIndex ]; } trace( getResult( true, true, false, true) ); /* Results Table value1 value2 value3 value4 Results 0 0 0 0 a 0 0 0 1 b 0 0 1 0 c 0 0 1 1 d 0 1 0 0 e 0 1 0 1 f 0 1 1 0 g 0 1 1 1 h 1 0 0 0 i 1 0 0 1 j 1 0
Re: SV: SV: [Flashcoders] Microsoft Sparkle
i've read specs, watched demonstrations, i've TRIED to be excited, but all i can tell is that it's another proprietary tech trying to cash in on a growing market. Which specs did you read and which demos did you watch? Certainly not the same ones I've read and watched. First of all Sparkle doesn't even play the same *sport* as Flash, let alone in the same field. The uses of Sparkle in the browser will be next to nil for at least several years. The few uses it has in a browser will be reserved for special purpose, controlled enviornment applications, and are in no way a threat to Flash. So I guess I don't know where any of this rant comes from. Sparkle is awesome. It is a major step in the right direction in terms of workflow improvement and abstraction of display (view, presentation, whatever) layer code. It has little to nothing to do with the web right now. It has to do with building user interfaces for applications that will run on Longhorn. Yes, it's properietary. So is Windows. Get over it and find something meaningful to argue about. Oh, and your rant about forcing people to use PC hardware, WTF? What platform *doesn't* use PC hardware these days? ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: SV: SV: [Flashcoders] Microsoft Sparkle
Oh, and your rant about forcing people to use PC hardware, WTF? What platform *doesn't* use PC hardware these days? you mean intel chips? or the usual pc architecture? things like phones and other mobile devices, non microsoft gaming platforms for example. anyway, its a sparkle thread again, im a bad boy for even joining in. maybe a new list 'sparkleflames' is in order. :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] afm parser?
Is there an adobe afm file parser implemented in actionscript thats open? This dude: http://www.teknoel.com/show/?file=/theory/metrics/ has written one it seems but I don't think hes sharing. DK ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: SV: SV: [Flashcoders] Microsoft Sparkle
you mean intel chips? or the usual pc architecture? things like phones and other mobile devices, non microsoft gaming platforms for example. I don't know, he said it, I was just responding to it. The quote was: As long as they use their tools, and make their customers conform to PC hardware. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Looking for RIA Sample featured in MM(AB)
I think so Would you happen to have a link by any chance? thx ...helmut -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stacey Mulcahy Sent: Wednesday, January 25, 2006 5:07 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Looking for RIA Sample featured in MM(AB) The HP one? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Wednesday, January 25, 2006 4:05 PM To: Flashcoders mailing list Subject: [Flashcoders] Looking for RIA Sample featured in MM(AB) Hello all, I am looking for a RIA that was featured in the Macromedia site while back where it showcase an application created for (I believe) Central where the user would call a main office to make a last minute purchase of Servers and the Sales Rep would do couple of phone calls and everything was being updated online as well as the delivery reps PDAs. Does anyone remembers that Demo/Showcase? I have been looking in MM for a while but I cant find it. TIA Helmut. ___ 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] Junior Flash Programmer Needed (NYC)
Junior Flash Programmer Needed. This job is full-time. Part-time and contract will not be considered. Requirements: - Bachelors degree in Computer Science or related degree - Must have experience with Flash 8 MX 2004 - Must know how to program using Actionscript 2.0 - An understanding of OOP - Excellent communication organization skills - Ability to learn quickly in a fast paced environment. - Familiar with XHTML, CSS (no WYSIWYG) - Knowledge of XML Pluses: - Experience with Video (FLV) - Knowledge of other languages such as ASP.NET, Java, and Javascript Job Description: SciMedMedia is seeking a junior flash programmer to help with the creation of our pharmaceutical applications. Job will include organizing and processing data for our pre-built applications; including debugging, upgrading, and maintaining each disk. Applicant should be a team player, be very well organized and be able to work in a fast paced environment. If you are looking to gain solid work experience with Flash, this is the job for you. Recent college graduates are strongly encouraged to apply. If interested, please send all responses to Lori R Hutchek, Director of Multimedia Development ([EMAIL PROTECTED]) Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Line optimization
Does anyone know where I can find code or equations for the line optimization of curves? I'm looking for something similar to the way the Flash Authoring Environment implements Modify Shape Smooth, Modify Shape Straighten, and Modify Shape Optimize. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Line optimization
An implementation of Lang Simplification and McMaster's Slide Averaging Algorithm: http://motiondraw.com/md/as_samples/t/LineGeneralization/demo.html hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Brown Sent: Donnerstag, 26. Januar 2006 02:16 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Line optimization Does anyone know where I can find code or equations for the line optimization of curves? I'm looking for something similar to the way the Flash Authoring Environment implements Modify Shape Smooth, Modify Shape Straighten, and Modify Shape Optimize. ___ 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] checking combinations
Perhaps I'm missing something, but IMO bitwise switch is best approach here. I'd say, it looks like a classical case for it (like user rights etc :-). So, 1) map abcd to binary number: - all are false, - all are true, 1100 - a,b are true while c,d false. 2) convert to digital: -0, -15, 1100-3 and so on 3) checking is done, use some function to process if needed 4) in case you consider abc, cba and bca as different combinations (which makes sense only if they all are true), I can suggest use a pattern number/string for positions/order: 1234 means abcd, 2341 means bcda. Combining this with 1-2 points for normal order (abcd) will cover all combinations. Hope this can help. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. On 1/25/06, eric dolecki [EMAIL PROTECTED] wrote: I have 4 variables I need to check the states of routinely... and combinations thereof. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strange text scaling issue
Are these TF static or dynamic? Check if you've embedded fonts. Probably text fields that behave properly are either static or with fonts embedded, and ones strange are dynamic w/o embedded fonts. If so, with emb. fonts they are rendered as vector shapes (espesially when embedFonts=true). I've tried embedded, non-embedded and Flash fonts, and I've tried static and dynamic text. So far it's all the same: looks like a movie-wide issue. Thanks Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] checking combinations
What he said :) Without kidding, using the binary type of variable values and checking what the resulting value is, is the way we do it. Don't ask me how it works, but it does :) (just to help pointing in the right direction) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Wood Sent: woensdag 25 januari 2006 20:05 To: Flashcoders mailing list Subject: Re: [Flashcoders] checking combinations i've got to go out now so cant give the full answer i have in my head, but one way of tackling it is to make each state variable's value a power of 2 a = 1 b = 2 c = 4 d = 8 then you know that any combination of them has a unique value. (its basically a 4 bit number) then to handle the dispatch depending on the state combination you can build a function table. functionTable = new Array(); // create a handler for the combination a + b functionTable[a + b] = Delegate.create(this,combinationAB); and when you check the variables just call the function directly from the table : // a,b,c,d are just passed as boolean flags here function handleUpdate(a:boolean,b:boolean,c:boolean,d:boolean) { // taking advantage of a true being 1 in flash // and ideally you would setup these numbers // as static class variables var state = a + (b * 2) + (c * 4) + (d * 8); // call the defined function functionTable[state](); } of course you could do a check first to see if the function is defined and do something like log a warning or whatever is appropriate for your situation. hope that makes sense. martin eric dolecki wrote: I have 4 variables I need to check the states of routinely... and combinations thereof. I am assuming that if I have a counter, and interogate and += them values, I can then check the value of the counter to determine the combinations. psudeo-code: var counter:Number = 0; if ( a ){ counter += 2; } if ( b ){ counter += 3; } if ( c ){ counter += 6; } if ( d ){ counter += 12;} if ( counter == 2 ){ // only a was true } else if ( counter == 3 ){ // only b was true } ... Which is fine, but thats gonna be one honkin' if else statement to catch all the combinations. Is there a better way of doing this that will catch all the possible combinations in an elegant way? - edolecki ___ 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] checking combinations
Ok, ok I'm clearly outnumbered here - waving white flag :-) And the approach Daniel demonstraded (similar to what Martin outlined) is indeed very elegant and succint. When the actions to take (depending on which combination 'is the case') are rather complex, requiring several lines of code, imo the immediately readable 'string-based' switch still has its merits in terms of readability/managability, but I won't insist - up to Eric to pick the one that best matches the needs of his project. Cheers! -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Smeets Sent: Thursday, January 26, 2006 8:19 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] checking combinations What he said :) Without kidding, using the binary type of variable values and checking what the resulting value is, is the way we do it. Don't ask me how it works, but it does :) (just to help pointing in the right direction) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Q: Best tweening engine for Flash 8 filters
The most up-to-date regarding to tweens and filtering tweens are this one: http://www.mosessupposes.com/Fuse/ It is great. I love it mostly because it is non-prototyped (well, you can turn the prototype-methods on as an option though) I would believe this is the best tween engine that exists for now. Although it is still under development and improvements I would guess. But it is great already now! Zeh's engine WAS the greatest, and then Laco made an own version of his code to suit the AS2 when it came. And now Mosessupposes has taken it to the next step. / martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: den 25 januari 2006 19:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] Q: Best tweening engine for Flash 8 filters I was wondering what everyone is using to tween flash filters. The built in tween in Flash, or some third party tweening engine. You can use the built-in tweening classes to tween filters, but you have to work around the way the filters work (ie, you can't *change* a filter property.. you have to clone it, modify it then re-apply it). In the end, it's just a wrap-around. Personally I've been using my own tweening extensions for that: http://hosted.zeh.com.br/mctween/doc_blurto.html They're prototype-based (although they work with AS2) and they don't work for all filters though (only blurring, glowing, beveling). Also, Moses Gunesch has added filter support to the Fuse Kit, so it might be worth checking out: http://www.mosessupposes.com/Fuse/ Check the documentation for 1.1, where it's mentioned. - zeh ___ 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] Q: Best tweening engine for Flash 8 filters
If you only need to tween filters, you can take a look at the Filter Managing Prototypes german project (http://www.flash-fmp.de). AFAIK, it's in the process of beeing integrated in Fuse by Moses. Julien [EMAIL PROTECTED] a écrit : Hi I was wondering what everyone is using to tween flash filters. The built in tween in Flash, or some third party tweening engine. Thanks in advance Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders 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