What i am doing is making a simple RPG using blocks and circles nothing more than fun and a learning experience although my basic primitive battle system works, its lacking quite alot.I would like this to be more of a classic rpg where if you do 400 damage to the enemy, numbers pop up that say 400>In retrospect to the numbers popping up that say 400 i believe that it is possible to do this with some sort of movie clip? ether way id like the numbers to fade off rather than just disappear if that's any and at all possible [code]after pressing the button a number 5-445 is selected and subtracted from the VAR "health" in a dynamic text box. How would i make anthor text box to display "what number" was subtracted from it?please try to explain what each code AS commands you write back to me all do, id rather "learn" than copy and paste
I'm trying to create a shuffle button for my mp3 player. I don't want it to repeat any song in the xml playlist until all the songs are played. Is there to display a random number on the click of a button, without repeating any number in the array until all the numbers in the array are used?
i have a problem with a class that i built in this day ,this class read file from external source and exactly an TXT file.A class that i create have a problem when i call a method that are inside it ,i have many problm because display ever error compiler.In previus release AS2 when i created an external class i could use an instance of class with new method and than i could use a method built in it,now when i create an instance of class i have a problem to use a method of class because compiler display an error 1120 access property.I would like to know if possible to say where can use method inside in my class for example if i have this class: and than i want to use a method like ArrayRT() where can i do?when i create an istance private:
private var LF:LeggiFile; and than
LF = new LeggiFile(); and than
var VARS:Array = []; VARS = LF.ArrayRT();
display error 1120: access property not defined for LF.
I have a text field component that I am dynamically populating with text. The words appear one letter at a time in a teleprinter style fashion. I also have rendered certain words with HTML to make style changes within the text.Now all this works fine, except because the HTML text is larger than the body of the other text, I am losing theteleprintereffect at the bottom of the text field. In other words, after a set amount has been printed, users are not seeing the letters printed out one at a time, but instead just get a printed line of text appear from beneath the visible section of the text window.
I have to make time so the hours to be starting with 0 for the numbers less then 10 for example 9:30 to be 09:30 and in my code it works for the minutes but not for the hours. I have written the following code here:
function UpdateClock () { myDate = new Date () hours = Number(myDate.getHours()) minutes = Number(myDate.getMinutes()) seconds = Number(myDate.getSeconds()) [Code] .....
I am using flex builder 3.2, Action Script 3 and develop for Flash Player 10 and am quite new to it. when I call a method of a self defined class, I get the 1061 error (not defined). But the class and the method exist and are public, so what the hell am I doing wrong? Flash Builder is even offering me this method in the auto-completion, so at least the builder knows it... I have already tried cleaning the project (as this is the common source of strange errors when working with java/eclipse),
edit: solved... The problem was that a package had the same name as the variable I used for the class. Very strange error message, thumbs down for this .
I feel like such an idiot but after trying endlessly I still haven't managed to come up with a way to display the current frame number of nested movie clip ("ecke1") (in a dynamically created text field).The problem really is that I don't know how to have flash keep updating the variable. Here's my latest attempt:
Code: var frame:int = 0; addEventListener(Event.ENTER_FRAME,updateframe,false,0,true);
In the first frame you have to input numbers in three input text fields. And then in next frame when you press "1" "2" and "3" the same numbers appears in three dynamic text fields. I've done all that, but what I cannot figure out is how to make this numbers appear with counting up (e.g. by 50 [0, 50, 100, 150,...]).
I saw already this old thread showthread.php3?t=116768&page=2 (sorry, not allowed to post links) and I tried to manage the code from user "sunlis" to work, but not successfully. And his code is written in ActionScript 1 or 2, I'm not sure, but I need ActionScript 3.0 code.
In my site I need to have the date available for viewers. I know how to display the date of the user and I would like to create an onion skin animation for each separate chatacter(yes, I know how to create an onion skin animation but not how to do it separate for each character). My problem is this: I want to display the name of the month, not the number. Now I want each character animated separately in the date animation. for example:
S would appear with an onion skin animation, then about a quarter second later all the other characters with the same animation, E, P, T, E, M, B, E, R, [space], 2, 4, [space], 2, 0, 0, 2. How can I code actionscript so that I can do this with the user's date? Sorry for my lack of description, its late and I can't think well.
I am totally confused about this one. I am trying to display a number as x.xx, but I'm having problems! The number has 0, 1 or 2 decimal places, so I have an if else to add '0' or '.00' on the end if there are 1 or 0 decimal places respectively.[code]...
i have a dynamic text field on the stage with the instance name of "inputBox". On the same frame i have the following code...
ActionScript Code: var firstNumber:Number = 3; var secondNumber:Number = 5;
[code]....
the above code works perfectly and it does trace back the result. However I'm confused on how i can put the result in the dynamic text field i have on stage. Can i use the instance name to do this...
does anyone know how to display a random number every time i need to display 3 digit random number display and i has also a random number display for 3 dec place too
I am creating a dynamic text field and "next" button. When the movie is played, the number "1" will be displayed on dynamic text field. When the "next" button is pressed, the dynamic text field will display 2 and so on...
I need to display a number of images within a scrollig area. I thought the easiest way of doing this was to put them inside a MovieClip and then have this MovieClip as the source of a ScrollPane.This works fine if I only use the mouse - I can select the different images and react to them.However I need to have this accessible so I need to have it tab enabled but for the life of me I can't get it working. From the documentation it should immediately tab into the first image.The closest I have gotten is to press return when I get to the scrollpane and move the focus to the first item in the scrollpane.However when I check what has focus it still says the Scrollpane so I don't think I will know when to move the scroll bar to be able to see the currently active image.
public function Test() { addChild(_scrollPane); _scrollPane.tabChildren = true; _scrollPane.width = 200; _scrollPane.focusRect = true; _scrollPane.height = 200; fm = new FocusManager(_scrollPane); _scrollPane.addEventListener(KeyboardEvent.KEY_DOWN, onkey);[code].....
I have the need to populate three text fields with a random number in each.How do i wire up each field to retrieve the results of the random number function I've written in Actionscript?
I have a message and its visible property is false how can i make it so it becomes true when the user types anything but a number. So there input textfield and a send button if the user types hello when they click send i want the message to become true. How would you do it? restrict?
For the calculator i am creating i have so far got all d buttons inputting into the display area such as the numbers and the operators. However for the operators when i try to store the value into two number variables 'num1' and 'num2', i traced them to test if they were working fine however they output as 'NaN'. here is the code i have so far and the highlighted area is what i am working on currently
ActionScript Code: import flash.events.MouseEvent; var btn:Array = new Array(); for(var i = 0; i < 10; i++) {[code].......
I need to see if the number is stored when i click on d operator. In the trace It is meant to display the number entered after i click on a operator but it displays as 'NaN' I am guessing all of that function has mistakes. it is function pressOperator i am working with
An onLoadProgress listener object is returning a variable I am using to tell the user what percentage of the movie has been loaded. I am happy with the results of
I'm in the process of creating an application in AS3 where the user can arrange a number of display objects (move/rotate/scale/...) in a container.When the objects are added and arranged in the manner the user prefers I would love to have a button that 'captures' a part of the screen and returns an imagefile (JPEG?, BMP?) that can be used for example in MS Word.
I have an AS3 file that pulls an XML feed from a site. All the file does is display a number in a dynamic text box. On my desktop it works fine the feed is parsed in the output window and in the dynamic text box, joy! I upload the file to the CMS we are using and, no joy all I get is 'Loading' in the window. I get Loading because I input that in the tf so it wouldn't be blank.
So the question is, is there a fundamental flaw in my code or is it more likely to be the CMS? Im hoping it is the code, otherwise it is back to the drawing board.
I'm trying to get a slider to display a number in a Dynamic text field as it is dragged. I think this is the only time I can say it would be easier in AS3! Sooo, I made the slider and the code to move it, but I cant get the number to pass into it. My trace command fires but I get some static numbers in the text box. I'm just so confused, is it my var, or the math operator, or just syntax?
code as I screwed it up ....
on (press) { startDrag("", false, 0, 0, 200, 0); var xmin : Number = min(0);
Looking to do a keypad in as3. So i have 10 numeric buttons, labelled num1-num10. I have a dynamic textbox that I'll show my presses. How do you record button clicks or keyboard presses of a certain number and display in the text box?
Dear Guys I Want To Generate A Random Number Between 2 Number BUT Without Generating 2 Same Number I Mean If For Example Already Generated Number "2" Next Time Did Not Generate It , Is There Any Solution
I have tried this a dozen different ways and I really am at my wits end.
I have a presentation that works like a powerpoint. Everything is working as it should, except one part. I have a movie clip with an instance named slides, and I want to actively display which frame number you are in this move clip.
I have tried more than one why but I see no reason why this should not work:
var frameNum:Number = this.slides.currentFrame; this.frameText.text = "P�quina " + frameNum + " de 173";
It appears to work at first, but does not update when I navigate the slides. It constantly says 1. Before I just added a function to the back and next buttons to frameNum++ and frameNum--, but after I created the Menu I would prefer it to automatically detect what frame it is on.