ActionScript 3.0 :: Create Dynamic Images With 4 Lines Of Symmetry?
May 2, 2009
I can easily make a dynamic image with one or two lines of symmetry.
My normal approach is to take a square image and mirror it once too make one line of symmetry like this:
and then to make two lines of symmetry I can just mirror that image with one line of symmetry as well, making something like this:
images with 2 lines of symmetry work really well for 2D tessellations, but for 3D tessellations I need 4 lines of symmetry.
this is a problem since the way you'd normally do this is to basically fold the square in half both ways diagonally, which gives you triangles instead of rectangles.
this makes it harder to use rotation matrices to mirror the source image.
has anyone come up with a good way to give a source image that you can loop through every pixel quickly and mirror it in such a way that it has 4 lines of symmetry?
i have this completed so far, but i need the texture map to have 4 lines of symmetry, not 2 like it currently does.
[URL]
View 1 Replies
Similar Posts:
Aug 24, 2011
So I have a function to create images dynamically in as2, telling some parameters, the problem I am facing is that I need to add this function to a file that has as3, so is incompatible, can anyone please help me translate it to as3?
function goGetUrl(dir:String){
getURL(dir, "_blank");
}
[code]....
For example the getURL(dir, "_blank"); does not work, I think I can change it by:
navigateToURL(new URLRequest (dir));
also I know that getNextHighestDepth() is not available in as3
View 1 Replies
May 13, 2009
How to create a dynamic horizontal scroller for xml driven images.
View 2 Replies
Jul 24, 2006
I am looking to create something along the lines of www.pyott.co.uk with the animation being scrollable in all directions - left, right, up and down - I've seen some references to it called 'dynamic images slider'.
View 1 Replies
Apr 28, 2011
I have images I want to display on the stage one at a time, so I thought of creating some sort of object that contains an image that can change dynamically by code. How can I do this?
View 1 Replies
Nov 19, 2003
I would like to create a flash movie that loops through 11 dynamic images continually with a fade-in, fade-out each image.
View 2 Replies
Feb 27, 2006
When doing a preview, flash loaded quite fast and you were able to see the preview in only a few seconds! But suddently it has become slow! Now it runs to about 80-90% in loading when pressing CTRL+Enter and then it stops, and you have to wait like 10 seconds to see a preview.. Why is that? The file only contains around 100 lines of AS and 2 images!!
View 4 Replies
Nov 19, 2003
I would like to create a flash movie that loops through 11 dynamic images continually with a fade-in, fade-out each image.
View 2 Replies
Apr 26, 2007
Is it possible to create 2-3 drawn lines in actionscript?Wanted to make a dynamic chart, but so far when I add coding for the second line, the first no longer works.
Trying to nest the lines in movie clips didn't work.Is this a restriction of the createEmptyMovieClip?I'm using....
_root.createEmptyMovieClip("lineFirst",0);
lineFirst.lineStyle(12,0x000000,100);
lineFirst.moveTo(0,0);
View 2 Replies
Dec 20, 2004
im newbie here and in AS, and dont speak english very well :$ ..
i want create one box with 4 lines and without fill.... i have no idea to do this...
using line tool to do this, the lines rise when i apply the resize script..
View 7 Replies
Jul 11, 2005
as the title states.. i have no printer so i cant test..
View 1 Replies
Dec 20, 2004
i want create one box with 4 lines and without fill. using line tool to do this, the lines rise when i apply the resize script..
View 8 Replies
Sep 22, 2009
I am trying to get a dynamic text box to add text to it when I press a button, How do I get it to add multiple lines? I tried <br>, but how do I get line breaks? Is there a better code that what I am using?
..I am using...
on (release) {
dir_box.text="From South";
}
View 8 Replies
Feb 9, 2010
drawing a straight line, just like on the flash game Line rider. I need to be able to create a line by dragging it with the mouse.
View 3 Replies
Jul 21, 2010
I am trying to create a mindmap where the user can drag points about the screen, and the lines connected them to them follow. 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? I have seen examples using onEnterFrame and createEmptyMovieClip and one with setInterval, but they are in previous Actionscripts. I don't know how to translate them into AS3.
var line:MovieClip = new MovieClip();
line.graphics.lineStyle(1,1);
line.graphics.moveTo(ptOne.x,ptOne.y);
line.graphics.lineTo(ptTwo.x,ptTwo.y);
[Code].....
View 2 Replies
Dec 9, 2009
I need to know if there is a simple way to count the number of lines in a Dynamic Textbox?
View 0 Replies
Jun 15, 2010
So today I got an question: Is there anyway to count lines from an textbox?
View 0 Replies
Jul 19, 2011
I am trying to create a banner with one background and four lines of text.I need to make a 4 line animation where one line of text is displayed, then it fades out, then the other line of text fades in, and out again,then the 3 rd one and finally the last one and then it loops. The first 2 lines are working fine but not the rest.I am new to flash and trying to learn it thru tutorials.. I am stuck here.. Do we want to write any script for this or any other way to do it..? I couldnot find any tutorial for this.
View 6 Replies
Apr 8, 2010
I am using CS4 AS3. I have a dynamic text box and need to dynamicall enter multiple lines of code into this box when a button is pushed. I've entered the code as indicated in one of the tutorals but I keep getting an error "1095: Syntax error: A string literal must be terminated before the line break.[code]...
View 1 Replies
Sep 3, 2009
I have a project I am trying to put together that includes closed captioning with a scrollbar (standard flash component). In my navigation file I have a text box with a dynamic text box with _level10.ccText as the Var
I have a series of pages that get called into a level below the navigation file. On each of them I have code in an actions frame _level10.ccText = "text text text text";
The text displays fine in the text box but when I scroll down the scrollbar scrolls down too far. The text gets to the end and the scrollbar is only about halfway down the bar. If I keep pushing the down button or drag the slider it will go all the way down but my text doesn't move. Its almost like there are extra lines somewhere that it is trying to scroll to.
View 0 Replies
Jan 1, 2006
is it possible to count the number of lines in a dynamic textfield?
View 1 Replies
Aug 27, 2007
Is there a way to change the colour of a Dynamic Text Box so that it can have multi-color lines?
E.g.:
Nineteen says: (in red)
Hey everyone! (in black)
?
View 2 Replies
Mar 27, 2012
Im using the code bellow to draw a line:
Code:
createEmptyMovieClip("line",1);
line.lineStyle(2,0xFFFFFF,100);
line.moveTo(0,0);
line.lineTo(100,100);
How can I make the line to tween, from alpha 0 to 100 using AS2? I Tried TweenMax on "line" movieclip but it does not work.
View 1 Replies
Apr 13, 2004
I've been trying to detect the number of lines used in a dynamic textfield without any luck. I have tried using the scroll property of a field which didn't work (Find my attempt attached)
View 4 Replies
Jun 30, 2011
I start to work on new web 3d engine. I call it IGood engine.As can be seen from the video, it is already possible to create a simple application of visualization without lines of code.Base on for alternative 3d.I am waiting your opinions.
View 1 Replies
Mar 4, 2005
I found this flash tutorial about old scratchy movie: [URL]. Tells me to create a movie clip "line" and "actions" and create a line as big as the movie: 400. Then tells me to put this on the action panel of "actions".
Code:
onClipEvent(enterFrame){
_root.line._x=random(400);
}
I did that and it tells me to test the movie so I did but I get this error:
Code:
**Error** Symbol=actions, layer=Layer 1, frame=1: Line 1:
Clip events are permitted only for movie clip instances
onClipEvent(enterFrame){
Total ActionScript Errors: 1 Reported Errors: 1
View 3 Replies
Mar 28, 2012
I have some XML data loaded using LoaderMax. Flash is putting all my text on one line without any spaces. I need to break it up so each threat is on a separate line. [code]...
View 4 Replies
Mar 16, 2007
i am currently trying to use actionscript to make a flash program so that when i click once to set a circle and click another place to set another circle, a line will join these two circles. If i click to set a 3rd circle then this 3rd circle will line to the 2nd one and so on.... i have a circle movie clip in my library and the circles are appearing fine. my code is as follows but no line is appearing between the circles.
[Code]...
View 2 Replies
Jul 9, 2009
i'm creating a very linear game which will be dialogue-heavy. In fact, there will be little action involved at all. Think a game storybook. I'm using ActionScript 2 because AS3 is just too complicate for the type of newbie that I am. But all I'm trying to do is set up dialogue between two characters in my game with an image of the speaking character to the left of the textbox. Something very much like this:I considered creating arrays for the dialogue but my problem is that if I create an array for every time two characters exchange three lines of dialogue, I would end up with over 300 arrays. Not my cup of tea.
So, instead, I focused on this. I created a function called speak. Speak pulls two parameters: charNum and charText. CharNum is a number which specifies which frame of the charPic instance should be displayed, showing which character is currently speaking. CharText is simply the dialogue the character will speak, which will be displayed in the dynamic textbox with variable name 'dialogue'.The following code is an example of what I have at home. I'm at work trying to get help, so I don't have the actual coding. Therefore, small errors may be present. I'm looking more at the overall functions guiding my code.
[Code]...
You see, AS2 sees these as I believe what is called synchronous functions, meaning they run at the same time. Therefore, the second speak function overwrites the first one before the user presses the space bar to go to the next one. See the issue?I've tried to seek help on this issue (and other before), and I keep getting told about arrays and setInterval. But my problem is that I've tried it all. I don't see a good array tutorial about this type of thing, and setInterval doesn't function like I'd want as well. Instead, it seems that from what I've read and tried, setInterval is for setting a delay up for a certain amount of time. I don't want that. I want a delay to occur until a button (namely the space bar) is pressed.
Like I said, this seems like a fairly common thing to do (stringing together dialogue in a flash movie/game), but I have seen no tutorial nor other help through all my Google and forum searching. A little push in the right direction would be appreciated. Like I said, I've figured out everything else my game needs from preloaders to game inventory to animation effects.
View 1 Replies
Feb 29, 2012
Is there a way to hide partially shown text lines on a dynamic textfield that has more text than its size can hold? I want to avoid the situation found on the picture below by simply not showing the areas in red (the text comes from lots of sources, so I don't have control over it).
View 2 Replies