ActionScript 2.0 :: Modifying/Understanding Flash Counter?

Jul 2, 2008

fix a counter on one of the flash applets he hired someone to make for him. It's AS2 and done in Flash 8.

http:[url]....

It pulls from the current time on the system clock.Essentially it's counting 4 times too slow. I am awful with even reading AS let alone trying to find the equation running this. what I need to edit in the AS to speed this up?

View 12 Replies


Similar Posts:


Flash: Understanding Program Flow?

Mar 9, 2012

Specifically, I have a demo of a flash game (sort of super mario style). In it I have two types of weapon - a simple fire and big fireball. I reviewed the code in order to learn flash better [I am very new - since around monday this week].

I saw that the program has a variable that keeps track of the number of uses I have left in each weapon. I tried to review all the places this variable was used but I couldn't find where it affects the drawing onto the screen.

I even tried removing the variable declaration and then testing it - so I may find all references to the variable -- By the way any convinient way of finding all references to a variable/method/class [I am using ADOBE FLASH CS5.5]?
Also, I tried changing the variables starting value to "12" and I noticed that when I test the game, the weapon has 12 uses indeed.

So my problem:1. It seems that this variable is somehow affecting the drawing. Yet, I don't know how it does so since all the code I have found that uses this variable has nothing to do with drawing. It is all, logic, like

if(var <= 0){
var--;
} else{
return false;
}

Where is this influence coming from?get all references to a variable[like in eclipse ctrl+shift+g]?

View 1 Replies

Flex4 - Understanding Flash Packages And Dependencies

Sep 13, 2010

I'm trying to understand how packages and dependencies work with Adobe Flash Builder 4. I've copied an example here and put it in a .as file called DependencyGraph. However I get the error message:
A file found in a source-path must have the same package structure '',
as the definition's package, 'DependencyGraph'.
I understand that the original file has a package name called package flare.apps. What should I change to enable this to run?

View 1 Replies

Understanding Flash SWC's Imported Into Flex Builder 3 And Key Framed Animation

Mar 25, 2010

I am trying to understand what is going on in a SWC that I am importing from Flash CS4 into Flex Builder 3. Specifically I am using a SWC supplied by a Designer as the animation for a custom preloader (a subclassed DownloadProgressBar).The issue I am trying to understand is, once the FlexEvent.INIT_COMPLETE is fired, I cleanup by removing the swc by running this [code]though even after I have removed this (which is successful, as I have checked by comparing this.numChildren before and after the call) the key framed animation still continues to run (not visibly). This has been detected by the Designer placing a trace in the time line of the animation (in Flash). Can anyone tell me why is it, that even after I have removed the animation from the subclassed DownloadProgressBar, it still keeps running ? Also, is it standard practice when importing SWCs to manage the cleanup of resources from the Flash side of things (much like releasing memory in obj-c). I find it counter intuitive that removing the child from the Flex side does not stop the animation.

View 1 Replies

Modifying Flash Shopping Cart

Apr 12, 2009

modify an existing flash shopping cart I purchased from Flashden.net (link). The cart uses two XML files to pull in data and to configure most of the data settings. I need help with one thing: I'm using this cart on a sunglasses shopping site and I need to configure the optional sunglasses to be clickable so they can be added to the cart. I know I need to modify both the flash .fla and the xml file so I've included the code for both below. Here's a link to the website I'm trying to re-configure. The section I need to edit has the optional sunglasses on the right-hand side of the main photo.Here's the first xml file that does some of the basic settings. This file is called settings.xml.[code]I made an attachment for the actionscript code called actionscript.txt that needs to be modified. All I need to do is figure out a way to make the optional images clickable so they can be added to the main cart. We can also just create a button that says add to cart next to each sunglass option. Either way works for me. I'm even willing to compensate the person who can help me come up with a workable solution.

View 3 Replies

Modifying Text Created In The Flash GUI

Jan 22, 2010

I'm trying to build a schedule with Flash CS4 and Actionscript 3.0 for an Internet radio station. I'd like to have a .swf that I can open, drag and drop a text symbol from the Library (ideally, for design reasons), and then change the color of the text with Actionscript when the user presses a button.

I can change the color of text if I create it with Actionscript, of course, but I'm not sure how to use Actionscript to change the color of text I've created in the Flash GUI. I can't pass a TextField to a symbol and expect Flash to know what to do with it, can I?

View 1 Replies

Modifying Colors In Flash Template?

Jun 11, 2009

i need to change the animated logo's color in the left from green to blue.I have never done anything in flash before, this is the first time i've used the program, but so far i was able to figure out how to change the navigation and bar color and the text. but i can't seem to see where the color of this logo is coming from....

In screentshot 1 you can see that the Logo_Anim is made up of the Logo_1 - Logo_5 movie clips.Each of the logo_# clips is a piece of the logo.I'm not sure if something in the Logo_Anim is controlling the change in color of each piece of the logo, but it doesn't seem like the indiviual logo_#'s have any kind of setting..

View 3 Replies

Understanding The "Instantiation" Of Actionscript/Flash Objects?

Jul 28, 2009

clarify the different logical instantiations of objects in actionscript?So far it seems there are 3 layers of instantiations, for lack of a better term.The first one is declaring a variable/type.Next is instantiating that variable with something solid in the code, like a method or function? Is this just a way to glue things together? Then after that you instantiate it on the stage, is this something you have to do explicitly, or is it a side effect? Is this "3 layer" concept the correct way of looking at it, kind of like the MVC for flash app logic?

View 2 Replies

Flash :: Not Understanding A "term Is Undefined" Error

Jul 24, 2011

Here is an example of the code I'm working on:

[Code]...

Note that I do have auto declare enabled in my script settings. How should I fix this?

View 1 Replies

Professional :: Modifying JPEG Files In Flash?

Apr 6, 2011

I was trying to erase(using eraser tool) some portions of the jpeg file after importing it in flash.. It does not work....I even converted it to symbol but the problem remains the same. Is it permitted or I am following the wrong approach.

I had another issue with a swf file..It plays perfect in the flash player...But when the same file is imported & played in the After Effects, it displays a still frame..

View 2 Replies

Flash - Modifying Sound Data (MP3) RealTime

Dec 24, 2009

var sound:Sound = new Sound();
var req:URLRequest = new URLRequest(url);
sound.load(url)
I want to modify the sound data (an mp3) as it comes in. Specifically, the mp3 will be encrypted using a stream cipher and I want to decrypt the data as it comes in. Is this possible using some type of event?

View 3 Replies

Legality Of Modifying A Flash Projector File

May 1, 2011

I have a Flash projector file which I would like to edit with Resource Hacker. I would simply like to change a few of the menu bar items (see below):
Does anyone know if this is legal and will not hinder my ability to freely redistribute the file?

View 1 Replies

Flash :: Modifying The Background Color Of Page In HTML

May 28, 2009

I had published the Flash project which resulted in the creation of a HTML file. I previewed what the web page would look like by opening the HTML file in a browser. The first obvious issue was that the page was not centered, but left-justified. I think that I know how to satisfy that issue by reading the HTML file into Dreamweaver and adding a <center> tag just below the <body> tag. The issue that I cannot figure out is that my page is a bit smaller than my monitor size, so there is naturally the white "fill" areas to the margins. Is there a way to change this color to black? Is that the bgcolor variable that is in the <body> tag?

View 1 Replies

ActionScript 2.0 :: Modifying Tone/colour Of An Image In Flash App?

Mar 10, 2010

I'm building an app whereby the user can upload an image and place it onstage amongst other images. They then finally save out the resulting composite image as a jog. I have all this working, however, I'm looking for a way to allow the user to manipulate the colour of their uploaded image so it blends better with the others, I'm imaging, by means of a slider or somethiing.

View 1 Replies

ActionScript 3.0 :: Flash - Modifying An Image Loaded Through A Loader?

Feb 8, 2011

For the project I'm working on I need to dynamically load a SWF and then an imagine on top of that SWF. Based on mouse overs and the like that image will fade in or out. I have the dynamic implementation down, I just cannot quite seem to figure out how to manage the image file that overlays the SWF. Here's a snippet of the code I'm working with:

Code:
var ldr:Loader = new Loader();
var urlReq:URLRequest = new URLRequest(thisOne.src);

[code].....

View 1 Replies

ActionScript 2.0 :: Using Php And Mysql To Add Content To The Portfolio Without Modifying The Flash Itself?

Jun 3, 2004

i want to make a new portfolio site in flash. i was thinking on using as much server - side scripting as possible, to make in easier to update and add some features like flash guestbook/mail form and some other stuff. I was wondering. is it possible using php and mysql to add content to the portfolio without modifying the flash itself? Is there a tutorial regarding this? WHat i want, exactly is to be able to add photos, sites, prints and other stuff to my portfolio like i would add a post to this forum. the title being the title, the message being the description of the project and the pic i can attach being the photo itself.

View 14 Replies

ActionScript 3.0 :: Understanding Mc.name.slice(5 - 9)

Oct 21, 2011

This may be a bit of an easy question for some, but I'm having difficulty understanding what mc.name.slice(5,9) does. What is this name slice bit about?

View 5 Replies

MX04 Understanding 'for' Loop Iterations

Mar 25, 2009

How come every time I run this script:[code]Where does the Undefined come into things? I have only asked the script to fire 3 times so the first time through the text in position [0] in the script Carp should be printed out?

View 2 Replies

Actionscript 3 :: Understanding An AMF Polling Call

Sep 19, 2011

One of my testers is asking me about an AMF polling that we do in our app:[code]They are seeing values of 0 and 5.

View 1 Replies

ActionScript 3.0 :: Understanding System.totalMemory?

Mar 17, 2007

For a long time I've been puzzled by the new System.totalMemory variable. Whenever I make an AS3 project, I try using the following code:

Code:
package whatever {
import flash.system.System;

[code].....

View 2 Replies

ActionScript 2.0 :: Missing Key Understanding About Arrays

Dec 19, 2009

I've been using arrays and for loops in flash for some time now. Mostly successfully.But I'm missing some important understanding of how they really work. Here's the simple code that turns my head around and makes me realize I know nothing.[code]When I trace _root.term_array later in the code, it gives me the list of words and then a ton of 'undefined's. When I trace _root.term_array.length it says it's got 130 items. In my mind it should only have 13.

View 3 Replies

ActionScript 2.0 :: Understanding The Currentframe Concept

May 19, 2005

so I'm still learning the basic concepts. Attached to a movieclip used as a button I have this actionscript:

[Code]...

Which basically causes the movieclips 'leaf1' to shrink, 'vinefade' to go to its first frame, 'artween_mc' to unload, and for all other commands on this button to be disabled. I also want it to check another movieclip called 'leaf9', and see if it's current frame is at less than a particular frame number (73), because if so I want it to start playing forward. Once it reaches this frame number (73), I want to cause linkstween_mc to become visible and hit9button (also a movieclip) to become enabled. My current script does absolutely nothing to leaf9

View 6 Replies

Flash :: Read Flashvars Into File By Modifying The Standard HTML Published Out Of CS5

Sep 30, 2010

I'm trying to read flashvars into my flash file by modifying the standard HTML published out of Flash CS5. The following isn't working:[code]

View 2 Replies

ActionScript 3.0 :: Understanding Basics Of Random Motion

Apr 15, 2011

I started out learning AS3 on my own a while ago without any programming experience whatsoever. I'm still in my diapers, but slowly progressing. Currently I'm working on a short animation with some code involved. Part of the animation is a herd of cows grazing in a pasture. I have a class called Cow which extends MovieClip and on the Cow timeline I have the walk cycle and other cow movements animated. When a cow is walking it slowly moves horizontally, along the x axis. I want the cows, when walking to also randomly move up and down (along the y axis) which would basically look as though the cow is moving further away or moving closer towards us. I'll be resizing each cow, according to its y position to create the effect of perspective (near and far).

What I'm trying to figure out is how to make the cow move either up or down the y axis in a somewhat random way. By "somewhat random" I mean that I don't want the cow to switch directions every second, but rather something like: 5 seconds moving up the y axis, then maybe 8 seconds moving down, then possibly 4 up, then 11 down, etc. It would be super if I could also have a velocity factor involved, meaning that when changing directions - from up to down, or down to up - I prefer that the change is smooth, like as in a ease out and then ease in.

[Code]...

View 2 Replies

ActionScript 3.0 :: Understanding Script For Rotating Objects

Aug 13, 2009

I am trying to understand what part of AS3 script says loop through(create a continues 360 loop of objects) the images from an XML file, does this make any sense.[code]is this the part that says loop the images/objects.this is a little more to the script including the above to maybe understand better?[code]

View 40 Replies

ActionScript 3.0 :: Understanding A Basic Scripting Concept

Jan 16, 2010

I'm currently reading the book Learning ActionScript 3.0 and have dificulties understanding some programing basics due to my total lack of prior programing knowledge.For example now I'm looking at this script from the book that traces a list of all display objects on the stage and their children:[code]I understand everything except one thing. When there is an object with children (DisplayObjectContainer), the function traces the object but doesn't proceed and calls itself starting all over again this time analyzing the first child of the object. And if the child also have children itself the list will branch out until there is an object without children.What I don't understand is how the function at this point knows how to return to the last parent object and continue to analyzes its other children if any.For example when the function analyzes the stage of a scene with the following content how does the function know to continue analyzing child0. To me, looking at the code, I would expect the function to exit after listing [object StaticText]. I have hard time understanding what makes the function go back to largeContainer and continues with its child0 and so on.[code]This all what the book says regarding this which is not enough for me to understand this process:the function calls itself again. passing in the object currentlybeing inspected. This concept is called recursion. A function calling itself mayseem redundant, but it can be very useful. In this case, each time the functionis called, it receives a new display object to analyze, so the function reportsthe contents of that specific display object. The result is a complete walkthroughof all display objects, no matter how many children each may have.

View 5 Replies

Flex :: Understanding Remote Shared Objects?

Oct 20, 2009

I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect

View 2 Replies

ActionScript 3.0 :: Understanding Transfer Matrix Operations

Nov 14, 2010

I'm editing the MotionPath LinePath2D by Greensock to make it become LinePath3D. However I'm stuck in editing this method:

[Code]....

I don't get the operations Greensock does to find the y and x inside the atan2. Why does he multiply xChange (which is a scalar and it should be the delta-x of the Line segment [IMG]) to the b component of the matrix and then sum it to the other thing?

[Code]....

View 0 Replies

ActionScript 3.0 :: Understanding The Load / Unload Event

Jul 20, 2009

My problem is understanding the load/unload event. What I have at the moment is a test file. There is one button that loads an external swf (carnival.swf). This seems to work ok as far as i can tell, although I think the way I have hidden the button once the SWF loads is wrong....anyway... On the carnival.swf there would be a "back to main page" button that would simply remove the carnival.swf from the stage and reactivate the button on the main swf, which in the future would have other buttons that would load other swf's on to the stage.

View 2 Replies

ActionScript 3.0 :: Understanding Doc Class And Adding Functions Via External .as File?

Sep 9, 2010

Say I have 3 fla files, each with it's own document class. I want to define some unique variables in each of those 3 files.Now once the variables (unique to each fla) are set, I want to call the same function - setting up the files. I want this function in a separate as file so i only have to make changes in one spot.How do I link the 1 .as file to each of the 3 doc class files and have it's function called in the constructor of each on

View 2 Replies







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