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




Short Comment On Randomness...



Hi:

This isn't a question, but it's something I think it's worthy of say; I'm working with FlashMX, and had a few random() scripts in my code. But in the constant testing I noticed that everything was turning very sluggy in the movie, and even in the computer itself.

Consulting the dictionary, I saw that random() is deprecated since Flash 5, and that the use of math.random() is recommended instead.

I had to look here and there before learning how to use the .math object correctly, but it's worth the shot. A lot of performance issues with my movie were gone, and I'm a very flash user now and blah blah blah...

Here at actionscript.org is a nice tutorial about this subject, go to

http://www.actionscripts.org/tutoria...ns/index.shtml

Greetings to all

Sir Patroclo



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 10-23-2002, 01:27 AM


View Complete Forum Thread with Replies

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

Randomness
Hi! Can any one offer any assistance here?

I want to create an animated backdrop to one of my flash sites, by having dots fly accross from either side to the other side accross the x-axis. I will do this by simply using:

onClipEvent (enterFrame) {
this._x = this._x+5;
}

The problem is, I'd like these dots to move across randomly e.g. sometimes there's one dot moving from left to right, sometimes 7 dots from right to left etc. How can I achieve this, I assume I will have to create multiple movies?

Thanks.
PB

Randomness....
how does one go about playing a selection of about 10 movie clips in random sequence and at random intervals.
The movie clips must play in their entirity before the next one loads.

Randomness
I am building a quick little program to randomly generate a list of names to be used in a fantasy baseball draft. I have 10 names and I want to randomly place the 10 names into 10 dynamic textboxes. I do not want it to be in order after the first name has been generated.

Meaning:

[code]var randomidx = 0;
var randomidx = Math.round(Math.random() * 10);
if(randomidx !== randomida && randomidx !== randomidq && randomida !== randomidx)
{
if(randomidx == 0)
{
name1_txt.text = _global.draft0;
}
else if(randomidx == 1)
{
name1_txt.text = _global.draft1;
}
CODE]

I want name2_txt.text to be random also. And yes I do know it says * 10. IT IS correct, I just didn't paste it all on here.

Any ideas?

Randomness (but Not Quite)
hi there! this is my first post but hopefully not my last!

im having trouble in Flash 8 with some actionscript.
when a button is pushed i want to select a random playing card from a standard deck of 52.
i have managed to do this successfully so far, with each card being a single frame in the timeline.
heres the problem: when a card is selected i want to make sure it is not selected again. imagine like a game of pairspairs where a card is turned over and cant be used again.

basically i want flash to "remember" the card has been turned. ive tried to set a variable that means the timeline can stop at a card when the variable is 0, but skips that card if the variable is anything else. but that didnt work so any ideas?

i know theres probably something already out there that can do this easily, or some sample Actionscript that will do exactly what i want, but i'd rather learn for myself. so please help!!!

Help With Randomness
Hey,

I really need to know how i can make some flash so when i click a button, it will show a random word from a list of words i have.
Even better if you no how to do it so flash reads a .txt (like the headlab newsflasher) file for the words so i can update it easily.

This is very important.

Thnx.

Randomness
hi,
i am making a game at the moment for a mc charactor to go around the screen (by the mouse) and catch random mc's falling down the screen. ive got it working apart from one thing. ive got a man as a cursor and when he hits 1 of 2 objects the score goes up or down, and ive got a health bar including actionscript for winning or losing the game. but my problem is, is that i dont no how to get the mc's to go down the screen randomly and multiply randomly so that the mc's falling will never end.
thx a lot if u can post a reply

Randomness (yes, Again)
ewwo! corr, it's been ages since I've posted a question (admittedly, I haven't been using Flash all that much over the past few weeks) Time to get back to it methinks! Just wondering: was reading the tutorial about loading random backgrounds and that involves loading external files.

To save on the number of files required for such a task, is it possible to load random movieclips instead (that are in the library)? Is there any difference to the coding other than exchanging the [random pic].swf with the movieclip name? Will that work? I don't really want to start if I won't be able to finish it



Thanks for any help

Randomness
how can u make a random background/picture.

is there a action script i can get? would be swell

thx for helping

Randomness
here's a question. Is it possible to randomly change the "tint" of an object that's tweened on rollOver? I'm not thinking so.

Randomness
hi,
i am making a game at the moment for a mc charactor to go around the screen (by the mouse) and catch random mc's falling down the screen. ive got it working apart from one thing. ive got a man as a cursor and when he hits 1 of 2 objects the score goes up or down, and ive got a health bar including actionscript for winning or losing the game. but my problem is, is that i dont no how to get the mc's to go down the screen randomly and multiply randomly so that the mc's falling will never end.
thx a lot if u can post a reply

Seeding Randomness
Is there any way of seeding flash's random statement so that the random sequences are repeatable. I'm trying to develop a game which uses random numbers, but I want the seed to be generated by the server, so that all the games played on a certain day would be exactly identical. Looking through the manuals I haven't seen anything, but was just wondering if someone had been able to do it or created a workaround to allow the Math.random function to be seeded.

Thanks for your help

-Skraut

Randomness Button.
I want to make a button that when clicked on makes a random sound from a few selected .waz files in the library. how would i do this?

ps go to www.retoxified.com

Guaranteeing Randomness
Hi, folks. I'm wrapping up a Tetris clone, and I want to be sure, absolutely sure, that my code gives each of the seven pieces a 1 in 7 chance of popping up.

My code is:

randomNumber = Math.floor(Math.random()*7);

I know that this works, but I don't know if it works perfectly. Block randomness is always a Tetris gripe. If there's a better, correct-er way, let me know.

Regards,
-mRNA

Randomness In Frames
I'm new to Flash and of course Action Script and this is my first time making an interactive flash movie.

I'm making a quiz style game and I've separated the questions into different frames and once the user gets the right answer, he will be directed to another question located in another frame.

How do I add randomness to the questions? I don't want the questions to appear in the same order every time the game starts.

Please help!

Randomness Lines
Hi, here is my project that i'm working on. Here's the rough idea : we were given the task to come out with either randomness, drawing methods, loops, mirror or array. so, i have come out with the idea of doing stencil graffiti art on t-shirt (basically t-shirt designing program) 1.you click on the stencil's thumbnails, and the design will come out on the t-shirt layout templates. now, the design stencils is basically is made out of multiple lines vertically. can anyone show me how to start ? i'm not really in to action script actually. so, i hope sumone can help me out to start sumthin, here. thnx !!!

Randomness Hopelessness
I have a AS2 slideshow that plays through a few dynamic (XML) images, but I would like to randomize which image is being displayed...

I have searched the forums looking for how to do this but I cant get anything workin...

Any help is appreciated

cheers,


here is all the code:



ActionScript Code:
#include "lmc_tween.as"

//********************************

// baseurl to use to locate images based on SWF url not HTML url
//var baseurl = _url.substr(0,_url.lastIndexOf("/")+1);

// create and position empty clips for images
// one for visible image, one which will be
// used for preloading the next image
this.createEmptyMovieClip("one",2); // on top
this.createEmptyMovieClip("two",1);
one._x = two._x = 0;
one._y = two._y = 30;

// clips represents the clips with images
clips = [one,two];
timeline = this; // allows reference to timeline from other clips
// images is an array of the names of the images being used
// this is for file referencing as well as status display
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
images = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
images[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
status_txt.text = "xml is loaded!";
FirstLoad();
//PreloadNext();
//next_one();

} else {
status_txt.text = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");


function GetFileFor(name){
return +name;
}

// Preload checks to see if a clip has been loaded
function Preload(clip){
var lod = clip.getBytesLoaded();
var tot = clip.getBytesTotal();
if (lod && tot){
var percent_loaded = lod/tot;
progress_mc._xscale = 100* percent_loaded;
if (lod == tot){
status_txt.text = "Preloading complete for "+images[0];
return true; // is complete
//progress_mc._visible = false;

}
}
return false; // is not complete
}

// PreloadNext is used as an onEnterFrame event
// to check the loading of the current image and
// reorders the arrays so that the first element
// now represents the next image/clip
function PreloadNext(){
var is_complete = Preload(clips[0]);
//progress_mc._visible = true;
if (is_complete){
clips.push(clips.shift()); // shift order of arrays
images.push(images.shift());
//Pauser();
delete this.onEnterFrame;
}
}


// initiate loading of first image
clips[0].loadMovie(images[0]);
status_txt.text = "Preloading "+images[0];
//black.swapDepths(100);

// FirstLoad is like PreloadNext but loads the first image
// adding in a status message otherwise handled by the next button
// and starting the second image to load when complete.
function FirstLoad(){
var is_complete = Preload(clips[0]);
if (is_complete){
clips.push(clips.shift());
images.push(images.shift());
clips[0].loadMovie(GetFileFor(images[0]));
status_txt.text = "Preloading "+images[0];
timeline.onEnterFrame = PreloadNext;
}
}

//calls a function called GoBack every 4 seconds//



// next_btn.onPress shows the next image if preloaded and starts
// preloading the next one using PreloadNext as an onEnterFrame event
next_one = function(){
if (this.onEnterFrame){
status_txt.text = "Please wait for "+images[0]+" to complete";

}
//clips[0]._alpha = 100;
//clips[1]._alpha = 0;

clips[0].swapDepths(clips[1]); // move preloaded image to top
clips[0]._alpha = 0;

clips[0].loadMovie(images[0]);

status_txt.text = "Preloading "+images[0];
timeline.onEnterFrame = PreloadNext;
clips[1].alphaTo(100,3);
//clips[0].alphaTo(100,1,1);

}
stop();

Pauser = setInterval(GoNext, 3000)

function GoNext() {
if(timeline.progress_mc._xscale == 100){
//clips[1].alphaTo(0,2);
next_one();
}
}

Adding A Little Randomness...
currently I have an animation which continully repeats the letter i moving across the screen. It is reset when the i comes in contact with a MC called reset. Here is the code I am using:
onClipEvent (enterFrame) {
if (this.hitTest(_root.reset)) {
this._x = -410;
} else {
speed = .5;
this._x += speed;
}
}
Currently I have a dozen or so MCs at different sizes, alphas and y positions. I would like to modify this code so when they reappear they are randomly placed withing a y_range, randomly given alpha values within a range (ie between 10% and 35%), and random speed values (ie between .1 and 1.9).... also if possible Id like to include random size (but this is not necessary.
Please help!!! Thanks
Peace

One More Thing About Randomness...
If you have read any of my recent posts you'll have worked out that I'm a bit of actionscript newbie who is experimenting with dynamically attached and positioned movie clips.

My latest stumbling block (and thus question) concerns the following: I have a section of code that takes one MC and places numerous instances of that MC to the stage. Rolling over those clips activates a function which references each individual clip by name (thanks Kenneth!). That works perfectly for one MC.

But what if I have a number (let's say 5, for this example) of different MC in the library and want to place instances of these at random?

I first thought of putting the 5 MC into an array, then randomly choosing a position in the array, and then passing the selected MC name to the 'nowGoAndPlaceThisMC' function.

However, I can't seem to make that work.

So my question is : is what i am trying to do conceptually correct (if so, my code construction must be *completely* wrong) or is there a different (simpler?) approach to achieve the same goal?

As always, thanks in advance for any advice with this.

Actionscript And Randomness
i was wondering what could i do to make a word move in a random linear path, like this: http://www.levitated.net/bones/mxCom...le-poetry.html
and how could i do to take the word from a text file in the server
ill be glad if u ppl can help me

Mouse Trailer, Add Randomness?
I'm not sure I have worded this very well, but I hope someone can help me out.
What I'm trying to achieve is to have a mc that follows the mouse, but has randomness added, so you don't have complete control over it.
If you have a look at http://195.92.224.73/j20/content/host.asp
you will see an example of what I am trying to achieve
Alternatively, if anyone knows how else to achieve this effect?

JennyJ

Creation Of Array & Randomness
I'm trying to create an array of questions:
myArray = New Array (Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10);

and what I'd like to do is have an swf that corresponds to the questions randomly play. This 'sequence' should continue until 7 questions have been asked.

At the end of the question.swf movie, a continue.swf movie opens that asks the user to continue with this line of questions or move-on. OnRelease of the continueBTN should increase a Question count so that the above mentioned randomly playing questions array doesn't surpass 7 questions.

I'm trying to "hack" code together and am thinking it might look like this:

Code:

// FUNCTION -- Shuffle array
fncShuffle = function () {
return Math.floor(Math.random()*3)-1;
}
fncNewOrder = function () {
// Create new non-referential copy of integer array.
myQs = rraIntegers.slice();
// Shuffle array.
myQs.sort(fncShuffle);
};
fncLoadQ = function () {
if (QCount < 6) {
loadMovieNum("pda_"+myQs[_root.myQ.pop()]+".swf", 2);
trace(CntryQ)
};
};
myQs = new Array (Cntry+Q1, CntryQ2, CntryQ3, CntryQ, CntryQ5, CntryQ6, CntryQ7, CntryQ8, CntryQ9, CntryQ10, CntryQ11, CntryQ12, CntryQ13, CntryQ14, CntryQ15);
for (i = 0; i < myQs.length; i++) {
fncLoadQ();
};

Using Variables To Create Randomness
I'm using flash MX2004, not a newbie but I don't use action script if I can avoid it.

I have a fortune teller art peice created by modifying a rotating menu.

When the user clicks on a button in the middle of the screen, the movie has a goto frame actionscript that loads a graphic in the middle of the screen, telling the user their fortune, and stopping the movie also. This is based on a menu that rotates behind the button, making it so that different fortunes will be loaded.

The problem is that after they see their fortune and then click the button to go back to the rotating menu/movie the menu goes back to the beginning. The user may get repeated fortunes if they don't wait.

My script doesn't use load movie or anything complex, its just a lot of
ActionScript Code:
stop
and
ActionScript Code:
goto frame
actions.

I know there is some sort of variable or some other action script that I can use that will put randomness in the movie. Something like
ActionScript Code:
Else if
that will make sure if the graphic has been loaded once then it will go to another one instead, and this seems beyond anything I can do.

If this doesn't make sense really its because I haven't used actionscript in the past and find most of it goes over my head when I try to learn it.
Any advice, tutes, or actionscript?

[FMX] Randomness Help, Variable Problems
I'm a brand new AS kid here, haha, like, started last week, but I am working on a science fair project on random stuff, blah blah, heres the meat of my problem.

I have three movies that need to be randomly selected and then played.

These three movies must be played after a button click. Here's how i set up the script for setting the randomness for the variables. (i dont know how you guys did that nifty code tag thingy, so I'll just paste it into here)

Code:
//set beaker variable
Beaker = random (3) + 1;

//Beaker Movie script
if (Beaker == 1) {
beakerGo = "revealBlue_mc" ;
beakerColor = "BlueMovie" ;
}
if (Beaker == 2) {
beakerGo = "revealRed_mc" ;
beakerColor = "RedMovie" ;
}
if (Beaker == 3) {
beakerGo = "revealGreen_mc" ;
beakerColor = "GreenMovie" ;
}
//End Beaker Movie Script
ok, so that sets even more variables according to what the random number that Beaker variable comes out with. An explanation of the variables.

Beaker - just my random number holder
beakerGo - thats the actual instance label of my movie clip on the stage
beakerColor - thats the label i gave inside the movie clips mentioned above.

Now I head on over to my buttons that I want to play, and I've done this code here, inside the buton instance.

Here's an explanation of what I'm wanting my button to do. First I want the button to make itself, and the things behind it to dissappear by going to frame labels that basically have nothing in them and stop the appropriate movie clips there. Then I want it to bring in the randomly chosen of 3 movie clips. Heres the code that I'm butchering, haha.

Code:
on (release) {
_root.CPD_mc.gotoAndPlay ("CPDVanish");
_root.hide_mc.gotoAndPlay("HideVanish");
_root.beakerGo.gotoAndPlay ("beakerColor");
}
yea, i've got a lotta unecessarry stuff in there, but i am not really sure how to do it correctly, so I was just being absolutely sure and using root paths. Can anyone help me out here and tell me how to take the variable and inject it into a path so taht it will play a movie clip and a label inside that movie clip (obviously from my bad code there, 2 variables are used, but if you know of a better way, by all means speak! ).

Thanks so much in advance!

Help With Randomness With Numbers + Playing
Hey having help with a random number generater when its playing through a frame. Heres an fla.

frame 10 has the code to randomize the variable _root.price that i have displayed on frame 20.

Randomness / Arrays / MC's Not Playing?
So I've got 10 MovieClips on stage that animate in, and each MC has a stop command on the first frame. I then have this AS on the main timeline on the last frame when everything is in place:


Code:
this._lockroot;
// Random MovieClip Actions
// Choose random selection of MC's
var services:Array = [copyWriting, design, eventManagement, marketingStrategy, marketResearch, mediaPlanning, projectManagement, promotionalItems, publicRelations, webInteractiveMedia];
var indexArray:Array = [];
var selectedServices:Array = new Array();
// Number of Items to Fade Out
var Faded:Number = 6;
var isFadedOut:Boolean = false;
var reset:Boolean = false;
//
function choose() {
var exists:Boolean = false;
var rand:Number = 0;
while(indexArray.length<Faded) {
rand = Math.floor(Math.random()*10);
for(i=0; i<indexArray.length; i++){
if(indexArray[i]==rand){
exists=true;
break;
}
}
if(!exists){
indexArray.push(rand);

}exists=false;

}
fadeOut();
trace(indexArray);
}
function fadeOut() {
for (var h = 0; h<Faded; h++) {
_root.services[indexArray[h]].gotoAndPlay(1);
trace(services[indexArray[h]]);
}
isFadedOut = true;
reset = false;
}
function fadeIn() {
for (var h = 0; h<Faded; h++) {
_root.services[indexArray[h]].gotoAndPlay(6);
}
reset = true;
}
function changeServices() {
if (isFadedOut) {
fadeIn();
if (reset) {
indexArray = new Array();
}
isFadedOut = false;
}
choose();
}
ServiceLoop = setInterval(changeServices, 3000);
I've got two arrays, one with the MovieClip names, and one listing indexes of the MovieClips with a random function that pulls the value of Faded(6) randomly and tells those MC's to gotoAndPlay at frame 2 and 6 depending if they are fading out or fading in.

The problem I'm having is that in the Output panel I can see that it's choosing 6 unique MC's randomly every 3000ms, but on the stage, it sometimes doesn't animate all 6 MovieClips. Sometimes it does just one, sometimes it does 3, etc. It's frustrating, and more than likely I'm just overlooking something. Any help is appreciated

Oh, and the .fla if anybody is interested in helping- Thanks again!

[FMX] Randomness Help, Variable Problems
I'm a brand new AS kid here, haha, like, started last week, but I am working on a science fair project on random stuff, blah blah, heres the meat of my problem.

I have three movies that need to be randomly selected and then played.

These three movies must be played after a button click. Here's how i set up the script for setting the randomness for the variables. (i dont know how you guys did that nifty code tag thingy, so I'll just paste it into here)

Code:
//set beaker variable
Beaker = random (3) + 1;

//Beaker Movie script
if (Beaker == 1) {
beakerGo = "revealBlue_mc" ;
beakerColor = "BlueMovie" ;
}
if (Beaker == 2) {
beakerGo = "revealRed_mc" ;
beakerColor = "RedMovie" ;
}
if (Beaker == 3) {
beakerGo = "revealGreen_mc" ;
beakerColor = "GreenMovie" ;
}
//End Beaker Movie Script
ok, so that sets even more variables according to what the random number that Beaker variable comes out with. An explanation of the variables.

Beaker - just my random number holder
beakerGo - thats the actual instance label of my movie clip on the stage
beakerColor - thats the label i gave inside the movie clips mentioned above.

Now I head on over to my buttons that I want to play, and I've done this code here, inside the buton instance.

Here's an explanation of what I'm wanting my button to do. First I want the button to make itself, and the things behind it to dissappear by going to frame labels that basically have nothing in them and stop the appropriate movie clips there. Then I want it to bring in the randomly chosen of 3 movie clips. Heres the code that I'm butchering, haha.

Code:
on (release) {
_root.CPD_mc.gotoAndPlay ("CPDVanish");
_root.hide_mc.gotoAndPlay("HideVanish");
_root.beakerGo.gotoAndPlay ("beakerColor");
}
yea, i've got a lotta unecessarry stuff in there, but i am not really sure how to do it correctly, so I was just being absolutely sure and using root paths. Can anyone help me out here and tell me how to take the variable and inject it into a path so taht it will play a movie clip and a label inside that movie clip (obviously from my bad code there, 2 variables are used, but if you know of a better way, by all means speak! ).

Thanks so much in advance!

Help With Randomness With Numbers + Playing
Hey having help with a random number generater when its playing through a frame. Heres an fla.

frame 10 has the code to randomize the variable _root.price that i have displayed on frame 20.

Movie Clip Randomness
i have this movie clip that, when it loads, it moves to a random coordinate in the flash movie, then follows your mouse if is close enough.


Code:
//FRAME TWO:
minX = 0;
maxX = 232;
minY = 34;
maxY = 257;
originalX = (random(maxX-(minX-1)))+minX;
originalY = (random(maxY-(minY-1)))+minY;
maxDistance = 20;

//FRAME FOUR:
mouseX = _parent._xmouse-7;
mouseY = _parent._ymouse-7;
distanceX = mouseX-originalX;
distanceY = mouseY-originalY;
distance = Math.round(Math.sqrt(Math.pow(distanceX, 2)+Math.pow(distanceY, 2)));
if (distance<maxDistance && mouseX<233 && mouseX>-1 && mouseY<257 && mouseY>33) {
goToX = mouseX;
goToY = mouseY;
} else {
goToX = originalX;
goToY = originalY;
}
this._x = this._x+((goToX-this._x)/2);
this._y = this._y+((goToY-this._y)/2);
gotoAndPlay(3);
i then duplicate this movie clip however many times

Code:
//THIS IS ON ONE OF THE PARENTS FRAMES
maxNumber = 10;
for (i=1; i<maxNumber; i++) {
portfolioItem1.duplicateMovieClip("portfolioItem"+(i+1), i);
}
the effect is that when the movie loads, a bunch of the little squares move out from the center of the screen to their different places.

now, how could i make it so that no two of the movie clips come too close to each other? otherwise, as you can probably see by the code, two of the clips may jump to the mouse at the same time.

cheers, james

Just A Comment
Michael Williams: best coding practices suggest putting each custom Object in it's own *.as and using #include to load it. This is the same method use in most languages, like Java, were each Class is seperate, besides for the odd inner Classes...The only problem with this, is that flash can only have one *.as open at once, unlike a Java IDE that allows you to work with an unlimited number of Classes at once.

Anyways, at a certain point, it becomes impossible to debug, because I end up having to use an editor that allow multiple docs open at once, but that doesn't support *.as debugging.


Does anyone have an opinion on this?

A Comment Box
hey guys, im working on a site for myself, kind of to learn and to show off some stuff ive made. Everythings goin ok, but i want to try and add a comment box. my site is www.ryanvollmer.net , if you go to the email tab (which im gonna change the name of) youll see there are two spaces in the layout i can put stuff. In the bottom left, the green box, i would like to have a form, where you can type your name and then a message, then submit it, without registering or anything and it will appear in the blue box in the type right, and youll be able to scroll through them and so on. Is this possible? it sounds like i might need to use some sort of php and im not 100% my hosting service supports that. I can upload the actual .fla if you need it, thanks for looking

ryan

Url Comment
Hey there.

My code is making a coment where I don't want one.

I am applying a getURL AS to my button and it is commenting the bits after http:// (obviously because ofr the //)

How do I correct this.

Also, can I just check my getURL command is right?


ActionScript Code:


on (release) {
getURL(http://google.com, "_self");
}

Comment Box?
I'm brand new to Flash and I bought a template and I'm trying to make a site. Everything is going well except I having trouble trying to figure out how to make a suggestion box sumit text to my email address. If you go to www.meave.com/indexold.html (temp location until I get it finished) and then go to the contact section, there is a comments box with a submit and reset button. How can I get the comments that people type in submited to my email address? Any help would be greatly appricated!

Thanks in advanced!

Also is there a good Flash Forum program that you guys would recommend?

Comment Your Actionscript.....
Hey everyone!

I was wondering if there is a shortcut way to comment out some actionscript. I'm fooling around with some different chunks of code and I would like to comment out the chunk that I'm not using while I'm testing. Is there a way I can highlight a block of code and press a shortcut key to comment out the whole thing? It starts to become a pain in the butt having to go to each line and comment manually. Thanks.

Comment Submissions
if i set up a comment box, what kind of program, action script, or whatever do you use in order for the information to be submitted? How does that work? I really wanna know, i'd like to have a comment, suggestion box in my site when its finished, thanxx for your help.

Comment Out A Layer
Is it possible to comment out a layer so that when i publish the movie it is not visible? I have a current site that i need to modify and instead of deleting layers i'd rather leave them in but not have them show up when i test or publish?

Comment Book...
Ive got my own webhost at yahoo.com.... it was cheap so i didnt get much but since i signed up ive gotten all these new things like PHP and mySLQ.. is it possible to use these things to make a flash comment book?

Evaluate & Comment Please
I have just published my first flash site www.synergy-design.co.uk currently there have been comments about slow loading time & pop up problems on older slower machines.

I am looking for feedback & constructive criticism especially with how I can optimize the site and make it run better. Please be honest but as this is my first site, not too harsh!!!

Thanks in advance.

Add Comment ? ( HTML + Php Help )
hey guys,

I'm creating a simple site for someone and i'm stuck with something. I need to make some sort of form ( don't know what's it exactly called ) where visitors can leave a comment regarding a picture or something. The problem is that i need this done in HTML and i don't have that much of a PHP +HTML experience... Can someone point me to a tutorial or send me an example file of this "add comment" thingie... ? Thanks dudues.

Regards,
Biro

Comment Box (Myspace)
I have been making a flash website for MySpace. I have made a comment box and field.

The code i have put in works perfectly fine in Firefox but not Internet Explorer..

The code is:

on (release) {

friendID = 73410***;
f_comments = _parent.commentbox
getUrl("http://comments.myspace.co* m/index.cfm?fuseaction=user.Confir* mComment","_top","POST");
}
......

Can anyone help? It is driving me crazy because allot of people can't comment me.

Flash Comment Box
Okay basically I'm trying to build an entirely flash myspace profile. I've got the basics down but am struggling to make a flash comment box. I've seen a few examples and my code so far is this:

Code:
var defaultText = "Post your comment here!";

comment_txt.text = defaultText;
commentVars.friendID = "FRIEND ID";
commentVars.Mytoken = "";
comment_txt.onSetFocus = function ()
{
if (comment_txt.text == defaultText)
{
comment_txt.text = "";
} // end if
};
commentSubmit_mc.onPress = function ()
{
if (comment_txt.text != defaultText)
{
commentVars.f_comments = comment_txt.text;
commentVars.send("http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment", "_self", "POST");
comment_txt.text = "Comment posting...";
} // end if
};
commentReset_mc.onPress = function ()
{
comment_txt.text = "";
};
commentReset_mc.onRelease = function ()
{
Selection.setFocus("comment_txt");
};


It basically consists of a dynamic text box (comment_txt), a submit button (commentsubmit) and a reset button (commentreset).
When I publish it and try it out it loads up properly and has the right default text, but it wont let me type anything in. I click on the text box, the text dissappears but I cannot type anything.
Other then this it works properly, clicking submit does post the comment as expected, but its not much good without being able to type anything.
Can anyone tell me what I'm doing wrong or need to add?
Cheers for any help.
Tom

Embedding In A Comment
Im trying to embed a flash thingy that I made into a myspace comment. For some reason I just cant get it to work right. Im using an incredibly old ass version of Flash 5.. because of work and all I just havent been able to upgrade :-p If anyone could take a look at this code and let me know what im missing Id really appreciate it.. In case it matters I have the html and swf files stored on geocities.com. Any help and advice is greatly appreciated. I removed the brackets from the object tag below so you could see the code instead of the blank box.. ;-)

OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=500 HEIGHT=350>
<PARAM NAME=movie VALUE="cerealKiller.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="cerealKiller.swf" quality=high wmode=transparent bgcolor=#000000 WIDTH=500 HEIGHT=350 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
/OBJECT>

Comment Code
Is there anyway to comment out a block of code in one step?

Help With Flash Comment Box
Hey everyone, my name is Forrest Pruitt. I'm working on designing a Flash Myspace Comment Box for a friend, and definatly need help. Below is the code for a simple myspace HTML comment box. The end of it is all formatting, but I figured you should see the code in it's entirety lest I cut out something important ;-D...

But I need help setting up a Flash Box to do the same as the submit button in that box. The idea was to set the box on top of a saw blade, and when you clicked the submit button, the blade would spin a couple of times and at the end of that animation the text typed in the box would be submitted to Myspace. Can anyone help me? I'm sure there is an easy solution, I'm just not a big Actionscript guy.








Attach Code

<form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment"><input type="hidden" name="friendID" value="111111"><textarea name="f_comments" cols="50" rows="10"></textarea><br><br><input type="submit" value=""> <input type="reset" value=""></form><form action="http://www.codestogo.com/comment-box-gen" method="post" target="_blank"><input type="submit" value="Create your comment box"></form><br></center><br><style type="text/css">textarea {background-color:; background-image:url(); border-width:; border-style:; border-color: ; color: ; font-family:;} input {background-color: ; border-width:; border-style:; border-color: ; color: ; font-family:;}</style><br></center>

























Edited: 01/15/2008 at 06:25:54 AM by trees91

A COMMENT FIELD
How would I create a comment field that would appear when the user rollOver a button or MovieClip?

Thanks in advance

mike

Please Comment On My Work
open for any comment and critism.

www.grillerking.com/mainpage.html

www.grillerking.com/index2.html

thanks

Comment Your Code
I can not stress this enough, people when posting long lines of action script code, please comment them, i love to help out people and stuff, but i hate sorting thur a mess of code, it helps me out so much, especially if you try and point out where your having problems, so please don't just post 50 lines of AS and except someone to help you, also do the same with fla's. also if you have code on movie clips, tell me in the comments of the first frame because i don't need to go thur clicking on every movie clip just to see if it has code on it.

this is to help me help you

could one of the mods add this to read before posting thread? maybe even reword it(im not the best writer)

Please Comment On My Animation
Hi All,

I made this animation as part of a short series of 'Enviromental Flash'. Please take a look, and give me some feedback, so that I can improve my animations better. Thanks!

Game Comment
here is my two games list plz send your feedback about the game
1)http://www.kongregate.com/games/rahul7star/truck-drill
2)http://www.kongregate.com/games/rahul7star/rough-ride

Thanks

E-mailing A Comment
how do you make a simple comment poster

were you have:

NAME:
<enter>

E-mail
<enter>

Comment
<enter>

SEND <sends to your e-mail address>

PLZ HELP ME

also were can i find inseration for people, so i got something to work from, they need to be a cartoon style but not to over the top.

thanks very much! (i like that smilie)

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