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
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
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
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
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 -
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
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
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]
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
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
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.
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
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
[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
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
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
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
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
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
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
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
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
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
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
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,
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
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*
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
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
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
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
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
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 -
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
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
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
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
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 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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
___
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
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));
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,
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
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
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
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
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
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.
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
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,
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
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
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
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
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,
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
, 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
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
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
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
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
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'
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
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
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
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
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
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.
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
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()
}
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
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
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
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
___
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
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
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
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
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
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 - 100 of 358 matches
Mail list logo