RE: [Flashcoders] BitmapData subtract from every pixel

2007-08-21 Thread Danny Kodicek
> I have BitmapData A and BitmapData B; > Is there a fast routine that from every pixel in A will > subtract the color of the coresponding pixel in B? > I'm looking for a solution using the built-in BitmapData > functions, since a manual looop on every pixel will be > somewhat intensive (even

Re: [Flashcoders] Golden Ratio Spiral points

2007-09-10 Thread Danny Kodicek
What is a golden spiral? http://en.wikipedia.org/wiki/Golden_spiral "In geometry, a golden spiral is a logarithmic spiral whose growth factor b is related to φ, the golden ratio. Specifically, a golden spiral gets wider (or further from its origin) by a factor of φ for every quarter-turn it ma

RE: [Flashcoders] Text Editor Undo/Redo Stack

2007-09-12 Thread Danny Kodicek
> Hallo, > > The text editor app is up and running now, thanks to those > folks that offered suggestions. I've got everything working > apart from the pasting of text. Does anyone know how it is > possible to do this? Any cool tricks to access the clipboard > from ActionScript (I've had a loo

RE: [Flashcoders] Isometic game - zdepth managing for multiple movablecharacters

2007-09-12 Thread Danny Kodicek
> Every object gets a z-depth assigned. For the players the > zdpeth need to be set based on the tile they are at. This way > the players can walk 'around' the enviorment objects. For the > z-depth calculation I use the tile grid x and y plus the > width of the row, this generates an unique z-d

RE: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Danny Kodicek
> Andy, > I see what you are saying, I think. That the .toString() > has to be used as a method directly being addressed by the > object. Like I said that what I think you are saying. How > ever it seems I still can not get the string "myMCinArray1" > or "myMCinArray2" or "myMCinArray3"

[Flashcoders] Reliable way to split a string into an array of lines?

2007-09-12 Thread Danny Kodicek
I'm looking for a simple, reliable method for splitting a string into its constituent lines (at the hard line breaks - this isn't a text wrapping thing). The problem is that line breaks could be Chr(10) or Chr(13), or indeed both. I've done this: myArr = myStr.split(String.fromCharCode(10)).join(S

RE: [Flashcoders] Isometic game - zdepth managing formultiple movablecharacters

2007-09-13 Thread Danny Kodicek
> I am reading all the replies and trying to see if I am > understand them correctly. > Basically I have two options. Give every movable object the > depth of the screen _y value and make sure that objects can > never be on the same _y position. > Second option. If the movable objects only mov

Re: [Flashcoders] Compound interest formula

2007-09-16 Thread Danny Kodicek
- Original Message - From: "Kerry Thompson" <[EMAIL PROTECTED]> To: Sent: Saturday, September 15, 2007 7:48 AM Subject: [Flashcoders] Compound interest formula I'm ok with math, but it's not my strong suite. Does somebody have the compound interest formula, preferably in AS2 form? I

Re: [Flashcoders] Reliable way to split a string into an array oflines?

2007-09-16 Thread Danny Kodicek
I find this fast and reliable... var lines:Array = str.split ("\r\n").join("\n").split("\r").join("\n").split("\n"); That's pretty much exactly what I ended up doing, thanks. Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription

[Flashcoders] Stopping a running JSFL script

2005-10-20 Thread Danny Kodicek
Having fun with JSFL today and was wondering if there's any way to stop execution of a JSFL script (or, for that matter, to even tell if one's currently running). In general, any tips on debugging or testing JSFL would be very welcome. I'm finding it powerful but buggy, which is obviously very

[Flashcoders] More on JSFL

2005-10-20 Thread Danny Kodicek
My JSFL script appears to be unaccountably dying half-way through. It's a pretty hard-working script, but there's nothing to make it stop where it does (just half-way through a perfectly ordinary loop it's already traversed successfully several times). Is there some limit on the amount of code tha

Re: [Flashcoders] Remove me

2005-10-20 Thread Danny Kodicek
Arrgh remove me from the mailing list See this link? Bottom of your email? http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Click it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/lis

Re: [Flashcoders] More on JSFL

2005-10-20 Thread Danny Kodicek
Hi Danny, It's hard to say without being able to look at your loop code. The times that my JSFL scripts have stopped were usually due to trying to access a locked or hidden layer. I don't think I got an error (but I don't remember for sure). So check that thats not the case. Also, you might

[Flashcoders] Tweening broken in Flash 8

2005-10-27 Thread Danny Kodicek
Hi - anyone able to suggest why a shape tween which was working fine in all Flash versions before is now broken when I bring the movie into Flash 8? I've now got a bunch of keyframes with empty frames in between. I've tried various things to get the data back - deleting the frames, deleting the

Re: [Flashcoders] jsfl and xml

2005-11-08 Thread Danny Kodicek
I'm trying to build a fla from an xml file using jsfl, and I just realized I can't create an xml object with it.. am I missing something? I believe you're right - I hit upon the same problem. Obviously you can read in an xml file as a text file and parse it yourself into an ordinary javaScri

Re: [Flashcoders] jsfl and xml

2005-11-08 Thread Danny Kodicek
Can't you use a flash panel to parse it for you then execute the JSFL based on that? Ah - that makes sense. I knew there was some value in those windows! :) Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf

Re: [Flashcoders] jsfl and xml

2005-11-08 Thread Danny Kodicek
Can you guys elaborate on that one? We're talking about creating a separate window which is opened by Flash as an interface and talks to your JSFL functions. Check out the Sample Trace Bitmap panel in the Flash help as a starting point. Danny __

Re: [Flashcoders] Math.random()

2005-11-17 Thread Danny Kodicek
He is starting to ask questions about the randomness of the dice, because a registered member of the game said he's recorded the stats of about 100 backgammon games and found that the numbers generated are not so random. (I haven't seen the data, so I don't know if that's true) I'd ask to see th

Re: [Flashcoders] Math.random()

2005-11-17 Thread Danny Kodicek
Hey Ron, Thanks for the input. Actually, what that member said is that there are too many 4-4 among the doubles. I *very* much doubt that he/she has enough data to get a statistically significant result of that kind. If you're looking for some pattern, any pattern, you're bound to find som

Re: [Flashcoders] How to solve SSS triangle?

2005-11-21 Thread Danny Kodicek
I am having 3 movie Clips named point1_mc, point2_mc, point3_mc in the stage. They are arranged in such a way to form a triangle... Now how can i get those 3 angles and sides formed by these points.? Sides are given by the lengths of the vectors between the points (eg: x = point1_mc._x - poi

Re: [Flashcoders] characters not appearing in dynamically loaded htmlformatted xml text

2005-11-22 Thread Danny Kodicek
My dynamic text area is not displaying "." Is your text exported from Word? Has word converted three dots into a 'three dot ellipsis' character? It does this by default. You might need to either embed the ellipsis character or replace it with three separate dots. Best Danny __

Re: [Flashcoders] Calc max radius of a circle

2005-11-23 Thread Danny Kodicek
The difficult part of the question is that the circle is really a 3D object ie it can be rotate about the x or y axis. Do you mean rotate into the "z" axis? X and Y are still just 2-D spaces. 'rotating around the x-axis' is a perfectly reasonable statement for a 3D object: rotate someth

Re: [Flashcoders] need 3D concept beginner guide

2005-11-23 Thread Danny Kodicek
You might also find my book, Mathematics and Physics for Programmers, helpful if you're short on the maths side. It includes a good few chapters on 3d. http://www.amazon.com/gp/product/1584503300/104-6635299-8705521 Best Danny - Original Message - From: "Johan Lopes" <[EMAIL PROTECTED

Re: [Flashcoders] _x and _y repositioning for child, child, child mc (Flash MX 6.0)

2005-11-24 Thread Danny Kodicek
I have a very complex form with many mc\childMc1\childMc2\childMc3\childMc4\childMc5... Type clips within it. I often have a need to line up the _x and _y of a deeply nested childMC with one of the other earlier childMC's For instance if the mc8 is the last child _level0.mc1.mc2.mc3.mc4.mc5.mc

[Flashcoders] Swfs embedded in an email

2005-11-24 Thread Danny Kodicek
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 relia

Re: [Flashcoders] Swfs embedded in an email

2005-11-24 Thread Danny Kodicek
Bad idea whichever way you look at it. Flash on PC = ActiveX = disabled by default, and there aint nuthin you can do about it. Thought so, but I had to ask. Standard practice is to put a link in the email pointing to the swf. Except that in my experience, no one ever clicks on them. Hey

Re: [Flashcoders] Swfs embedded in an email

2005-11-24 Thread Danny Kodicek
Same as folks... Put a link. But if you're friends can abolutly not do that, try to embed the swf publish in flash 5 format. Cunning. I'll suggest it to him, thanks. Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chatt

Re: [Flashcoders] Random distribution

2005-11-25 Thread Danny Kodicek
Previously I recalled coming across a blog which talks about using a different approach in randomizing the location of items (e.g. movieclips). This approach uses angular (radian) instead of the conventional x and y. However, I cannot recall which blog, it would be great if someone could refer me

Re: [Flashcoders] Re: Qauternions for avoiding gimbal-lock in 3D?

2005-11-28 Thread Danny Kodicek
[EMAIL PROTECTED] ha scritto: All I've see online is Quaternions from a Mathematician's view that only a mad-scientist would understand. (Don't understand all the mathmatical notations, I rather see code.) I'm looking for more explainations of Quaternions from an Actionscript "code" point of v

Re: [Flashcoders] AI Personalities...

2005-11-30 Thread Danny Kodicek
Anyone got any good links for building AI Personalities... ?... this one does not need to be too fancy... GameDev and Gamasutra are always a good place to start. Try http://www.gamedev.net/reference/list.asp?categoryid=18 Danny ___ Flashcoders

Re: [Flashcoders] AI Personalities...

2005-11-30 Thread Danny Kodicek
should have mentioned that this is for a simple Chat Bot Try googling for 'chatbot tutorial'. This one brought up a Perl example that might be a good starting point: it uses regular expressions to parse the input http://search.cpan.org/~kirsle/Chatbot-Alpha-2.02/lib/Chatbot/Alpha/Tutori

Re: [Flashcoders] Q: Advanced math book for designers?

2005-11-30 Thread Danny Kodicek
Hi Just finishing the excellent Head First Design Patterns book. I was wondering if anyone might recommend something similar that focused on advanced math concepts, like matrix math, bezier curves, etc, and whose target audience might be designers? I think my book might be worth looking at

Re: [Flashcoders] JERKY Animations

2005-12-01 Thread Danny Kodicek
Can you post an example? Or explain exactly what you mean by 'jerky'? I suspect what you're looking for is info about sub-pixel animation, but it's hard to tell. Danny - Original Message - From: "flo_web" <[EMAIL PROTECTED]> To: Sent: Thursday, December 01, 2005 10:43 AM Subject: [F

Re: [Flashcoders] Q: Random wave pattern on single line

2005-12-01 Thread Danny Kodicek
I want to create a random wave pattern on a single line using the drawing API. Can anyone suggest a starting point for creating and drawing the random motion? I need to vary the amplitude. I seem to recall seeing a downloadable flash demo/tutorial of motion on an animated wave path, I believ

Re: [Flashcoders] urgent

2005-12-07 Thread Danny Kodicek
>in flash how to cordinate moive name with variable like trace(_root["box_m" add i].d+(j).txt1) I *think* what you're looking for is (_root["box_m"+i].d+j).txt1 If the variables are i=1 and j=2, then this will find the variable d of the movieclip "box_m1", which, let's say, is "jiggle", and

Re: [Flashcoders] urgent

2005-12-07 Thread Danny Kodicek
>in flash how to cordinate moive name with variable like trace(_root["box_m" add i].d+(j).txt1) I *think* what you're looking for is (_root["box_m"+i].d+j).txt1 If the variables are i=1 and j=2, then this will find the variable d of the movieclip "box_m1", which, let's say, is "jiggle", and

Re: [Flashcoders] floating point

2005-12-07 Thread Danny Kodicek
- Original Message - From: "Toon Van de Putte" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, December 05, 2005 10:10 PM Subject: Re: [Flashcoders] floating point var i = 0; var j= 0.8; j*=10 onEnterFrame = function () { i = i + 1; trace (i); if

Re: [Flashcoders] Version control software?

2005-12-13 Thread Danny Kodicek
We've been quite happy with FTPVC, which is a system based on your FTP site. It's very useful when you're working with freelancers and others who need to be offsite. A few quirks, but it's cheap, it works pretty well and has a decent UI too. Danny - Original Message - From: "Ian Thom

Re: [Flashcoders] Re: 3D in Flash

2005-12-13 Thread Danny Kodicek
Unfortunately Viewpoint's flash engine is still Flash 5, but you can do (almost) anything you would expect to be able to in that version. The only thing I found I wasn't able to do (from Flash 5) is prototyping. In addition to rendering the Flash as a texture (without loosing interaction) yo

Re: [Flashcoders] Version control software?

2005-12-13 Thread Danny Kodicek
SVN and CVS work happily for remote access, too... Sure, but FTPVC is nice because it's so damn simple. P.S. Bought the book, by the way - just haven't had time to read it. :-) I suspect you're not alone in this... Danny ___ Flashcoders mailing l

[Flashcoders] Superscript / subscript in Flash 6

2005-12-19 Thread Danny Kodicek
Hi We're looking into how we might make dynamic sup / sub fonts work in Flash (working in F8 but saving in F6). I'm thinking that the easiest method would be to create superscript and subscript versions of our font (Ariel) and embed them. Anyone know of somewhere I could get such a thing? I'm

Re: [Flashcoders] Math question: find coordinates of a point

2005-12-27 Thread Danny Kodicek
Couldn't i adapt the 'circle-method' to AS? No idea how i'd figure out the equation of these circles, but it should be possible, since i've got their centre and their radius. Say P1 = (x1, y1) is the position of the first point and P2 = (x2, y2) the position of the second. Say R1 is the distan

Re: [Flashcoders] "scribbling" an oval

2005-12-28 Thread Danny Kodicek
Hey guys, I'm kinda stuck here... so any help is appreciated. I'm on this project that has a menu that when you "mouse over" the currently selected menu item gets scribbled around. Since this is a variable menu, I thought I'd make that oval- scribbling dynamic and random. So now I'm trying

Re: [Flashcoders] "scribbling" an oval

2005-12-28 Thread Danny Kodicek
This is what I'm trying to accomplish: http://webkitchen.be/downloads/ scribble.jpg Thanks for your help, Serge Okay. In that case I think you're best off drawing an ordinary ellipse (or possibly a rounded rectangle) but adding some error factor. If you're starting from an ellipse, here's w

Re: [Flashcoders] "scribbling" an oval

2005-12-28 Thread Danny Kodicek
Right... That does make sense except for the "draw the point"... Shouldn't that have an X and Y coordinate? It does: it's the sum of two other points with an x and y coordinate. I'm mostly a Director person so these vector sums are done natively: Flash doesn't do anything so useful. But hope

Re: [Flashcoders] "scribbling" an oval

2005-12-28 Thread Danny Kodicek
One final thought and then I'll shut up. If you want to make your scribble smoother, you can make the randomness 'second-order'. That is, instead of randomising the change to the error factor, you could randomise the *rate* of change of the error factor. So you now keep track of two values, er

Re: [Flashcoders] No Key.isDown() method in AS3?

2005-12-29 Thread Danny Kodicek
It would be not too hard to write a class that listesn to the keyboard, and when an onKeyDown event is triggered, it reads the key and adds the keycode to an array. I can't speak for Flash in this regard, but I'm willing to bet it would behave similarly to Director and that this method would be

[Flashcoders] Registration points

2005-12-29 Thread Danny Kodicek
Could someone point me to a very clear explanation of exactly how Flash calculates the position of a movieClip? I'm starting to get very fed up with the weird behaviour of the thing I'm working on (importing and creating a bunch of lines based on external data using jsfl). What actually *are* th

Re: [Flashcoders] Registration points

2005-12-29 Thread Danny Kodicek
Thanks to all for your comments. That's very helpful - although now I'm possibly even *more* confused about how to make this work... Best Danny Andreas Weber wrote: This thing is driving me crazy. You're certainly not the first one, if this is any consolation ;-) The x and y values in th

Re: [Flashcoders] Registration points

2005-12-29 Thread Danny Kodicek
On Dec 29, 2005, at 9:11 AM, Danny Kodicek wrote: Thanks to all for your comments. That's very helpful - although now I'm possibly even *more* confused about how to make this work... Best Danny Simple and effective suggestion - make sure all content in movie clips starts at 0,0

Re: [Flashcoders] No Key.isDown() method in AS3?

2005-12-29 Thread Danny Kodicek
It's a bit scary that Director has a similar problem... how do Director programmers get around it? We have the keyPressed() function (equivalent to key.isDown()) :) Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfi

Re: [Flashcoders] FW: Domino Game

2005-12-30 Thread Danny Kodicek
I'm specifically after how to approach 'dealing' the dominos (taking the 28 original dominos and randomly assigning them to either of two players) That's easy enough. Take a list of dominos (probably a list of two-element arrays like [0,0]) and randomise it. Here's a simple randomise function (

Re: [Flashcoders] listing folder content

2006-01-10 Thread Danny Kodicek
or do I have to use another programme like Director (with xtra IO) to do the trick? You don't need an xtra in Director to do this: the getNthFileNameInFolder function will tell you. As for Flash, not as far as I'm aware of, but you could use something like swfStudio to embed the Flash file and

Re: OT [Flashcoders] Flash 8 and Rosetta -- MacIntel

2006-01-10 Thread Danny Kodicek
With Rosetta it would run 80-85% as fast as normal... but those machines are 2-4x faster now... so even in emulation would run snappy as doody :) Exactly how snappy *is* doody? Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

Re: [Flashcoders] https and webservices - additional information

2006-01-11 Thread Danny Kodicek
Just a quick thought as this has caught me out a few times: have you checked that everything is in the right case? Linu-based servers are usually case-sensitive and I wouldn't be surprised if you've got an erroneous capital letter in there somewhere. Danny - Original Message - From:

Re: [Flashcoders] FlashMattic -My Hebrew Flash Blog

2006-01-16 Thread Danny Kodicek
So far, a co-programmer and myself managed to get the RTL oriented languges to appear right. Wer'e talking about the Hebrew and Arabic. Arabic is more complicated since there are many chars that combine together in a word... still No Complete Solution. My guesses are the Macrodobe will tend t

Re: [Flashcoders] FlashMattic -My Hebrew Flash Blog

2006-01-16 Thread Danny Kodicek
thats's what I'm talking about. a full BIDI display algorithm. Out of interest, what is the UI when working with bidirectional? If you're using a bidirectional word processor, how do you switch from one to the other? Does it happen automatically when you change from one font to another? Or

Re: [Flashcoders] getting the name of an object

2006-01-23 Thread Danny Kodicek
hi, this might be obvious but how do I get the name of an object? If I got an object named fooObj how can I get Flash to for example trace out the name of the object, so that it traces "fooObj"? I know this works with movieclips but how about objects or arrays? Objects or arrays don't have

[Flashcoders] Strange text scaling issue

2006-01-25 Thread Danny Kodicek
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 s

Re: [Flashcoders] Strange text scaling issue

2006-01-25 Thread Danny Kodicek
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

Re: [Flashcoders] JSFL question

2006-01-27 Thread Danny Kodicek
I have an animation of a person standing up. It consists of a movieclip with 20 consecutive keyframes all on one layer - each keyframe has a unique vector "drawing". (This is a stopframe animation rather than a tween, exported from a 3D program).The drawings are stylised so they only contain abou

Re: [Flashcoders] what are differences between Flash5 and FlashMX?

2006-02-07 Thread Danny Kodicek
Well, I'll probably skip 10 billion details including IDE features, but here goes my 2 minute stint on the good stuff: One important thing you missed is JSFL: the ability to automate processes through code has been a lifesaver for me in two recent projects (was it introduced in MX04 or in M

Re: [Flashcoders] >> Buttons

2006-02-09 Thread Danny Kodicek
Good morning, There is two buttons on the same level wich launch a function : btn2.onRelease=btn1.onRelease =function () { play (); }; I put a button at the level40 and it doesnt work, do you ssee why ? _level40.btn2.onRelease=btn1.onRelease =function () { play (); }; I'd imagine that it's

Re: [Flashcoders] Is it possible to do a karaoke app in flash?

2006-02-09 Thread Danny Kodicek
When you say 'app' are you talking about online or offline? I don't think Flash can do recording, but offline at least, you could do it with Director using an Xtra and embed the Flash into it. Online I think you're going to have some trouble! Danny - Original Message - From: "Jorge R

Re: [Flashcoders] seeking :: Oscillating SineWaves via Drawing API -let's get some some fun

2006-02-20 Thread Danny Kodicek
Here is a slight modification: What will be next steps? If you want smoother curves and fewer points, and can wait a bit (I'm pretty busy today), I've written some code a while back that will convert a sequence of points into a smooth cubic bezier curve. IIRC, curveTo uses quadratic beziers

Re: [Flashcoders] Loading Swf files in site(protectingbandwithfromother sites)

2006-02-20 Thread Danny Kodicek
How about if you put a bit of actionscript in your swf to prevent it from being displayed on any other url? It's not perfect - the swf can be broken into and the code found, but it prevents regular surfers from grabbing the swf and placing it on any other url, (including hot-linking to your

Re: [Flashcoders] Loading Swf files in site(protectingbandwithfromother sites)

2006-02-20 Thread Danny Kodicek
sorry, I read too fast, this won't work with submitted swf's if you can't get into them. Might try to see if you created a container swf that loaded the submitted swf might work? Another option is to have the swfs served up by a secure server via an asp call, rather than available directly.

Re: [Flashcoders] Platform Game Collision Detection

2006-02-21 Thread Danny Kodicek
Thanks all for the helpful responses. Ian Thomas wrote: Hi Rob, The book deals with exactly that sort of stuff, from fairly much first principles - then later goes on to talk about 3D. From what I understand, it was pretty much written to deal with exactly your situation... (Danny is o

Re: [Flashcoders] OOP Concepts

2006-02-21 Thread Danny Kodicek
It works, but seems fundamentally wrong, as I understood it was bad practise to add methods to an object dynamically. Should I make the class listen for clicks on the nested clip or is there another solution? There's nothing wrong with adding methods to an object dynamically. What's slightly do

Re: [Flashcoders] OOP Concepts

2006-02-21 Thread Danny Kodicek
Danny, >It works, but seems fundamentally wrong, as I understood it was bad >practise to add methods to an object dynamically. Should I make the class listen for clicks on the nested clip or is there another solution? There's nothing wrong with adding methods to an object dynamically. What's

Re: [Flashcoders] textfiled + inline image

2006-02-22 Thread Danny Kodicek
I want to enter an image in line with other text. How can i achieve this. You've got a tough job ahead of you, I'm afraid. This is possible, but it's certainly not simple. I've spent the last several months working on something along these lines, and in the end I've found it easier to work th

Re: [Flashcoders] What does this PATENT mean??

2006-02-24 Thread Danny Kodicek
http://www.nosoftwarepatents.com/it/m/intro/index.html http://www.attivazione.org/wp/?p=70 http://www.ffii.org/ Do you mean the *word* 'patent'? I don't speak Italian, but the English page you link to isn't discussing a particular patent. If you're asking what a software patent means, it refe

Re: [Flashcoders] outlook need to be oppened from Flash

2006-02-27 Thread Danny Kodicek
Hi , I want to open the oulook express from my flash presentation. I ve one email link and I want on clicking on that link it should open the outlook express with same email add. in " To " field. The simplest (but not 100% reliable) method is to use a mailto: link: give your link the url mail

Re: [Flashcoders] mailto is not working

2006-02-27 Thread Danny Kodicek
Is this in a browser or a standalone? What exactly did you do? 'Not working' isn't very helpful. Danny - Original Message - From: "Bharat Group" <[EMAIL PROTECTED]> To: Sent: Monday, February 27, 2006 10:53 AM Subject: [Flashcoders] mailto is not working Guys, mailto: is not wor

Re: [Flashcoders] mailto is not working

2006-02-27 Thread Danny Kodicek
It's a standalone presentation in flash, in contact us page , it need to open a default mail client with email add. in " to" field. I ve attach the code on the button , but after running it, it shows nothing, I mean when I click the link it does not open any thing. Is this on all computers o

Re: [Flashcoders] mailto is not working

2006-02-27 Thread Danny Kodicek
Better yet, don't use mailto: at all. Personally I don't like when Outlook opens from links. It's disruptive. I agree, and just a reminder in case my previous message was missed: both SwfStudio and Director have the potential to create a silent email, although both require an extension to ma

Re: [Flashcoders] mailto is not working

2006-02-27 Thread Danny Kodicek
Danny Dear, what you suggest.. I ve made this whole project in flash MX with win xp. Now this little prob bugged me a lot. I can not switch to director or any other software.. tell me the solution.. I'm not saying you should switch to Director, but that you could embed your Flash swf into

Re: [Flashcoders] fscommand("exec","...") in a standalone app

2006-03-01 Thread Danny Kodicek
any method for passing variables from one flash file to another.. the first one was embedded in html Have you looked at LocalConnection objects? Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Strange var assignment issues

2006-03-03 Thread Danny Kodicek
BUT if I change the line 'var word_mc:MovieClip' to just 'var word_mc', ie remove the type definition It works, so why if I define the type definition for my variable does the assignment break? I'd imagine that the compiler fails to realise that the eval statement could create a MovieClip obj

Re: [Flashcoders] Game Develop in Flash 8

2006-03-03 Thread Danny Kodicek
Samuel Santos wrote: I have a certain knowledge in 3D Game Development using C++ and OpenGL. But I like Flash to much and I think it's less complicated to do game in it (please, confirm that?) Actually it heavy depends on coders skills. If you lack of OOD experience Flash game developme

Re: [Flashcoders] Game Develop in Flash 8

2006-03-03 Thread Danny Kodicek
but if flash it's not supported well 3D so and if I make a fake 3D? You can, but it's a lot of work. (Otherwise everyone would do it). ActionScript is getting faster, but it's still nowhere near as fast as you would need to do fully rendered real-time 3D. And judging by this: there is a way

Re: [Flashcoders] Strange var assignment issues

2006-03-03 Thread Danny Kodicek
you should better use var word_mc:MovieClip = clip_to_copy.duplicateMovieClip("clipid" + i, i) Does that work now? Last time I checked, duplicateMovieClip didn't return the object, annoyingly. Danny ___ Flashcoders@chattyfig.figleaf.com To change

Re: [Flashcoders] Strange var assignment issues

2006-03-03 Thread Danny Kodicek
first one is global function second one is prototype of MovieClip class Ha. I knew that, but I was absolutely *sure* that neither of them returned the object. Well, that's a lot of lines of code I've wasted there... Thanks. Danny ___ Flashcoders@

Re: [Flashcoders] casting string to bool

2006-03-03 Thread Danny Kodicek
how to cast a string "true" into a boolean true and a "false" into false without using this long trick; var myBool:Boolean; myBool= ( myString == "true") ? true : false; You could cut out the last bit: myBool= ( myString == "true") Danny

Re: [Flashcoders] 2D first person shooter

2006-03-05 Thread Danny Kodicek
>I try to find in google some code for a 2D First Person Shooter Might be fun. Read 'Flatland': complete text available online at http://www.geom.uiuc.edu/~banchoff/Flatland/ Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription optio

Re: [Flashcoders] Strange behaviour from modulus operator

2006-03-06 Thread Danny Kodicek
Experiencing a strange problem using the modulus operator. Inside a function I have the following code: var vValue1 = passed_MC._x - this.Maze_Horizontal_offset; var vValue2 = 36; var vTheResult = vValue1 % vValue2; trace ("vValue1 = " + vValue1); trace ("vTheResult = " + Number(vTheResult

Re: [Flashcoders] Doh! Converting a floating point string tonumberloses precision

2006-03-08 Thread Danny Kodicek
On Mar 8, 2006, at 12:13 AM, JesterXL wrote: Something about how certain numbers are only so big in Flash Player, and there was talk of porting BigInt from Java. Far as I know, number accuracy in Flash is +/- 1e16 and no better. I believe that's 32-bit precision. Not at all - there's nothi

Re: [Flashcoders] Re: Doh! Converting a floating pointstringtonumberloses precision

2006-03-08 Thread Danny Kodicek
If its going to be string anyway why bother with binary system, why dont make it decimal natively? Because binary calculations are much quicker and more mechanical. On the subject of which, another method is to make use of an array of larger integers, and use bit-shifting/adding operations,

Re: [Flashcoders] Re: Re: Doh! Converting afloatingpointstringtonumberloses precision

2006-03-09 Thread Danny Kodicek
"A.Cicak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If you are going to work with strings as you mentioned thats actualy much slower than simply loop through array and multiply by 3 each element (of course store extra number which is carried over in the same loop). In your c

Re: [Flashcoders] puzzle: how to verify piece-fitting?

2006-03-10 Thread Danny Kodicek
hi all. i'm looking for some example on puzzle games which "detect" (show the user) that the pieces are arranged correct. those i know are "simple" drag and drop together ones with do not detect that the pieces are arranged correct and fit. any examples or ideas on how to "detect" that (when hav

Re: [Flashcoders] puzzle: how to verify piece-fitting?

2006-03-10 Thread Danny Kodicek
sounds not that hard, nevertheless any examples would be great A very nice Shocwave 3d example I've always liked is here: http://www.madfishstudios.com/puzzle/libraryTest1.htm Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscript

Re: [Flashcoders] Get the average of 2 colors

2006-03-10 Thread Danny Kodicek
Whats the easiest way to calculate the average of two colors? Your answer sounds fine, given that there's not really a precise definition of the 'average of two colours'. But certainly if you were interpolating between colours, that's what you'd do. There are two main ways to combine colours

Re: [Flashcoders] Get the average of 2 colors

2006-03-10 Thread Danny Kodicek
Average the components or various colorchannels (red, green and blue) as stated earlier. Crap. That's what I meant, obviously. Writing without thinking. Got to stop doing that. Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription

Re: [Flashcoders] Windows IE Cache Problem

2006-03-15 Thread Danny Kodicek
I have a client that has webcams that are sending images via ftp to a folder every 15 seconds to a static link and overwriting the previous image of the same name. I am bringing those images into a flash interface and am refreshing those images every 15 seconds with a setInterval loop. Ever

Re: [Flashcoders] Position objects evenly around ellipse

2006-03-17 Thread Danny Kodicek
Would anyone have a function, class, formula, idea whatever that would allow me to calculate X and Y values to place an "n" number of movie clips evenly spaced around an ellipse/oval shape? The number of clips can vary based on external data. The ellipse would also have to be calculated I suppo

Re: [Flashcoders] Position objects evenly around ellipse

2006-03-17 Thread Danny Kodicek
>I think by evenly spaced I mean equal arc lengths around the ellipse. Thanks for the idea. You might find that quite tricky to achieve accurately: arc length of an ellipse involves some rather unpleasant calculus. Elliptic integrals are decribed here: http://mathworld.wolfram.com/EllipticInt

[Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek
I've got a textField I'm trying to use for input text and I'd like to be able to style it. Unfortunately, the htmlText is being automatically set to this: COLOR="#00" LETTERSPACING="0" KERNING="0">a This isn't much help, because the FONT tag is appearing inside the P tag, with the result tha

Re: [Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek
use textField.setNewTextFormat() Thanks, I know about that and am using it extensively. But it doesn't let me do what I want to do, which is to apply a CSS to my text editor. I've noticed that all the text editors out there suffer from the same problem, though, so perhaps I'm stuck with it. I

Re: [Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek
Is not possible at all. When flash parses a CSS styled html, it simply replaces all the tags with the corresponding formatting code (textformat, font, etc). Ugh, ugly. Thanks. Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription

Re: [Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek
I don't know if this will help you at all, but the TextField.Stylesheet class has a transform() method which will convert _one_ of your style objects from the Stylesheet (ie. The one you maybe assigned for the or the element or element) into a TextFormat object which you can then apply to yo

<    1   2   3   4   5   >