Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




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.



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-30-2008, 02:00 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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 :-)

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 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 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)

Can I Pass Log-in Parameters For A Webmail Program, Past CPanel Program?
Hey all.

I only have a working knowledge of actionscript, so sorry for any bad questions.

My personal website uses cPanel for configuration/management and a free webmail program called Horde. Both are great, but accessing them is a pain. I was wondering if there was some way (either through flash or javascript) to bypass the cPanel log-in screen and the horde log-in screen.

For example, currently when I open my webmail program (www.---.com/webmail), Internet Explorer automatically prompts an "enter username and password" box (same prompt for any ftp or secure access through explorer). This acts as an automatic input for cPanel.

If the input is correct, cPanel grants me access to the webmail log-in screen, and all the necessary log-in info (name and password) is already filled out, waiting for me to press enter/submit. If the input on the IE prompt is incorrect, I am taken to the cPanel log-in screen to correct my grave errors. Once I input and submit the correct info, I am again taken to an already-completed Horde log-in screen. In other words, I have to go past two log-in screens and press enter twice.

Note - The Horde webmail program is installed on the server, not my rented account. Therefore I cannot modify or, in general, access any program files. Everything is done through the cPanel program. Moreover, I cannot access the Horde-specific log-in page in any way, I must go through cPanel (or IE's prompt for the cPanel log-in info). However, the given address of the Horde log-in screen is http://www.---.com:2095/horde/index.php. But opening this url takes me to the cPanel/ie login.

I think that there is some way of passing parameters from input in a flash swf to a php/sql program. Can I automatically log into my webmail program, bypassing cPanel? Am I hopeless, worthless ), or is there some magic way to do what I want???

If anyone wants to help but needs more explanation or examples I will be more than glad to assist.

Big thanks.

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;

Replicating Photoshop Text Tool Antialiasing Settings In Flash 8?
Does anyone have any custom antialiasing settings to match up with the 4 settings: smooth, sharp, crisp and strong?

Thanks

Better Program To Program Flash In ?
I`m sick and tired of flash not having the option of hiding functions in my classes , you know those PLUS and MINUS to hide a function , this make my code so long ! is there any way ?

Need Program Name
Anyone know the name of the program that does the fancy text and renders as a swf file... I think its Swish but not shure...

Which Program...
Hi guys. I'm new to the forum. I'm starting to learn about Flash programs but I have no experience in working them whatsoever. I'm interested in website interface designing. What program should I use for interfaces? Also which one is good for animations?

...I'm making a website for my band and I. I want some really cool high tech looking interfaces. Our name is Darwin's Radio. If anyone can help me out, email me or whatever. Thanks...

FTP Program
Hello, I've finished my first flash website and I have to put it on the web! So I want to know witch is the best FTP software!! Please answer me as soon as you can!
That's all for now, bye guys!

Got The Program ..now What?
just downloaded flash mx now where can I find help tutorials , ebooks, any information on where to start.
Any help would be greatly appreciated.
thanking you in advance
Newbie1

3d Program
hi

is there any good free 3d programs that i can use.

thanks

Your Top 3D Program?
Im looking at starting to learn a 3D design prog but don't want to waste my time on an inferior product. which would you recommend? swift? plasma? 3DS max? others? any advice much appreciated
cheers
lev

I Need A Program
Hey, doez anyone know any good program for creatin'wallpaperz from an .swf? The wallpaperz with high quality. Thanx in advance.

Best Program?
hey, i know absolutly nothing about flash, but if i get a program, i think i could figure it out... so, whats the best program out there?

What Program Do I Use ?
what program do I use to make flash effects and possibly a whole web page in flash form???

What Program To Use?
Ok, I know how to use Flash and Dreamwever pretty well and have been making sites in them. But I don't really like either. I don't like Dreamweaver because I can't draw things like boxes and lines in it. I don't like Flash cuz I don't need all those features, and with a swf with pics the site takes to long to load. I do like the features in Dreamwever and the Flash Interface. So are there any other options except for these two? I really like the flash interface with the features Dreamweaver has.

What Program And How?
What program and how do you produce something like this?




http://www.flashkit.com/gallery/3D_A...3447/index.php

I want it for the background of a flash movie. thanks

Best Program
What, in your opinion is the easiest flash program to use?

PS

I am a COMPLETE newbie and UNDER 16, so i am pretty dumb compared to most of you.

And i havent got any experience at all, i wanna make a flash website!

What Program Is It? I Ask You
i need to know what program it is that says text like if anyone has seen the clock crew with strawberry clock how he has that computer-like voice i dont know what program it is

How Do You Program In Php?
I saw a script online for a random photo gallery done in .php . Do I copy the script into a text program and save it as .php? or is there a program I need to download? I tried pasting and saving from a text program but it didn't open in my browser when I tried it. Websites that are done in .php usually open on my browser...so I'm not sure.

What Program Did They Use To Do This?
ive seen alot of this 3d aniumation in flashsites but i never understand what they use like this http://jonowoods.f2s.com/ebay/flasht...rab/scarab.htm

what prograsm is used to do the spider thingy

Help With Program...
off topic i kno...but seemed like it would fit the subject the best,ok.... i need to get the full version of this program..Desktop Flash Intro Builder1.0... but i dont have enough money to buy it it.... is there any way i could get this in the full version som other way..like getting the watermark removed.... i tried downloading it but they all contained viruses.. please help... i GREATLY appreciate any help...

What Program Do You Use?
I'm searching around for good sound mixing/editing software, and I would like to know what everyone else uses and how much they like using it.
So...

What sound program do you recommend?

Thanks! The more choices I have the better, so recommend away!

Program Help
I am making a program that lets you design your own tshirt with inserting images and colors in certain areas. The person chooses the colors they want from a drop down color palet exactly like the one in Flash with all the colors. Changing the color of the object is not a problem. While moving around in the program is though. I am wondering is there a way I can have the program keep that certain item the color that is selected while going to other options which is moving to other frames. Cause let's say I want to move to the back of the shirt and change a color then I go back to the front it's back to white. If you are confused on any part of this just ask but I think you should understand what I'm doing. (the objects are movie clips which are assigned a name and that is how it is changed color.)

Help With My Program
Hey,

I recently made a small program for my friend thats able to work out what power to weight ratio your car has. Based on the users BHP and KG input.

Heres the link to the .swf file:
http://www.pixelvid.net/POWER2WEIGHT.swf

Heres the link to the .fla file:
http://www.pixelvid.net/POWER2WEIGHT.fla

The Problem

Put 945 into the KG box and 73 into the BHP box and press "Calculate".

It should say that the power to weight raito is:

77.2486772486772

Which is correct, but how do I get it to say "77"? How do I round it off?
If you could look at my source code and let me know what do I do, I would appreciate it.

Thanks,

Craig.

Which Program?
I purchased the MX Studio a month ago and it is the first time ive used multimedia software- apart frm being slightly overwhelmed about programming im confused about functionality.
Ive produced graphics in Fireworks- halfway through producing a Flash based home page so where do I publish the site?- through Flash, or export all my work to Dreamweaver- I would like to be able to add navigations and stuff and update the site later on a regular basis- help!!!

What Program Is Used For This?
I like the wireframe animations on www.pixelranger.com. Does anyone have any ideas as to what program is used and how its done? Is it done in Swift3d perhaps?

Exe Program
Ok, so if anyone has read the 2 other post I have posted this week you will know that I am doing a huge flash presentation using Flash MX2004 Pro; it has 249 slides. So here we go. Due to Technical Difficulties, I am using the action


Code:
on (reveal) {
loadMovie("folder/file.swf", 1);
}
Its working great except now I want to beyond what I was wanting to do. Since the main file "presnetation.fla" will be an exe file, I don't really like how I will have a folder of SWFs. So I am wondering if anyone has seen a program out there that will take presentation.exe and then the swf folder and convert them all into one exe file. So we can basically send the exe file to someone and now have to worry about the swf folder. This would be a great tool so I hope it is actually out there =).

How Was This Program Done?
Any ideas as to how this program was created?

It allows you to view a short 3d animation of each tecnique, which you can also rotate left or right a full 360, or view from on top...you can control playback speed and make either the attacker or defender dissapear...

I am curious how the 3d space was created and then inserted into an executable program...

http://www.aikido3d.com/































Edited: 03/04/2007 at 04:03:57 PM by BKearney1

What Program To Use?
Hello everyone,

I would like to add I believe Flash to my website but don't know for sure. Can someone visit this website to tell me what I need to be able to put a person on the screen and give a interview like this website has done................http://www.top10workfromhomejobs.com/hbcc2/?CampaignID=1089&SubID=


Is this Flash or another program? Any help would be appreciated. Tell me exactly what program or programs I need to do something like this website..

Thank you,

Stevie

My Program
Hi,
I want to show my program, because then you can tell me what I can do
more.

http://upl.silentwhisper.net/uplfold...oad1/Smoke.zip

What do you think?

Copyright © 2005-08 www.BigResource.com, All rights reserved