Drag Line Problem
I need to connect line to black circles. Circles (a1 and a2) are inside squres (mc1 and mc2). Currently line is drawing between squares.Please help!!!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Drag Over A Line?
Hello,
I want a visitor to drag a movieclip over a line, but this line is NOT straight! Is is a half bow.
Can someone help me? Can't find anything on the internet?!!!!
Thx,
Vizsuall
Drag Along Line On 2 Angles
I need to drag an object along a diagonal line from top left down to bottom right where it needs to change (seamlessly) to dragging along a horizontal line from left to right.
The path looks kind of like this: \_
I want ultimately to be able to calculate and update values based on where along this 'path' the object is sitting - but I'll handle that side of things later. What I'd like is some advice on how I should be approaching this. Should I be purely scripting this movement (and if so, how best to do this) or am I better using a motion path - can you even drag on a motion path?
Any help is greatly appreciated.
Cheers,
Rupert
I Nedd Some Help With Drag In Line..
i want a simbol to be dragd by the user exaclly in line (straight or twisting), like following the unshowed line.. (and not moving freely)
can i do that?
how?
thank!
I Nedd Some Help With Drag In Line..
i want a simbol to be dragd by the user exaclly in line (straight or twisting), like following the unshowed line.. (and not moving freely)
can i do that?
how?
thank!
Can You Drag A Line Movieclip In A 360' Rotation
Hi all fellow flashers,
Just a quick question. I am wondering whether it is possible to combine the ._rotation property and the startDrag and stopDrag properties to create the effect that when the line is clicked on you can drag it in a circular motion from its centre point.
Can this be done and if so would someone have a working example for me to pull apart and understand the code.
Any help is much appreciated.
Cheers pixelmagik
Add Drag Resize Point To Line
I'm trying to make a room planner and are struggling with the shape of the walls.
I can drag the 4 corner points to resize the room but can't work out how to add a new point to the wall. Can anyone give us some script or point us in the direction of a nice shape editor source that would help? It must have the ability to add and drag new points to the shape.
Any help would be great! Thanks in advance.
Drag And Drop Objects With Line Between
Hey all, I'm new here.
I was wondering if there was anyway to put a line between two or more dragable objects...
The only example I can think of is metroidprime.com.
Thanks,
Adanufgail
Drag Object Over A Guide Line In AS
Hi.
I'm trying to make a text slider. However the shape I need is more or less like an arc. I was just wondering if it's possible to make the slider be dragged over that arc-shape just like if it was a guide line.
Here's an image to let you see what I mean.
An ideas are welcome because I'm completely lost...
Thank you.
[F8] Drag And Drop Line Matching
Okay, first let me say thank you to everyone who's helped me so far! I am no longer a novice and getting better everyday! So much so, this is my first post in over a month!
My problem is I'm trying to create a question where the user selects drags a line from one shape on one side of the screen to another shape with the same area (maths work for kids!).
The problem I have is getting flash to recognise when the line is touching both the correct question and answer. I can do basic drag and drops with shapes onto a target but this seems trickier!
Drag MC Along A Curved Path Or Line In AS3.0?
I need to allow my user to drag a movie clip along a CURVED path or motion guide but in AS 3.0. I also need to orient that MC to the path but I believe I can handle that part with the orientToPath property . I would really appreciate any suggestions about approaches or tutorial links. My limitation up to this point has been never having seen trigonometry! Thanks for any suggestion/help in advance!
Drag And Drop Objects With Line In Between
Good evening!
First of all, i'd like to thank everyone that will spend a little time reading this
So, here is what I have to do:
Got a square that duplicates itself and draws a line between itself and the duplication of itself.
The squares are dragable and that part is working fine.
The prob is that, I need the line to travel around with the squares (both of them), and tried a thousand times to adapt some actionscript i found in the net to my fla file, but it just won't work.
The squares duplicate, the line draws, but i won't move with the duplicated not the original square.
PS: i can always show to file to someone who knows a little more than i do about this
Drag Objects With Line Attached
Hi,
I would like to make a movie to drag a line between two movie clips. user should be able to drag two objects and connect them using line object like making a visio flow chart.
If user wants to drag one object to left line should stay attached.
Help please!!!!!!!!!!
thanks a lot.
Drag Point, Move Line
Hello
First - sorry of My English, I not use this language.
example :
http://studioatrium.pl/projekt-domu-...2,wymiary.html
Where find a tutorial is make this points to draw lines ?
I want create that point, and drag this, move line position.
This work of flash 8, Action Script 2
but Flash CS3, Action Script 3
wathewer
Zamotalem
dziekuje i pozdrawiam
How Would I Drag An Object Over A Rotated Line?
Hey everybody, new here.
I'm in the process of trying to make a pool game. I'm at the point where I can get the pool stick to rotate around the ball judging by what angle the mouse is at (the cue stick always points at the cue ball, and the the other end follows the mouse angle).
What I want to do now is, when you click on the pool stick, I want to be able to drag it back let's say 100 pixels max, which would increase the power meter...but I want the pool stick to stay exactly at the same angle (easy to do), and also not stray from the imaginary rotation angle line (can't figure this part out)... Any ideas how to keep it on that imaginary angled line? The x,y axis of the stick is in the front of it and lined up with the center of the cue balls x,y.
If anybody wants me to post the FLA, just ask .
Thanks!!
Matt
Drag Function Constrained To A Diagonal Line?
Anyone know how i would go about scripting a draggable movie clip that would be constrained to diagonal line? It wouldn't always be a 45 degree angled line but i know the code exists out there, but i haven't seen it in sometime and with the advent of the new methods in MX, i'm hoping there is a much simpler way of doing so?
Video Editing Drag And Drop In A Time Line
hello
iam still new to flash but i really need help i havent sleep in the past two days i have a couple of question can some one please help me..
1. i am trying to drag and drop movie clips with a short video clips in it(inside movie cilp), on to another square target "tv" with buttons play stop etc.
2. on this square "tv" i want to be able to view the clip i just drag to the "tv" to (manipulate the clip with play stop on so on) and the same thing with the other clips
3. after that i want to drag the movie clips or another movie clip of the same to a time line with other movie clips and be able to play the time line with the editing movie clips as a new entire editable video clip
i have some thing but not really sure can some one please help me i will really i apreciate it thank you.....
Api Line, ? Reset Drag And Drop Swf, AND How To Pivot Mc By Dragging
Hello,
I think I'm getting in over my head! I've created a training page for a surgical class. Students drag the api line where the bone fracture is, then drag the surgical pieces to the appropriate location to set the injury.
http://www.cvm.uiuc.edu/work/test/line2bone.html
1. I would like to create more than one api line to represent multiple breaks (the red line in the left corner of the movie). How would I go about that?
2. Once I move the drag and drop images around on the screen I would like to have a reset button that would refresh the page to look like it did originally.
3. Last question: Is it possible to make draggable movie clips pivot? The rods in my movie need to pivot 15 to 30 degrees. Is that possible?
I appreicate any help!!
Thank you,
Nancy
Video Editing Drag And Drop In A Time Line
hello
iam still new to flash but i really need help i havent sleep in the past two days i have a couple of question can some one please help me..
1. i am trying to drag and drop movie clips with a short video clips in it(inside movie cilp), on to another square target "tv" with buttons play stop etc.
2. on this square "tv" i want to be able to view the clip i just drag to the "tv" to (manipulate the clip with play stop on so on) and the same thing with the other clips
3. after that i want to drag the movie clips or another movie clip of the same to a time line with other movie clips and be able to play the time line with the editing movie clips as a new entire editable video clip
i have some thing but not really sure can some one please help me i will really i apreciate it thank you.....
Api Line, ? Reset Drag And Drop Swf, AND How To Pivot Mc By Dragging
Hello,
I think I'm getting in over my head! I've created a training page for a surgical class. Students drag the api line where the bone fracture is, then drag the surgical pieces to the appropriate location to set the injury.
http://www.cvm.uiuc.edu/work/test/line2bone.html
1. I would like to create more than one api line to represent multiple breaks (the red line in the left corner of the movie). How would I go about that?
2. Once I move the drag and drop images around on the screen I would like to have a reset button that would refresh the page to look like it did originally.
3. Last question: Is it possible to make draggable movie clips pivot? The rods in my movie need to pivot 15 to 30 degrees. Is that possible?
I appreicate any help!!
Thank you,
Nancy
Making The Mouse Drag One Side Of A Line, The Other Side Anchored...
Can anyone help me with this? What I want to do, is make a line that is anchored on one side, the other side "connected" to the mouse. When the mouse is moved, the line will follow, expanding and shrinking with respect as to where they are on the page.
Can this happen? If so, how?
Any and all help would be great!! Also, if there are tutorials that are out there, point me there? I couldn't find any..
Thanks much..
Michael
[MX04] Dynamically Created Textbox Won't Go To Next Line When Text Exceeds First Line
Hey all,
I've dynamically created a textbox and then applied a new text format with the following code:
Code:
{
createTextField('welcome',4,-100,-25,160,100);
welc = new TextFormat()
welc.font = "Sydnie";
welc.selectable = false;
welc.size = 12;
welc.color = 0xfffafa;
welc.multiline = true;
welcome.text ="Text that exceeds one line."
blackbox.welcome.setTextFormat(welc);
}
How do I make the textbox go to the next line when the first is full and not go beyond it's right border?
Thanks for your time,
Greenham.
Attach A Line To Two Movie Clips. So The Line Moves And Adjusts To The Positionning
Hey
ok I'm working on a project, I have two movie clips moving to different locations, and I want a line connecting both clips.
The line will need to adjust dynamically to the mouvement of both clips.
Can someone give me a heads up on how to accomplish such task.
If more information is needed, post areply saying so, and I will add more information about what I am trying to accomplish.
Thanks
Jean
[F8]Text/Paragraph/String - Line By Line Write Effect
howdy - ive seen some nice text effects recently, and im looking for some resource on recreating them. Ideally im after a nice function / prototype for outputting a line of dynamic text, to a textfield in a nice way, rather than just dumping it on screen. So either letter by letter, or line by line, without having to do all the rubbish faux-effects by masking and tweening.
any ideas?
cheers.
Reading Textfield Line By Line ? Selecting Multiple Textfields At Once ?
OK i need some serious help/advice !
I`m trying to make a sort of program like word , i want to have a text field , but the problem comes when i want to create like borders around each line of text and have DIFFERENT background colors for each line.
So i was thinking if i can read line by line and get get the height of each line by examining char by char for it's size and get the biggest one ( since my text may have different fonts sizes ect on a single line) and then have like BLOCKS that are behind each line and adjust their sizes accoring to the line size and change their color also.
Also another thing that I would also want to do , i want to create a table which i did , but now how do i put the table into my text ...and not just lie on top blocking text behind it ..how do i like "push" the text around it ?? ANY IDEAS would help...thats why i thought maybe create lots of textfields just stacked from top to bottom..but then i will have the problem of selecting them all at once like in a REAL word processing problem...and also if the text becomes too big it will need to "flow" into next textfield...
Is there ANYWAY to do this ??! HELP ME!!!!
THANK YOU
Multi-line Text Field Auto Line Break
When a Dynamic Multiple line text field is used in Flash CS3, it has a very annoying feature that auto inserts a line break at the end of inserted text. It also auto inserts a line break if no text is entered too.
I'm having a problem with this because the text is being saved from flash to a text file on the desktop. With every multi-line text field there's a nasty looking line break.
Any way of "turning off" this auto-line-break-at-the-end feature?
Txt File Double Spacing Off Line, Single On Line
Has anyone else seen this?
When I'm setting up a .txt file for import (the swf is v5 code, authored in MX), I'm noticing that if the .txt file has a single line break between paragraphs, this represents as a single empty line when the swf file is viewed on-line, but it shows as a double blank line when the same file is opened off-line.
Does anyone know a trick to getting imported txt files to display the same way on- and off-line?
(Or am I going mad and no one else has noticed this...)
Flash Getting PHP To Feed It A Text File Line By Line
Maybe someone can point me in the right direction.
I want Flash to access the text file, separated my newlines, that can get quite large. I want Flash to access each of those lines one by one and process them with Actionscript.
I am getting the idea that I should use PHP to open the text file and store the lines in an array. But how can I access each array element in Flash?
Does anyone have any suggestions about this? Have you seen where this has been done before?
Is It Possible To Get Data Printed To The Screen Line By Line As A Ping Does?
I have a Flash web app using AMFPHP remoting that calls a unix script that runs either a ping or a traceroute command based on some parameters I pass it.
The methods in my remoting method table for ping and traceroute are:
PHP Code:
function doLsPing($addr)
{
$ping = shell_exec("/path/to/my/pingScript.sh " . $addr);
return $ping;
}
function doLsTraceroute ($addr)
{
$traceroute = shell_exec("/path/to/my/tracerouteScript.sh " . $addr);
return $traceroute;
}
The unfortunate behavior I am getting is that the returns, naturally, just send me the completed data from the ping and traceroute in one big lump. Of course I would like to have the data returning to me line by line as the data is collected...like it would if you ran the script in a shell or terminal window.
You can see the danger in getting the one-big-lump-of-data scenario. If you ran a traceroute on an address that did not exist and say the traceroute did 30 hops then you could potentially be waiting a loooooooong time without anything printing to the screen. Plus the user, if familiar with ping and traceroute, would be expecting to see the results printing to the screen line by line as the command ran.
Now the caveat to this is, my PHP skills are nil to none, so maybe I am just missing something that I could use rather than just a 'return'.
Any help here would be most appreciated!
Make Line Movieclip Turn To Dotted Line
hey Everyone
Just wanting to know how to use actionscript to make a line dotted. I want to have a movieclip (a solid line) and when u click on it it will become a dotted line, then be able to switch it back to solid with another click.
Cheers
Reading Data From Text File Line By Line
I want to read some data from a text file into arrays.
In the text file, I have:
data = 1234567890
This works ok, but I want the text format in the text file to be:
data =
12345
67890
So after reading 'data', i will have 2 arrays.
[1,2,3,4,5] and [6,7,8,9,0]
Any idea how to go about doing this?
It will be even better if I dont need to use any variable.
Like this:
12345
67890
The main thing is just to read the text line by line and get them into arrays.
Thanks.
Line Break Or Line Feed For Dynamic Text
I am usin a textArea so now it is different than the last post about styles.
This text is dynamic and is assigned from within the Flash file it resides.
It comes from a list selection listener and I want to pre-format it with line breaks.
Since it resides in the file I will be using a textArea with HTML on to get the line breaks.
But now I can't Style it the same way with the setStyle methos
Currently I have one line is like this.
myNotes.text = "This is Line one<br>This is another Line<br>and another line";
Any help would be appreciated.
Thank you,
WBell
Edited: 01/24/2009 at 12:49:08 AM by W_Bell
Two Objects Conected By A Dinamic Line + Physics Of The Line
Hi
I have two Movie clips, and I have to conect them with a dinamic line, like a rope. The movie clip A will be interactive with the mouse, changing X and Y positions, so the line should act like a rope.
Does anybody knows some code to do that or have a example?
Reading A Text File, Line By Line
I am using loadVar to read in a text file for processing by Actionscript.
Is it possible to just read in a portion of it (instead of the whole thing), process it and then read in some more? Specifically, can one read in up until a linefeed?
Multi-line Text Box Line Break?
I am trying to make a multiline text box do a line break. a quick example:
You run into a tree.
You found something!
It glows with a blue aura.
It is just for a simple break, if I try to do it normally, it ends up like this:
You run into a tree. You found something! It glows with a blue aura.
without a line break. Can someone please tell me what the line break command is?
Reading Text File Line By Line
Hy all
Got the following code:
Code:
var strContent:String;
function fillContent(folder:String):void
{
var arrayMenuItems:Array = new Array();
var arrayContent:Array = new Array();
var arrayNews:Array = new Array();
var myContent:URLLoader = new URLLoader();
myContent.dataFormat = URLLoaderDataFormat.TEXT;
myContent.addEventListener(Event.COMPLETE, getString);
myContent.load(new URLRequest("content/" + folder + "/_content.php"));
contentText.multiline = true;
trace("./content/" + folder + "/_content.php");
trace("MY DATA: " + myContent.data);
contentText.htmlText = strContent;
contentText.setTextFormat(format_ContentRegularText);
contentTitle.setTextFormat(format_Titles);
menuItemFont.setTextFormat(format_MenuItems);
}
function getString(e:Event):void
{
strContent = e.target.data;
}
What I actually need is to be able to read the _content.php file line by line. I'd like to store each line of the text file in an array (arrayContent). But I haven't found ANY solutions yet for this problem.
Best thanks for trying to help
Regards
Read External Txt File Line By Line...
Hi guys i am currently rushing a project on flash.
i did the project in java, C++ as well as tcl/tk
now i am doing it for actionscript.
i needed help on:
-read external text file which contains coordinates
Eg:
123,321
34,43
233,785
745,3
-i need the action script to read these coordinates and store them in an array. can anybody help me out pls.
Draw A Line Using LineTo Then Hit Test That Line
is there a way to hitTest a line drawn with the following method?
Code:
clear();
lineStyle(1, 0, 100);
moveTo(obj1._x, obj1._y);
lineTo(obj2._x, obj2._y);
perhaps turn it into a movie clip and hitTest that?
...I'm stumped here...
Read Line By Line In External Txt File?
I found the answer to this problem somewhere on these forums, and I've searched and searched, but I can't seem to find it again. =( Google has let me down as well.
The person wanted to know if there was a way to read in each line separately from an external txt file without using the crazy syntax, but the person who replied said that you could just make all the text one variable, and then break it up by newlines inside the AS code using a for loop.
Whoever can find that topic for me or figure out what methods are needed for it will be my hero. =)
Is Actionscript Processed Sequential (line By Line)?
Ok, so long story short, I have a loop that fills three different arrays. As soon as the loop finishes, on the next line, a function is called that loads dynamic images into movie clips. However, this isn't working as I thought. Instead, the function is being called at the same time as the loop is running. Therefor, the first few images don't show up and I get undefined errors. However, if I delay the function being called by 50ms, I don't get the error. This means that it is a timing problem and that flash is executing the loop and the function call at the same time.
Does anybody have any experience/advice on what or why this might be happening?
Thanks in advance.
Edit: Also, my entire movie is implemented using actionscript in the first frame of the movie.
Edited: 07/18/2007 at 02:27:48 PM by nateyboy044
API-draw: Check If Line Intersects Another Line
It been a while and I need some help on this one...
I'm making a very simple game that lets you draw a curve by hand (using lineTo to the mouse position on mousemove) but now, I need to check wether the line intersects wiith another part of the same line (e.g. a loop)
I first used an onrollover command, and that worked, but not always because the mouse moved too fast (same with hittest with mouse). Then I pre-drawed the line in another mc, used hittest on it, and if it wasn't intersecting, draw it in the real mc. But that didn't work because it used the bounds to test. I guess the best way is to use some mathematical formula, but that would mean I have to save all my coordinates in an array...
Is there another way?
TIA
Read Text File Line By Line
Hy all
Got the following code:
Code:
var strContent:String;
function fillContent(folder:String):void
{
var arrayMenuItems:Array = new Array();
var arrayContent:Array = new Array();
var arrayNews:Array = new Array();
var myContent:URLLoader = new URLLoader();
myContent.dataFormat = URLLoaderDataFormat.TEXT;
myContent.addEventListener(Event.COMPLETE, getString);
myContent.load(new URLRequest("content/" + folder + "/_content.php"));
contentText.multiline = true;
trace("./content/" + folder + "/_content.php");
trace("MY DATA: " + myContent.data);
contentText.htmlText = strContent;
contentText.setTextFormat(format_ContentRegularText);
contentTitle.setTextFormat(format_Titles);
menuItemFont.setTextFormat(format_MenuItems);
}
function getString(e:Event):void
{
strContent = e.target.data;
}
What I actually need is to be able to read the _content.php file line by line. I'd like to store each line of the text file in an array (arrayContent). But I haven't found ANY solutions yet for this problem.
Best thanks for trying to help
Regards
API-draw: Check If Line Intersects Another Line
It been a while and I need some help on this one...
I'm making a very simple game that lets you draw a curve by hand (using lineTo to the mouse position on mousemove) but now, I need to check wether the line intersects wiith another part of the same line (e.g. a loop)
I first used an onrollover command, and that worked, but not always because the mouse moved too fast (same with hittest with mouse). Then I pre-drawed the line in another mc, used hittest on it, and if it wasn't intersecting, draw it in the real mc. But that didn't work because it used the bounds to test. I guess the best way is to use some mathematical formula, but that would mean I have to save all my coordinates in an array...
Is there another way?
TIA
Reading Code Line By Line?
Guys (and girls) im trying to write a bit of code which appears to shake an image on screen, however when i put all my _x &_y functions in to move it around it reads the whole block in one, instead of reading and DISPLAYING each line seperately... how do i force code to do it (in director Id use an 'updatestage' command) many thanks
[F8] Line Vs Line Collision Detection?
Anyone know how i can do line vs line collision detection? Using hitTest() isn't good enough as my lines are all at weird angles. I think vectors might be the solution, but i can't get tonypa's tutorials to work, any hints? Thanks,
Aldarn.
Line Rider Style Line
How can i do this, i would like the same usability as linerider where teh oencil tool ca be picked up or put down, and where the pencil tool foolows the cursor all the while the pencil tool is selected, please help!
Text Effects Line By Line
Hi,
How can I make the text of my website to appear line by line, each line changing it´s alpha to appear.
If the line make a small movement would be better. Something like falling from 10 pixels...
Something like this effect, but with the lines of the text instead of the letters...
thanks
Line-by-Line Text Effect
Hi,
I'm a newbie to this forum, but I'm hoping someone will know how to do the effect on this site -- www.outsellconsulting.com
The effect is in most of the sections (if you click on the left nav) --- the text slides in line-by-line. I don't think it's done with Swish, for example, but I could be wrong.
If anyone has any ideas on this, I'd appreciate it.
|