Questions tagged [actionscript]

Actionscript is an object-oriented programming language primarily used in association with Adobe Flash.

Filter by
Sorted by
Tagged with
0 votes
1 answer
99 views

flash - hitTestObject() mafunction?

Is there a way that even though two objects that have different y co-ordinate collide? In my game, I wanted to make my object rotate as explained in ...
therealyubraj's user avatar
0 votes
1 answer
648 views

Rotation of objects from different axes in Flash AS3

In my game, I have made 4 lines with different colors to form a square but the colored lines are different objects. I want to rotate the lines in a way that the lines will still form a square. Eg: ...
therealyubraj's user avatar
1 vote
0 answers
20 views

Correctly implement of an object rotation

How can I correctly implement 360 degree rotation of some object, every time when some condition is meet? I have two class, one with definition of function and second with ...
Guest6237's user avatar
1 vote
0 answers
199 views

Host Migration (P2P) with RTMFP and AS3

I was wondering if this is a possibility with RTMFP since it acts like UDP/P2P.. Host Migration Player A starts and host a game.. Player B and C connects.. Player A quits.. Player B is now assigned ...
scottyp's user avatar
  • 429
0 votes
1 answer
1k views

AS3 .hitTestObject() not working with Tween function

(This was originally in an other senction but many told me to ask here, hopefully someone can answer this) I am having a major problem in my new browser app. Okay so I made game where different cubes ...
werer cool's user avatar
1 vote
1 answer
548 views

Codes for walking on platforms along with jumping using actionscript 2.0

I want to know the shortest and most understandable code for walking on platforms using actionscript 2.0. I know there are multiple ways in doing it but my method becomes too tedious when a lot of ...
Novice Coder's user avatar
1 vote
1 answer
439 views

How do I pause and resume a game in ActionScript 2?

I'm making a game where the player must avoid random falling objects. I dont know how to implement pausing. I've been stuck on this for 2 days! I tried using ...
user3132527's user avatar
0 votes
1 answer
288 views

Using external music mp3 in flash game [closed]

sorry for my english. Im relative new to flash game development, Im creating a game and I need some big size mp3 files. If I add them into flash, .swf file will be too big. I guess I need to host mp3 ...
Beginner's user avatar
2 votes
1 answer
343 views

Is there a better alternative to Timers to increment speed?

I'm making a chaser game in flash, where you would press an arrow key and the player would move in that direction then stop on another point on a grid, as the enemy does the same and chases the player....
user avatar
1 vote
2 answers
210 views

Can I make a flash file I developed to run on Androis / IOS?

I've created a simple game using ActionScript 3.0 and Adobe Flash CS5. Is there any way to run this creation on Android / Apple IOS ? (Even if so, I still have no Idea how to work with "touch" ...
Guy Ben-Moshe's user avatar
0 votes
1 answer
188 views

How to stretch Movie Clip according to user's touch coordinates?

I have code like this: touchX = e.stageX; touchY = e.stageY; I also have a player movieclip that I'm trying to make shoot lasers. So I got the MovieClip to ...
user avatar
4 votes
1 answer
592 views

FlashPunk + Flashdevelop - How to use sponsor provided preloader

I have developed a flash game using FlashPunk (on FlashDevelop). And now that I am trying to add a sponsor preloader and splashscreen to my game, I realize the flashpunk forums are down, and have been ...
filya's user avatar
  • 61
0 votes
1 answer
175 views

Increasing height increases width

I have a game, where the user presses a button to spend money and increase the height of a Movie Clip. I use the following: height ++. The problem: When I test ...
user avatar
2 votes
1 answer
434 views

How to start external AS file playing on frame 2 (instead of frame 1)

I am using actionscript 3 and I have used an external actionscript file (.as) for my game. I would like the external actionscript file to be played at frame 2 (instead of frame 1, as it is an ...
Nail's user avatar
  • 21
2 votes
1 answer
430 views

Can't click on a button with startDrag() active on stage

I need to know how can I enable mouse click on a button when I have a MouseEvent listener for the stage. I have an MClip ...
Pedro's user avatar
  • 21
0 votes
1 answer
465 views

How can I make an infinite cave using stage3d?

I want to make an infinite cave in my 3d game using flash stage3d. But I got no idea about how to build that cave. Can anyone can give me some solution or hint? update: I've tried agal fragment shader ...
Frei Zhang's user avatar
1 vote
2 answers
869 views

Design Pattern for Social Game Mission Mechanics

When we want to design a mission sub-system like in the The Ville or Sims Social, what kind of design pattern / idea would fit the best? There may be relation between missions (first do this then this ...
Furkan ÇALIŞKAN's user avatar
2 votes
1 answer
3k views

how does server communication work in a flash game with a php backend

I am trying to create a browser game using actionscript/flash. Currently, I'm trying to understand how I would go about creating a back-end which interfaced with my MySQL database. As far as I ...
Tim Rogers's user avatar
3 votes
1 answer
1k views

Any good web frameworks for asynchronous multiplayer games? [closed]

I'm trying to craft a site for web-based (original) board games, and my client (currently written in Actionscript, but that's highly fungible) works fine - I can play solitaire games in the client - ...
Steven Stadnicki's user avatar
0 votes
1 answer
114 views

Setting up speedtests in Actionscript 3 for an entire game

I'm very new to this so please forgive the questions possibly ill-stated nature. Firstly is this even a valid way to speedtest: ...
Zee Bashew's user avatar
3 votes
3 answers
2k views

Multiplayer API with Unity 3.5 and AS3

On the faq for the current preview release, http://unity3d.com/unity/preview/faq it says that while networking is not currently supported for flash compilation, we can write our own in AS3 using the ...
Michael Taufen's user avatar
7 votes
5 answers
1k views

Circular Bullet Spread Is Not Even

I'm creating a bullet shooter much in the style of Touhou. Right now I want to have a very simple circular shot being fired from the enemy. However, the spacing is very uneven, which isn't very good ...
IAE's user avatar
  • 829
0 votes
3 answers
2k views

ActionScript 3.0 and iOS

In Adobe CS5 you can export games to iOS, but all my research in the past indicated that Apple was not going to support Flash. It's my understanding that Adobe and Apple were working on this at one ...
Phoenix401's user avatar
0 votes
5 answers
2k views

Are there any sample projects for Flashpunk? [closed]

Are there any open source games using Flashpunk? The other big flash game library Flixel has a number of example projects, are there any equivalents for Flashpunk?
2 votes
0 answers
879 views

UDK HUD problem [closed]

I'm trying to add a new element to the HUD, it's supposed to be a compass that should function like a minimap. I've added this code to the main hud.swf: ...
Dorpe's user avatar
  • 21
4 votes
2 answers
306 views

Controls for physics-enabled game object

I'm trying to put together 2D game on Flash ActionScript. Game objects positions are updated by physics library and I'm trying to control them applying forces and updating these forces every frame. ...
alxx's user avatar
  • 163
1 vote
2 answers
196 views

Need help in determing what, if any, tools can be used to create a free Flash game

Yes I proudly -and sadly- declare that I am a complete nincompoop when it comes to Flash, and I have been fishing around the big wide web for information. The reason for this is that I have been ...
ReaperOscuro's user avatar
7 votes
6 answers
2k views

Beginner flash game development: Start with framework or from scratch? [closed]

I want to write some simple flash games (as a hobby). I have a lot of programming experience, but no experience with Flash/ActionScript. My question is: As a beginner, is it a good idea to start with ...
Dario Seidl's user avatar
6 votes
3 answers
12k views

Triangle - Rectangle Intersection in 2D

I had previously asked this for 3D but now I changed my strategy and would like to do the intersection in 2D. The Rectangle is axis aligned and will always be in a fixed position, and has a constant ...
Kevin Boyd's user avatar
4 votes
1 answer
524 views

Is Scaleform/Flash used in console games for non-UI, game elements?

I work for Konami as a Flash developer, and got sent some code for a puzzle mini-game from a new, yet-to-be-released Silent Hill game for PS3/Xbox 360. It was a windows executable, but it was made in ...
jcurrie33's user avatar
  • 777
-5 votes
2 answers
609 views

Why is my hitTest() not working every time? [closed]

I have a code segment in which I use hitTest() a couple of times but at a particular section the hitTest stops working. It doesn'...
Vishnu's user avatar
  • 1,887
4 votes
5 answers
493 views

Developing Flash games on the Wii

Has anyone used WiiFlash for developing Flash games? Any pointers on how to begin developing games for the Opera channel for the Wii?
chiguire's user avatar
  • 552