ActionScript 2.0 :: Flash Project And Fixing A Few Things?
Aug 6, 2007fixed the issues, sorry for posting, delete this
View 1 Repliesfixed the issues, sorry for posting, delete this
View 1 RepliesIn my game, Ive got a HUD, (heads up display, life bar, points scorer etc...) and when an enemy comes onto the stage, the lifebar is appearing behind everything else, and it should really be the thing that's infront of everything else. Is there like a line of code and a function or variable I should declare or import that allows me to create depth and put my lifebar at the front.
View 2 RepliesI would like to get this date countdown working. Right now it is inaccurate in its count.t's off by almost 30 days.
Code:
//Create a date object for 3/25/2011
//HOW TO ADJUST FOR TIMEZONE?
[code].....
Eversince I've worked with AS3, Flash always seems to have some odd way in rendering pixel-precise vectors. For instance, Friday I tried to draw a roundRect with a line around it. However, when zoomed at 100% it looks crappy and not how it's meant to look:So, when zoomed in in Photoshop you'll see more clearly that it's off:But whenever I zoom in with Flash itself, it looks OK:The quality is set to High, so that can't be it. Is there any flag in AS3 to make Flash render vectors more accurate?
View 1 RepliesI would like to add a widget board to my flash project so users can embed my project in their web page or wiget display. To see what I'm talking bout go here [URL] and click the white + mark on their widgets.If your a moderater please put this in the correct area, and consider making it a sticky so we can post new ways to impliment in different sites as they become available.
View 2 RepliesI just wanted to ask if I have a project created in authorware and one more in director.I just wanted to ask can we convert authorware project in flash directly or indirectly?Or can we import authorware project and/or director project in flash.does anybody know or anybody has done this b4???
View 1 RepliesI am developing a project in Flash Builder which will load a file built by Flash CS4. The code in Flash CS4 is below, it's a doc class. I am sure the dispatchEvent has been invoked[code]...
View 1 RepliesI have a CodeIgniter project and I made a back-office in Flex. I was wondering how I can implement the Flex project in my CodeIgniter since I'm working with routing I can't route to any directory. So there isn't a way to display the back-office.
View 1 RepliesI have two frames in my Flash piece. On one frame I have a combobox called source_id, and on the other frame I also have a combobox called source_id. Now I know I could rename these but I want to keep them the same for various reasons.
View 1 RepliesThere are three buttons on the stage. The second button opens a dropdown menu and pushes the third button. I solved this by changing the _y position but it's crude! Then, when you press button#3 or button#1, the dropdown menu goes up and all the buttons realign to their initial positions. Here's the script for button#1 and button#3 (activeZone is a hidden Movie Clip that triggers the animation):
[Code]...
Right, so I've got this engine down:[URL]..EDIT: Arrow keys to move, a to jump.It seems fine at first, but as you can see, if you jump with a platform overhead, you get stuck in that platform - that happens because the registartion point of the mc (the '+') is at the feet of the character. It needs to be this way so that it registers on the ground.
[Code]...
Code:
TypeError: Error #1010: Un trmino no est definido y no tiene propiedades.
at main_fla::MainTimeline/hero_move()
[code]........
I have flash cs4 and cant find the Up, Over, Down, hit button things
View 2 RepliesIm doing a thing where you "build" a watch.. you specify how much of each part you want and then submit... i think i need something simialar to if/else so that...
textbox.iron = "3" && silver = "50"
then textbox.result = "failed"
I need something like that.. but in actionscript
I'm sure it's been posted about a million times before but I've been trying vars searches and seem to always be coming up with answers to do with the exact opposite of what I'm trying to achieve! I'm creating a flash Movie that is 800 x 600 pixels in size and I'd like to fix that size so that it will always be 800 x 600 regardless of the screen resolution of the computer running it. At the moment it seems to scale by default and is winding up looking ugly on other people's computers.
View 3 RepliesI know where the duplicate function is, but I can't figure out how to remove it without causeing more errors.
[Code]....
i was in the very initial stage of my code but now i have completed my file and need some help fixing a bug in the file.The basic idea is to arrange the cards in order user seem fit but the problem i am facing is that when i swap cards on mousemove a particular card doesn't have its properties updated it shows xpos ypos and its col and row id as undefined until i click on it and then only the card takes its properties I know i am not setting something properly some where but am kind of totally clueless about it.I am attaching the fla and xml here . the xml is only for the increasing or decreasing the length of the columns and rows.
View 1 RepliesI cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).
At the moment situation... (cant see that area around the project)
http://img19.imageshack.us/img19/1186/68553623.png
Currently I'm working with Flash CS3 but can upgrade to 4 . . .I'm wondering if there is a way to speed up the process of animating certain things. For instance, if I make an animated subject and then want to make ten or twenty from the same template with the same objects, but each object will follow a different animated path in the new animation, i. e., in the new swf file.
Should I rely on using code to animate objects? I'm trying to avoid repeatedly dragging the same movie clips from the library to the timeline and setting tweening each time. Sometimes I need to do this action 50 or 60 times per animation, and it's the same two or three movie clips each time--it's very tedious. Also, each animated movie clip must be in sync with music . . .
The AVM verifier when encounters and error, writes to flash log. In the documentation it says that verifier will visit "all possible branches" where jumps might take it. However it is still pretty confusing when trying to follow the output. how to interpret it properly? The whole flow seems confusing. For example what are the meanings of the following markings.
[Code]....
Further, there are machine instructions and Machine State with registers, scope stack and operand stack. I understand when I see instruction and later a state modified, e.g. PushFalse would make a Boolean appear on Operand Stack - (Boolean[B]). But sometimes state is written even without an instruction preceding it, in combination with MERGE FIRST, MERGE CURRENT, etc. What does that mean?
Do you think the arrival of the new Flash Player 11 which is much more powerful allowing to render 3D games much faster will change the flash world significantly?Will we see a whole new era of 3D everywhere? new 3D games on the web, new 3D games on facebook, new 3D stuff everywhere... new IDEs for the 3D capabilities? a boost in the flash 3D engines such as Away and Alternativa? And most importantly for developers, is it going to create a lot more job oportunities for specialized developers with new skills?
View 5 Replieswhenever I want to copy and paste or duplicate something it never just leaves the original alone. It creates an instance so i cant edit one independently from the other. How can i just simply easily copy and paste a symbol movie clip ect. and have it be completely independent from the original?
View 8 RepliesIve been using adobe flash cs4 for a while now and have had little trouble giving things instance names. Now though, whenever I double click on something like i normally do to give it an instance name, the blue box no longer comes around it, I click on properties, and change the instance name. I now get a dashed line along the lines of the picture. And when I go to properties, it just says shape, and I cant edit the instance name. Just position and size, then the fill and stroke. What is going on?
View 5 RepliesIs there any way to accomplish this? I need to make it so that overlapping pictures or things outside of the movie screen will not show while I'm editing the movie.
View 1 RepliesShort Answer: Yes, FullScreenEvent temporarily adds 1 child to the stage. Long Rant: Well how about that.. I'm not crazy.. I don't know if this is documented but - it's true. That little message that pops up saying 'you can press esc to exit full-screen' adds a single child to the stage temporarily and keeps it on the top level until it fades out. The sudden intrusion of indexes really messed me up.. so there's my answer, I guess. Now i just need to figure out how to get around this slight annoyance.
[Code]...
Now, bear in mind i'm not ruling out that my code is faulty because that's more than likely the case, but after pondering for ages and coming up empty handed, I keep getting a little superstitious that flash is playing tricks on me and that the 'little message' is not independent and is actually added to the display list..
Does anybody know if I'm just imagining things? or is the 'press esc' message a part of my swf on the display list?
I have set up a Flash Project to publish two FLAs simultaneously.However, when I click on "Test Project" I get the following error message:Quote:Cannot open a protected movie.However, when I publish each of these FLAs independently, I do not get the error message and the file publishes and runs with no problem.
View 0 RepliesSo, I have this main class:
Code:
public class Chloe extends MovieClip {
public var key:Controls = new Controls();
public static var box:Sprite = new Sprite();
G.boxRef = box;
public static var cow:Cow=new Cow();and in the Cow class i have this:
[Code]...
and it throws me TypeError: Error #1009: Cannot access a property or method of a null object reference.
if I try to trace(G.boxRef) in Cow constructor - it traces undefined in the first frame, but next frames are fine. But why? Both variable "box", and reference to it are declared before declaring variable "cow"?
I have two requirements for a flex charting component:
1) The grid lines should always remain fixed to a scaling I define using an array of data. Something like a graph paper sheet.
2) Plot multiple line series data over this grid.
How does one get complete control over the background grid lines? I have tried a combination of annotation elements and setting the linechart background elements. If I get the grid right, I can't plot over it (Probably due to the scale). how would one go about designing a graphpaper like interface for linecharts in flex/actionscript?
Seeing as I don't have too much formal education Flash/OOP in general, this is just one of those thing I can't seem to quite deal with gracefully. All I'm trying to do is to be able to load/reset my an instance of my game's main class (not the first class that gets pulled up by Flash, but the one that actually has games logic in it), which of course extends MovieClip. It took me a while before I could even make an instance in it, because it would silently crashed when I would try to do so, and what didn't help was that the output window stopped working, and I had to completely reinstall flash. As far as I remember I simply fixed it by taking out the "stage." from any of the lines of codes that had it.
[Code]...
I am working on this one project that has a couple of movieclips (already placed on stage) which have a custom class set to export via the Library. Each of those custom classes loads an external SWF using URLRequest().
Is it possible (or, what is the best way) to preload the whole project first, including the external SWFs?