Re: [Flashcoders] Excel Exponentiation (caret) Notation
Thanks Gregg! On 7/9/07, g. wygonik [EMAIL PROTECTED] wrote: hey daniel i think that means that you have three arrays of the B1:B7 Math.pow() series, with each array being a different value in the curly-bracketed list. That is: B1:B7^{1,2,3} becomes var myArray1 = [ Math.pow(B1,1),...,Math.pow(B7,1)]; var myArray2 = [Math.pow(B1,2),...,Math.pow(B7,2)]; var myArray3 = [Math.pow(B1,3),...,Math.pow(B7,3)]; B1:B7^{5,10} becomes var myArray1 = [Math.pow(B1,5),...,Math.pow (B7,5)]; var myArray2 = [Math.pow(B1,10),...,Math.pow(B7,10)]; and so on hth g. On 7/1/07, Daniel Cascais [EMAIL PROTECTED] wrote: Hi, Hi, I've stumbled upon this function call in Excel: =LINEST(A1:A7,B1:B7^{1,2,3}) And I'm having issues with this last bit: B1:B7^{1,2,3} Let's say B1:B7 is an array from 1 to 7 considering this Excel notation: B1:B7 It would look like this in ActionScript: var n1:Number = 1; var n2:Number = 2; var n3:Number = 3; var n4:Number = 4; var n5:Number = 5; var n6:Number = 6; var n7:Number = 7; var myArray:Array = [n1, n2, n3, n4, n5, n6, n7]; Now, if I change this, considering the following Excel notation: B1:B7^2 It would look like this ActionScript: var n1:Number = Math.pow(1, 2); var n2:Number = Math.pow(2, 2); var n3:Number = Math.pow(3, 2); var n4:Number = Math.pow(4, 2); var n5:Number = Math.pow(5, 2); var n6:Number = Math.pow(6, 2); var n7:Number = Math.pow(7, 2); var myArray:Array = [n1, n2, n3, n4, n5, n6, n7]; But what on earth happens to the array with this Excel notation??? B1:B7^{1,2,3} --Daniel -- weblog: broadcast.artificialcolors.com blazePDF: www.blazepdf.com band: www.cutratebox.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Excel Exponentiation (caret) Notation
Hi, Hi, I've stumbled upon this function call in Excel: =LINEST(A1:A7,B1:B7^{1,2,3}) And I'm having issues with this last bit: B1:B7^{1,2,3} Let's say B1:B7 is an array from 1 to 7 considering this Excel notation: B1:B7 It would look like this in ActionScript: var n1:Number = 1; var n2:Number = 2; var n3:Number = 3; var n4:Number = 4; var n5:Number = 5; var n6:Number = 6; var n7:Number = 7; var myArray:Array = [n1, n2, n3, n4, n5, n6, n7]; Now, if I change this, considering the following Excel notation: B1:B7^2 It would look like this ActionScript: var n1:Number = Math.pow(1, 2); var n2:Number = Math.pow(2, 2); var n3:Number = Math.pow(3, 2); var n4:Number = Math.pow(4, 2); var n5:Number = Math.pow(5, 2); var n6:Number = Math.pow(6, 2); var n7:Number = Math.pow(7, 2); var myArray:Array = [n1, n2, n3, n4, n5, n6, n7]; But what on earth happens to the array with this Excel notation??? B1:B7^{1,2,3} --Daniel ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] BitmapData manipulation. Mirror effect.
What I need to do is to make a mirror image of the BitmapData and leave is as one single BitmabData. Hi Claudia, I did something similar in AS3, but I'm quite sure you can use it for your needs too. In your case, it would look something like this: //--- var mirrorMatrix : Matrix = new Matrix( -1, 0, 0, 1, 50, 0 ); var imageMirror : BitmapData = new BitmapData( 50, 100 ); imageMirror.draw( image, mirrorMatrix ); image.copyPixels( imageMirror, new Rectangle( 0, 0, 50, 100 ), new Point( 50, 0 ) ); owner.addChild( new Bitmap( image ) ); //--- Daniel Cascais ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Accepting 1 parameter with 2 possible types in a method?
you could try this: private function myMethod( i:Object ):Void On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote: Hi List, What's the neatest way of accepting a single parameter with 2 possible types into a method and then working out what type of parameter has been passed? e.g. in pseudo code private function myMethod( i:Number/String ):Void { if ( i is a String ) { // do this } else if ( i is a Number ) { // do this } } I can think of several alternatives : - passing a generic object which contains the property and then using typeof on that property - calling 2 different methods but, in this case, it just makes sense to be one since it's doing the same thing with either parameter (retrieving a bit of data from an Array which may be identified using a numerical id or a String ID) - limiting my method to accepting a String only and then defining a second method that returns the correspoding String identifier given a numerical identifier All of the ways I can think of seem dirty. Is there a nice clean way or is it wrong to expect the method to accept one parameter of different types? Thanks in advance, Adrian P. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Daniel Cascais Tel: +56 (0)2 4589495 Cel: +56 (0)9 9417355 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash coders content degrading
Some FlashCoders might be moving over to FlexCoders, where they can talk about ActionScript 3... On 6/12/06, Mike Mountain [EMAIL PROTECTED] wrote: Dunno if its me skilling up (which I doubt) but it would seem a lot of the posts flash coders are getting now would be better suited in: Flashnewbie: http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie We seem to be getting a lot of basic questions and the list seems to have lost some of its bleeding edge status. Anyone else sense this change in the force? It would seem a lot of the big guns have moved on - so the question is where is the next list up? Has everyone moved over to: OSFlash: http://osflash.org/mailman/listinfo/osflash_osflash.org What's the traffic/quality ratio there like? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flex list
Flexcoders www.flexcoders.org On 5/23/06, John Grden [EMAIL PROTECTED] wrote: what's the main list people are using for Flex discussion? Thanks for the help, -- John Grden - Blitz ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Falling leafs
I've seen a lot of apps like this, very popular in christmas time (with falling snow) I'm sure Robert Penner has an example somewhere. You can also try Ultrashock.com. On 4/3/06, Eskil Janson [EMAIL PROTECTED] wrote: Hi! I have a customer who wants falling leafs or herbs (small jpg:s ) to fall in the foreground of a larger picture. Anyone who has done this, and fells like sharing a few lines? I don't really need advice on how to solve the problems involved, think I could figure something out, but i feel lazy, and not in the mood of reinventing the weel... thanks /Eskil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Architecture opinion...
I think you could use something like the example I had posted some time ago. It uses the technique Scott is mentioning. http://chattyfig.figleaf.com/pipermail/flashcoders/2006-January/158404.html ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Load centered images in movie clip - Heeelp!
Try using a MovieClipLoader and then wait for the onLoadInit event, after that you can set the x and y based on the width and height. Daniel ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] How do you code your Flash applications?
getNextHighestDepth()+10*152/36%23*Math.random()*362; LOL ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Any one can explain about Flash media server
You can have a look at these samples here, they might be inspiring for your application. http://www.macromedia.com/devnet/flashmediaserver/sample_apps.html You should also have a look at the tutorials and info in macromedia's site which are pretty good. Daniel On 2/4/06, hidayath q [EMAIL PROTECTED] wrote: Hi guyz, I want to know about the Flash media server and how to create and small application using it. S.Hidayath ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do you code your Flash applications?
I completely agree with what Ryan says, but if you still want to use getNextHighestDepth(), as Nathan commented, you could do something like this and get a similar result: ...getNextHighestDepth() + 10; Daniel On 2/3/06, ryanm [EMAIL PROTECTED] wrote: No, but what Ryan describes is exactly what getNextHighestDepth() is for. Not at all. If you have a content container at 1, a navigation container at 2 (so that drop downs lay on top of the content), and a footer container at 3, and you need to add another content container (for rotating ads or something), you want it to be next to the other content in depth so that it's under the navigation. I avoid getNextHighestDepth like the plague, it is an evil monkey living in your closet that wants to kill you. Or at least be a major pain in the ass while you try to figure out why you can't control the z-position of your elements. I don't even use it in loops when I'm generating a bunch of movie clips, like rows in a select box or something, I use the iterator for the loop, that way their depth and their index in the array is always the same. The only time I've ever used getNextHighestDepth was in one-off projects where I didn't know or care where the elements ended up because they were created and forgotten. Anything that might have to be referenced or moved later should probably have its depth set explicitly. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- 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] FLV not showing, please help
It might be that you are using the ON2 codec to create the FLVs. In F8 (pro?) you can use both Sorenson and ON2 to make FLVs. If you use Sorenson you'll be able to view the FLV in both FP7 and FP8 but if you use ON2 you'll only see the video in FP8. The audio will be heard on both players, as it is MP3 and both players support it. Can somebody please take a look at my code. The flv doesnt show, but the audio I do hear. -- 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] 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] 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] alpha -= 10 = wtf
Thanks, Macromedia! What is a Macromedia? http://en.wikipedia.org/wiki/Macromedia ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] alpha -= 10 = wtf
Me to :| ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] motion detection
What does it do, apart from crashing IE and FF when you open it? http://www.playdocam.com/flash8/fire.html -- 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] motion detection
Yep, that did the trick. Thanks. On 12/7/05, Rob Dackson [EMAIL PROTECTED] wrote: It seems to be a Quicktime Movie, so maybe you have a problem with your QT installation? Direct link to the movie, if it works better: http://www.playdocam.com/flash8/playdocam-flash8.mov /RobD 2005/12/7, Daniel Cascais [EMAIL PROTECTED]: What does it do, apart from crashing IE and FF when you open it? http://www.playdocam.com/flash8/fire.html -- 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 -- 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] zoomable Flash maps
Hi Hans, I've seen this map application being mentioned a few times: http://www.zoomify.com/ On 11/29/05, Van De Velde Hans [EMAIL PROTECTED] wrote: Hi list, I need to make a geographical map viewer module in Flash with a dynamic number of hierarchical zoomable depth levels and with a number of hotspots per level (i.e. the stores of the client in a certain country, region or city). And I need to foresee an administration module that allows to drag and drop hotspots on the maps and store these hotspots to a database. Please send me links to examples of Flash maps, howtos or anything that can help Thanks, Hans. -- 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] Swfs embedded in an email
The most reliable way to have the recipient actually view the Christmas card (only if he/she wants to) is to have a link to it. I had to do it like so last Christmas, and I believe most companies that use flash for their email greeting cards do it this way. Daniel On 11/24/05, Danny Kodicek [EMAIL PROTECTED] wrote: A friend of mine is trying to send a Flash christmas card in an email and is finding that everyone's Outlook is blocking it for security reasons. I know this is generally considered a no-no anyway, but his company want to do it and it's for internal emails anyway, so can anyone recommend a reliable way to embed a swf in a mail? If it needs to be included as an attachment, that's fine, but reading it off the server would be better, obviously. Best Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Blitting, Double-Buffering, and Other Bitmap Methodologies
Hi Jesse, I've seen some pretty good samples in André Michelle's blog (http://blog.andre-michelle.com/), and I even think some of his bitmap rendering source can be found here: http://session.andre-michelle.com/fl8.session.2005.zip I know I'm not really answering your question, but it might be good for some inspiration. Note: I think the samples are done for FP8. 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] elegant country list
Maybe you could let the user choose a continent firts, and then give him the country options. On 11/18/05, Toon Van de Putte [EMAIL PROTECTED] wrote: Hi list, I'm building a shop site in Flash, where the user has to select their country from a list on the order form. I personally would like to avoid one big long dropdown, i hate those in HTML forms. Since it's Flash, I think I can do something much more user-friendly, these are my options so far: - a small menu where the user first selects a letter of the alphabet and then selects his/her country. - same sort of menu, but with the most likely countries at the top, in this case EU countries. Have any of you done anything like this before, and have any tips to share? thanks, -- Toon Van de Putte ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- 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] Open all Branches of a Tree Component
Hi Martin, I've used something like this (can't remeber exactly): public function setTreeIsOpen(open:Boolean):Void { for(var i:Number = 0; i tree.length; i++) { tree.setIsOpen(tree.getTreeNodeAt(i), open, false); } } Hope it helps. -- 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