Mathematical Characters, And A Movie Question
Hi,
i've only been learning flash for a couple of weeks now, on and off so what im asking may not be possible or unbelievably simple, i've searched the forum but couldnt find anything relevant... but anyway hope someone can help.
I am designing a simple maths program which displays an equation (loaded from a txt file) and requires the user to input the correct answer. If this occur, the movie moves to the next frame where the original equation and answer are displayed as well as a new question requiring a correct answer and so the program progresses. So here are my two questions:
Q1. I want the equation to include mathematical symbols such as a square root sign, squared sign etc. As a text file doesnt seem to handle these sort of characters, is there any method which i can import them, preferrably importing the whole equation from a different file type (eg like word which can display these symbols??)
Q2. When the answer is correct i want a small movie to be played in that frame, that exists all the time, but is dorment until the correct answer triggers it. Is this possible?
Many thanks John
FlashKit > Flash Help > Flash MX
Posted on: 09-08-2005, 06:50 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Mathematical ****
Hi, i was just wondering if the actionscript in Flash MX was affected by B.I.D.M.A.S. (or bodmas, same thing)
(brackets, indices, division, multiplication, addition, subtraction) or if Flash just does stuff stuff as it sees it.
thanks
Using A Mathematical Equation?
Hey guys,
I'm wanting to make a jazzy flash movie that randomly fills the window with little boxes starting from the middle. Sort of like on the loading page of Der Baurer's (spelling?) web site but different in the sense that the boxes are smaller.
I'm wondering if there is some mathematical equation of some sort that could do this automatically since manually animating this would be next to impossible.
Has anyone ever tried this before or know if it can be done?
Thanks.
Flash MX - Mathematical Help
Here's one for you, I am trying to create a movie that will validate a certain 9 digit number. What I have done is create 9 input boxes on the form. Once the user enters the number I need to do the following calculations, but not sure how to do it in flash (or if it is possible):
ie. the 9 digit # entered 123456789 (each number is a separate input box named num1, num2, num3, etc)
the formula I need in flash syntax is:
1) remove the last digit (num 9)
2) mulitply the 2nd, 4th, 6th and 8th digit by 2 (i.e num2, num4, etc)
3) sum the digits together, treating two-digit numbers as separate numbers (i.e. 8x2=16, therefore for step 3 it would be 1+6+etc).
4) round up the sum in step 3 to the next highest tenth (i.e. 38 = 40).
5) Subtract total in step 4 from total in step 3.
6) The result should be the same as the last number in the original
I can do steps 1,2,5 and 6, but have no idea how to do steps 3 and 4.
Any help on this matter would be muchly appreciated.
Thank you
taylorgr62@hotmail.com
How Can I Do A Mathematical OperationPlease Help
I have two variable in my main clip time_start and time_now
time_now = getTimer();
time_start = getTimer();
and I have a second clip tha load after and I wan to do an operation with this two variables
Code:
time_end = Number(_root.menu.paroy.time_now)-Number(_root.menu.paroy.time_start);
trace(time_end);
I dont know how can I do this operation please help me.
Mathematical Comparison
hello!
I have a doubt: i need to make a mathematical comparison between 2 numbers, using it in a if statement:
shouldn't be:
if (x > 10 && x < 12){
trace(X)
}
returning the x number 11?
Its not working! Can anybody help me out please. Thank you
Mathematical Functions
hi,
im slightly experienced in flash mx actionscript. i use flash mx 2004 version 7.2. i am also a "noob" on actionscript.org forums. all flames will be ignored.
right now i'm having problems writing the actionscript for a small application.
sorry for the horrible wording, im really tired.
my goal is to make a flash program that will have an input box where a one-variable function can be typed (example: x+5) and another input box under it where a number set can be typed (example: 1,2,3,4,5). then a button is pressed and flash takes the five numbers from the second input box and plugs them into the equation of the first one, and then spits out the answers in a table.
also, it would help if it showed the "plugging-in", like, in the examples above, it would show:
(1)+5 6
(2)+5 7
etc, etc.
right now i can't get flash to evaluate a string - i have an input box, a button, and a dynamic text box. The button sets the dynamic text box's variable equal to the input box, but after trying simple expressions like 5+3, flash converts it to an expression. I've tried Number(textbox), var textbox:number, and other codings, but nothing's worked.
on a totally different note, another, more abstract mathematical program i've been trying to create is one where, after inputting a set of numbers (example: 20,1,1,1,1), it will group them into x number of groups so that the difference between the sums of the individual groups will be as low as possible.
as in the example above, (20,1,1,1,1), for 2 groups, it would group it into [20] and [1,1,1,1]. for (1,2,3,4,10) it would group it into [1,2,3,4] and [10], etc, etc
thanks if you actually read my mindless rambling, thanks even more if you respond without flaming/destructively criticizing, and you have my greatest thanks if you can actually help me solve the problem(s).
Mathematical Problem
I don't that much in math so I hope someone could find the answer for me
I would like to modify a scrolling speed depending on the _xmouse position, here are my values :
-_xmouse = 49, speed = 20;
-_xmouse = 129, speed = 10;
-_xmouse = 248, speed = 1;
Now, i am trying to find somekind of way to write a function, maybe exponential... Like I said, I am not good in math...
Hope someone could help me
Thank you
Mathematical Nightmare
Hi,
I need some direction.
I need to create one of those "see what your phone number spells" with 10 digits. This whole thing needs to be entirely in flash. I am not a math person AT ALL and I just need a few suggestions as to how to break this down and start it, should it be vars or input txt kind of thing? Any kind of direction would be greatly appreciated.
Thanks!
Mathematical Easing
I am using the following code:
onClipEvent(enterFrame) {
if (this._xscale < 100) {
scaletarget = 100;
scalespeed = scaletarget - this._xscale;
scalespeed = scalespeed /2
this._xscale += scalespeed;
this._yscale += scalespeed;
}
}
My question is:
Is the above code more or less the same as using Flash's built in easing?
If so, where would I need to start in order to execute complex mathematical easing?
Mathematical Vectors.
I am looking for info on vectors in Flash, but not the graphical kind. The kind that deals with physics. The reason is, I just finished developing a 1D elastic collision file, and I want to move on to 2D collisions, which requires transfer of direction, as well as speed.
The velocity transfers are pretty easy, its the vectors that throw me off. I thought about getting the slope of the line it follows, then picking out the individual X and Y components of the ball in motion and applying them to the next ball, but then theres the whole issue of reflection and things like that. Any ideas?
Mathematical Easing
I am using the following code:
onClipEvent(enterFrame) {
if (this._xscale < 100) {
scaletarget = 100;
scalespeed = scaletarget - this._xscale;
scalespeed = scalespeed /2
this._xscale += scalespeed;
this._yscale += scalespeed;
}
}
My question is:
Is the above code more or less the same as using Flash's built in easing?
If so, where would I need to start in order to execute complex mathematical easing?
Mathematical Vectors.
I am looking for info on vectors in Flash, but not the graphical kind. The kind that deals with physics. The reason is, I just finished developing a 1D elastic collision file, and I want to move on to 2D collisions, which requires transfer of direction, as well as speed.
The velocity transfers are pretty easy, its the vectors that throw me off. I thought about getting the slope of the line it follows, then picking out the individual X and Y components of the ball in motion and applying them to the next ball, but then theres the whole issue of reflection and things like that. Any ideas?
Performing Mathematical Operations
Can someone explain to me how I can set up an an application so that when a person types "3" in one text box and types "4" in another box, I can get another box to automatically give me what they add up to...
I understand if I have three text boxes... giving var names of "a","b", and "c" I could do...
a=2*3
b=3+4
c=a+b
However that is me typing in the value of "a" and "b".
How can I do it so another person can type in the two values so "C" can calculate the value?
Mathematical Operators... GRRR
i'm designing a children's maths game that basically centres around "if" statements and playing a certain .swf file dependant on the player's answer. my problem is that i need to play a certain .swf if the player's answer is wrong by 10 or more and i can't get the syntax right. confused? here it is
on(release){
if (_root.yourAnswer == _root.answer+10 ||
_root.yourAnswer == _root.answer-10 ||
_root.yourAnswer == _root.answer<-10 ||
_root.yourAnswer == _root.answer<+10) {
(loadMovie("gutterball.swf", "_root.checkMat"));
the 's are where i run into problems. how do i get it to play that .swf if the answer is wrong by 10 or more?
Pasting Mathematical Formulas
Hi,
I have a pagemaker file containing various mathematical fomulas. When I copy the text and paste it in Flash, certain fonts change and it is real painful to get them back as each changed character is to be selected and the font needs to be specified.
Is there a way to paste the text as is? Of course, I have tried to paste as wmf, which keeps it as is but then it is a grouped text and each character is a separate object, any thing else?
[F8] Dynamic Mathematical Symbols
Hi there! First time poster. Please be gentle
I'm working on an math application that requires me to be able to dynamically output the square root symbol. For example, it could be the square root of 5, 10, or 39382 .... it doesn't have to calculate it, it just has to display it, depending on the information from the server.
In another respect, i've been unable to get math symbols to show up on macromedia flash. eventually, i'll need to display the symbol for pi, and items from greek alphabets.
Does macromedia flash support this? Is there a 3rd party math program that can help me accomplish this? Or would i have to find a graphical alternative?
Thank you in advance for your time.
Mathematical Programmers Needed? Hopefully Not.
I have a few balls dancing around.
I want all of the dancing balls to be constrained within an asymmetric, odd shaped movieclip, something shaped like a banana or a pear.
Suggestions that deal with constraining the balls within a circle or a square cannot help in this case.
I tried the following:
Code:
//This is part of the code:
constrainClip.cacheAsBitmap = true;
var getLimits = constrainClip.getBounds (_root);
balls._x += (generateRandomNum (getLimits.xMin, getLimits.xMax) - balls._x);
balls._y += (generateRandomNum (getLimits.yMin, getLimits.yMax) - balls._y);
However, Flash is still using the rectangular shape as the bound, it is not recognizing that the constrained Clip is actually shaped like a curved banana.
How To Produce Mathematical Notations?
Is there any way to write math symbols and notations (as we manually write them on paper )in a dynamic text filed?
For example: I want to write a fraction in its usual math-form not like 2/3, with a slash between 2 and 3 but where the fraction line is horizontal and 2 and 3 lie right above the line.
like
2
___
3
And what about integral sign, or Sigma( for sum), or square root or any other mathematical symbol?
I know of latex-code which converts such things very easily to their custom mathematical form : for the fraction mentioned above : $ frac{2}{3} $.
But is it possible to use latex-codes in a flash-movie such that output in a dynamic text field shows usual math symbols and math notations?
Some kind of latext to swf converting process?
Any help is appreciated!
Mathematical Calculation Order
very small, but i NEED to know:
Anybody know why Flash doesn't follow regular calculation order:
multiply, divide, add /subtract ?
I thought
ActionScript Code:
var myVar = x/y*z;
would normally be executed as:
x/(y*z)
but Flash does:
(x/y)*z
Funny || am i wrong?
Mathematical Operators Grrrrr...
i'm designing a children's maths game that basically centres around "if" statements and playing a certain .swf file dependant on the player's answer. my problem is that i need to play a certain .swf if the player's answer is wrong by 10 or more and i can't get the syntax right. confused? here it is
on(release){
if (_root.yourAnswer == _root.answer+10 ||
_root.yourAnswer == _root.answer-10 ||
_root.yourAnswer == _root.answer<-10 ||
_root.yourAnswer == _root.answer<+10) {
(loadMovie("gutterball.swf", "_root.checkMat"));
the 's are where i run into problems. how do i get it to play that .swf if the answer is wrong by 10 or more?
Import Mathematical Libraries
Hi,
I'm new to programming with ActionScript and I'm trying to develop a Physics Tutorial on Flash.
As Java is quite new for me, I found some free libraries in the Web which have all the mathematical functions that I need, and I'm trying to learn how to use them from Flash Professional 8.
To avoid any self-made mistakes I copied an example and tried to run it, but it gives me sintax errors from the beggining...
I'm placing all the libraries in a subdirectory hanging from the directory where I save the .fla file: I guess that this is what the help file calls the working_directory: orgspacerootsmantissaode
But it seems that the IMPORT statement is not correct: it tells me that the function is not loaded as follows:
**Error** Scene=Scene 2, layer=Acciones, frame=1:Line 9: Attribute used outside class.
public class ODEExample implements FirstOrderDifferentialEquations
**Error** Scene=Scene 2, layer=Acciones, frame=1:Line 10: The class or interface 'org.spaceroots.mantissa.ode.FirstOrderDifferentialEquations' could not be loaded.
{
Is this where I should copy the downloaded libraries? Or does the problem come from some other thing that I don't see ?
Any help would be appreciated.
Thanks in advance,
jbbmovil
Attached the complete code:
Attach Code
import org.spaceroots.mantissa.ode.FirstOrderDifferentialEquations;
import org.spaceroots.mantissa.ode.DerivativeException;
import org.spaceroots.mantissa.ode.IntegratorException;
import org.spaceroots.mantissa.ode.DormandPrince853Integrator;
import org.spaceroots.mantissa.ode.StepHandler;
import org.spaceroots.mantissa.ode.StepInterpolator;
import org.spaceroots.mantissa.ode.FirstOrderIntegrator;
public class ODEExample implements FirstOrderDifferentialEquations
{
public int getDimension() {return 4;}
public void computeDerivatives(double t, double[] fy, double[] yDot)throws DerivativeException
// He cambiado throws por throw ??
{
double r = Math.pow( fy[0] * fy[0] + fy[1] * fy[1], 1.5);
yDot[0] = fy[2];
yDot[1] = fy[3];
yDot[2] = -fy[0] / r;
yDot[3] = -fy[1] / r;
}
public static void main(String[] args)
{
try
{
ODEExample problem = new ODEExample();
double e = 0.9;
double t0 = 0.0;
double[] y0 = {1.0 - e, 0.0, 0.0, Math.sqrt((1.0 + e) / (1.0 - e)) };
double t = 20.0;
double[] fy = new double[4];
System.out.println("First (simplest) integration example");
System.out.println("we consider we are interested only in the final value");
FirstOrderIntegrator integrator = new DormandPrince853Integrator(1.0e-6, 0.5, 1.0e-6, 1.0e-6);
integrator.integrate(problem, t0, y0, t, fy);
System.out.println("at t = " + t + ", the y vector is: ("+ fy[0] + ", " + fy[1] + ", " + fy[2] + ", " + fy[3] + ")");
System.out.println();
System.out.println();
} catch (DerivativeException de) { System.err.println(de.getMessage());}
catch (IntegratorException ie) {System.err.println(ie.getMessage());}
}
}
Mathematical Symbols In Text.
hi all
I have a problem.
I need to display mathematical symbols
such as squareroot , integral etc in text.
Is there any way I can do this without
having it as an image.
Thanks in advance
deepflash
Simple Mathematical Troubles...
I'm a bit rusty with my Flash skillz from not having touched Flash in quite a few months. So I have a very simple question.
I have a dynamic textbox represented by the variable "sidereal" with an initial value of 00.00, and I want it to continually increment by 0.38.
The code I have right now is:
Code:
onClipEvent(enterFrame) {
_root.sidereal=sidereal+0.38;
}
But the output that gives me is "0.38" and it then doesn't increment after that point. Also I would like it to say "00.38" if at all possible.
Thanks in advance for any help.. Sorry to trouble you with such a nitpicky detail, but I seem to be having a braindead moment today.
Mathematical Progression For A Spectrum?
Does anyone know the math to create this type of spectrum?
I'm using the F8 bitmap object and this image for a color preferences panel, and would like to use the same image for a fall-back to F7.
For F8, I'm using getPixel(), for F7 I'll need to determine the color (or as close an approximation as possible) using the math used to create this type spectrum.
Anyone have any ideas?
Mathematical Array Problem
hi there,
im having difficulties calculating the distance between array indexes. for example:
Code:
chararray = new Array(" ", "_", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
this is my array... and now i want to calculate the distance between 'X' and ' @'. This should be 6. How should this be calculated?
Mathematical Symbols In Text
I need to display mathematical symbols such as squareroot , integral etc in text. Is there any way I can do this without having it as an image.
Simple Mathematical Troubles...
I'm a bit rusty with my Flash skillz from not having touched Flash in quite a few months. So I have a very simple question.
I have a dynamic textbox represented by the variable "sidereal" with an initial value of 00.00, and I want it to continually increment by 0.38.
The code I have right now is:
Code:
onClipEvent(enterFrame) {
_root.sidereal=sidereal+0.38;
}
But the output that gives me is "0.38" and it then doesn't increment after that point. Also I would like it to say "00.38" if at all possible.
Thanks in advance for any help.. Sorry to trouble you with such a nitpicky detail, but I seem to be having a braindead moment today.
Mathematical Operations Within A Textbox..
hey guys, whats up
i was thinking if i should post this in the math section but then thought its more to do with AS..
anyways, what i need is:
suppose we have 2 textboxes:
txtinput .. (input text)
txtoutput .. (dynamic text)
user inputs suppose 5-2 in txtinput
txtoutput should have value of 3 ..
i need more than just +/-/div/* though..
like Math.sin .. etc
how can this be done?
thx for replies
// edit
another thing.. the textbox also contains VARIABLE names..
man i get a feeling this is impossible to do.
Mathematical Mapping/positioning Question
Just wanted to run a concept by those who may have more experience in mathematical equations and functions in Flash than I do, before actually getting down and dirty and working out how...
Basically a Flash map of Australia, or any other country/land mass. Then two points - point A and point B. Then a line drawn between point A to point B (such as a route/road.
Okay, now the more complex part - return other mapped values/positions that are within a certain distance from that line along the entire line.
The functionality of this is obvious - for a particular start and end point of a trip, return all the locations that are between those points. Now, the locations will have their own geo-coding, which I will obviously need to convert to an equivalent x y position, but that's the easy part. Returning a list from the dynamic line created between point A and B is the one that I'm asking is it possible?
I hope I've explanined this well enough.
Cheers
Dave
Mathematical Functions/Text Fields
I'm trying to make a program to calculate various equations for volume, area etc.. I know how to make dynamic and input text fields, but I'm not quite sure how to utilize the input from the input fields and put it into the dynamic. Can anyone help here?
Mathematical Addition Instead Of String Concatenation
I have a variable _global.score that starts set to 0.
If the user gets an answer right, _global.score=_global.score + 1 gives a number.
In a second area, the same thing works for _global.score2
However, I want to add the numbers from _global.score and _global.score2. When I try that, I get a concatenation instead, for example 11 instead of 2. Is there some way to get the result I want?
Oh, and I'm using MX.
Browser Not Displaying Some Mathematical Components Properly
Hi,
This is Gopal from PRAPAN SOLUTIONS,
Currently iam working on actionscript in which i got a problem when iam doing mathML(mathematical markup Language) operations, means for example alpha symbol is there if we want to show this symbol on browser we have some UNICODE is there that is σ like that remaining components have some UNICODEs based on this UNICOdes the mathmatical component visible on browser ,BUT my problem is some components are not visible on browser event though iam giving correct UNICODE ,for example integral is there its UNICODE is ∫ but it is not visible on browser it only displaying if i check in mozilla the display is "?" and if i check in IE it showing "smallsquarebox" So please tel me if any body have any idea on my problem
thanks in advance
Changing Foreign Language Characters To Normal Characters
Hi
What im doing is taking a word from an imput box and the searching an xml file for it.
I have all that working.
MY issue is the application is in french and i want to be able to strip the inputed word of special characters
like .
The reason for this i because if i have to account for the case that the user uses the special character and not use the special character (just incase) then this will eventually inflate the size of the xml im searching because ill have to put in both.
EG
User 1 searches for Abb
User 2 searches for Abbe
They both get a result
CURRENT SOLUTION
XML Contains entry for Abb and Abbe
DESIRED SOLUTION
XML Contains entry for Abbe only
Actionscript strips the search word of special characters to a and to e etc etc
Searchs the XML with new stipped word!!!
Thanks
Is There A Way Of Displaying Special Mathematical Symbols/equations In Flash
Hello,
I am working on a project where I need to display radicals, fractions, etc. in their correct formats along with text. Can anyone point me in the right direction in figuring out how to display these special layouts correctly along with regular text. I am wanting something that can be pulled in from xml. I have seen some posts here and there discussing mathml but it seems flash does not innately render this format just yet.
Thanks in advance for any suggestions. :)
Mathematical Graphs To Solve Programming Contest Problem
I just learned about graphs in the context of mathematics, and the Data.Graph library in Haskell. So, of course, I had to try solving an old contest problem that this made stupidly easy!
Code:
import Control.Arrow
import Control.Monad
import Data.List
import Data.Graph
import Data.Maybe
import Text.Parsec
import Text.Parsec.String
cities :: [(String, String)] -> [String]
cities [] = []
cities ((a, b):xs) = a : b : cities xs
solve :: (String, [(String, String)], [String]) -> [Bool]
solve (start, highways, destinations) = map ((path graph $ findV start) . findV) destinations
where graph = buildG (0, length verts) (map (findV *** findV) highways)
verts = cities highways
findV = fromMaybe (-1) . flip elemIndex verts
name :: Parser String
name = manyTill anyChar space
num :: Parser Int
num = do xs <- many1 digit
return (read xs)
parseFile :: Parser (String, [(String, String)], [String])
parseFile = do start <- name
hc <- num
newline
highways <- count hc $ do h <- name
a <- name
b <- name
return (a, b)
dc <- num
newline
destinations <- count dc name
return (start, highways, destinations)
main = do contents <- readFile "p8.data"
case parse parseFile "" contents of
Left err -> print err
Right a -> do forM (solve a) $ -> putStrLn $ if b then "Just go a ways over there."
else "You can't get there from here."
return ()
It solves problem 8 from this problem set (PDF warning) for the Trinity contest, 2006.
Only the first two functions, cities and solve are needed to solve the problem; the rest of the file just reads in and parses the data and then prints it out.
I challenge anybody who thinks they have a more concise language to try making solve/cities shorter!
Special Characters Same CharCode As Normal Characters?
Hey everyone
I have a key listener where I trace the KeyboardEvent:
Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, testIt);
private function testIt(e:KeyboardEvent):void
{
trace(e);
}
My problem is, that my danish character traces exaclty the same event as the letters aoa... All my danish colleagues have no problems getting the right charCode, but mine just can't handle it...
What can be the problem here????
Creating A Flash Movie With Chinese Characters
Has anyone ever created a flash piece with Flash MX on a windows 2000 system but in the chinese language, I have looked it up on macromedia's site and followed the instructions to do this but it is not working. It seems very straight forward but when I go to view it, by hitting publish movie it first says the one or more fonts used by this movie are unavailable substitute fonts will be used when I go to choose substitute the font missing is gunship which has nothing to do with my chinese characters in fact I don't use that font at all in this movie but regardless this is the error that reads in the output box "Line 2: Syntax error.
有五個_道及一部次低音揚聲器。_ 連接方式,它可以可以發送兩個_道 四個_道或_個_道的音_訊號。如 果後部左右(L/R)和_央/次_道沒有充分利用(未插入),例 雙_道_放的情況,也不會有什麼害 。如果所連接的_備有RCA插_,則還 需要有一個小型插__適配器,該部件 當地Radio Shack®或任何身_聲、家電或電腦零售 有買。
This is how it is reading my chinese characters and I even put it into a text file and did the action #include so that it would grab the external file. Any help on this or exact steps someone performed to do this themselves.
Thanks -
To Write Russian Characters In A Flash Movie
Hello
I have a text file where I store my menu values. It works fine, but when I
program the menu in russian (cirylic alphabet) where letters are stored like
this жст (every &#number is a character, I assume) my
flash movie doesn't show me the russian characters. How can I indicate to
the flhas that these are russian characters? Or any other idea about how
can I solve this?...
Thanks a lot!!
Moving Object From Point A To Point B - Mathematical Problem
Hi,
I have mathematical problem.
I want to move object from point A to point B but not just X or Y aixis. For example point A(0,0) and point B(500,500).
Please if somebody can send me generic equation to put in ON_ENTER_FRAME event so on each frame object is a little bit closer to point B.
Thanks,
Characters
Is there a way to make it so my character's parts are attached? Each limb is on a seperate layer from the body, and I don't want to move each limb every time the body changes position, is there a way to "hinge" them without hampering their ability to move. Like the arms have to move, the legs have to move, etc... but when he walks, I've had to move the leg, move the body, move the arm, move the other leg and the other arm. If anyone is unclear, ask me and I'l try and put the little bugger on the site. Note: It's not a stick figure. I am new to flash... or at least, big projects like this.
Characters?
Hi, I'm getting a warning because there's no type declaration in the following line
Code:
var startChar = k.substring(0,1);
What should I declare this as?? A String? I couldn't find a character type....
The next line is
Code:
if(startChar == 'o'){
Do SOmething....
}
Any ideas?
Xml Characters..
I speak norwegian, and use weird characters like . and .. When I write these in an textfeild inside flash, everything works fine, but when I try putting them in an xml file, loading the xml with css into flash the characters does not show up!! Why and how can I change it?? Thanks
CHARACTERS
do you want to help me with my beat em up gam i would appreiciate if you wolud i need help on the animations i can do everything else i just need you to make me these animations
a few kicks punches, 2 different specials ,block and walk and if your up 2 it an enemy who can walk, block and atacck for a flash beat em up game i can do all the scripting and making the character move etc if you would like to be partners that would be even beter thanx
Certain Characters Don't Appear
I'm using Flash CS3, but coding with Action Script 2.0. I've created a text box with the property set to Dynamic text. I embedded the font, because its not a common one. When I view it it shows the text box but some of the characters don't show up (i.e.: "we need 250" reads "we need 20"). I went back and checked the embed feature, I told it to AutoFill and I can see the 5 in the box telling me that it will embed that character but for some reason it doesn't come up.
If I change the property to Static Text it shows up fine.
Get Characters
I need to be able to measure how many characters the user enters...It's an input text field--user puts in so many characters--and then I call a function to count the characters he put in. Thanks.
How Many Characters ...
Hi evrybody.
Here is my little problem:
Is there a way for Flash to tell me that:
With a textfield that have a width of 100 pixels and with a font size of 13, you can display ' X ' Characters ?
Special Characters
I was wondering if anyone has encountered any creative ways for getting around using special characters in dynamic text fields. Specifically, getting text characters into Flash isn't a problem, but (using a third party extra) saving that info to a text file creates significant problems because the literal character is saved (or not depending on which character it is) to the text file and then won't appear on a reload. Aside from creating our own save utility (which we're working on), have you ever run across this scenario or heard of workarounds for this?
|