Random Coords In Ring
****Solved****
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 11-27-2006, 11:34 PM
View Complete Forum Thread with Replies
Sponsored Links:
Web Ring Test
hey
could you guys please test a web ring i have just started, I have finished the code for the first and previuos sites. At the moment the four sites involved are just 4 directories on my server but i just need to know it works on other computers. I am sorry but i have not fixed it for firefox yet If you find any bugs please let me know. the list and join buttons do not work at this stage.
web ring
Thanks alot
View Replies !
View Related
Help With Animated Ring
I don't know if this is the right forum but I'll give it a shot. I'm trying to display a portfolio of images using a ring type layout. the images will scroll left from right; going from the front of the ring to the back. The tween is simple enough, but I can't figure out how to get the layering right. Anyone have any suggestions?
View Replies !
View Related
Focus Ring Please Please Help Me Get Rid Of This.
Hi, I am using a combobox in a swf that is externally loaded into the main movie. My prob is that everytime I make a selection, it leaves the nasty halo green border behind. I've looked for 3 hrs for the solution to no avail. I've heard this is a focus issue, can someone please help me?
I've tried this like many have said:
myComboBox.drawFocus = "";
myComboBox.dropdown.drawFocus="";
but for some reason it still wont work. I've pasted that code in the combobox fla and the main file, but no go. Any ideas? Thank you!
View Replies !
View Related
3D Circular Ring
In this experiment I wanted to work out the best method for finding the depth at which to move movieclips to as they rotate.
I did it on the second attempt, too, after starting from scratch. Here is the result:
The code in action
ActionScript Code:
var x:Number = 275;var y:Number = 200;var h:Number = 0;var w:Number = 300;var c:Array = [];var cCount:Number = 1;var theta:Number = 0;function init() { for (var i:Number =0; i < cCount; i++) { var circle:MovieClip = _root.attachMovie("circle", "circle_"+i, i, { _x: x + w/2*Math.sin(Math.PI*2*i/cCount), _y: y + h/2*Math.cos(Math.PI*2*i/cCount) }); c.push(circle); var col:Color = new Color(circle); var o = { r: 255*(2*Math.abs(i-cCount/2)/cCount), g: 100+155*(2*Math.abs(i-cCount/2)/cCount), b: 100 }; col.setRGB((o.r<<16)+(o.g<<8)+o.b); }}function onEnterFrame() { theta += 0.02 *Math.PI*(_root._xmouse-Stage.width/2)/Stage.width; theta = (theta-Math.PI)%(2*Math.PI)+Math.PI; theta = (theta+Math.PI)%(2*Math.PI)-Math.PI; h = (_root._ymouse - Stage.height/2)*0.4; for (var i in c) { var circle = c[i]; var t:Number = Math.PI*2*i/cCount + theta; t = (t-Math.PI)%(2*Math.PI)+Math.PI; t = (t+Math.PI)%(2*Math.PI)-Math.PI; circle._x = x+w/2*Math.sin(t); circle._y = y+h/2*Math.cos(t); circle._xscale = circle._yscale = 70+30*Math.cos(t); circle._xscale *= Math.cos(t); t = 1 - Math.abs(t)/Math.PI; circle.swapDepths(Math.round(t*2*cCount)); }}Mouse.addListener(this);this.onMouseWheel = function(d) { while (c.length > 0) c.pop().removeMovieClip(); cCount = Math.max(cCount+d, 1); init();}Key.addListener(this);this.onKeyDown = function() { if (Key.getCode() == Key.UP) this.onMouseWheel(1); else if (Key.getCode() == Key.DOWN) this.onMouseWheel(-1);}init();
View Replies !
View Related
Ring Toss Game (O)
I'm looking for some .fla file or scripts to help me get started on a ring toss game I need to do for a non profit organization childrens website. Can any one help me with this or point me in the right direction? Thank you
View Replies !
View Related
Component Halo Ring
I'm using the MediaController. When I click on any of the buttons, I get a green ring that oultlines the button, and doesn't go away unless I click on something else. It's annoying and my client wants it gone. I found a great post here: http://www.actionscript.org/forums/s...d.php3?t=40603 that explains how to remove the ring from the ComboBox component:
comboBox.drawFocus = "";
comboBox.dropdown.drawFocus="";
The first line removes the ring around the entire box, the second line removes it from the drop down. My problem seems to be referenceing the differnt parts of the MediaController..I can't seem to find any good documentaion on this...I've tried:
myVideo.drawFocus="";
myVideo.volume.drawFocus="";
myVideo.playheadChange.drawFocus="";
myVideo.pause.drawFocus="";
myVideo.play.drawFocus="";
So far none remove the outline. Any ideas??
Thanks in advance!
Lawrence
View Replies !
View Related
Ring/Circular Menu Like This One?
Hi!
I'd like to make a circular menu like this one (see picture ).
However I think Flash does not have a tool to bend plain text, so I guess it has to be done by using AS...(oops!)
Has anybody ever done a similar thing? Or, is there a tutorial somewhere?
It's because I really have no idea where to start it with. I mean I can always do it importing the vector shapes, but it's a sure thing that by using AS, a smoother effect can be implemented.
Thank you very much.
View Replies !
View Related
Concentric Ring Of Text
Hi all!
I have several concentric rings of text and I want them to rotate randomly but when the mouse comes close to anyone of them that particular ring slows down and when you click and drag on it you can rotate that particular ring.
Any help would be appreciated...
Cheerio,
S
View Replies !
View Related
Tweening Text To A Ring
I am trying to do a shape tween between a letter, and a circle that has the fill color set to "no color".
Everything seems to be working fine, except the first couple of frames are basically blank. If I use
a filled circle, there is no problem. Is there any way around this?
TIA,
John
View Replies !
View Related
Un-masking A Ring For Preloader?
Hey guys, I was wondering how to make one of those nifty circular preloaders, the one where the ring goes all the way around while it preloads and I was thinking I might do it by Neil's Tween AS preloader tutorial (if theres a better way please tell me ) but I'm running into some problems.. first of all.. how do I create a mask that I can alter shape so that it tweens to unmask the circle?
Remember, if theres a better way to do it, please tell me
View Replies !
View Related
Saturn Ring Type Rotation....
Ellipse...I'm trying to make objects rotate around a sphere (think of an object following the rings of Saturn)
but, at the core of the issue what I need is to move objects in an ellipical path. At the same time I'll need to do some rough scaling...basically..(hard to describe w/o a picture) but the point on the rings closest to the viewer the objects would be 100% of their size, at the point furthest from the viewer (in 2D this is the "TOP" of the ellipse)
Naturally, I'm avoiding 3D ..this is all possible with 2D.
Also, the end goal would be having the rotational velocity dependant on the mouse cursor position so that the closer the mouse is to the object the slower it would rotate...this is what i have so far
the coords of the object rotating around the ellipse are...
(x,y) = (r cos t, r sin t)
BUT...how to define the eccentricity of the ellipse and keep it fixed relative to the rest of the thing I'm creating.
something like r cos t/r sin t > .5 or something...this is where I get really confused but I need to define how eccentric the ellipse is...
View Replies !
View Related
Drag To Rotate Circle Or Ring
I have a circle_mc I would like the user to rotate by clicking it and dragging it.
Only should work and respond to mouse movement when mouse is detected within the circle.
There is a ring_mc around the circle the user can also rotate with the mouse.
Two problems:
1) The ring and the circle move together in the same direction
2) When the mouse is outside the circle or ring area the rotating continues...
This is the code I have so far.
ActionScript Code:
_root.sun_mc.onMouseDown = function() {
this.onMouseMove = function() {
if (hittest(_root._xmouse, _root._ymouse, true)) {
var angle = Math.atan2(this._parent._ymouse-this._y, this._parent._xmouse-this._x);
this._rotation = angle*180/Math.PI;
this.sun_mc._rotation = -this._rotation;
};
};
};
_root.sun_mc.onMouseUp = function() {
if (this.onMouseMove) {
delete this.onMouseMove;
}
}
_root.ring_mc.onMouseDown = function() {
this.onMouseMove = function() {
if (hittest(_root._xmouse, _root._ymouse, true)) {
var angle = Math.atan2(this._parent._ymouse-this._y, this._parent._xmouse-this._x);
this._rotation = angle*180/Math.PI;
this.ring_mc._rotation = -this._rotation;
}
};
};
_root.ring_mc.onMouseUp = function() {
if (this.onMouseMove) {
delete this.onMouseMove;
}
}
I have been fiddling around with masks but it didn't get me anywhere...
Does anyone have an idea?
View Replies !
View Related
Frustrated Rollover And Ring To Front
I know this seems basic, but after hours of trying I am going to give up. I have a bunch of buttons that overlap each other, (i can't just use button symbols) so I am trying to use script. I made a movie: ballet_mc and put in this code on the first frame inside ballet_mc:
stop();
on (rollOver) {
gotoAndPlay(2);
};
the rollover animation starts on frame 2. But this does not work, it just plays over and over even though I don't rollover it with my mouse. what am i doing wrong?
Also, I can't use button symbols because these overlap each other. So, is there some kind of Bring to Front code I can use?
I don't know how to write it, but it would essentially say "on rollover bring ballet_mc to the front" sorry about the newbie questions but I am sitting here reading a couple books and just getting errors, any help is appreciated.
View Replies !
View Related
Creating An Icon With An Interactive Ring
i need assistance on creating an icon that will behave in the following way:
It is a circular icon. When you click on it, a ring that is split into 12 segments will appear from behind it with "J F M A M J J A S O N D" (each month of the year) in each segment. As you rollover each segment it should change colour and when you click it, the colour will "stick".
I have completed the graphical elements but when attempting the actionScript i was lost. I couldn't even set up a simple rollover type effect.
I think i just need a couple of nudges in the right direction and i should be fine, thanks for reading.
View Replies !
View Related
Drag To Rotate Circle And Ring Independently
Hi there,
I have this problem...no worries it is only about ActionScript!
I have created two movieclips: one is called "sun_mc" (with a nice smile) and a ring of sunrays (short and long ones) called "ring_mc".
the ring is situated around the sun.
The user clicks the sun and drags to rotate it.
The user can click the ring to rotate that too.
When the sun is rotating...the ring should not be...
and vice versa.
I have three problems...
1) I can't get the two mc's to move independently
2) When rotating the mouse position always jumps to a certain point on the movieclip...not the point where you clicked it first
3) The ring is also rotating when the mouse is outside the ring...
What should I do?
I tried to obscure a part of the ring_mc with some masking...
That didn't work.
Should I try hitTest? And how should I do that? That only works with squares doesn't it?
Hopefully you can help!
kind regards
Merkske
Code:
_root.ring_mc.onMouseDown = function() {
this.onMouseMove = function() {
myRadians = Math.atan2(_root._ymouse-this._y, _root._xmouse-this._x);
myDegrees = Math.round((myRadians*180/Math.PI));
this._rotation = myDegrees+90;
_root.ring_mc._rotation = this._rotation;
};
};
_root.ring_mc.onMouseUp = function() {
if (this.onMouseMove) {
delete this.onMouseMove;
}
};
_root.sun_mc.onMouseDown = function() {
this.onMouseMove = function() {
var angle = Math.atan2(this._parent._ymouse-this._y, this._parent._xmouse-this._x);
this._rotation = angle*180/Math.PI;
_root.sun_mc._rotation = this._rotation+90;
};
};
_root.sun_mc.onMouseUp = function() {
if (this.onMouseMove) {
delete this.onMouseMove;
}
};
View Replies !
View Related
X & Y Coords
Can you drag an object/clip only by the X or Y coords of the mouse, not by the center? I want to create an effect like http://www.yigal-azrouel.com/.
I posted this with the wrong subject before:/
-Lissa
View Replies !
View Related
Coords
Hi there
could someone help me with this thing i want to make for a web site. so what i want is just a simple cross made out of two lines but working so that when i move the mouse on the screen those lines will follow the pointer. and as it is the coordinates of the mouse will appear next to the pointer. there must be a script to do that or a tutorial which i could follow to make that script. i have some experience from scripting, but i would love to get some help on this one. cheers.
Tero
or tero.helenius@suomi24.fi
View Replies !
View Related
X 'n' Y Coords
Hi,
I have set up a MC that detects and displays the mouse coordinates. However, I want it to have X_ and Y_ before that actual coords. How do I do that?
Thanks as always.
YP
View Replies !
View Related
Help With X,Y Coords
How can I change this so I can specifically set the X and Y coordinates but allow the X value to always remain centered on the stage?
Code:
X = (X == undefined || X == "center") ? Stage.width/2-W/2 : X;
Y = (Y == undefined || Y == "center") ? Stage.height/2-H/2 : Y;
View Replies !
View Related
Box Coords
Hey basically what i need to know is pretty simple but ive not thought of a a way to do it. When you have a movieclip of a box at 0 degrees to find the top right corner you take half the height added to _y and half the width added to _x. This doesnt work at any other angle since it works on x and y cords and the width changes as the box rotates... is there an equation to work this out? or any meathods. So you can find the _x and _y of any corner of the box aswell as the center.
Thanks for any help,
hope i explained it ok
View Replies !
View Related
An Embeded Mc's Coords
Hi, i have a movieclip embeded in another movieclip, and need to find the coordinates of the embedded clip in relation to the main stage in order to use them for a hitTest, does that make sense?
View Replies !
View Related
Mouse Coords.
How do i get the values of the coords. of the mouse
ANYWHERE ON SCREEN. even it the mouse is OUT SIDE of the flash window.
i am trying to make the "Eyeball looking at mouse" type of thing.
but i can only get it to recognize WITHIN the movie
Thanks,
TriAdX@aol.com
View Replies !
View Related
Absolute X And Y Coords?
Is there anyway to get absolute x and y position from a symbol?
My issue is that I have _root, then off of root, 2 different symbol branches. Branch1 and branch2. Each with other things inside of them. I need to test if a symbol inside of branch1 is to the left of a symbol in branch2.
I cant just test ._x because the branches are moving, and ._x just references the x pos relative to the parent.
So is there anyway to get a absolute x position?
View Replies !
View Related
LoadMovieNum, X Y Coords
Anyone know how to tell a loadMovie script to load on a set of x/y coordinates?
Im using the following to load in the centre.swf to my main scene.
loadMovieNum("centre.swf", 7);
i need to use loadMovieNum because my button uses level7.
on (release) {
_level7.gotoAndPlay("frame label name");
}
cheers.
View Replies !
View Related
DuplicateMovieClip With New Y Coords?
I'm trying to duplicate a movie clip and have it appear just below the previous one. I have a button that calls the "c" function which executes the following:
Code:
function c() {
duplicateMovieClip("a"+pillar, "a"+counter, counter);
setProperty("a" + counter, _y, "a" + pillar._y + 15);
setProperty("a" + counter, _alpha, "a" + pillar._alpha + 10);
counter++;
pillar++;
}
I have it also changing the alpha of the new clip to see if was actually generating a new one (when the movie clip got darker I knew there was another one sitting on top of it). There must be something wrong with the first setProperty line, any notable mistakes.
View Replies !
View Related
Distance Between 2 X And Y Coords
Hi everyone, I need help with this math bit. I have a map which displays an indicator of current position. I have 2 input text boxes for entering new coords(x and y) Then I have a dynamic textbox that will display an estimated time of arrival. I need to find out how to find the distance between the current position and the new position, then click a button to display the ETA (estimate time arrival)
All I need to figure out is how to find the distance between the old and new points... Help is appreciated. THanks!
View Replies !
View Related
Help With X And Y Coords Of Attachmovie
I have a movie clip on the stage called birdplace0 and I attach the movieclip in my library with linkage called bird.
_root.birdplace0.attachMovie("bird", "bird0", 0)
Then, I have some code in birdplace0 that says:
onClipEvent(load){
this._x = 0
this._y = 0}
onClipEvent(enterFrame){
this._x += 1
this._y += 1}
However, when it loads the movie clip gets set like 4 inches to the left of where x and y = 0 on the stage.
I kinda know what is wrong, but have no clue how to fix it.
I belive the x and y are getting messed up when the one movie is getting attached to the other.
Thanks
View Replies !
View Related
MC Gets Deleted Before It Can Hit The Last Coords..
I'm trying to save some CPU resorces here but donno how.. my MC script is deleted before it can reach the current point.. what should I do?..
MovieClip.prototype.moveIt = function() {
this.onEnterFrame = function() {
menu._x = Math.round(border._x - ((border._width/2) + 68))+5;
menu._y = Math.round(border._y - border._height/2)+5;
if (Math.abs(menu._x - (Math.round(border._x - ((border._width/2) + 68))+5))<1 && (Math.abs(menu._y - (Math.round(border._y-border._height/2)+5))<1)) {
delete this.onEnterFrame;
}
}
};
View Replies !
View Related
MC Gets Deleted Before It Can Hit The Last Coords..
I'm trying to save some CPU resorces here but donno how.. my MC script is deleted before it can reach the current point.. what should I do?..
MovieClip.prototype.moveIt = function() {
this.onEnterFrame = function() {
menu._x = Math.round(border._x - ((border._width/2) + 68))+5;
menu._y = Math.round(border._y - border._height/2)+5;
if (Math.abs(menu._x - (Math.round(border._x - ((border._width/2) + 68))+5))<1 && (Math.abs(menu._y - (Math.round(border._y-border._height/2)+5))<1)) {
delete this.onEnterFrame;
}
}
};
View Replies !
View Related
Do NOT Follow The Mouse Coords
I have found this FLA a while back, and I was wondering if it is possible to make the brackets not follow the mouse, instead, to be in the corner when starting, then going back when rolled off a link. If you download the FLA, you will see what I am talking about.
Thanks.
View Replies !
View Related
Need To Change The X - Y Coords To Center
I am using the track mouse code (shows X-Y coords).
Is there a way to change the default position of the X-Y coords (default upper left) to be in the center?
I need a way to display the coords of a Map that I built where all the locations on the Map are based off the Center of the image to be X-0 Y-0.
example:
center of my image is X-0 Y-0
Top Left = -8000 8000
bottom left = -8000 -8000
Top right = 8000 8000
bottom right = 8000 -8000
thanks for your help!
ijasont
View Replies !
View Related
Rotation Based On X, Y Coords ?
I am using Flash 5:
I have a movie clip that is a drawing of an arrow. I would like the rotation of the arrow (_root.arrow._rotation) to change based on the _root._xmouse and _root._ymouse coords to make the arrow point in the direction of the mouse as it moves arround the screen.
A hint or script to help accomplish this would be much appreciated.
aa
View Replies !
View Related
Xmouse, Ymouse Coords
Hi
I posted an earlier problem but still couldn't get it solved, although a couple of guys helped out, i feel i was going in the wrong direction.
I have this script:
_root.test.onRollOut = function() {
if (hitTest(this)) {
scale(this, 100, 100, 1);
}
}
_root.test.onRollOver = function() {
if (hitTest(this)) {
scale(this, 200, 200, 1);
}
}
// scale bounce function //////////////////////////////////////////////////////////////////
function scale(target, xscale, yscale, speed) {
target.yscale = yscale;
target.xscale = xscale;
target.speed = speed;
target.viscocity = 1.5;
target.vy = 0;
target.vx = 0;
target.onEnterFrame = function() {
var dx = this.xscale-this._xscale;
var dy = this.yscale-this._yscale;
this.vy = (this.vy+dy/this.speed)/this.viscocity;
this.vx = (this.vx+dx/this.speed)/this.viscocity;
this._yscale += this.vy;
this._xscale += this.vx;
if (Math.round(dx) == 0 && Math.round(vx) == 0 && Math.round(dy) == 0 && Math.round(vy) == 0) {
delete this.onEnterFrame;
}
};
}
It works but not the way i need it.
Could anyone help me work out a way to use xmouse, ymouse coords on the mc area, rather than rollover/rollout
check out the fla
View Replies !
View Related
[F8] Need Mc To Zoom To Mouse X&y Coords.
Hey all,
I have an mc that when I press a key it will either zoom in or out. Right now it zooms in/out, but it does with with the up-left corner as the point to zoom from.
Can anyone direct me on how to zoom in/out where ever the mouse is relative to the mc? If the mouse is in the middle, then it zooms from the middle and so on.
Thanks!
View Replies !
View Related
Need Mc To Zoom To Mouse X&y Coords.
Hey all,
I have an mc that when I press a key it will either zoom in or out. Right now it zooms in/out, but it does with with the up-left corner as the point to zoom from.
Can anyone direct me on how to zoom in/out where ever the mouse is relative to the mc? If the mouse is in the middle, then it zooms from the middle and so on.
Thanks!
View Replies !
View Related
X,y Coords Shifting In Pop Up Window>
My swf file which is width700 height 420 and is embedded in an html doc is popping up in the correct window size but the x, y coords seem to be shifting from 0,0. So i am ending up with a slightly shifted swf file within the pop up window??
Why would this be, I have used the code from this tutorial site in the beginner section!!
any answers!!?
ta
Rusty
View Replies !
View Related
Sending X And Y Coords Like Animation
Hello,
I am looking to find a way of sending out info of x and y though a shared object. I have done everything except working out a way to make the sending of the x and y smooth, if i just put the lines of code sending the x and y below each other it sends so quick that it seems to jump to the end command. How can i slow this down?
(i am looking for a server version of this post http://www.actionscripts.org/forums/...d.php3?t=46788)
thanx inadvance
solex
View Replies !
View Related
_width Is Changing The X Coords...?
I am making a progress bar and most of it works, except when I make the changes the _width property of the mc. for some reason when the incrementation is done on it the x coords is what changes and it races across the screen. I have tweaked it to make the incrementation on the height and it works fine. so I am really lost. Is there a bug that I don't know about?
Here is the code for the first frame
onEnterFrame = function()
{
var percentC;
percentC = _root.getBytesLoaded() / _root.getBytesTotal();
_root.progressBar_mc.bar._width = 130 * percentC; //here is where if I change it to _height it works fine
test._width = 130 * percentC; //test mc on main timeline it works fine, but is a simple object, the other progress bar looks much better
}
Here is the site to see what I mean
http://www.quantics.ca/flash/01_ProgressBar.html
it is the blue scrollbar that is acting funny, the red one is the simple one
Thanks for the help
View Replies !
View Related
MC Can't Get Back To The Coords It Was Before.. {hardcore AS}
I'm really lost now..
If you check my site I'm trying to make ( www.napoly.wz.cz ) and click one of my buttons the menu/logo/music/.. will move to the coords..
Here's the script I used:
1st frame:
speed = 5;
frame in which the action will take place:
MovieClip.prototype.move = function() {
endX = 192;
endY = 205;
this._x += Math.floor((endX-this._x)/speed);
this._y += Math.round((endY-this._y)/speed);
delete this.onEnterFrame;
};
MC which you want to move:
onClipEvent(enterFrame){
move()
}
But if you try to click for example on the "contact" button and after "about" button you can see that my music button (right side) is closer to the main border... so why the mc's coords are little off if you had clicked different button before (or if the mc's coords are different than before)? [note that I need to use Math.floor and Math.round to make it look sharp and that the speed value is for all MC's number 5]. Also my MC location is set up to hole pixels..
I tested it without Math function but it was same.. any advice?
Hope I was clear... (sorry for my English)
View Replies !
View Related
X, Y To GPS Coords... Help A Math Dummy.
If im not mistaken, if I have a map of say, Wisconsin, and I know what the Latitude coords (degrees, hours, minutes) of the top and bottom of the map, and I know how many pixels tall the map is, then I should be able to convert, with math, degrees:hours:mins to pixels. (same thing with longitude, but lets just focus on one way first)
I would first find out how may hours (minutes would be over kill for my app) there are to a pixel. Thats pretty easy. But this gives me a decimal number. How do i convert a decimal value (like 10.25) back to degrees and hours (in other words, how do i make .25 a "60" based value)?
Ultimately, i want the user to be able to input coords in the form of degrees, hours, mins. Then convert that to X, Y (to place a marker on the map).
Has any one had experience with this or know how to do this? Probably just some easy math...right?
View Replies !
View Related
What Influences X And Y Coords Display?
I have a function which attaches a bunch of MCs onto another MC and then calls a function which also attaches a bunch of MCs onto another MC. The problem is as soon as i call both functions the second function puts the MCs into lower right corner. I checked the coords and theyre OK.
When i disable the first function the second works fine. I tried putting the second in front of the first but the result is the same. Also if i disable the second one the first one works fine.
I have no idea what could be wrong and i would be really glad if someone could help me out!
Here are the functions:
Code:
var i:Number;
var j:Number;
for (i = 0; i<stKaset; i++) {
for (j = 0; j<stKasetVer; j++) {
kx=i*43+(i+1)*presledekHor;
ky=j*29+(j+1)*presledekVer;
k = ref.attachMovie("kaseta", "kaseta"+i+""+j, ref.getNextHighestDepth());
k._x = kx;
k._y = ky;
}
}
ref._x = zac_X;
ref._y = zac_Y;
izrisiLinije(lamelaGladka); //this is the second function
Code:
function izrisiLinije(presledek:Number){
var stLinij = zaokrozi(visinaPr/presledek);
var ref = this.vzorec_vrat;
var i=0;
var koo_y = zac_Y;
for(i=0;i<stLinij;i++){
koo_y +=presledek;
var l = ref.attachMovie("locilo", "linija"+i, ref.getNextHighestDepth());
l._x = zac_X+2;
l._y = koo_y;
l._width = sirinaPr-2;
}//for zanka
};
View Replies !
View Related
|