ActionScript 3.0 :: Loading Flash Game In Flex 3
Aug 21, 2009
I am trying to load a flash game in flex but the game does not work the same as it does in the flash player. The game was made using AS2 but I read somewhere that is should play without errors, that is not the case. Played normally the guns shoot the enemies no problem but in flex the bullets just float around the enemies never hitting them. It is hard to describe what is happening so I also included a link with the flex 3 project file that has all of the files.
Here is what I am using for my flex 3 code.
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="[URL]" layout="vertical"
creationComplete="init()">
<mx:Script>
<![CDATA[
private function init():void{
[Code] .....
So is there a way to just play the swf file without messing up the game?
View 1 Replies
Similar Posts:
Feb 15, 2010
When game page loading , the flash game itself does not appear ( just white area as the holder of the flash game) untill the game almost finish downloading, then it appears .. This long waiting with just white area makes visitors leave, thinking there was nothing there.
View 1 Replies
Apr 8, 2011
Somebody give me some tutorials sites for saving and loading game.
View 1 Replies
Aug 20, 2010
i have a small requirement. like i am currently working on a games website in which whenever i open the game a flash preloader needs to open first and hide the game file while the flash preloader loads. once the flash preloader completes its loading then immediately the game content need to display. i heard it can be done using javascript,ajax.
View 1 Replies
Nov 19, 2009
I think Flash/Flex is a good aproach for this case.We need to build some like the following
View 2 Replies
Jan 6, 2010
Which would be more comprehensive for game development?
View 6 Replies
Oct 13, 2010
I would like to know how can I create a dress up game in Flash/Actionscript where users can click on (not drag and drop) the available accessories/clothing and the avatar will display with the new selection immediately, and I can save the settings and take snapshot of the avatar in the new clothing selection. It will be good if there is references/tutorials that I can follow.
And secondly, may I know how do I save the selection, is it via xml or json or database? It will be good to store the clothes/accessories dynamically.
View 2 Replies
Jan 12, 2011
I want to know if there is any way to creat an online multiplayer game using flash or flex (flash builder).
View 1 Replies
Feb 28, 2011
I'm creating a game at the moment for my university course and it involves the player character jumping on top of boxs twice to break them as opposed to just once.What would be the most efficient/simple way of writing this in Actionscript 3.
View 1 Replies
Dec 14, 2011
I am thinking of developing of a game like this: [URL]... Do you have any idea - by which game engine I may develop this type of games? I am not sure whether I have to use any 3d physics engine? I think JiglibFlash may be useful, but I am not sure.
View 1 Replies
Apr 1, 2011
how to make a game tutorial as farmville game tutorial to teach the user to play the game. i have recently involve in make that kind of game tutorial for its user by actionscript 3
View 1 Replies
Mar 20, 2010
I was just fooling around in my spare time and have made this cool interface and game-playing code for a Connect-4 type game, written in Flex and playable by 2 human players in Flash. It accurately detects wins, etc. I'm smart enough to know that I've done the easy part.Before I dig into an AI for game play, I wanted to ask if this is the kind of thing that can really be handled computationally by a Flash plugin. It seems to me that for every turn up until the end there are 8 possible moves, 8 responses to each move, etc. So wouldn't a perfect engine have to be able to potentially see 8^8 moves (over 16 million), and a fairly good engine see up to a million? I don't know game coding so this is new to me. What's a reasonable move horizon for such a game to be able to see?
View 1 Replies
Jul 13, 2011
I have an air application that I'd like to turn into a multi-player game. I'd like to have 2-40 concurrent connections per "room". We would like to have 1-10 rooms going at once in the beginning. I'd like for users to be able to share voice and video but that's not a requirement.
Users will be racing each other based on data that's updated once every second, so ping doesn't have to be super low. 1000ms would be fine but lower is preferred.[URL]..
Cirrus looks perfect. I've heard some problems about firewall and port settings, but was wondering if anyone had experience with at home users and Cirrus. Another problem is that it's been in labs for ever. You can get RTMFP with Flash Media Server Enterprise but that's like 60k-70k per processor, way out of our price range. I've also looked at [URL] but it doesn't support RTMFP. I know we can host this on AWS and maybe save some money.
There is an open source project (cumulus) that implements RTMFP too but I've read that it's more of a POC then a production ready project. The license is also GPL which doesn't work for our commercial application. I've also looked at[URL].. but again, no RTMFP integration.The reason I like RTMFP is because we can scale without a lot of server cost. I know it's a closed protocol from Adobe and it looks like wowza or red5 won't be implementing it any time soon.
Is there an affordable (not 70k per processor) server tech for multi-player gaming that you can use with AIR/Flash that scales well?
View 2 Replies
Dec 17, 2009
I have 2 questions regarding bitmaps. Say I'm loaing graphics from a game off a server into a .swf file:
1) Which format is the best to use - gif, jpeg,png? (for non transparent images)
2) When a user plays a .swf movie it gets saved to their browser cache and its loaded the next time they access the same file, but when your externally loading images does flash have to re-download all the images or is it all stored in the browser cache?
View 2 Replies
May 12, 2011
I'm currently having a problem with preloading. What I have is:
1. Preloader -> an SWF preloader, made in Adobe Flash CS5
2. GUI -> an SWF file containing the user interface, made in Adobe Flash CS5
3. Game -> an SWF containing actual game logic, made in Flash Develop
The preloader SWF should preload both GUI and Game. I can do this, no problem. The problem however is: I need to be able to control the GUI from the Game. So how can I access the GUI from the Game? In particular the main movieclip in the GUI which contains every interface screen. How can a script inside a SWF communicate with another SWF (all in the same file)?
View 7 Replies
Jan 10, 2003
I load a game on click of a button in level1. When I click on some other button I load another swf in level10 & unload the game in level1. When I click the game button I load it again. The problem is: when the game is loaded first time it works fine but in subsequent attempt it behaves erratically. I am using time interval functions a lot of places in the code which moves the thngs on the screen. When I load the movie again after clicking on some other button, the things start moving on its own...
View 1 Replies
Aug 13, 2010
In the game I am creating, I don't want to import the images directly to flash, otherwise the game will be well over 10MB and that is not a good thingamajiggy So, I am loading them in from a folder residing in the same directory as the SWF.Question - Even if a 56k user plays the game, they shouldn't have a problem receiving the files pretty quickly, considering the image folder with the 8MB+ images is in the same directory, right?
View 4 Replies
Jan 21, 2012
started programming the menus for the game im working on. Everything shows up ok so far but when i select the buttons rather than it loading the next part, its going to a black screen? Does anyone have any suggestions? My code for the MainMenu is as follows:
package
{
import flash.display.MovieClip;[code]....
Then the "game" is another class which is loaded when you select to play the game.
EDIT: Forgot to mention, i have images loaded that are converted to movieclips and named the same as the class so that they display as the background. The main menu image works fine, just not the game background.
View 2 Replies
Nov 12, 2009
I know this has probably asked a lot before, but I tried searching some and couldn't find it.
When I make a loading bar it won't show up until the whole game's loaded.
View 9 Replies
Feb 1, 2007
I have built this AS2 game that uses quite a few classes and library symbols.It works fine the first time you play the swf. But if you try to do the whole ctrl + ENTER in the Flash IDE, it doesn't seem to load any of the assets that are dynamically attached to the stage.This also happens if you have another swf use loadMovie to load it.I have all the dynamically attached symbols assigned with the linkage and set to export on the firstFrame. There is an include .as file on the first frame of the fla.
View 3 Replies
Feb 19, 2009
I'm making this game with complex visual effects (some rendered lighting using bitmaps), so it takes about 1 second or so generating a level with 3 big lights, so it may take a little more using more lights. The map is built when the player clicks to play the level. The thing is I can't show him the game is busy processing the level elements, because the graphic elements won't refresh until the start level function returns, which would make some sort of info sign while the map is loading useless. How would I make it so this information is visible right after I click Start level and disappear as soon as the level is built? I'm assuming the event handler from clicking Start level has to return before the level starts loading, but how can I schedule the game for loading?
View 4 Replies
Dec 20, 2009
I am making a game, then I learned to load the resources (images,etc) just when I need them, using the Loader class.I would like to know if I embed them they would be loaded with the game swf file (I am thinking as if my game is on a website) or when I instantiate them.If I load it one time and not use it anymore (loose its reference) and after some time load it again, will it be downloaded from server again? Or it will load from my pc? If I put the resources on a folder in the server (now I am using a folder on my pc) anyone would go there and get all the resources! What should I do? how my game would work on a website, not on my PC only I got the idea to create a loader to load my game, but I cant think about the resources loading,
View 1 Replies
Oct 20, 2009
well i made a game and in the game there is music at the first frame and when u lose to goes back to first fram and more music plays so they are overlapping.
View 10 Replies
Jul 29, 2009
If I have rolled my own RSL, and I want to use it in my pure as3 apps, is there documentation or an example of how to do this?
Or do I need to traverse the flex source code to figure out what adobe's engineers have done?
View 2 Replies
Feb 4, 2010
i am using flexbuilder 3 now i need to load xml file from disk using flex without AIR i imported flash.filesystem.File but error occured. but AIR project,flash.filesystem.File was successfully imported. Cant i use flash.filesystem.File from flex without using AIR?
View 1 Replies
Dec 6, 2009
i'm pretty new to flex 3 but it's really cool so far. now in the center of the screen when i try to load an swf file using the SWFLoader object i get the following error:
Error #2044: Unhandled securityError:. text=Error #2140: Security sandbox violation: file:///C:/Users/ufk/Documents/Flex%20Builder%203/GamePage/bin-debug/GamePage.swf cannot load file:///C:/Users/ufk/Documents/Flex%20Builder%203/GamePage/bin-debug/crazy_counting.swf. Local-with-filesystem and local-with-networking SWF files cannot load each other.
[Code]...
View 4 Replies
Jan 9, 2012
I have a Windows Server 2003, with a domain: "mydomain.com" and everything goes right until the Flash application tries to load de crossdomain.xml, because it tries to load it from "servername" and obviously the request fails. Currently I have read all about crossdomain.xml , what it is, where it goes although I can not find what I have to do so my flash application requests the crossdomain.xml from my domain "mydomain.com" and not from my server "servername".
- The domain is up and can be accessed from the internet
- The crossdomain is on the root folder and also can be accessed from the internet
View 2 Replies
Feb 27, 2010
I AS3 RTS game using Flex 4 sdk(pure actionscript ), do you have any good tutorials I could use
View 1 Replies
Dec 8, 2009
I am looking a game framework for flex/AS3. I want to use it to create simple 2d games, such as tower defense, etc.
View 4 Replies
Dec 2, 2011
I have a loop that parses and works on a lot of data and it takes a long time. While it works away, the screen is blank and im wondering if there is a way to put a loader or counter up?
Since it does a finite amount of work, I thought I could just update the progress from within the loop but further readings has revealed that it wasn't possible.
View 3 Replies