ActionScript 2.0 :: Linking MCs Using XML Data For Lines?
Feb 26, 2005
I am rather new to AS and have been trying to work through this for several weeks now. I thought I had it figured out only to find out that I forgot a MC may be linked to several MCs.
What I am trying to do is create a "network" type layout with nodes and connecting lines. Similar to this but not as complex.
[Code]...
I will attach the files I am working on now to connect multiple nodes as well. I said I am rather new to all this and my hair is already getting thinner.
View 2 Replies
Similar Posts:
Oct 7, 2011
I am trying to put together a match activity where word in one column are linked by a line to definitions in another column. Once all words have been linked to their definitions, you end up with a series of crossing lines so, so I want the definitions and their line to move so that each is level with their connected word and the lines have unravelled. I've got as far as connecting the words to their definitions using a line (as a sprite) and the definitions can then be moved using tweenlite -but I have no idea how I move the lines with their definition. Here is a much simplified section of code to give you an idea of what I am trying to do
import com.greensock.*;
import com.greensock.easing.*;
var wordArray:Array = [word1, word2, word3, word4];
[code].......
View 2 Replies
Mar 25, 2009
What is itemRenderer in Flex? What is data linking in Flex? After writing the MXML when we do compile, what does the MXML turn into before it is displayed to the user as SWF. SWC and RSL? Whats the difference.
View 4 Replies
Sep 22, 2009
I have a 2d array and it has columns & Rows what I wont to do is displaythe columns and Row data in a textBox correctly such as the textbox will be X-columns wide by Y-rows high.. this is the relationship in code
Code:
Var k:Number = 0; //Populate each element of array with "0's"
var columns:Number = 15; //=to X-columns
[code].....
View 2 Replies
Aug 16, 2010
I'm trying to visualize the results of a quiz in ActionScript 3.0.What I would like some input on is how to best link the "filters" (top right corner in attached image) to the data source in a flexible OOP way.The result array now contains both number of correct answers and meta data about the person taking the quiz. The meta data could be both discrete (sex) or continuous (age).
results = [{name: "Lisa", correct: 5, sex: 0, age: 52}, {name: "Peter", correct: 3, sex: 1, age: 32} ... ]
How do I tell the boxes to, for example, change color when I change filter?Should each box object hold its own data or should there be some sort of controller listening to the filter object to dispatch an event and thereafter call a box.setColor method?
View 2 Replies
May 12, 2010
I'm quite new to ActionScript and would be grateful for any help here. I want to load text into a dynamic text field (called 'about_tab') using a class depending on the language selected (by clicking on a flag icon) by the user. I managed to get this to work when the ActionScript was written directly in the timeline, but am having problems with doing the same thing via a class.
[Code]...
View 1 Replies
Aug 17, 2011
I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.
Code: Select allvar movie:Shape = new Shape();
for( ... )
{
movie.graphics.clear();[code].....
View 2 Replies
Nov 15, 2009
My code is on the main timeline.I call a function loop to draw lines between them.The lines are drawing between the right x, y values BUT between those values on the main stage, not those values within the kite.For example, dot1_mc is at x100, y0 inside kite. the line that should go from its center, draws from stage x100, 0.How do I draw the lines inside kite so that they draw between the dots?Heres my code that draws the linesPHP Code:
function loop():void{ lineDrawing.graphics.clear(); var a:Point = new Point(kite_mc.dot1_mc.x, kite_mc.dot1_mc.y); var b:Point = new Point(kite_mc.dot2_mc.x, kite_mc.dot2_mc.y); var c:Point = new
[code].....
View 4 Replies
Oct 29, 2008
I'm wondering, is it possible to access shape data with actionscript. I want to draw simple lines with "line tool"somewhere in my movieclip and then to access information about my lines with actionscript to get startX, startY and endX endY of every line.
View 1 Replies
Jul 28, 2009
the project im working on is all database driven, there are no html files and all coding that is created is made by php then stored within a db to be called later on. now because of this i can't use relative links at all with anything i.e. images, videos and swf files.
so.....i am using swfobject to link to a swf file using absolute linking as shown in the coding below. but what i need to do now is link an .as file in my swf using absolute linking so i can call some arrays from the file.i have doubled checked to make sure my vars can be passed by local testing and it works but now i need it as absolute....is this possible?
View 16 Replies
Jul 21, 2010
I am trying to create a mindmap where the user can drag points about the screen. I have gotten as far as drawing the line via actionscript, and drag+drop the points (defined as movie clips on stage). This is the existing script - I don't know how to get the lines to follow the points. Something to do with ENTER_FRAME or updateAfterEvent?
var line:MovieClip = new MovieClip();
line.graphics.lineStyle(1,1);
line.graphics.moveTo(ptOne.x,ptOne.y);
[code]....
View 1 Replies
Sep 2, 2009
I have two lines. One is straight and one is curved. Both were created with the Flash Graphics interface. How would I compare the different Y value for the curved line for any given X. In other words, how do I find a point on curve if I used the CurveTo method.
View 2 Replies
Jun 23, 2009
I have a function ( basically its the click on a reset buttons ) that sets back quite a loooooot of variables and text boxes. But after ( I think 200 lines ) , actionscript simply stops with that particular function and doesnt even give me an error.So it looks like there is a lines per function limit or something like that.I also tried it with an external .as but its the same.Creating functions for all these commands didnt work either.The only thing I can do is move a few lines up so that they get processed earlier.... ( but the last few still don't work )I even tried to make a function with 300 lines of myTextField.text = "hello"and a line: myTextField.text = "how are you" at the endDidnt work... it stayed at hello.
View 1 Replies
Mar 10, 2012
I am wondering about making lines with a corner radius. It seems that the smaller the scale, the corners sort of distort, and end up looking jaggy. Maybe its just the way it is, but is there any remedy? I tried shifting the registration points, etc, but still the only way it looks smooth is when enlarged.
View 2 Replies
Dec 2, 2009
I'm quiet new to Flash and I'm trying to make some lines grow. I have lines that cross each other and how to get this to work. I want the lines to start with nothing and then grow. [URL]
View 3 Replies
Nov 7, 2010
I use cs4 flash 9 I use a css stylesheet I set margins with it and they work fine. I read that leading is supported byt when I try it it doesn't work. Could someone show ne a simple stylesheet that implements leading?
View 4 Replies
Feb 16, 2010
I'm stumbling my way through designing my first Flex app, using Flex Builder 4 Beta 2. I'm trying to use a ComboBox, but they always seem to have lines around it and I can't figure out how to get rid of them. The ComboBox looks like this: [URL] All I did was drag the ComboBox from the Controls section in the Design section of the UI onto the screen. I haven't changed any settings, no special css, just used the default ComboBox and this is what I get.
View 1 Replies
Sep 11, 2010
Is there a tool that calculates various LOC statistics? It would have to support popular languages like C++, C#, Python, PHP, JavaScript, ActionScript, etc and interpret code accordingly.
An example of the statistics I'm looking for:
350 Physical lines of code -- including braces
200 Logical lines of code -- actual code
190 Comment lines
68 Variables
28 Methods/Functions
5 Classes
3 Namespaces
View 3 Replies
Jan 27, 2009
just going through my code and I want to reduce it where possible. is there a way to combine these two lines into one?
ActionScript Code:
this.mainClip_mc.item0.percentage_txt.setTextFormat(perTextFormat);
this.mainClip_mc.item1.percentage_txt.setTextFormat(perTextFormat);
View 3 Replies
Sep 25, 2009
I am getting this message, but I am not sure how to read lines 2, 3, and 4.[code]
View 3 Replies
Feb 8, 2010
I'm trying to create something similar (and w/fewer lines) to what is on this site[url]...
I've done plenty of searching and have found some good stuff, but what i'm having trouble finding is how to incorporate random motion/bending of the lines.
View 2 Replies
Oct 8, 2003
I am trying to have a line draw in my movie with actionScript...
have made three lines.
if I want line 1 to draw.... then..... line 2.... then line 3
do I put the script on three separate frames ?
and.... right now... they are just there...
how do I make it like an animation where the line starts at the edge of my movie draws line 2 changes direction draws line 2 changes direction draws line 3 then stops.
View 13 Replies
Jun 26, 2005
I was wondering if anyone knew the code to count how many lines are being used by the text. And yes the above example has 3 lines (dont know why u said this).
View 3 Replies
Apr 12, 2007
I have a line on the stage created using the lineTo and moveTo methods. How do I erase it?
View 2 Replies
Sep 30, 2008
anyone know why this isnt drawing lines for me?
[Code]...
View 2 Replies
Apr 16, 2009
Just opened flash for the first time to find that the pen tool will only draw straight lines.It can still plot points and the lines will join up but curves are impossible.Is there some setting that disable drawing curves? I haven't found anything in the annoyingly-online files.
View 2 Replies
May 5, 2009
I need to translate this AS2 code into AS3 ASAP! how to translate a few lines from AS2 to AS3 [URL]I was supposed to make a flash 9.0 cs3 menu with buttons that stay down until another button is clicked.I've found an example of this on the net, one that is perfect in every way for what I need to have done.However, as always, there's a catch. The code on that site is written in AS2, which doesn't work for me because I'm using some functions which are incompatible with it (I suppose they're AS3 supported only, e.g. loaderComplete)
View 2 Replies
Feb 6, 2010
I am facing a curious issue. Generally when we draw lines in Flash either vertically or horizontally or through exact 45 degrees on either of the sides, they come out as straight and anti-aliased. While if they are drawn deviated from either 0 or 45 degrees, they come out as jagged. I want that to be anti-aliased too
View 1 Replies
Apr 2, 2011
is it ok if i reached a thousand of lines?i was just wondering because i got 200 lines for one class
View 3 Replies
May 2, 2009
I've been working on a banner for a website where I want to have wavy lines moving slowly in the background. I found a script that does exactly what I want and works great, the only problem is that the wavy lines the script is drawing are always on top of my buttons and images I'm using in the banners. What I need help with is getting them to display behind my buttons rather than on top of them. I have the actionscript on a separate layer from everything else, but regardless of the layer being above or below the content layer the lines still appear on top. How would I go about accomplishing what this? here is the code
Code:
/*
set up vars
p = number of points along the line; more = smoother curve[code]....
View 1 Replies