Actionscript 3 :: PureMVC For Flash Games

Oct 20, 2011

I dont have any experiencie using this pattern when developing a game, except on a data driven website made mostly in Flex.The question is, are there any drawbacks of this pattern?, let say, performance for example?If anyone implemented a game using this framework.

View 1 Replies


Similar Posts:


Flash - Popup Dialog Box Manager Using PureMVC

Apr 22, 2010

I am developing a a game in Flash using the PureMVC framework. From time to time I need to show dialog pop-up window to get a user response back (e.g. "Cancel", "OK" and other kinds of asynchronous user feedback) while "locking" the background for interactivity.

I need some management for my pop-ups: all pop-up notifications should be stacked up, so that if two (or more) pop-up messages are initiated at the same time I show them one by one.

What's the best practice here? Should I employ a proxy to manage my pop-ups (sounds unreasonable). How do I get feedback back from my dialog? using notifications?

View 1 Replies

Flash :: PureMVC Mediators And Views - Creation And Control?

Aug 16, 2011

I'm making an app with flash AS3 and puremvc, the way to correctly handle view mediators is sort of throwing me a little...I have 3 or 4 distinct views, each governed by it's own mediator.Each view is only displayed on its own - ie. when 1 is visible/on stage - the others are invisible/removed from stage (over simplified, but I guess could be thought of as seperate pages, viewed one at a time, a nav bar allows a user to change views when they like)

At first each view mediator I had creating and added to stage it's own view component, and as such, when it was 'turn' to show or hide that view, it was simple - addChild and removeChild for it's view component.However, I read over at puremvc.org that it's not good practice to

a. pass round the stage (which was the viewComponent for each mediator in my case - where each view was added to - eg. viewComponent.addChild(foo)

b. create its own view - which allowed me to add and remove it in the first place.

So I changed to the recommended way - when I create each mediator, what I pass in is the view component it governs (rather than the stage/main doc class eg.

var view:MyView = new MyView();
facade.registerMediator( new MyViewMediator( view ) );
viewComponent.addChild(view);

with that the case - I have no idea how I would go about removing/adding each view when needed.I could easily enough set the visibility from within each mediator, but I sort of wanted to avoid doing that - prefer removing when not in use for resource management...how I am 'meant' to go about this (as in, when a view is no longer needed on stage, remove it - temporarily, and add it later on when it is needed?)

View 3 Replies

ActionScript 3.0 :: Flash Setup Code For Dynamic Templates With PureMVC?

Feb 15, 2011

I'm at the verge of starting a (for me) very complicated project and I am confused about in what way I should setup my code.EXPERIENCE:- I've been programming AS2 for almost 7 years now- Finally switched to AS3 a year ago- Have beworking with the PureMVC framework in my last couple projects nowPROJECT DESCRIPTION:I have to make several templates for a dynamic quiz game.+ Information about the quizzes comes from a database+ quizzes can have different kind of question and there are also other types of screens (information, video, etc)+ All quizzes are dynamic and therefor different+ there have to be several different templates (design, animations and dimensions)MY PROBLEM:I don't really know how to tackle the different templates in the right way.I want all the templates to make use of the same basic code, but only look different (design, transitions and dimensions) terefor I think I should use a MVC pattern.But how do I implement it in such a way that I:- can have 3 different templates- add extra features to the source code without needing to update all the templates- easily add other templates when neededI'm a bit stuck in the MVC way if thinking (which is quite complex for me).

- Do I need to create different sf's = SWFs for every template (and thus the need to update them all for every new feature we implement)- Or should I use a core template, on which I can expand a new "skin" by dynamically loading a theme-swf?

View 5 Replies

Can Create Some Flash Games

Jun 10, 2009

I'm looking to create a new website with flash games, most of which need to be multiplayer.The games I had in mind are a battleship-type game, a pirate's dice game, and a texas holdem game.I'd also like to have a single player "wheel" that you can spin and win points off.I'd also like to have a points system where members wager their points over games.

View 6 Replies

Flash :: Get Games To Add On My Website?

Dec 5, 2009

I am have a web site in Flex. And i want to add a few flash games in it.

I know [url]... has its games on facebook. Can I also add there games on my website?

View 1 Replies

UI Design In Flash Games?

Mar 21, 2010

Background: I've been coding in VIM/C++/OpenGL for a long time.I've come to realize that this (VIM/C++/OpenGL) isn't the way to learn about programming fancy/cool-looking/futuristic UIs; and that the design of such UIs belongs more so in the artistic/designer world of Flash.

Anyway, I currently have a machine with MacOSX. What software should I install? What book should I read to learn about the artistic/design side of these futuristic UIs? [It's okay if the tools to design them are mouse clicking + graphical rather than coding based].

Question: what software packages + books to read to learn about creating fancy-looking / futuristic UIs in flash?

View 3 Replies

Actionscript 3 :: Using Too Much RAM In Flash Games?

Jan 22, 2012

On my venture for quick rendering within Flash, I've worked out that the only solution is to create sprite sheets on the fly. Sprite sheets are created from a MovieClip using BitmapData.draw().

I have a graphics manager class which has a method that accepts a MovieClip and an int. The MovieClip is the target to capture graphics from, and the int represents how many different angles the image can be rendered at within 360 degrees.

[Code]...

Any advice around this would be extremely helpful. Note: I have made sure to utilize BitmapData.dispose() within my own dispose() method defined by SpriteSheet to clear up RAM, I am more concerned about how much RAM I can use at one given time (all game assets that will render ready to be used).

View 1 Replies

Actionscript :: Where To Register Mediator In Puremvc

Mar 17, 2010

Currently I am working on flex using puremvc framework. Actually my question is related to where to register mediator in puremvc framework. One of my colleague is registering mediator in views(components) creationComplete method only (inside view). While my preference is send some notification from creationComplete method which could be handle by some command and command will register mediator. So which one is better approach in terms of best practice ?

View 3 Replies

Flex :: BlazeDS/PureMVC And Shared Vos?

Apr 21, 2010

I'm building modular application with 2 modules which share common vo: ShopRegionVO

This vo is also a BlazeDS entity and is mapped to a remote java object. When shell loads first module everything is ok. The second module is a list of ShopRegionVOs and item change is handled with the following code:

sendNotification(CoverageConstants.SET_SELECTED_REGION_COMMAND, ShopRegionVO(List(e.target).selectedItem));

The exception is thrown right here:

Main Thread (Suspended: Error #1034: Type Coercion failed: cannot convert model.vo::ShopRegionVO@14961809 to model.vo.ShopRegionVO.)
view.list::RegionListMediator/onChange
flash.events::EventDispatcher/dispatchEventFunction [no source][code].....

View 1 Replies

Actionscript 3 :: One Way Deep Linking In PureMVC?

Sep 2, 2010

A project requirement is that it be 1 way deeplinkable(a specific query string will load a section within the swf).I have a URLProxy that I use for all external linking. It makes sense to me to put the query string logic in this proxy. So in the constructor, I check for a querystring, and then send a notification if it equals a predefined value.One problem with this is that I'd like to predefine this query string key value I am checking against in an external xml file. So another proxy, loads-parses this config xml, then the URL proxy checks against this.

View 1 Replies

ActionScript 3.0 :: PureMVC Or Gaia Framework?

Apr 19, 2010

Which framework is the best one to execute Website projects? I was researching around Flash website blogs and articles talking about the great advantage at daily production with these frameworks.In my case i'm used to get basic/intermediate projects that consists in Animations, Transitions between swf pages and at the most important point: liquid layouts.Gaia Framework seems to help a lot at organization and singular work time reduction spent.

View 4 Replies

What Is The Best Program To Make Flash Games

Jun 10, 2009

What is the best program to make flash games?

View 1 Replies

ActionScript 3.0 :: Can't Create Flash Games

Aug 2, 2009

I am new to actionscript. I am following a tutorial on lynda. I am trying to learn how to create flash games. I am using flash cs4. The tutorial uses flash cs3 and and actionscript 3.0. I added a movie clip to my library and enabled export for actionscript. I got a dialog box that says "a definition for this class could not be found in the classpath, so one will automatically be generated in the swf file upon export." I click ok. Then when I try to test it, I get an error that says "call to possibly undefined method". What exactly am I doing wrong?

View 7 Replies

ActionScript 3.0 :: Using ProLog AI With Flash Games?

Mar 21, 2010

I'm developing a Risk like game in flash and I want to use an AI I developed using Prolog language.How can I use the Prolog code in actionscript? do I have to translate it to anther language? is there any automatic way of doing this?

View 1 Replies

Professional :: Can't Open The Flash Games?

Mar 4, 2011

I hope I am in the right forum with my question - I am playing at [URL}.. and there is a Flash Application for Live Games - Link "Live" at the website.
 
My problem is that I can't open the Flash games because I if I click at "Live" in the main navigation nothing happens!!!
 
Other flash applications at other websites I can't open or see without problems - I really don't know what the problem is.

View 2 Replies

Flash - Creating Background In Games?

Sep 10, 2010

What are the best (considered by professionals) approaches while creating a platformer based game for Creating game levels & background (static ones).Create a single background and scale it?or Display it on-the-fly by loading objects (probably repeating them often).

If the first one is the choice then it would become essential to create each level manually of the game & putting level editors difficult.
Also if the later is the choice I find it too processor intensive....my frame rate almost breaks into half, while trying to manage so many objects together on screen.

View 1 Replies

Play Flash Games In Application?

May 3, 2011

Is there any way to play flash games in a java application? I saw jflashplayer, but it is commercial.

View 1 Replies

Multiplayer Online Flash Games?

Jul 2, 2011

I have an idea to create a multiplayer online card game and I prefer to use flash, like yahoo chess(it is not a card game), zynga poker etc.

View 2 Replies

Flash :: Tool For Making Games?

Mar 6, 2012

I am planning to create a flash game on my own.Is there an opensource tool for making flash games?

View 5 Replies

ActionScript 2.0 :: How To HitTest In Flash Games

Dec 9, 2005

I just wanted to know how people code buildings so that the character doesn't bump into them. I tried to do it, but somehow it didn't work. Attached is a sample FLA (Flash 8) explaining my problem. Just move the blue circle with the arrow keys and try to see what happens when you bump into the gray block.The code I have for the circle is:

Code:
onClipEvent (load) {
moveSpeed = 3;

[code].....

View 4 Replies

ActionScript 3.0 :: Make Flash Games?

Apr 8, 2010

I've created a tutorial site which showcases how to create a few games, like the classic Catcher, Pong games in full AS3.0The tutorials are fully guided with step by step explanations, and source codes are provided.

View 1 Replies

Flex :: PureMVC: Unique Mediator For Each Tab In An Interface?

Oct 12, 2009

I am building a tabbed interface for switching between various similar layers. Each layer will have a number of graphs. By dragging with the mouse the graphs can be rearranged or even moved between layers. My question is, is it best practice to register a unique mediator for each layer that keeps track of the layers content / organization, or should i keep track of it all with one central mediator.some considerations:

the layer contents and organization will be saved(in a db) so that it can be restored when a user comes back to the app.the layers themselves are functionally identical.the user can add and remove layers at will.

View 1 Replies

Flex :: Mediator Must Hold View In PureMVC?

Dec 28, 2009

I have one question about pureMvc. I use pureMvc to build an engine, in the engine init part i have an requirement

1) moduleA must init firt
2) moduleB , moduleC need init after moduleA init complate.
3) moduleD need init after moduleB & moduleC init complate.
4) moduleA , moduleB , moduleC , moduleD all extends Proxy beacuse the four system all need to send notifiation ,but no need to listen it.

But to fit for the requirement I can't use command to do it, because they have ini order and also they need to remember current state(ex: moudelB is init Complate but moudleC is not init complete then can't init moudleD) but command is stateless. The best way I think is use one Mediator to do it, beacuse it can both listen and send notification. My question is :

1) Is this a good way to use one Mediator to do it?
2) If use Mediator is good way, then when it hear first moduleA is init complate
registerCommand(FIRST_MODULE_INIT_COMPLATE , initStepTwoCommand);
sendNotification(FIRST_MODULE_INIT_COMPLATE);
removeCommand(FIRST_MODULE_INIT_COMPLATE);
Need to do things like that way or just do the inti logic in the Mediator?

View 1 Replies

Actionscript 3 :: Creating An API For A View Component In PureMVC?

May 8, 2010

In the context of AS3 and specifically a framework such as PureMVC, what an API for a View Component means.

View 2 Replies

Flex :: Multiple Instances Of Views In PureMVC

Sep 15, 2010

Often multiple instances of the view component would be used in multiple places in an application. Each time I do this, I register the same mediator with a different name. When a notification is dispatched, I attach the name of the mediator to the body of the notification, like so:

[Code]...

View 1 Replies

Flex :: Implementing Process Workflow In PureMVC

Oct 11, 2011

I'm looking for suggestions regarding implementing process flow / work flow management in a PureMVC based application. Our Flex application includes a number of processes such as account creation, payment processing, etc. Within our team, there is some discussion of how rigidly we should adhere to the PureMVC model. Within the PureMVC model, it seems reasonable that the current state in the process could be managed in a Proxy. Commands are clearly responsible for processing the actions required of each node and for node transitions. Mediators for managing the UI.

However, I think that there is an important bit still missing here: a ProcessController. The approaches we've reviewed all seem to either violate the PureMVC model (even just slightly) or make unreadable code. A proxy would maintain the state of the process. As such, it seems to be an appropriate way to implement the controller. However, this is putting a lot of business logic into the proxy.

[Code]...

View 3 Replies

Flash :: Embed Games In Blogs And Website?

May 5, 2009

I am researching allowing people to embed my series of flash games easily in their blogs and on their websites similar to how YouTube allows embedding videos.My site manages the difficulty level a person plays at and cycles a person through multiple games.

View 8 Replies

Flash :: Save Games Progress Offline?

Dec 4, 2009

it does of course save the flash/game cookies to the macromedia folder but, what if i want to reformat? how would i, on reinstall of windows reload my game progress? theres gotta be a way?

View 11 Replies

Professional :: Automate Flash Apps And Games?

Dec 17, 2010

I was wondering if its possible to automate games and apps that have been written in flash.
 
For example.
 
Suppose a simple card game was written in flash. To automate it I would need to
-read all of the values of all labels on the screen. -figure out the location and identity of active objects like buttons and text boxes.
 
I suppose these values could be passed to some kind of executable flile running outside the browser which would then move the mouse and click the buttons as desired.
 
Mabey there is a better way of doing this ?
 
I tried running flash apps in Firefox with firebug and fireflash installed to see if I could see what was going on inside the flash files. It didn't work. Mabey debugging has to be enable inside the files themselves which is no use if they are owned by somebody else.
 
Is it possible to automate a gmae somebody else has written in flash ?

View 4 Replies







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