ActionScript 3.0 :: Looking For Organization Model For Ui Classes?

May 18, 2011

I am looking for a model to organize my ui classes so that more than one class can apply to the same displayObject. Consider this example:

I have a AlphaButton Class extending from MovieClip that changes the alpha state on MOUSE_OVER and MOUSE_OUT.

I have a ScrollButton Class extending from MovieClip that holds actions to scroll a scrollbar.

I want to keep these 2 classes separate so that they may be reusable in other projects. But right now, I want a ScrollButton that has the AlphaButton interactivity.

View 9 Replies


Similar Posts:


Flex :: Create Organization Chart Using Xml

Nov 3, 2009

how to create organisation chart in flex using xml

View 2 Replies

Java - Organization Of Services In Service Layer?

Oct 11, 2011

I have a Java server application with a ton of different entities. So far, each entity top level entity has its own CRUD service. By top level, I mean the root of a tree of entities that can stand alone.

Now I am getting into the heart of my Flex client and find I am needing/writing many different queries. But where best to put these queries?

Say for example, I have a query to find all "foos" based on their associate with a certain "bar". Currently that query is on the "foo" service (findAllByBar), but I am finding that it would be very convenient to have it (also?) in the "bar" service (findFoos). On the other hand, I could also create a query service and lump all the queries in there.

View 2 Replies

Actionscript 3 :: Class Organization: Function Internal Or External?

Jul 15, 2011

I am creating a side scrolling game in Flash (as3) and trying to keep things organized and clean.Ive created a "Level" class that gets all the level data, player data, and creates all the terrain objects and the player object. Its starting to get messy because im handlng all of the functions for player collision checks and player movement, terrain movement, sound starting and stopping, enemies, and more, all in this class. Is this normal? Or is there a better way to organize things to keep them separate, but still allow them to interact with each other.

View 2 Replies

ActionScript 2.0 :: Making A Full Flash Site - Organization

Apr 27, 2005

I've decided to finally make my own full flash site. I've got more than enough Flash and ActionScript (and XML) knowledge to pull it off nicely, but I was wondering if people who have already done this have any advice for me in terms of organizing the whole thing, so it's easy to upgrade and follow through during the time you build it. I was thinking a standard layout, maybe an intro and a first preloader, then a menu that choses sub-sections and each has an intro and outro transition? Oh, and for seperate sub-sections, do you put the preloaders in the main movie or do you include the preloaders seperately in each of the subsection swfs?

View 3 Replies

Flash :: Silverlight - MVVM - Presentation Model In Flex Vs Presentation Model In Silverlight: Advantages And Disadvantages?

Apr 10, 2011

As it is said here: [URL] "If you do a Google search today for "MVVM and Flex", the first post is by somebody who claims that MVVM is not a good fit for Flex. I couldn't disagree more. Out of the box, the Flex framework makes it much easier to implement a Presentation Model than similar MVVM implementations in Silverlight. That is not to say that there aren't good third-party libraries that make it easier in Silverlight, but without any help, it is easier to do in Flex." So MVVM as LOGICAL CONCEPT can be implemented in both but the way it is implemented in Silverlight requires more Plumbing than Flex.

What prevents Silverlight MVVM to be implemented like Flex ? Doesn't Silverlight have same capability in event system to do the same? If yes why does Silverlight do things more complicated what's the advantages then ? Is it about using Class Interfaces which are more strongly typed? What are the disadvantages also ? For example as for implementing MULTIPLE VIEWS for 1 View-Model does Flex implementation make it also more obvious?

View 2 Replies

Auto-import As3 Classes (internal/intrinsic Flash Player Classes At Least) Using Emacs?

Aug 23, 2011

Is there any way to auto-import as3 classes (internal/intrinsic Flash Player classes at least) using Emacs ?

Looked for as3-mode and actionscript-mode but nothing working was found. as3-mode can import class if it is opened in buffer (but not *.mxml files)

View 1 Replies

ActionScript 3.0 :: Unexpected Errors, Multiple Helper Classes, Extended Classes?

Jan 9, 2010

The examples I'll use don't do anything - they're classes without ANY members - no variables, methods, anything.

Let's say I extends Sprite and call it MySprite.

I save it in test.core

[code]...

Now I create another custom class called MyWindow that extends MySprite.

I save it in test.windows

[code]...

Then I create another class that extends MyWindows (the example I'll use is a document class - but that doesn't matter - I've tested using an instance too).

[code]...

Notice that I'm not even trying to instantiate the helper classes - just having them there throws the error.

If there is only a single helper class, everything runs fine.

Also note that - as far as I can tell - this only happens when extending one class from another package, then extending that class with more than one helper object.I'm pretty sure there's no namespace bumps or typographical errors, as this is a very pared-down version of the original application.

EDIT: seems the problem exists even without the crossing packages - even extending MySprite in the document class with multiple internal classes generates this error.

View 4 Replies

Actionscript 3 :: Inside The Library Use Of A Bunch Of Classes/packages - Expose One Of These Classes?

Feb 3, 2012

I am creating a library in AS3. Inside the library I make use of a bunch of classes/packages that need not be exposed to the end user of my lib. I want to only expose one of these classes.

I guess my questions are:

1) How are libraries commonly distributed in AS3?

2) Is there a .jar equivalent in AS3 that developers can include, but will only have access/knowledge of the classes I've declared as public?

View 2 Replies

Actionscript 3 :: Classes In Project Override Classes In A Flash CS3 SWC File?

May 6, 2011

I have an actionscript project which uses visual symbols from an SWC. I have a CheckoutButton which has the following class associated with it (compiled into the SWC in Flash CS3).

[Code]...

View 1 Replies

ActionScript 3.0 :: Protocol For Importing Classes From Sub Classes?

Feb 8, 2011

I'm trying to import a class from a class that is located in another folder. How do you move up a directory? Using./ or ../ doesn't seem to work. Essentially I want to access a TweenLite Class but not from the document class. My class is at com/myName and the class I want to access is at com/TweenLite. import ../TweenLite doesn't work... I realize I could just copy and paste the entire Tweenlite folder again, but there's got to be a less duplicative way of doing this..

View 2 Replies

ActionScript 3.0 :: Inheritance And Building Classes From Other Classes?

Feb 4, 2009

inheritance and building classes from other classes.

I have 3 classes:
gfxRoomText - changeable colour
gfxRomInter - changeable colour - interactive
gfxRoomImg - interactive - only image / no colour

The first two incorporate the same text field and functions to change colour. The second and third incorporate another class to interactive with. What is the best way of creating these classes using inheritance and how?

View 8 Replies

Create An Interactive 3D Model?

Aug 13, 2009

How to create an interactive 3D model? Which software should we need to do that?

View 1 Replies

Importing Blender / 3Ds MAX / 3D Model

Aug 20, 2009

Can I import 3D models from Blender/3Ds MAX 2010 to Flash CS4?I would like modelling 3D models with a 3D software and then import them to Flash CS4 to animate.

View 1 Replies

Professional :: Convert 3D Model To Swf?

Nov 27, 2010

Is there a way for me to convert a 3D model (.dae or .3ds) into a swf movie that you can orbit around it, like when you view a 3D model in photoshop using flash.

View 5 Replies

Unable To Set Property Model

Nov 10, 2009

I have an Application with modules. Every Module lives for itself. There are no shared events or something between them.In my modules there is a datagrid and with a contextmen¼, the details of selected data opens in a popup window.The modules are controlled by an loalEventMap and a presentationModel as usual.If i closed the popup immediantly and open it again, all works fine, but if i change some data in the popup, close it unload my module and loade the module again, open the popup again, mate throw the following error[code]....

View 1 Replies

ActionScript 3.0 :: Dynamic 3d Model With Php?

May 2, 2010

I want to create a rotatable 3D model SWF, but I need to build it dynamically using PHP or some sort of scripting. The ideea is I need to make a dental arch, and depending on the variables, include all the teeth, or exclude the ones that are missing, and then show the final model.I have the models for all the teeth.

View 4 Replies

Flash 10 :: 3D Model/Map Of Buildings

Aug 31, 2011

I've been asked to create a model of an airport. Very basic. No textures and only simple shapes to represent check in zones, stairs, restaurants etc. It needs to be able to animate from floor to floor in birds eye view and to the outside of the building at an eye level view. It will be an annotated clip that plays following a persons movements. It needs to be incorporated into an adobe air application. I'm not sure even what software i should use for this. bear in mind i don't have any experience with 3D packages like 3DS Max. I suppose its possible in Flash Professional but can imagine drawing it all being a bit of a pain, is there something out there more suited?

View 7 Replies

ActionScript 3.0 :: Loading SWF With The Class Model?

Jan 11, 2011

Im working with AS3 and in my application I have a base SWF (with its document class) main.swf / main.as

And I have several SWF that includes a video inside with some navigation code (some buttons that I code in individual classes for each SWF). The problem is that I cannot find a method to load the swf's right, because the event that triggers the load process happens in the loaded SWF (the child).

View 1 Replies

ActionScript 3.0 :: Interactive 3D Model In Flash?

Oct 31, 2011

I would like to make some kind of interactive 3D model in flash.
 
In the image below you see a 3D model. It's just an example to explain what I have in mind. You see a red disc 1, a blue disc 2 and a pushbutton. The idea is that the blue disc rotates (for example 45 degrees) compared to the red disc when you push the button. Is that possible in a 3D model that you also can turn around with your mouse?
 
I can make the models in Rhinoceros 4.0, that's no problem. Importing the model into flash is also no problem (papervision). But how can I add some interactives to the 3D model like a pushbutton and a slidecard?

View 1 Replies

Physics SDK For Flash With Realistic Model

Feb 1, 2010

There are some open SDK for Flash, that could be done. Rotating photos with physics? Examples of such programs BumTop, ePic, Coloris (no physics). The photo on the plane, it can be moved to the real physics?

View 1 Replies

Java :: Getting Image From Game Model

Feb 26, 2010

So I'm not 100% sure if it's possible, but what I'd like to do is take a model that someone has created for a game, say in Blender or something similar, in various formats, and from that create an image to show on a website. Are there any Java libraries around? Java3D maybe? Or even something in Flash? Ideally you'd be able to rotate the model in some embedded flash app, but I'd settle for a plain old image.

View 2 Replies

Flash :: Collada Model After Add It To The View 3d?

Mar 25, 2010

I have a Collada (.dae) file that I found on Google's 3d Warehouse. Using Away3d, I'm able to load the file and display it on my view using the following code:

var object3d = Collada.parse(FooXML, { material:"white", x:0, y:0, z:0 });
view.scene.addChild(object3d);

The problem is that it's just floating out in space and no matter how I adjust the position via .x, .y, or .z, it never moves from its spot. I'm using Flash cs4 and the latest stable release from Away3d.

View 1 Replies

Java :: 3d Model Viewer In Flash?

May 18, 2010

I want to show a box in 3d on my website, and I was thinking to do it in Flash. How I can show a 3d model?I need something very simple, it's a textured cube, no interaction required, just let the user pan and zoom.There is a 3ds viewer in flash or something like that?

View 2 Replies

Flex :: Callback To Model Object?

Jul 23, 2010

I am trying to figure out how to define a callback to my model object, via the Mate Frameworks LocalEventMap.

<EventHandlers type="{WebServiceEvent.RT_GET}" debug="true">
<HTTPServiceInvoker url="/services/rtGet.asp">
<resultHandlers>

[Code]....

I get essentially the same error if I try to make method="model.rtGetHandleResult"

So, in keeping with the presentation model... how do I have the event map get this to the model to execute?

View 2 Replies

Flex :: Store The Model Of An Application?

Apr 25, 2011

I am working on an StoryBoarding application,it is a slide based application in which the authors can put several components like image , sound , captions etc in each of the slide.A collection of slides will make a storyboard.This application will be deployed on a web server (sharepoint + IIS , and php+apache), and several users can collaborate with each other for authoring or reviewing the storyboard.In my application I also want to support auto save ,which will keep on storing the state of the storyboard.User can also save at any point of time by clicking the save button.I am confused about how to store the state of the storyboard.

1)Presently I am doing this by passing all the storyboard data to a dot net web-service and then that service is storing images,caption etc in their respective tables into a database .2)Another approach possible is to store the model of the application as a serialized object into the db , which will be more convenient since separating the components of the model (like images,captions etc..) will not be required and also restoring the state of the objects in the application will be easy . I have two doubts about using approach 2 :-i) I want the the saved storyboard to load quickly, for which I would like to support the partial so that lighter objects like caption can be loaded quickly but other heavier objects like image,video etc can be loaded on demand. Using approach 2 , do I have to send the whole data in one go or is there way to support partial loading ?

View 1 Replies

Flex :: DTO / VO Versus Presentation Model

May 5, 2011

In Flex world, is DTO / VO same as Presentation Model?

View 2 Replies

Actionscript 3 - What Is The Box Model For Flash Rectangles

Jun 29, 2011

In CSS, we have a box model to define how border, margin, padding, and fill contribute to the total width and height of a rectangle. I'm porting some of my HTML/CSS design into Flash and can't quite figure out what Flash's box model is. In Flash, I've created a rectangle with gradient fill and a non-scaling 1 pixel stroke. I'm trying to get pixel-perfect positioning and sizing, but the experience has been unpredictable. I'm not really seeing a pattern to the following questions. The answer really changes depending on the exact circumstances.

When you set x and y both to be 0, where does the border lay? Is it off the screen? Is it being cut in half by the origin? Or is it completely visible?When you set width to 100, is the fill 98 wide or 100 wide?What happens to the 1px thick border when the rectangle is not positioned at whole number coordinates?

Example:

var sh:Shape = new Shape();
sh.graphics.lineStyle(1.0, 0x00FF00, 1.0, false, LineScaleMode.NONE);
sh.graphics.beginFill(0xFF0000, 1.0);
sh.graphics.drawRect(0, 0, 100, 100);

[code]....

I tried to create a 100x100 square at x:10, y:10. When I measured the total width and height in Photoshop, it came out to be 101x101.One would either expect the final dimensions to be 100x100 (border on inside) or 102x102 (border on outside).

View 2 Replies

Actionscript 3 :: Can't Dispatch Event From Model

Nov 8, 2011

Using robotlegs i always retrieve this error. [code]...

View 2 Replies

Flex :: Bind XMLListCollection Into Model?

Mar 24, 2012

When the XMLListCollection is updated in the DataGrid, I want it to add the XML (bind it) into the Model. How would I do this? Or if not possible, how would I manually add XML into the Model?

This is a rough example of what I'm trying to do. Adding data to the DataGrid works fine; it just doesn't go into the Model when sending to the HTTPService.

<mx:Model id="model">
<root><colors>{collection}</colors></root>
</mx:Model>
<mx:XMLListCollection id="collection" />

[Code]....

View 1 Replies







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