ActionScript 3.0 :: Turn Value Into Something Usable?

Jan 13, 2010

How do I turn a value into something i can use without the "-" negative value if there is one.

I have an "imageLoaderHost" movieclip and I need it's x position to be usable wherever its at. for instance:

if imageLoaderHost is at -1258(x position), I need "b1" to go to 1258 (without the "-" as you can see).

View 2 Replies


Similar Posts:


Game Engine :: Flash Multiplayer Turn By Turn?

Oct 7, 2011

I'll start off by saying I'm a newbie, just putting that out there. How do you make a turn by turn multiplayer flash game? I don't know if an engine is made in AS3, PHP, Javascript, or whatever,I made my game already, it's just that it isn'tmultiplayer yet. Basically, there are lines, and each player crosses out a number of lines, and the last player to cross out a line is the loser. I want it where one user crosses out some lines, then presses End Turn, then the other does their turn and then presses End Turn to allow the other player to move his cursor. But how can I get both players to see the same frame and only have one player have the ability to move the cursor during a turn? Is there some easily adaptable multiplayer engine for flash for newbies out there

View 2 Replies

Swf To FLA / EPS / AI Or Other Usable Format?

May 18, 2009

I need to make a tool (in flash) that people who do NOT have flash can use to create some artwork (graphs and lines at particular angels in particular) and then export the artwork in a format that designers who DO have flash can use in flash for animations. We're trying to cut out a step where our content folks give our designers graphs that need to be hand traced in Flash. Are there any third party plugins that would allow a swf to generate and EPS, AI, or FLA perhaps?

View 1 Replies

ActionScript 3.0 :: Feedback Usable Only Once

Jun 10, 2011

So here I have a code which gives a feedback after the code is copied to clipboard ,but after someone use it once it stop working.

[Code]...

View 8 Replies

Creating Standard Re-usable Text Animations?

Jun 22, 2009

I would like to be able to create a set of standard text animations for different length bulleted lists, headings etc and then feed these animations (probably with xml?) to create unique mc's.

View 2 Replies

Arrays :: How To Convert PNG Image Into Usable Format

Dec 19, 2011

I'm trying to make a tile-based AS3 game that uses PNG images as the base for maps that loads them from the library and converts the data to an array with each pixel of data being an individual tile. Essentially, if I had a 128x128 pixel PNG with say, green pixels being converted to "GRASS" in my array, I could then cycle through the array and add tiles to the map movieclip accordingly. I've looked at the ByteArray class and I can't seem to decode the data into a usable format.

View 1 Replies

Actionscript 3 :: Function Compressing Re-usable Code?

Jan 13, 2012

In my quest to learn ActionScript 3.0 I have stumbled across another situation where I know what I need to do, but just can't figure out how to do. I have written code to animate a menu with 3 buttons. These 3 buttons reside in a seperate class file known as MenuButtons.as and I am animating them within my Main.as file which builds the application and places the relevant details onto the stage.So in my Main.as file I have written the animation code that I would like to use to animate the buttons. Whenever a button is clicked, an event is dispatched which a handler listeners for then executes the relevant function. So the function for animating my 3 buttons looks like this (bear in mind that the buttons are arranged in a place holder in MenuButtons.as which in turn is loaded in a new MovieClip in the Main.as file)[code]I also tween the logo from here too. It works fine which is great, but is there a way I can make this code more simpler? I may not be able to and I have tried to find my answer online but alas I cannot find what I am looking for.

I am loving how I am learning something new each day and by building up slowly I am learning more functionality and broadening my knowledge of ActionScript (although some of it is very confusing!)Is there any good websites out there that can help? I have a subscription with Lynda.com but i find that their explanations can sometimes be hard to understand. I love text based tutorials where I can follow at my own pace.

View 1 Replies

ActionScript 2.0 :: Convert Time To Usable Numbers?

Jan 8, 2008

im trying to check time, but check to see if the time is within a range.

for example, check to see if time is between 12:50pm, and 30 minutes later (1:20pm)

also, i want to be able to calculate that difference (12:50 + :30 = 1:20)

and also how to hande getting the time range? ie. (currentTime >12:50 && currentTime < 1:20)

View 8 Replies

ActionScript 2.0 :: When Do Movie Clip Classes Become Usable?

Mar 11, 2008

Within a script, I move to a keyframe where a movie clip exists. The movie clip is attached to an Actionscript 2.0 class. Once the movie clip exists, I want to be able to give it some initialization settings, but it seems they are not available until the next frame. For example, let's say in a script I say:

[Code]...

View 1 Replies

Convert String Into A Usable Integer / Number?

Feb 19, 2009

I've got a .txt file hosted on a freewebs, which my actionscript gets some variables for (for easy updating of statistics).

I want to do be able to do math in actionscript with these numbers I'm calling up from the .txt file, but the problem is that when I call up the variables, they are recognized as a string, instead of integers.

How would I convert the string to an integer in actionscript, or write the number in the .txt so that it's recognized as an integer.

View 2 Replies

ActionScript 3.0 :: Special Characters Not Usable In Embedded Font

Aug 2, 2009

in this site we of course need to to display non-latin characters like etc.we decided to go for the Minion Font (on Mac) because it includes all possible Glyphs.no i embedded the font on the library and used it via menuitem_font =new Minion()but the special characters are still not displayed.also when i do trace(menuitem_font.hasGlyph)i get "false"

View 3 Replies

ActionScript 3.0 :: Setup A Movie Clip That Has Usable Buttons In It?

Nov 13, 2010

How could one set up a movie clip that has usable buttons in it? If i understand correctly, the movieclips actions will override all the button actions...? For the purposes of my project, I need a MC that ive set up to loop across the screen with my buttons on it.

View 3 Replies

ActionScript 3.0 :: Move Bitmaps Into Usable Objects On The Stage?

Jun 29, 2009

got past the last problem i had. now i have a series of bitmaps stored in an array... actual bitmap data, not external image references..

View 1 Replies

ActionScript 3.0 :: Re-usable Function Triggered By Multiple Buttons?

Mar 25, 2009

I am working on a presentation that has multiple scenes each having say 100 frames. Every 10 frames there is content on the stage, i.e. a 'slide'. There are left and right arrow buttons to take the user of the presentation forward and backward - much like a powerpoint presentation.Many of the 'slides' contain another button (instance name infoBTN) that can be rolled-over, and when this happens an info bubble pops up to display some information in the form of a graphic (instance name infoBubble).This operation works fine for one button, but I don't really want to have to call a new function and variable name and have new instance names on each subsequent frame that features a similar button with an identical operation.

how can I call the function just once and re-use it over and over again? There will only ever be one button of this nature on a given frame,This is the working code I have on the timeline for this particular frame:

Code:
// INFO BUTTON MOUSE EVENT
var fadeIn:Tween = new Tween(infoBubble, 'alpha', Regular.easeOut, 0, 1, 0.75, true);

[code]........

View 9 Replies

ActionScript 3.0 :: Create Usable Multiple Instances From Library?

Sep 14, 2011

I am creating multiple bitmaps within a loop, and placing them inside their own MovieClip. I then have another MovieClip in the Library which I am calling and putting inside the MovieClip generated for the bitmap. Alas I cannot get multiple instances to work of the MovieClip from the Library. I think it must be my syntax in the following code..

Code:
for(i=0;i<10;i++){
this['bmp'+i] = new BitmapData(etc,etc)
this['box'+i] = new Bitmap( this['bmp'+i] );

[Code]....

View 1 Replies

Professional :: Create Re-usable Symbol Library / Import Into Different Files For Use

Jul 12, 2011

Im character rigging so im making nested symbols.i was wondering how do i take these nested symbols and create a re-usable symbol library and import these into different files for use.

View 4 Replies

Flash :: Create A Variable In Flex-config Xml File Usable Inside Of It?

Mar 29, 2011

We can auto-generate flex-confix xml file from flash-builder so to provide users that want to compile project on there own would be capable of doing such thing with out buying FB. So we use something like -dump-config slotConfig.xml as flex compiler argment. This generates a file for us... with lots of detailed comments like this one I generated from that project:

<flex-config>
<!-- benchmark: output performance benchmark-->
<!-- benchmark usage:

[Code]....

View 1 Replies

ActionScript 3.0 :: Localconnection Class Is Usable - Connect Button1 On Swf1 To Frame1 On Swf2

Nov 8, 2010

I am gonna connect two swf file on the same domain. I actually want to connect button1 on swf1 to frame1 on swf2 and then the same like that button2 to frame2... I think localconnection class is usable for that I am open to other ideas, it's very simple I guess but I am novice at this and this is my first job.

View 1 Replies

Way To Turn Sound Off

Mar 27, 2010

I have added a flash sound file to our homepage. How do I add an option for the visitor to turn the sound off? I don't have the .fla file for it.

View 1 Replies

Sound - Turn On/off Feature

Sep 10, 2009

I have a very simple project. I just need a flash video that has a sound file and a button to turn on/off.

View 1 Replies

ActionScript 3.0 :: Turn Off All Sound In The Swf?

Dec 27, 2009

I have some sounds in a timeline ( i purposely put them on time line rather then through AS3). But is there a way to turn off all sound in the swf, like is there a global sound channel?

View 1 Replies

CS4 - Turn Off Autodocking Panels?

Jan 13, 2010

Is there any way to turn off the autodocking panels. I just want my panels to be free floating and not stick together. The way they dock and stick together is the worst.

View 2 Replies

ActionScript 3.0 :: How To Turn Off Sound Only

Oct 23, 2011

How do you turn off the sound in a game only? I ask because I have two buttons in my settings: turn music on/off and sound on/off. turning music on and off is really easy because it uses a specific sound channel. But How do you turn off the volume the sound only (e.g. music is still playing but not the sound of the game)?

When I mute the sound via SoundMixer.soundtransform you can't hear anything so that's not what I wanted to have. In my game all sounds are thrown into an array. My first idea was that I go through all sounds listed in the array and turn off the volume but that's not working.

Code:
//not working
private var sounds:Array;
private var soundChannels:Array = [];

[code]....

View 1 Replies

ActionScript 3.0 :: How To Turn A DOB Into Months

Oct 5, 2009

How do you turn a date of bith into months. im doing this:
 
var dobDate: Date         = child.CHILD_DOB;  //10th Feb 2008var daysSince:uint        = Math.floor((nowDate.time - dobDate.time) / DateTime.DAY);                    var monthsSince:uint     = Math.floor( daysSince / AppConst.DAYS_IN_MONTH);
trace(daysSince) //603 - correct
trace(monthsSince) //20 - incorrect (it should be 19)
 
note:

AppConst.DAYS_IN_MONTH = 30
DateTime.DAY = 86400000

View 9 Replies

Professional :: Turn A FLA Into A URL Button?

Apr 26, 2010

I have a FLA file with 4 layers 2 of the layers are Text Boxes 2 of them are masks to make the different words "Shine" Is there a way to make the whole file a button so when people click on it, it goes to a different page?

View 6 Replies

Professional :: Turn 9 Separate Fla's Into 1?

Sep 20, 2010

I have 9 fla files. Is there anything I can do to create 1 swf out of 9 separate fla files??? I tried to cut and past the info all onto 1 timeline. Is there more than one way to do this?? I end up with multiple files with the same name in the library and it becomes a bit of a nightmare just trying to use the cut and past method.

View 4 Replies

Turn On Logging / Debugging?

Nov 25, 2011

I know virtually nothing about Flash so I'm kind of casting about in the dark.

I have the misfortune of being a BT customer, and whilst I have reasonable bandwidth (can view streaming high res video fine) I always have problems listening to radio programmes from the BBC. I think it could be buffering due to traffic shaping, or it could be the Flash applet used to play the content, or something else.

Is it possible to bring up some kind of debugging console, or view some kind of error log to see if there is some diagnostic information that could be useful in finding the problem?

View 1 Replies

ActionScript 3.0 :: Turn Xml Into Array?

Aug 6, 2010


How would I turn something like this...

ActionScript Code:
<feed name="BBC Top Story 1" url="bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml1">
<description>Top Story News</description>

[Code].....

View 3 Replies

ActionScript 2.0 :: MX, Make A Car Turn?

Apr 13, 2003

i saw the component thingy on kirupa... but i want to make a car drive in flash with just code.... there is a really good one on (click "drive!" on the menu and you can drive the little car around)... i would really like to know how to do this.

View 3 Replies

ActionScript 2.0 :: Turn Music On / Off?

May 26, 2003

I know how to turn music on/off but I now want to find out how to do the following. On 50cent.com, you can select from a variety of songs, then play the one you wish. I want to know how to do that, with the buttons changing the songs, then being able to press play, and stop. Could someone tell me how to do this, or redirect me to a tutorial that will teach me. I have flash mx, so you could post a flash mx tutorial if you wish. Another example is shown on West49.com, but I dont need to know how to open the playlist option they have. Just a simple left and right button changing the songs, thena a play and a stop button.

View 1 Replies







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