by all means do it eyez! =)
ditto =)
As it’s very popular and always asked for, how about
“who CODES the nicest clock, analog or digital” ?
-date
-dynamic textfield creation
-drawing api
…
eyezberg-
wow i never realized it’d be possible to make one, though it would be extremely hard. post the fla if you dont mind
Its totally possible
But of course that would involve drawing circles :hangover:
lost - tip:
math: r^2 = (x-a)^2+(y-b)^2;
smth^2 = smth * smth
clear???
btw
what’s the code line limit or size limit???
I already have code for making a circle in Flash (thanks Sen :P) from a while back.
But if all of us just to standard circles for shapes of the watch, it would be kinda hard to tell whose entry is better because they will all be the same.
Not to mention the circular position of the numbers on the watch…
and who told you that clock must be oval???
Im saying… to create different looking entries, they must all look different, meaning we can’t just use basic shapes, we will need to be creative in the design of it, and if you have every used the drawing API, you may know that it is not as easy to use as the the actual drawing tools in Flash.
i know, but it’s fun!
sample:
_x = Stage.width/2;
_y = Stage.height/2;
function flower(trg, i, k) {
var mc = trg.createEmptyMovieClip("kwiat"+i, -i);
mc.beginFill(0x330066) and mc.curveTo(k*3, 0, k*3, k*3) and mc.curveTo(0, k*3, 0, 0) and mc.endFill();
mc.beginFill(0xCC9900) and mc.curveTo(k*2.8, 0, k*2.8, k*2.8) and mc.curveTo(0, k*2.8, 0, 0) and mc.endFill();
mc._rotation = _root.j*60;
}
for (j=2; j<70; j++) flower(_root, j, j);
_root.onEnterFrame = function() {
_rotation -= 1;
}
just a sample (i’m learning 4 3 days now…)
nice
rot = random(3599);
_x = Stage.width/2;
_y = Stage.height/2;
function flower(trg, i, k) {
var mc = trg.createEmptyMovieClip("kwiat"+i, -i);
mc.beginFill(0x330022) and mc.curveTo(k*3, 0, k*3, k*3) and mc.curveTo(0, k*3, 0, 0) and mc.endFill();
mc.beginFill(0xCC9900) and mc.curveTo(k*2.8, 0, k*2.8, k*2.8) and mc.curveTo(k, -k, 0, 0) and mc.endFill();
mc._rotation = _root.j*_root.rot;
mc.onEnterFrame = function() {
_rotation -= .01;
};
}
for (j=2; j<90; j++) {
flower(_root, j, j);
}
_root.onMouseDown = function() {
rot = random(3599);
for (j=2; j<90; j++) {
flower(_root, j, j);
}
};
click 4 change…
still need some work…
Too bad I have no clue what-so-ever about whats goin on!
Erm…looking for the fla guys, I have to many zips from all over the net, and don’t remember the name of this one, so i goota open all the likely ones and check…sorry, but won’t be too long…
While waiting, check an example for a scripted clock from www.sephiroth.it …
Hehe, Keith Peters did something like that a long long time ago Its cool.
Ok, found it…weird name, that’s why i couldn’t find it…
There you go (works a bit like graphity thing on palms…draw the letter…I think i saw the patterns to draw somewhere…I’ll have a look…
wow… thanks for the file it’s so neat… it’s simpler than i though
(not to say that it isnt complicated)
fluid >> Nice. I knew I had seen your name somewhere when you posted at Bit-101
*Originally posted by eyezberg *
**As it’s very popular and always asked for, how about
“who CODES the nicest clock, analog or digital” ?
-date
-dynamic textfield creation
-drawing api
… **
Ok, well we kinda got off topic here (my fault, sorry)
Is this what we are doing? If so, when is the due date and what is the canvas size we will be working on?
does anyone know any good api tutorials