Replicating A Pattern
This time round i need to get the pattern drawn on the drawing board to be repeated on another area of the stage.I need it to be repeated 4x4 tile. Any idea??
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 07-15-2004, 01:13 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Replicating A Pattern
This time round i need to get the pattern drawn on the drawing board to be repeated on another area of the stage.I need it to be repeated 4x4 tile. Any idea??
Replicating An Effect
say there's one particular "effect" i want to use on several different symbols, what's the best way to go about reproducing it? for example, let's say i find a particular way of affecting color and size with lots of tweens that makes a really nice "shine" effect, and want to use the same settings on 30 or 40 different text and/or image links - how should i go about it?
tyia
Help In Replicating Menu
Hi,
I am working on a website and want to integrate a Flash menu, with the same type layout as the one used here (http://www.islandrecords.com/thekillers/site/home.las). I'd like a menu list where you get sub-menu items when you roll over the buttons. I'm just getting into learning Flash, and could use some help. I've got my main image and my buttons created on seperate layers. But I don't know how I should put the sub-menu items in, or how to get them to appear when you roll over the buttons. Any assistance in how to properly set this up is much appreciated. Thanks in advance. - Eric
Replicating An Applet
Hi,
I saw this applet that basically had heaps of points arrange in columns and rows, that when u clicked and held the left mouse button down they would move towards the mouse, and move away if the right button was clicked.
so the question is how do i make this code 4 making the points arrange on stage simpler I am sure there is a better way.
Code:
a = 0;
j = 1;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 1+i);
a = a+60;
b = 60;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 2;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 20+i);
a = a+60;
b = 120;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 3;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 40+i);
a = a+60;
b = 180;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 4;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 60+i);
a = a+60;
b = 240;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 5;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 80+i);
a = a+60;
b = 300;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 6;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 100+i);
a = a+60;
b = 360;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 7;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 120+i);
a = a+60;
b = 420;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 8;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 140+i);
a = a+60;
b = 480;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 9;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 160+i);
a = a+60;
b = 540;
_root[peete]._x = a;
_root[peete]._y = b;
}
a = 0;
j = 10;
for (i=1; i<11; i++) {
peete = [i, j];
_root.attachMovie("point", peete, 180+i);
a = a+60;
b = 600;
_root[peete]._x = a;
_root[peete]._y = b;
}
also i am using a mouse down clip event to make the points move to the mouse how do i make this happen for the whole time the mouse is down not just the click?
Help Replicating Effect
Hi all,
just wondering if anyone could give any help... I am trying to copy the effect on this page.
www.bbc.co.uk/radio1
when you hover over a picture, info pops up from the bottom.
Any clues?
Many thanks :-)
Self Replicating Program
Can anyone use AS3 (or AS2 I suppose) to write a script that can reproduce itself? Successful program should export code (into a TF or the output panel) that can be copied into a new flash file and run to repeat the same output indefinitely.
I've seen this posed for other languages but I'm not sure how to tackle it in AS3...yet.
Replicating MM Search Input Box
Hi Guys,
I have tried this - only have flash 5
Here is the fla - I have it working except when I roll on and off the textbox it fades in an out.
I only want it to fade when I click on it and click off it.
onClipEvent (load) {
this._alpha = 100;
alpha = no;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (alpha == no)) {
this._alpha -= 13;
// this._alpha++ // very slow
// this._alpha*= 10 //a bit faster
alpha = yes;
} else if (alpha == yes) {
this._alpha += 13;
}
}
onClipEvent (load) {
}
http://www.actionscript.org/forums/a...=&postid=50155
Cheers,
SuzyQ
Replicating Website + Flash
Okay. Here is my predicament. My Father's company (Natural Herbal Prodicts) is paying some people a large sum of money to design a website. The design that they are stuck with is mediocre and not very functional and I could do a much better job, and would like to do so, except for this obstable. They are making a replicating website, that would be plugged into the already existing database system. Let me explain...
The original domain name will be www.entreneteam.com
Say I ordered, then a site would automatically be created after the order at the url
www.entreneteam.com/eric.html
Now say I give my card to someone with my url on it and they will get the same frontpage as anybody else, but when they order, they will be put under me in the distributor line so that their orders benefit me.
So these frontpages would be replicated like a tree and tied into the distributor database. Now, he already has a programmer that can take care of the database part, and tying the database into it, but I would still personally have to do the replicating webbsite part of it myself.
Now I have no idea how to do that, and will gladly research, but is this possible to do in Flash MX or in Flash MX and Cold Fusion, so that I could include the funtionability of a replicating website, with a good flash design?
I would really be helping my father out of a situation if I could do so.
Thanks for your time.
Replicating Website + Flash
Okay. Here is my predicament. My Father's company (Natural Herbal Prodicts) is paying some people a large sum of money to design a website. The design that they are stuck with is mediocre and not very functional and I could do a much better job, and would like to do so, except for this obstable. They are making a replicating website, that would be plugged into the already existing database system. Let me explain...
The original domain name will be www.entreneteam.com
Say I ordered, then a site would automatically be created after the order at the url
www.entreneteam.com/eric.html
Now say I give my card to someone with my url on it and they will get the same frontpage as anybody else, but when they order, they will be put under me in the distributor line so that their orders benefit me.
So these frontpages would be replicated like a tree and tied into the distributor database. Now, he already has a programmer that can take care of the database part, and tying the database into it, but I would still personally have to do the replicating webbsite part of it myself.
Now I have no idea how to do that, and will gladly research, but is this possible to do in Flash MX or in Flash MX and Cold Fusion, so that I could include the funtionability of a replicating website, with a good flash design?
I would really be helping my father out of a situation if I could do so.
Thanks for your time.
Replicating OnDragOver In Flash 5
Hi every1. First post, wondering if you can help me.
The deal is I've got an MC that I am dragging around my scene and I need other MC's to be highlighted as I drag over them, i.e. the mouse is still down. Buttons don't work, onClipEvent only runs once whilst mouseDown (so I can't do a continuous position check) and the only thing I can think of working is the onDragOver and onDragOut events in MX but I am using flash 5?
Any feedback welcome. Can't help feeling like am being very stupid, am sure this is possible, but can't for the life of me think how.
Cheers,
Sir.
Replicating Flash, Am Stuck :(
Hey,
I seen this flash thing. And i want to learn how the computer gets brought into it. Take a look here http://www.clipitsolutions.co.uk/flash/flashmovie.swf .. As soon as it starts, the computer comes in with like a cirle being tweened over it. But i dont understand how to do this?
If anyone could help, would be most greatful. I really wana learn this technique but its fryin my brain lol
Thanks,
Paul
[CS3] Efficient Way Of Replicating MovieClips?
On my main timeline I have two dynamic text boxes and an input box that represent a math problem. I wanted there to be three problems on the screen at a time. Since I don't know much about classes and making packages I just copied and pasted the problem twice so that I have three instances of each text box. Next I basically just tripled my lines of code, one block for each of the three problems.
I'm assuming the proper way to handle something like that is to make the problem a MovieClip and then make a class for it. However, when I attempted to do that I got errors [possible undefined function] because code that still remained on the Main Timeline was referencing functions that had been moved from the Timeline into the mcProblem class. Could I change the code on the Timeline so that I won't be getting these referencing errors? If not, could you please provide some detailed information about what I should do regarding classes? Currently I am not using a document class.
If anyone understands what I'm trying to do, please guide me in the right direction. This is my first attempt at a solo project (for fun) and while I can achieve the desired swf sloppily I prefer to learn to do it the clean and efficient way.
Replicating Files On A Desktop In AS
Can i replicate files and create folders on a users desktop through actionscript?
Im creating a template builder that will have to replicate my swf's, write a variable to a html page where my flash is embeded, write a xml file, and create a folder on a users desktop with all the files above?
Is this possible in as or as3? Do I need to write my application in VB or flex instead?
Replicating HTML Forms
I am trying to put a HTML form into flash that has hidden fields. How can I put these in flash? Do I just set a variable value under the submit button function? Thanks!
Replicating Pages Turning
I'd like to replicate the turning of pages of a book, to show different information. I would either like (A) when you click on the lower right corner the page flips, flowing across the screen as if turning in real life or (b) *favorite* that when the lower right corner is dragged towards the left side, the page turns to the next. is this even possible? any help would be greatly appreciated (ps kinda new but my confidence and understanding is growing quickly)
Indications On Replicating Effect
Hello. I would like some indications on how to replicate the transition effect between the images on this site: link (the transition effect with the squares). Please offer some ideas on how to do that effect. As many indications as possible are welcomed. Thanks.
Replicating Pages Turning
I'd like to replicate the turning of pages of a book, to show different information. I would either like (A) when you click on the lower right corner the page flips, flowing across the screen as if turning in real life or (b) *favorite* that when the lower right corner is dragged towards the left side, the page turns to the next. is this even possible? any help would be greatly appreciated (ps kinda new but my confidence and understanding is growing quickly)
Replicating Left And Right Mouse Clicks
Was wondering whether anyone knows if it is possible to replicate a left and right mouse click in flash.
Need to distinguish between whether the user has right clicked their mouse or left clicked....also any ideas on replicating a double click?
Cheers....
Replicating The Menu On ERAIN Homepage.
The header bar of the Electric Rain webpage has a very nice effect when you rollover the buttons. I am just wondering if anyone knows how to re-create this effect. Also how to make the little pop-up bubble when rolled over the logo.
http://www.erain.com
Replicating This Effect With Bitmapfilter (Effects)
Hey there all, I'm just trying to replicate this effect
http://www.reactiondynamics.com/sd2.swf
using flash. So far, using Senoculars blurred trails example on his website, I've got this: blurtrail2.fla
Only, it doesn't look right and I'm not sure how I can get it looking better. For instance, how can I remove the spacing that appears as dots spin, and also, how do I elongate the trail, and make the blur falloff ? If it can't be done in flash, what program can I do it in?
Any help appreciated
Help Needed On Styling And Replicating Text Field
As a new AS3 coder I'm at a little bit of a loss on the most efficient way to replicate a styled text field.
I would like to use the following styled text info and load some text from an array. Do I need to create all this styling for every instance of the text in the array or can I create several new instances of the field in my function?
Thank you in advance for your help.
ActionScript Code:
var headlines:TextField = new TextField();var headline:TextFormat = new TextFormat();headline.size = 20;headline.font = new HelvBlack().fontName;headlines.alpha = 0;headlines.setTextFormat(headline);headlines.embedFonts = true;headlines.autoSize = TextFieldAutoSize.LEFT;
MVC Pattern
Is there any MVC Pattern samples available for Flash 8(AS2)?
Edited: 02/11/2008 at 01:08:34 AM by kamsky
This Pattern To AS
Hello,
http://theremedy.be/scrap/starsAs.gif
I'm looking for some clues here to generate this kind of pattern using Actionscript.
Probably it's gotta be a "star" attached from the library then generated on stage randomly with colordifference, scaling and skewing.
*Note how the pattern should follow the specified path.
Is it possible? Is it hard to do?
Appreciate any help.
This Pattern To AS
Hello,
http://theremedy.be/scrap/starsAs.gif
I'm looking for some clues here to generate this kind of pattern using Actionscript.
Probably it's gotta be a "star" attached from the library then generated on stage randomly with colordifference, scaling and skewing.
*Note how the pattern should follow the specified path.
Is it possible? Is it hard to do?
Appreciate any help.
Pattern Code
ok,
i have a background pattern, this pattern is made up of dimond shapes, each dimond shape is a movie clip named
"mc-dimond". one of the dimonds is a button, named "b-dimond" now what i want to do is when this button is pressed, each dimond in the pattern needs to change tint in a wave.
now how would i have to do this, i dont want to give each dimond in the pattern an instance name, would an array work for this?, but how?
any help would be great!
thank you.
How To FIll With Pattern
How can I fill the background or a box with a pattern. I'd like to create a "TV scanline" background. For example, in Photoshop I can create a pattern then fill an area with that pattern. Thanks!
Pattern Recognition
Hi,
I am doing a project that involves scanning a black and white(and gray) image of a palm and running it through tests to find out where the lines are. Then comparing the lines to a database of possibilities to output a result closest to the database examples.
Like a fortune teller kind of thing.
Any one have any ideas how to read pixels to compare to stored information on pixels?
Thanks
Jay
Backround Pattern
can someone tell me how you get a pattern like this website in flash? I want to be able to do the drop shadow behind the Main MC and also have the pattern repeat to the edges of whatever size the browser is.
http://www.walltowallrecording.com
thanks in advance.
Non-regular Pattern
I would like to get an information if it is possible to do in
FlashMX 2004 that the sequence of multimedial CD would not have a shape of square or rectangle but a non-regular pattern without frame.
Thanks for your answer
Duplicate Pattern
I'm new to AS3 and coding in general, but can someone post a sample code that would duplicate a movieclip after every half second? And after each movieclip is duplicated, it's rotated and at a different x and y coordinate where it forms a sea shell type pattern? Thanks
Detecting A Pattern
Hi all I am creating a bingo game in my learning curve to learn actionscript.
I have 6 cards set up on the stage as seperate movie clips and 25 dynamic text boxes on each with random numbers in each. What I was hoping was if someone could direct me to a tutorial or how to do pattern detection on each card, any line, 4 corners, Letter I etc etc. So that the game can determine if bingo has been achieved. I have all my blotters and every thing working now and this is the last step but do not have a clue where to start. Any help will be greatly appreicated.
Design Pattern (MVC)
Hello everyone and Happy new year !
I am trying to apply the MVC pattern to a tile based game.
I have trouble to understand at which level I should apply the MVC logic.
For the moment what I've created, it's a class TileGame, this class is
used to initialize the application.
In this class I instantiate my MapModel and MapView class.
When my map is displayed, the MapView class dispatches an event.
This event triggered the instantiation of my HeroModel, HeroView and
my GameControl.
( I had an other problem at this point, I needed a reference to the
movie clip – hero – for the calculation in my model, the movie clip is
created in the HeroView….. the MVC does not allow us to pass
information from the view to the model, so I choose to use the
GameControl to pass this info to the HeroModel …. I hope it's a good
workaround).
For the moment my GameControl only affect the movement of the Hero but
at the end it would also affect the position of the map (tiles), it
means that the HeroModel would have to update the HeroView and the
MapView …it looks a bit dodgy to me ….
So I am a bit lost… Should my MVC be apply to an other level ….the
Model regrouping the MapModel and the HeroModel for example?
Thanks for your help.
Sibylhun
Help With A Design Pattern
Hi,
I'm hoping someone can help me, as I'm a newbie to ActionScript (and Flash as well, frankly). I need to be able to create a movie that dynamically reads the URLs of images from an XML file and then populates the images on the screen, with some animation connected to the images.
I'm using loadMovie() to load the images, and that works like a champ. But I can't figure out how to "pre-define" an animation when I'm loading the images at run-time. I tried onEnterFrame() to do some basic fade-in/fade-out animation using _alpha, and that worked, but it seems like I could only call onEnterFrame() one time.
Can I call onEnterFrame() in subsequent frames, one per layer? Or should I be using some other "on" method? I sure could use some design help, obviously.
Thanks in advance,
Stan McFarland
RegExp Pattern Help
Hi all,
I'm trying to construct a RegExp pattern to use, but having no luck.
I'm tryng to match all digits [0-9] in a string that are not a part of a tag sequence.
i.e.
"this is a number 45 and th3r3 are <b0ld> numb3rs </b0ld> everywh3re 99!"
The pattern should match all digits except the ones inside a tag.
Does anyone have a solution for this?
Thanks.
Pattern Matching?
Has anybody ever seen actionscript code to implement pattern matching (i.e., regular expression matching)?
i have a PERL script that i desperately need to port to actionscript (it's a copy of the PHP unserialize() function--very useful). the problem is that it relies on pattern matching.
any help would be much appreciated. here' some of the PERL code...
PHP Code:
if ( $string =~ /^a:(d+):({(.*)})$/s )
{
print "Unserializing complex array ($string)" if ($SERIALIZE_DBG);
my $keys = $1 * 2; #keys in this serialized array
my @chars = split(//, $2); #turn the data into an array of chars
undef $string; #to save memory.
return unserialize_sub( {}, $keys, @chars);
}
Pattern Fill
Hi all,
I want to fill a selected area with a graphic selected by a user from a thumbnail gallery of patterns. For this i am importing that selected pattern (.jpg) in a movieclip and duplicating that movie clip (say 15 times) to cover the whole area to be filled.
Now the problems is flash is loading the same image separately for 15 times, hence taking so much time to have 15 instances of the same small image.
Is there any way to have that image to be loaded only once and we can reuse it as many times as we want to?
Pattern In Flash.
Hi everyone! I have created a pattern(all by myself!) and now I want it to display as a background in my glorious website. In dreamweaver I just assign it as a picture, but I want to publish the site in flash, and when I edit the html, and insert my pattern as image, but then my pattern is just visible on the outside of my swf(my swf's background is all white..)
Please help me on this one, I am utterly stuck!! JR
Need Some Pattern Recognizing Help..
Hey all,
Again, I ran into trouble making tetris. Please take a look at the swf attached. None of the controls work yet - press the blue button to start/pause.
Take a look at it, and you'll see that some blocks go through others (which isn't supposed to happen). The blocks are managed into arrays of "yes" or "no". If the blocks below the current moving tetris block are "no", then that current tetris block will continue moving down. If "yes", it will become purple and initiate a new tetris block.
Now, please feel free to browse through the fla to see the structure. Test the movie in Flash and look at the check "yes" or "no" process with the traced commands.
Something is seriously wrong, and I don't know what. There seems to be a pattern of the blocks that go through others, but I can't find it out. (the swf may need to be run 2 or 3 times before a bug appears).
Thanks for your time!
Sound Pattern
Movie
http://www.ramieb.com/fla/flash_dump/soundpattern.swf
Fla
http://www.ramieb.com/fla/flash_dump/soundpattern.fla
Was messing about with a pesudo random pattern generator and the sound object to see what would happen, the sound pattern will change or morph over time......
interesting results, thought id share them
Ramie
Problem With Bg Pattern
Im trying to make a bg pattern fill the browser from flash. It does that now, but if you resize the browser to a larger size the pattern doesn't keep on appearing (understand?).
Plus, I've got this white frame around the edges of the browser... I want that to disappear
I don't think it should be so hard, but I didn't manage to figure it out. I've attached the files
Peace!
MVC Pattern And Delete
Hi,
I'm having a problem when trying to delete a small MVC app. I destroy all assets, remove the observers and delete the class objects, but it still seems to be stuck in memory.
Any help with dissolving a MVC relationship and assets from memory would be greatly appreciated.
Thanks!
Need Some Pattern Recognizing Help..
Hey all,
Again, I ran into trouble making tetris. Please take a look at the swf attached. None of the controls work yet - press the blue button to start/pause.
Take a look at it, and you'll see that some blocks go through others (which isn't supposed to happen). The blocks are managed into arrays of "yes" or "no". If the blocks below the current moving tetris block are "no", then that current tetris block will continue moving down. If "yes", it will become purple and initiate a new tetris block.
Now, please feel free to browse through the fla to see the structure. Test the movie in Flash and look at the check "yes" or "no" process with the traced commands.
Something is seriously wrong, and I don't know what. There seems to be a pattern of the blocks that go through others, but I can't find it out. (the swf may need to be run 2 or 3 times before a bug appears).
Thanks for your time!
Sound Pattern
Movie
http://www.ramieb.com/fla/flash_dump/soundpattern.swf
Fla
http://www.ramieb.com/fla/flash_dump/soundpattern.fla
Was messing about with a pesudo random pattern generator and the sound object to see what would happen, the sound pattern will change or morph over time......
interesting results, thought id share them
Ramie
Pattern Fills
Hello,
Is there a way to create a pattern fill in Flash?
for example, if I want to create a shape and fill it with a black and white checkers board..
What's the way to do it ?
Thanks,
Y.
Fullscreen Pattern
hi!
i want my flash to be window filling no mather what res. No problem, but only when having a regular fill color as background clip. It stretches to the edge
But i want to use a digonal stripe pattern in my background. How do i do this?
btw, don't have to be diagonal lines, can also be a grid or something liek that. Just don't want to resize it, i want it to tile like it would in html.
thanks.
Pattern Editor
Im building a pattern editor in flash (kinda like fruity loops). The general idea is that you can load a sample and click on one of 16 buttons to place the sound in relation to time. The editor is time based, so the movie isnt dependant on framerate. This way i can let the usre determine the speed of playback. There is a problem however. Probably caused by the flashplayer the editor doesnt run as tight as the real thing (fruity). Im talking about a difference in milliseconds here but its obvious enough.
Is there anything I can do to solve this?
THNX
Jan
Randomize Pattern
I'd like aan action script to random a pattern with 2 movieclips. The movieclips are both square 20x20 pixels, but they have a different color. Let's say I want 15 squares (movieclips) on the x axes en 8 on the y axes.
Each time you load, the pattern will looks different, not in the form (15 squares x 8 squares) but in color impression.
I have to work with speciaal colors, is not possible voor what I need to randomize the value of r, g, b.
Thanks
worfoual
|