ActionScript 2.0 :: Seems To Slash 10 Point From The Final Results?

Sep 4, 2010

I'm using this code from tu-world.com (but it seems the site doesn't exist now) to count my score:

percent = score/25*100+"%";

but it seems to slash 10 point from the final results.

I'm using score++; to add a point...

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Add The Final Results In A Text Field?

Jun 13, 2009

i have a quiz and i want to add the final results in a text field. First i have an array which i push the score to. now i need to know how to put that array in to a text field. i have this code -

code:

for (var s:int = 0; s<arrscore.length; s++)
{
score_txt.text = (arrscore[s]);
}

but it just puts the latest score into the textfield. so if i get 3 it puts in 3 and if anyone does it again it puts their score in instead of mine. i want it to show all the different results in the texfield on an individual line

View 1 Replies

ActionScript 3.0 :: Add Final Results In A Text Field?

Jun 13, 2009

I have a quiz and i want to add the final results in a text field. First i have an array which i push the score to. now i need to know how to put that array in to a text field. i have this [code]...

but it just puts the latest score into the textfield. so if i get 3 it puts in 3 and if anyone does it again it puts their score in instead of mine. i want it to show all the different results in the texfield on an individual line

View 2 Replies

Dynamic Drawing - Choose And Draw With Other Shapes - Square - Forward Slash (/) - Backward Slash ()

Oct 13, 2009

I am trying to work with this flash tutorial -[URL] So far it draws with a simple rounded line. I have been extending this application by making the drawing board bigger and other small things. I now want to be able to choose the line style. Currently it is rounded and I want to choose and draw with other shapes - square, forward slash (/), backward slash (). Is this possible? If so, could you explain how I could go about it?

View 1 Replies

Actionscript 3 :: Getting A Variable To Increment A Value In Each Click Of The Mouse Clicks In The End According To The Final Results?

Oct 11, 2011

I need a variable to increment a value in each click of the mouse clicks in the end according to the final results.

View 2 Replies

Professional :: Can't Remove Forward Slash From Url's

Jun 23, 2011

[URL]
 
Above is the webstie in question.  When you hit the Benefit button for example it takes you to a url /benefits.html/.
 
When I originally created the flash project I accidentally wrote in the url with the finishing slash.  Now that I have gone back and removed the slash from my project, saved and uploaded .swf to my web, the project still redirects to benefits.html/ 

View 2 Replies

Professional :: Which Fonts Will Display The Numeral Zero With A Slash

Jan 1, 2011

I'd rather see the numeral zero displayed with a slash through it when I'm writing ActionScript. Right now Flash defaults to Lucida Console. Rather than test the dozens of other fonts, can someone recommend several that display zero in the slash style?

View 1 Replies

ActionScript 3.0 :: Replace Back Slash ( / ) From Xml Url Path?

Mar 26, 2009

I got an xml file from other site that generate url starting with back slash ( / ) . I want to replace that trialing slash. How do I replace through as3. I tried the replace() method no luck with the / Here is what I'm tiring to do:

[URL]

View 2 Replies

Actionscript 3 :: Allow Forward Slash In Input Text?

Sep 30, 2010

i'm trying to allow forward slash to be entered in my input text field

myInputField.restrict = "A-Za-z.\-\/";

the above text field should allow upper case letters, lower case letters, periods, hyphens and forward slashes. however, i can't seem to permit the forward slash.

View 2 Replies

ActionScript 2.0 :: SWFAddress - Catch Value / Add Slash Automatically

Apr 13, 2009

I am having trouble with SWFAddress by Asual, I am using as2
The thing is if you use
SWFAddress.setValue("/about/");
then when people type URL : [URL]

However what if when people just type [URL] --> without the slash. I want them to keep referring the about sections of the site. Is it something we have to do in the logic of the event handler:
SWFAddress.onChange = function() {
}

View 5 Replies

ActionScript 3.0 :: Unable To Display CIRCLED DIVISION SLASH Unicode?

Jul 27, 2009

All attempts to include

// osol  ISOamsb  0x2298 # CIRCLED DIVISION SLASH
// 2298  ; [*0575.0020.0002.2298] # CIRCLED DIVISION SLASH
Using Arial Unicode MS (or Calibri), are unsuccessful..  The Euro currency sign in the

[code].....

View 5 Replies

ActionScript 3.0 :: String Split().join() And A Forward Slash "/"

Sep 29, 2010

For the life of me I can't work out how to replace a "/" character in a string!? Using the standard myString.split("/").join("-"); does absolutly nothing to the string. I've heard the odd story of adding double slash ie. split("//") but that has no effect either.

View 1 Replies

Final Cut Pro Movie For Web?

Aug 13, 2009

I have a short video that I made using Final Cut Pro.I work on a MacPro, OSX 10.5 Leopard, and CS2.What format do I need to export my video so that I can upload it to a web site?

View 2 Replies

ActionScript 3.0 :: Pushing Point Locations Into An Array - Point(x,y) Conversion Faillure?

Dec 9, 2011

Im pushing Point locations into an array to Shift em out later. like this:

tempmoves.push([new Point(roundx,roundy)]);
..
ob.movestoplayer = tempmoves;[code]....

What am i doing wrong?

View 8 Replies

ActionScript 2.0 :: Movieclip To Move Along The X-axis To A Certain Point And Then Back To The Starting Point Again?

Apr 12, 2007

It's been a long time since I've done any work with actionscript, and alas I've forgotten nearly everything. I've tried to look for a tutorial that would explain basic animation with actionscript, but the one that I found on Kirupa was no longer there.

Basically I'd like to do this:On the stage I have a movieclip and I'd like the movieclip to move along the x-axis to a certain point and then back to the starting point again. The moving speed of the movieclip should also be adjustable.

View 8 Replies

ActionScript 2.0 :: Rewind To Final Frame

Jan 28, 2009

I have a .fla that has a movieclip in it with an frame by frame animation of a rotating pyramid.The script that I have, when the user drags the mouse horizontally for the right, the animations play, and for the left, it plays rewind. But when it is on frame 1 and I try to go back, it stops![code]How could I make the first frame go to the final frame when I drag the mouse for the left?

View 2 Replies

ActionScript 3.0 :: Final Position With/without Tween Is Different?

Feb 18, 2009

Why do my object movement is different if I use a tween to move it ?

I'm inside a for cycle, and I use arrays for all my variables.

[Code]...

View 0 Replies

ActionScript 3.0 :: Distance From Point To Point And Referencing Other Instances Of The Same Class

Feb 8, 2009

I'm creating a game in flash for a university project, and learning actionscript and programming as I go. I'm very much still at a beginner level - at the moment al I have is some actionscript for drawing rectangles and moving them about the screen. This is what I'm having trouble with at the moment: I have a class called 'Creature', and I want instances of it to interact with each other. I want them to do something when they come within a certain distance of another instance. And I want them to be able to pick a random other instance to get the location of, in order to do something with that information.

What I think I need is: A function for telling the distance between two (x,y) points.
A way of referencing the nearest other instance of the class. And a way of randomly selecting from all of the instances of the class.

View 4 Replies

Flash :: Perspective Projection Formula - Convert 3d Point To 2d Point?

Mar 27, 2011

How to convert 3d point to 2d point? I've found next formula in Internet(camera is situated in origin)

[Code]....

But these formulae give me strange result when z are less than zero(z<0) I need build line from A(100,100,100) to B (100,100;-100) As you can see these equations give really strange result when I try to convert B point in 2D dimension

View 1 Replies

Actionscript 3 :: Moving A Point With Rotation Doesn't Change The Point XY?

Jul 15, 2011

i have the follow issue :

I have a point which is setted at the border on a component, with changed transform point to the center of a component in order to match the component rotation.

the important part is when i try to get the point XY after rotation - they remains the same as before rotation.

how to get XY, after rotation ( changeing point.rotation property to specific degrees of rotaion )

View 2 Replies

ActionScript 2.0 :: A Line From One Point Past Another Point And Whether It Hits An Object?

Aug 19, 2009

I am using AS2 with Flash 8 Professional So, my problem is that I currently have a man in the middle of the screen, who shoots a line towards the mouse when I click. However, when I use hitTest to see if the line collides with another object, Flash recognizes the line as a large box if it is diagonal, so the hitTest isn't very accurate. The line only satys there for one frame, so I can't have the usual moving-bullet-style. I am either looking for a way to create an imaginary line with AS from the starting point to the mouse and beyond, and tell whether or not this line intersects with an object... or some other way that I haven't thought of to fix my problem. Keep in mind that the line rotates from a center point towards anywhere around it for 360 degrees.

View 1 Replies

ActionScript 3.0 :: Find Egistration Point Compared To Its Top Left Point

Aug 20, 2009

if i have a movieclip or a sprite could i find (via code) where is its registration point compared to its top left point (no rotation included) ?

View 4 Replies

ActionScript 2.0 :: Smooth Preload Bar - Appears To Jump From Point To Point

Apr 27, 2004

my preloader bar isn't growing smoothly. it appears to jump from point to point -- and i want to make it smooth. you can see the example here at: [URL] would anyone mind taking a quick look at the file i've attached,

View 6 Replies

ActionScript 2.0 :: Find An Angle From An Anchor Point And A Moving Point?

Feb 19, 2005

I know some basic trig. but how do i find an angle from an anchor point and a moving point?

adjecent = _root.anchor._x-_root._xmouse;
opposite = _root.anchor._y-_root._ymouse;
hypotenuse = ((adjacent ^ 2)+(opposite ^ 2)) ^ 0.5;

View 2 Replies

ActionScript 2.0 :: Move A Point (or Circle) Slowly And The Point Let Behind A Line?

May 3, 2006

How can I move a point (or circle) slowly and the point let behind a line.When the point turn back the line will be erase.

View 8 Replies

ActionScript 3.0 :: Create An Image Scroller That Just Scrolls Images From Point A To Point B On Load Horizontally In An Infinite Loop?

Mar 28, 2011

Hi I am trying to create an image scroller that just scrolls images from point a to point b on load horizontally in an infinite loop. I just used a code snippet to move it horizontally but don't how to get it to stop and at point b and loop again from a.

ActionScript Code:
game1.addEventListener(Event.ENTER_FRAME, fl_AnimateHorizontally_3);
function fl_AnimateHorizontally_3(event:Event)
{
game1.x += 20;
}

View 0 Replies

ActionScript 2.0 :: How To Add Time Left To Final Score

Aug 3, 2011

I have a score that goes up by 10 every time you press this button, its var "score". I have a simple countdown timer. caller, its var "timer". When the game ends it goes to the next frame which says game end. I can get the score to show but I want the time left to be added to this.
I have tired:
onEnterFrame (){
score = Number(score) + timer;
}
Nothing seems to work. Do I even actually use onEnterFrame ?

View 3 Replies

ActionScript 1/2 :: Creating A Website For A Final Project?

Apr 23, 2009

Ok so my website is a basic portfolio site. the interface is as follows: on the right is a box shape...to the left are my buttons and on the top is my logo and such. now for my coding questions.
 
1. I want a gallery to appear in the box showing my work

2. My buttons are named "Photoshop", "Illustrator", and "Indesign", i would like to have it so when you click on each button a new window gallery will appear in the box to show my work for each pogram

3. How do i insert my images? Do i just place them in my library in Flash? Do i use dreamweaver?
 
thats pretty much it.Unfortunately my teacher is refusing to teach coding.

View 3 Replies

Flex :: XMLSocket Truncates The Final Closing Tag Of The XML?

Mar 2, 2010

I have a project which tries to send an XML using XMLSocket to a server listening to it on the other side.The application file is:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[

[code].....

I have to open and close the socket on each request, but even trying not to do that for the sake of testing didn't help.

View 1 Replies

Controlling The Final Size Of A Sprite Object?

Feb 1, 2012

I'm rendering a xps file using flash (no MX or Spark), and I'm running into a sort of 'contradiction' that I'm unable to solve. [Note, that I'm trying to work only in core flash (e.g. Sprite, Shape, etc.), I've already solved (sort of) this issue using Spark.]

The pages of the xps file specify an explicit size. However, the content described (especially paths) in the xps file can sometimes extend outside of this area.

The problem is, I want the parent Sprite to have the size specified by the xps file, for example so scroll bars match the page size (not the sprite size), but in some cases the Sprite is much larger than this.

I've tried recursively going down and scaling everything UP, and then at the end scaling the parent container DOWN. Unfortunately, this causes translation problems with paths, and I assume it can also cause problems with bitmaps, etc.

Without using MX or Spark, is there anything I can do to control the size of the parent Sprite, other than scaling all the children independently?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved