Flash :: IDE - Presentation To Work With Kensington - Model # 33374
Dec 2, 2009i have a client that uses Kensington model # 33374 how can i program the flash presentation to work with it?
View 3 Repliesi have a client that uses Kensington model # 33374 how can i program the flash presentation to work with it?
View 3 RepliesAs 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?
In Flex world, is DTO / VO same as Presentation Model?
View 2 RepliesI have a TitleWindow that I open up... and I have 6 states defined.I am using the Presentation model pattern for all of my views. When I tell my window to go to XXX state, the controls have to initialize since the states in flex use lazy loading. so... my PM code that says myTextArea.text bombs out and say "cannot access..." so as a work around, I made some creationComplete events on my controls to register the control with the PM. So when the state changes, the textarea finally initializes and on creationComplete calls PM.registerTextArea() which sets a reference to it. then in that function I run my code... myTextArea.text.. etc.
This seems like such a ugly hack that I hate it. Is there any way to wait until the entire state in created then call code on the PM? I have tried enterstate... but this event seems to fire before the state controls are ready.I tried to add a comment, but I guess editing is the only way I can do this...I am doing something slightly off straight PM. Every view has a viewController (as I call them). Its kinda my own hybrid of a delegate / dataprovider. But this is moot. It's the flex component lifecycle when dealing with states that is the pain.if you change state.. there is no event to say "all my components in this state are ready".only event to say "we changed state". so my code that fires on state change is trying to talk to components that aren't ready yet.So from what I see, there seems to be no design pattern or perfect way to ensure that all components are created in a state unless using creationComplete on every component in the state to register it is ready... if you don't, you get a race condition. Regardless of frameworks or design patterns, this seems to be a root issue.
I am trying to attach video to a display once I get to that state. This is done via addchild. regardless of where I do it.. I need to know that the videoDisplay is done loading before I call addchild. I even tried currentStateChange event since docs say that fires last... but alas.. the components in the state are still initializing. So it seems that creationComplete is my only option. Maybe the only sane way to keep to clean code is to create the entire thing(videodisplay and video) using as once the state is entered. I just hoped the flex framework had events to ehlp me here rather than buiilding everything on the fly in as.
I'm refactoring some Flex code written by another developer and I'm implementing a PresentationModel approach, as I like to separate out the ActionScript from the MXML. One of the problems I've found is that the original ActionScript code adds/removes elements from the MXML.What happens is the handler function checks the model and if the values are correct will either create or remove a element from the view. What is the best way to get the presentation model to ad elements to the view and still keep this loose coupling that I'm aiming for.I was thinking of using simple events which the presentation model dispatches and a view can list for passing the details of the element to add.
View 2 RepliesI'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.
View 1 RepliesFlash executable Presentation will work in Mac OS..? or the executable Presentations only for windows platform..?
View 2 RepliesI'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 RepliesI 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?
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 RepliesI 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.
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 RepliesIn 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).
Using a common flash 3d library such as Papervision3d or away3d & as3dmod or better create a Flash 3d object manipulator that:[code]Finally Allows a user to capture & download a picture of said object after manipulation
View 1 RepliesI'm doing a project using FLARManager augmented reality and the Papervision3D library. Unfortunately, Papervision is giving me a lot of problems.My scene3D contains a DAE model and a plane. The plane has a MovieMaterial and is playing a video through FLVPlayback. The DAE and the plane are both inside the same DisplayObject3D container. FLARManager transforms the container so that everything appears through the angle of the marker.
My DAE model is a TV, the screen of the TV is transparent. I want to have my Plane inside of my DAE model, so that the Movie playing on the plane material appears to be what is playing on the TV.The problem is that, even if the plane has a lower Z index then the TV, it always appears in front of the TV.
How do I have my plane and its MovieMaterial appear behind the TV, so that some of its corners are cut out by the TV and the part of the TV thats transparent let me see the Movie? If its impossible, anyone has an idea of how I could get the desired effect of having a movie play on the screen of my DAE tv model?
im very new at papervision3d, i know in order to display a .DAE model i use this
[Code]...
But how can i do in order to use VRML models (.WRL).
I need to convert a CAD drawing of a product into a form that is usable by Papervision3D (or an equivalent 3D engine) in the Flash Player.
Are there any tools that do this? I understand that the Collada DAE format is supported in Papervision3D, but I don't know what steps/tools are involved (export directly from AutoCAD?).
I am using Papervision3D Flash 3D engine to render a model. Also I am noob in 3D =D Model is simple, it's a parallelepiped with different textures on its sides. All works just fine except one thing: whenever I change my visual angle to a model from 90° textures on the sides are distorted. I notices that it is common effect in 3D graphics, I saw that effect in games and other 3D renderers (i.e. away3D, three.js) even wth different 3D models. Distorted texture on object (different view angle): Normal texture on object (same object and texture) (view angle == 90°): What is the reason of this effect?
View 1 RepliesDo flash 3D display engines such as Papervision allow data to be exported from the swf to a php back end and vice versa (PHP into model)? Does Unity allow for this?
If I was to build a simple 'change the colour of the model' application with a UI in a 3D package such as Papervision, could I then export the user choices to php or perhaps a javascript intermediary?
How to anti-alias a collada model in papervision3D?I've tried searching everywhere but didn't find any ways to anti-alias models. I've also tried blurring it a little as an anti-alias method but that only f-s it up and makes it look worse.How do I do that properly?
View 1 RepliesI feel like MVC misses a letter to describe the situation in a game. The model to me seems to consist of two distinct parts:
A group of vars that describe the current game state (these will have setters that send out events on change, and getters so that the view can access what changed)
The rules of the game that determine what happens once a certain input (i.e. shoot();) has been received by the controller (these will update the group of vars as deemed appropriate)
The view will exclusively be reading from 1 while the controller will be exclusively communicating with 2. This is why I make the distinction and want to divide them up into class1 and class2.
My questions:
I am unsure if I should be making this distinction, since I haven't seen it anywhere. If I should; should I make two separate classes, or should I extend class1 with class2? Finally, I am having trouble making sure that only class2 (and not the view) can change the variables in class1 (while still being able to send out an event when a value changes).
i need to make a loader on flash or a simple label who say "wait, the model is loading". This is the part of my script were i load the model, but how to control the loading process.
Code:
private function _onInit(e:Event):void {
_earth = new DAE();
_earth.load('model/hfarm.DAE');
[code]....
I wondered if anyone can provide any information on how flash events relate to the DOM event model.My issue is this:body > div > object.The div has a mousedown event which calls 'preventDefault' on the event object.This shouldn't bear any relation to a click event within the objects swf however in IE9 it prevents the swfs mousedown event from firing..I'm struggling to understand how swf events fit in with DOM (presumably they continue to bubble up from the object element?) and why a click event on a div would affect a childs swf click.
View 1 RepliesFrom what I found out by a quick google lookup, the Stage3D support for model import is not the best.
Has anyone tried to do something like this and could provide me with some information on how to do it?
I'm interested in an importer capable of COLLADA/FBX or something along those lines.
I've been reading about the security restrictions for file uploads in Flash Player 10.According to the FileReference docs for upload(), the upload does not have to be triggered by a user-initiated action (the browse() does, but that's another story). If it did, that would force an awkward user experience for multi-file uploads, since only one upload can occur at once -- so the user would have to click (or press a button) once per file to initiate the upload, but only when the previous file had finished uploading.
[Code]...
i have an animated collada of envelope module that have an animation of opening itself
now for seeing both sides of the envelope i set the
oneSide = false
i added for tests a ColorMaterial.
but what i want is to have 1 color in the outside faces and another color in the inside faces
I'm making a game where I have must have some objects like weapons and characters, which I in the end would like to get visual as a sprite or movieclip
Should I write the logic for the objects in several classes and then make a reference to the object in a sprite class like the following :
[Code]...
And then when I need to do damage just call the WeaponSprite's method weaponModel() when I need to acces the methods or should I just merge the two together into one class.?
I have a presentation .fla from a client which is published to an .exe projector file. this is my first tome working on a file published for this so I'm a bit confused. Within the fla folder is another fla which is titled player. That file calls background music thru an xml file which I can figure later but my problem is this.
if I add the mp3 voiceover to the xml list when the published file plays it of course starts at 001.00 the voiceover needs to be edited to fit within the presentation. How can I drop the swf of the riginal presentation inside an app then add the voiceover on another layer and be able to edit to match sort of what I would do in IMovie. I have the CS5 master Suite so I'm sure one of the apps does this/
has anybody seen somewhere a FLASH model of the Texas Star IPSC shooting target? What this target is and how it behaves can be seen in here: [URL] From physic's viewpoint this is a pendulum with mass and the length changing while it is swinging
View 1 RepliesIs there a way to convert a flash presentation to scenes?
also is there a way to copy frames and paste them in place without things getting shifted weird?