[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

[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
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

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

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 -

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

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

[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

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.

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

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

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

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: flashcoders@chattyfig.figleaf.com Sent: Thursday, December

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 return

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 return

Re: [Flashcoders] floating point

2005-12-07 Thread Danny Kodicek
quote that refuses to indent, curses - Original Message - From: Toon Van de Putte [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, December 05, 2005 10:10 PM Subject: Re: [Flashcoders] floating point var i = 0; var j= 0.8; j*=10

[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

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

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

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,

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

[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*

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

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

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

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

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 -

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

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

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).

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 about

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

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

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

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

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

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

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

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

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: flashcoders@chattyfig.figleaf.com Sent: Monday, February 27, 2006 10:53 AM Subject: [Flashcoders] mailto is not working

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 or

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

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] 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

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

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

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] 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

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] 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 case

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 having

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

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

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

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.

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

[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: TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Arial SIZE=12 COLOR=#00 LETTERSPACING=0 KERNING=0a/FONT/P/TEXTFORMAT This isn't much help,

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 a or the p element or your_own_custom element) into a TextFormat object which you

Re: [Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek
Coming from the Director world you know there are basic issues with some of the more basic elements, such as HTML text, in Director. In the meantime bigger and badder items have been added to Director giving it more *WOW* while basic issues were not addressed. (And, no, Xtra is not a solution

Re: [Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek
Wouldn't having full www support for html in Flash mean building in a browser. Not too likely I think. Well, no, you wouldn't have to support javaScript and other languages or activeX controls / plugins. You could probably live without frames or similar devices. And hyperlinks would probably

Re: SV: [Flashcoders] CSS with input text, simple editor, sourcefiles

2006-03-20 Thread Danny Kodicek
I wrote a simple little system for textformatting with textField.htmlText. It is really primitive, but we have used it and it is entirely possible to make it work. Thanks - it's fairly similar to what I'm doing too. My solution (which appears to be working) is to make two functions,

Re: [Flashcoders] Determining width of rotated MC's imaginarybounding box

2006-03-20 Thread Danny Kodicek
On 3/20/06, David Stiller [EMAIL PROTECTED] wrote: I suspect the answer to this one is purely geometry. It's trivial to determine the width or height of a movie clip: there's the _width and _height properties, of course, as well as getBounds(). But when the clip is rotated, the

Re: [Flashcoders] Determining width of rotated MC'simaginaryboundingbox

2006-03-20 Thread Danny Kodicek
, if the MCs were under my control. :) Danny Kodicek wrote: assuming your original clip is rectangular; or that you;re looking for the dimensions of *its* bounding box when rotated, Bingo! then at an angle of A, the new width will be Math.abs(w*cos(A))+Math.abs(h*sin(A)), the new height

Re: [Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek
Take a look at FlashTextArea at osflash. I already did all that work. Ooh, I was looking for a while at text editors, but I missed that one. Got a demo up somewhere? (incidentally, I got mine working pretty well, so I'll probably not need it, but if it's more reliable, I might switch) Danny

Re: [Flashcoders] wait or sleep

2006-03-21 Thread Danny Kodicek
Hello, is possible to make a wait or sleep (like java) to stop a code execution and after n seconds return to execute? Not directly, but you can create the same functionality with setInterval() Danny ___ Flashcoders@chattyfig.figleaf.com To change

Re: [Flashcoders] wait or sleep

2006-03-21 Thread Danny Kodicek
Using setInterval, I can only call a method (or funciton) same time later. I can't continue to run from the same point, at same function. Exist another solution for this? Yes, put your remaining code into a separate function: id=setInterval(function(){myRemainingCode},2000) You can

[Flashcoders] Leave my HTML alone

2006-03-22 Thread Danny Kodicek
Is there any way to prevent this: P ALIGN=LEFTThe mass number of an atom is the number of protons plus the number of neutrons. You can write the symbol for an atom like this: FONT COLOR=#FFA HREF=event:atomClick 1 TARGET=Ult;4/2 Hegt;/U/A /FONT ./PP ALIGN=LEFTThe mass number is on top/PP

Re: [Flashcoders] Protecting Shared Objects

2006-03-22 Thread Danny Kodicek
The program does have an installer and uninstaller, so leaving things behind shouldn't be a problem. I'm surprised no one else shares my co-workers' willies -- everyone is scared of doing something as silly as relying on souped-up cookies to implement a database. I shared your co-workers'

Re: [Flashcoders] while

2006-03-22 Thread Danny Kodicek
Good morning, 1) I create dynamic textfield with while option I try to create dynamic border and content without success Have you got a tips to done it Thank you / var dtd; var spa; var spa1; var dt = 0; while (dt=99) { dtd = var+dt; spa = dt*5; spa1

Re: [Flashcoders] A little Matrix.invert() mystery

2006-03-23 Thread Danny Kodicek
I can confirm this - just did some testing and there's definitely *something* weird going on. Certainly there is no way that either the invert() or concat() functions are working like a normal matrix multiplication. Further tests show: (1,2,3,4,1,1) concat with (1,0,0,-1,0,0) gives

Re: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Danny Kodicek
I've written php for years, and only had time to have a little play with ruby so far, but if i was in your shoes, i'd go for RoR, not cake.. Don't mess with it, kids http://www.parliament.the-stationery-office.co.uk/pa/cm199596/cmhansrd/vo960723/text/60723w10.htm#60723w10.html_wqn10 Danny

Re: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Danny Kodicek
I used to use GammaHydroxyButyrate back in my bodybuilding days (don't laugh, it's true). Used to double the effects of some of the other supplements I used. It's safe to take, but some people found it enhanced the effects of hardcore drugs, so it was taken off the market... Well, made

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Danny Kodicek
Steven's response was a little unhelpful :) Is this a known Flash bug? It's not a bug. I would suggest that it is: there's no error in the code, and it's not that the Flash movie itself is running slowly, it's purely a result of user interaction. While the print dialogue is displayed, the

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Danny Kodicek
I would suggest that it is: there's no error in the code, and it's not that the Flash movie itself is running slowly, it's purely a result of user interaction. While the print dialogue is displayed, the Flash movie should simply not be running. PrintJob makes a synchronous call to the OS.

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Danny Kodicek
that it *is* a bug, because somehow the synchronicity isn't being maintained. Danny Kodicek...I think I remember you from my Director days, so long ago. That's me. And I remember that you were a bit belligerent then too ;) Danny ___ Flashcoders

Re: [Flashcoders] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Danny Kodicek
It´s possible to make the radio button dispatch the click event if i select it by code? Not directly, but you could add something like this (I haven't used the rb component for a while, but I think this would work radioButton.autoClick=function() { this.selected=true linkType_cml.setType() }

Re: [Flashcoders] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Danny Kodicek
Danny Kodicek wrote: It´s possible to make the radio button dispatch the click event if i select it by code? Not directly, but you could add something like this (I haven't used the rb component for a while, but I think this would work radioButton.autoClick=function() { this.selected=true

Re: [Flashcoders] Radiobutton - Dispatch event on code selected?

2006-03-30 Thread Danny Kodicek
Get with the times... Cor, first you're talking bout Director, then I hear you're still using MX... Tsk... You're obviously not on the forefront of technology, huh? ;-) It's true. The problem is, I can't quite see the point of getting completely up to speed with AS2 when AS3 is just round

Re: [Flashcoders] Howto randomize the elements of an array?

2006-04-18 Thread Danny Kodicek
I have an array with up to 1 elements. These elements are sorted of some kind and I need to reorganize the elements so that their positions becomes absolutely random. I guess my best approach would be to assign my own sort function to the Array.sort() method which did nothing but return

[Flashcoders] Embedded fonts not showing up on Mac

2006-04-24 Thread Danny Kodicek
I've done a bit of Googling on this, but haven't managed to find a definitive answer. Anyone have an idea why our font is not showing up correctly when the movie (played through Director) is viewed on a Mac? Thanks Danny ___

Re: [Flashcoders] excluding children from setTransform

2006-04-25 Thread Danny Kodicek
I am trying to do a setTransform on my whole movieclip to invert the colours to give a high-resolution scheme for people with seeing difficulties. The problem is, there are a few graphics (photos) in the app which I do not want to be inverted. i tried changing their indiviudal transformations

Re: [Flashcoders] Shared fonts nightmare

2006-04-28 Thread Danny Kodicek
I'm working on this project that has a shared library with some movieclips and fonts... It are those fonts that cause quite a bit of stress... The designer on this project is on a PC and I work on a Mac... Not that that should matter but I'm taking a wild guess this is the problem... The

Re: [Flashcoders] XML Parsing

2006-05-04 Thread Danny Kodicek
Anyone knows something about a ***non* *recursive* XML parser?? Why?? Actually, I'd be interested too. I get frustrated with XML because sometimes one uses it for a tree-based structure and sometimes for a linear markup structure, and the two don't naturally go together very well. The XML

[Flashcoders] Safari bug? Click doesn't register until mousemove

2006-05-08 Thread Danny Kodicek
I've done a quick google and haven't seen this, but it's hard to know where exactly to look as all the words involved are so common. Anyone seen a bug where a mousedown isn't registered until the mouse is moved? This is only happening in Safari - tested in Firefox, IE/Mac and IE/Win with no

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Danny Kodicek
This seemed like a really simple problem when I first looked at it, but actually I think it's pretty subtle. I don't know about a standard algorithm, but here's my take: I think your best option, as Bernard said, is a brute force technique. Here's the algorithm I'd use (probably could be

Re: [Flashcoders] Fitting squares into an area

2006-05-08 Thread Danny Kodicek
Hold the phone: quick test shows there's something wrong with this. Give me a couple of minutes... Danny - Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, May 08, 2006 3:37 PM Subject: Re

  1   2   3   4   >