ActionScript 2.0 :: Random Falling A-Z Text Thats Clickable?
Mar 27, 2006i want an 400 x 300 canvas with 10-12pix random size and random lattering falling from the top of the scene and i want it clickable
View 3 Repliesi want an 400 x 300 canvas with 10-12pix random size and random lattering falling from the top of the scene and i want it clickable
View 3 Repliesi am creating a game where the user has to collect random falling objects from sky .. i canot get the objects to fall random and be collected with a hittest
View 3 RepliesI'm trying to develop a SWF Api that consists of a game that makes random objects fall from the top, each of them has different points, and then the points the player gets should be stored into a dinamic text called score, when the player doesn't take the ball, loses a life. Then, if the player catches it, the ball disappears and gives the points to the player.
View 3 RepliesThis question relates to the Falling Snow tutorial on this site...
How can I get the snow fall to randomly change every time the person sees the animation so, for example, you'll see falling snow right now, yet the next time you visit the site you'll see falling cars, or falling mobile phones.
I am attempting to create a game that will simulate groceries coming down a conveyor belt. The player acts as a bagger and must click and drag the groceries into designated bags (one for cold food and one for non-cold food). When the correct choice is made the food will disappear and the score will increase +1.
I have become overwhelmed by thinking about how to do this and have not found helpful answers that actually work when I try to compile them so I decided to ask. how I can have random grocery items fall down the screen? I assumed I could create an array of movieclips and have them be called to fall down randomly, but I am not sure how this would work.
I am trying to make a game where you have random objects falling vertically and must land in a bucket. The bucket is controlled by the mouse(it follows the mouse).
View 5 Repliesi am doing a slideshow with images occuring randomly wch hav clickable links,okay it works but at times the transition is very fast instead of the 8s interval i expect ,when i view the trace() output ,i have noted that at times the timer is triggerd twice or more simultaneously...my code is below...what maybe the cause may u kindly assist i have 21 frames with 21 images
[Code]...
I have some code here for some falling leaves. I was wondering how it can be altered so there is a delay between a group of leaves falling and the next group falling? also to slow down at the end of the fall? [code]
View 9 Repliestrying to bring in a list of people from an XMLdocument when a button is pressed, and once that list is broughtin, I want to make each name clickable so that a reader can findout more information about that person (the text of which wouldalso be from an XML document). The first part seems fairlystraightforward (see coding below; Im not sure if this isthe best way to do it, but it seems to work). Im stumped,though, about how to do the second part (make the names clickable).
View 5 RepliesMaking Text clickable is no problem, but making text clickable within a text box is another story. Basically this is what I am trying to accomplish. Dynamic Text will be placed inside a TextField. Imagine a TextField with the following dynamic text:
[Code]...
Is there a way to make each of those texts clickable, and have a function affiliated with them? If you click on "accc" it would have a different function than "zyyy" for example. Again, all of these texts would be placed into the one TextField. Easier way to imagine this. Imagine a bunch of User Id's on a chat program, like yahoo. You can scroll up and down, and click the names.
I want to add an event listener to each word inside the textarea. Is this possible?I have a function that shows a list of inventory items in a game I'm making. I put the list inside a textarea so that I can scroll through the inventory, but I want to be able to allow the user to click on each item. For Example:
Potion
Antidote
Sword
[code]......
I created a dynamic text box which contains some text that was read in from a text (*.TXT) file. I'm wondering if it's possible to have this text clickable (adding listeners to each of the text), so that when you click on them you go to a new movieclip?
For example, if the Text file contains this:
Code:
Click here for Page 1
Click here for Page 2
Click here for Page 3
and it's read into the dynamic text box in my movieclip, how do I make each of those texts that's read in have listeners on them so that I can click on them?
So Page 1 is a link, page 2 is a link and page 3 is a link.
I have a movie clip which has 3 different text boxes inside it. I want to make each text box clickable similar to a hyperlink in HTML (clicking on text box 1 takes you to one website, clicking on text box 2 takes you to another website, etc.). Right now my code is as follows:
ActionScript Code:
MyMovieClip.gotoAndStop(2);
MyMovieClip.TextField1 = "Click Here For Example 1";
[Code]...
So, you will see that I have 3 different text fields (labelled TextField1, TextField2, TextField3. Something is obviously wrong with my onRelease function, so my question is how can I make TextField1 clickable and send you to [URL] when you click on it? Am I using the right approach in the first place?
I'm loading copy from an XML doc. How can I make allI can't put href statements in the XML as the XML is actually pulling Twitter postings.
View 9 RepliesI have text in a textArea component that I need to be clickable and open up the users email program.The text shows fine when I have this:infoBox.taEmail.text = xmlDataSelect.office[evt.target.selectedIndex];but I can not click on it, so I tried this:infoBox.taEmail.htmlText = "<A REF="mailto:"+xmlDataSelect.office[evt.target.selectedIndex].email+ "</U></A>";
View 2 RepliesIn an AIR app, I am loading a bunch of arbitrary text via JSON, loading it into an object, and displaying it via a custom renderer. I would like to have urls be clickable. So I'm sure that this is possible via some crazy regex thing (as I found for php here), but, Flex being flex, I'm astonished that there isn't some builtin functionality for this that I'm just not finding, or, failing that, a library that someone has created to do just this. (I'm equally astonished that this question hasn't been asked here before. I anticipate being flamed with the link to that)
View 2 RepliesI am trying to make a search interface that behaves much like searching in iTunes and Spotlight in that the list is updated instantly as the user types something in the search field. However, I would like the lines that result to be clickable and to fire actions inside flash (as opposed to launching an URL). Is this possible?I've gotten the basics down. Here's what it looks like and here's the source FLA file. The results are displayed as tabbed lines of text in a single text field. Is there any way to make these lines clickable without replacing this way of displaying the results with multiple, duplicated button/mc-intances?
View 6 Replies-this is supposed to make multiple buttons with text(not clickable yet) -it seems to coppy over, or remove the previous myButtons[i] movieclip each time it goes through the loop. -there are 3 strings in buttonText.length -on the output i get 0,1,2 -but on the screen I only see one gradient (its only a pink box, but one problem at a time) -the box appears where roughly the 3rd button should be. -full code attached
View 14 RepliesI am wondering how to make a movie clip that contains automatic vertical scrolling dynamic text(from an external .txt file) I dont want to press buttons to scroll text, I need it to be constantly scrolling, then loop once the text has been read from the external txt file.
I also require each line of the dynamic text to be clickable links that will take each line of text to a specific link. Ive uploaded a zip file containing fla and swf i found which shows vertical scrolling text. However if i move any of the graphics and text field clips around the stage the text cannot be seen anymore. why is this? can you put all of the items on the main stage in a movie clip so i can resize and move the scroller around the stage?? I tried this but again the text disapeared when i exported the movie? Is this due to the x + y co ordinates in the scripting?
How can you adjust the size of this scroller without this happening? Can the scrolling text be taken from an external file and each line of text be a seperate hyperlink? Follow this link (copy and paste it into your browser window, DONT click on it): [URL]..
I am still using flash MX. I'm pulling random text from a textfile (array.txt) into movieclip instance textbox.[code]All is good, but now my question is if I can have a text effect as well. For example having the random quotes typed out as they appear.
View 16 RepliesI'm using the following script to load a random quote from a text file:
ranQuote = new LoadVars();
ranQuote.onLoad = function(success) {
if (success) {
RanNum = Math.ceil(Math.random()*25);
ran = this["quote"+RanNum];
quote_txt.text = ran;[code]..........
quote_txt.text = "The text failed to load due to an error";[ode]........
Is there a line or two that I can add to this that would prevent it from choosing the previously pick number again?I mean it can use it again, just not twice in a row.
I have been making a memory game, where words are shown to the user. Once they have memorised the words they go to the next screen where the words that they have memorised are shown. They then have to drag each word into a "correct" place and a "wrong" place. I now want to edit it so that I can use two arrays one for correct words and one for wrong words. I want to generate random words from each of these arrays. I have sort of worked out how this is possible to do but using dynamic text, but am I correct in thinking that the whole dragging the words thing is not possible with dynamic text. (I may be wrong though, I am quite new to flash).
View 2 RepliesWhen a user enters the website, it will pull text from some location (possibly an XML file) and load it into a text field. The trick is that I want it to randomly load a different chunk of text in each time the user opens the site. There are about 25 different small pieces of text I want to randomly load.
I'm thinking of using XML to store the 25 different text sentences, but am open to other ideas.
When a user enters the website, it will pull text from some location (possibly an XML file) and load it into a text field. The trick is that I want it to randomly load a different chunk of text in each time the user opens the site. There are about 25 different small pieces of text I want to randomly load.
View 5 RepliesI want to make a "module" composed by an image and a text and make this clickable, how could I made this in AS? PS: to create the text I'm using the TextField(), what I have to use to make the image from a url?
View 1 RepliesI want to change the code a little bit by creating an Input Text. A random number will be typed in that text instead of having a fixed, pre-set number.
View 6 RepliesI did the excellent tutorial on Falling Snow for Flash CS4/AS3 on this website.I now want to add further graphics and animations to the snow for an e-card I'm creating.I have tried to add to the timeline and animate a logo, but then the snow just flashes on and off in one piece. Is there a way I can make the snow fall, say, halfway through my animation so I can add other things to it?
View 3 RepliesI am using Flash CS5, Actionscript 3.0 and trying to get the Falling snow 3.0 to work. Is it me or can other of you get this tutorial to work.
View 1 RepliesI have just finished the falling snow tutorial which works perfectly. However I am unable to make it stop once it reaches a certain frame.
View 2 RepliesI want to make a random name selector for choosing pupils in class. The below works, but I was wondering if there was a way that I could set it up so that I could just copy and paste a list of names to the text file, ie have the " &name2 =" in the actionscript or in a different file. It would be so much quicker and useable for non IT staff.This is what I have:
Action script:
loadVariablesNum("names.txt", 0);
count = Number(random(numvars)) + 1;
[code].....