ActionScript 2.0 :: Create A Slot System?
Apr 11, 2006how to create a slot system such a way that which ever slot an object was added on clicking it it performs a function.
View 2 Replieshow to create a slot system such a way that which ever slot an object was added on clicking it it performs a function.
View 2 RepliesAnyone knows how I can do a simple slot machine which can pick random names based on the names I put in the text area?
It is almost similar to this [URL]
But I want the chosen name to be in the middle instead of the top and more random.
creating something similar to this little slot machine name generator? I've been looking around for a tutorial but can't seem to find anything like this.. [URL]
View 6 RepliesDoes anyone know of a component or tutorial for implementing a slot machine-like list similar to the interface component on the iPhone (example at URL...)? I did find one commercial component for flex at URL..., but am not sure how open this would be for modification (looks like it's a compiled SWC file in the example).
View 3 Repliesi am making a shooting game for ict and i dont know how to make a scoring system or where to put the code this is my code:
stop();
var numEnemy = 3;
var fire = false;
[code].....
I was wondering if it could be possible to create a databinding system in pure actionscript without using mx.binding.utils At least I would like to know what is the overhead of the databinding code and how exactly the ChangeWatcher knows when a property has been changed.
View 2 Repliesiam tryin to create a login system i want the username to b only "mayuresh" & password to b "nagpure" blow is my code
go_btn.addEventListener(MouseEvent.CLICK,perform)
function perform(event:MouseEvent):void
{
[code]....
mp prob is eventhough if username is mayuresh and password is nagpure it traces ("Incorrect Username")
I need to create a rather detailed menu system that will load thumbnails of movie clips that I can then double-click on and it will load them into the display list of another movie clip.
I think I can code the loading part but I've never dealt with creating flash menus before and don't have any help in the 5 as3 books I own.
Is there a way I can make the menu generate the thumbs from an external file that I can just update when I need to instead of editing the flash file?
I am creating this website using good old AS2... although i am planning to move to AS3 quite soon...i JUST CANT come to an idea on how to Logoff or Logout the user from the site if he or she closes the browser or is inactive for 15 min.
View 0 Repliesi am trying to create a particle system for a game i am creating in class, though it seems that the particles are not being added to the stage. my instructor and i have checked all the obvious things and now were stumped?
particle class:
Code:
package {
import flash.display.MovieClip;
public class Particle extends MovieClip {
var xspeed:Number;
[code]....
the particle movie clip is simply a 5x5 rectangle, with the class name redParticle and the base class is Particle. [URL]
What I need to create a touchscreen restaurant ordering system?
I've got the touch UI understood and implemented 100%.
What I can't figure out is how to implement the "Send order to kitchen" and "Call waiter" functions.
Each table will have a "client" computer running an air app. Calling the "Send order to kitchen" and "Call waiter" functions from the "client" computer should make the "client" communicate with a different "kitchen" computer over wifi.
I need to create an image gallery that the clients can log in and click on photos to add them to favorites. I was wondering how to create this favorite system or if there are any galleries with it?
View 0 RepliesI'd like to know if someone of you guys has any experience in using Flash (and AS 3.0) to create user interface for Crestron system. I'm experiencing few problems with the management of feedback join
View 2 RepliesI am trying to create a standard production of visual basic system, on Flash CS5. It's an interactive system made in Flash, but the house style is as of Visual Basic. I have almost completed the project however I am finding it difficult to:-
a) If the user types into textboxes in one stage on flash, it should appear down on another screen on another textbox, simultaneously.
b) How to validate textboxes in flash so that the user can only type in certain characters, for example the user would fill in the textboxes when asked about coding in visual basic. At the end of the screen by clicking next it would check the textboxes and if the characters are incorrect it would display an error message, and if correct proceed to the next screen.
This coding is the closes't i got to solving my problem about validation, I have also read a number of ActionScript books but no luck there. I have also searched the net but could not find what i am looking for, all i got was validating using passwords from parameters.
[Code]...
I'm trying to load an AS2 swf into an AS3 and pass it a flashVar, here is my code:
ActionScript Code:
var myLoader:Loader = new Loader()
var _request:URLRequest = new URLRequest("loader.swf");
var context:LoaderContext = new LoaderContext();
[Code].....
But I get the error which is the title of the thread. I found two different pages from adobe on the LoaderContext class, one lists paramaters as a public property and one does not, I can't for the life of me tho figure out what's the difference or how I can use the class which allows me to use paramaters.
[URL]
I'm attempting to create a dynamic perspective shadow system in Flash 9 (AS 3) that would have the following constructor:
ActionScript Code:
public function PShadow(mcClipToShadow:MovieClip, nAngle:Number = 45, nDistance:Number = 20, nAlpha:Number = 90, nBlur:Number = 10, nXOffset:Number = 0, nYOffset:Number = 0)
{
//do stuff
}
The function would duplicate the mcClipToShadow MovieClip to use as the base shadow, apply a 100% black tint, set the alpha to nAlpha, and apply a blur filter with Blur X = Blur Y = nBlur. Then a transformation Matrix would be applied that would skew the shadow sprite so that it was cast in the nAngle direction with length nDistance.
The only part that I'm having trouble with is solving the math for the Matrix. I've played a lot with the swf's in your tutorial to better understand how the matrix manipulates things, but I'm still having troubles doing the math properly. My goal is to simply plugin the variables from the constructor into the Matrix constructor and the proper shadow will result.
I'm in the process of learning OOP and have run into a small problem. I'm trying to create a basic menu system where you can rollover and rollout of all links. When you select a link, it stays highlighted until you click another link.I've given the 5 links instance names like (link0, link1, link2, link3, link4) and given them each an ID of (0,1,2,3,4) - respectively. I used to be able to do something like this:
Code:
this.onRollOver = function(){
if(this.ID != _root.selectedLink){
this.gotoAndPlay('in');
}
[code]....
I got a textfile who i am reading on a serverside script and passing it as a script to my client side as3 code. The problem is that i am using characters like ä,ö,ü,ß and this isn't well displayed. I tried System.useCodePage but the compiler complains about : 1120: Access of undefined property 'System'. It doesnt matter if I tried this on the first line of the 'Action' in the first scene or in the first line of the first .as file i am loading. (btw i am only working with .as file and not in the timeline). When i am importing flash.System.* the compiler complains he dont know useCodePage.
View 3 RepliesI'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.
View 2 RepliesI am trying to create a nav system that expands to show sub-sections when the user rolls over main section buttons.Let me describe exactly (as best I can) how this would work:A vertical list of 5 menu buttons is stacked and distributed at equal distances.The user clicks a button (lets say Button 2) and Buttons 3, 4, 5 slide down to reveal the sub-nav below Button 2. When the user clicks or rolls back to any of the original 5 buttons, that subnav closes up.Does anyone know of a good tutorial for this type of nav or have anything I might be able to dissect and work from?
View 3 RepliesIs it possible to make this a mask? The system contains one movieclip of a circle called ball, also a class called ball and a class called particle. I want the particle system movieclips to display an image...I'm sure this is possible...just have not been able to find a way. A little backround, I'm a completely selftaught n00b when it comes to AS3, but I'm grasping it fairly well... the tutorial is on this website, called A Simple Particle System Using Actionscript 3.
View 0 RepliesI build a web site in flex that some time take input. Will this website works on Touch Screen environment(KIOSK).My question is we have to make any change to handle input such as prompt on screen keyboard when input fields are get focused or it will manage my device and OS of system(KIOSK, Touch screen system) itself.
View 2 RepliesWhen I use IK system to build a man and move it to perform poping, I found the more poses I gave to it the more its arms and legs would drift away. I didn't use alt and mouse to move the limbs. I only use my mouse to pose it. But WHY after I finished some poses, the limbs of the figure would get loosened?What was worse, If i adjusted those limbs(by alt and left click-drag) to fix the drift, the poses I have finished would be messed. So, what should I do?
View 3 RepliesI'm making a sort of interactive graphic novel and was wondering how would I implement some sort of inventory system. Btw, I'm using Actionscript 2.0
----INVENTORY SYSTEM 001----
You see, I would like the ending screen to show a summary of what the player has done in the game.And certain points in the game would add certain 'items' into the inventory which will in turn affect what is displayed in the summary screen.The 'items' here being words or phrases.eg:
Quote:
You _______ with the _______ and proceeded to _______. But you _______.
For example, if the player chooses Path A, summary screen will show: eg:
Quote: You stabbed the unicorn with the shark fin and proceeded to shag your mistress. But you ate a pecan pie.But if the player chooses Path B, the summary screen will instead show eg:
Quote: You stabbed the tree with the shark fin and proceeded to shag the corned beef. But you smashed a watermelon and caused a civil war.
----INVENTORY SYSTEM 002----
I think with a few modifications, this inventory system could also be used to affect the outcome of the movie depending on what item the player currently owns? Please enlighten me if this system is feasible.
The player is given a choice to pick up a spoon or a fork in the beginning of the game.The player is later faced with a soup crisis. If the player has previously picked up a spoon, the soup can be consumed. Otherwise, the soup is left well alone.
is System.gc() recognized in AIR 3 for iOS ? Or am I putting on a line a code that's just for pasterity ? I have made every effort to dispose(),null and removeEventListener any unused Object, hence to be able to tell the Garbbage Collector to "go ahead" is a really awesome feature.
View 5 RepliesIs there a way to get a unique machine-specific system ID in a Flex application running in a browser, so that is can be used for example to determine if the machine is properly licensed to run the application?
View 5 RepliesI'm building image processing or mapping system kinda like google map except we have our own HD images so i'm not sure what is the best way to do this in .NET here is what im trying to do Mapping web application build in .NET i've High resolution images , the user first load the selected area a full scaled image should be loaded 100% (original image) then he Zoom to the area he want, then he can move around this area almost like google map
1.user select area - full scaled image loaded
2.user zoom to random area - (i will receive some values for X, Y, etc.. in query string then i will extract these values and zoom/return the image based on these values)
So i'm not sure what is the ideal solution for this is it just zoom/re-size image based on the vales received from the user, or its more complicated than that?
I'm trying to use System.setClipboard.This copies text to the clipboard.My problem is that it doesn't copy the newline character.I've tried using and but it still doesn't work.
Here is some sample code I'm using:
PHP Code:
myText.text = "Kirupa Website" + newline + "Flash Samples" + newline "Flash Forums"; System.setClipboard(myText.text);
I've also tried having 2 newline characters to seperate the text... but the same results happens.There is no paste function in Flash apparently for security reasons...So to test... you have to use something like Notepad or any other text editor.
I'm making a dialogue based flash game.When a player clicks the right response I want them to gain/lose points.What is the best way to accomplish this?I'm in need of correct code/script because the way I'm doing things now doesn't work.
The buttons that allow for a gain/loss of points are inside of movie clips and are also on different layers, so I thought using a global variable would allow for editing it anywhere,but when I click the buttons that //should// make the player lose or win points, the value does not change, either that or I get a "NaN" in my dynamic text box.
Initiated variable;
_global.love = 0
The code I'm using right now;
on (release) { _root.love += 5;
}
the variable I set the dynamic text box too;
i tried to learn about SharedObjects from here: [URL] ...=00001504.html but i dont really get it In a code like this:
var so:SharedObject = SharedObject.getLocal("userHighScore");
so.data.highScore = new Number();
so.flush();
which variable is actually flushed, the userHighScore or highScore? and how to use the shared objects on boolean variables?