Actionscript 3 :: Combine X, Y, And Z Rotations In A Model's Local Space?
Nov 23, 2011
I am starting out on Molehill and am having a lot of problems grasping Matrix3D. My first problem is how to manage a Matrix3D that describes a single model's orientation.
I use Matrix3D.appendRotation() to do this. But depending on the order I append in I get a different result (obviously, since I am rotating one at a time in the global space). I know this is a common problem, I have run into it with 3d software modeling. But this time, I have to fix it programtically.
[Code]...
Thing is, this seems rather clunky. Especially since the angle of rotation for a Vector3D should be the fourth (w) value. More importantly, Matrix3D already appears to have a lookAt() method. I don't get it yet... please someone save me from hours of trial and error!
I made a particle generator that spawns bubbles... the particle spawner is a movieclip and all particles are children to it... this spawner is then loaded to stage with some more instances of it and they're arranged so that they produce enough bubbles to cover pretty much the whole screen...
So far so good... the trouble is that this project is meant to be projected into a hologram, and needs to be positioned, rotated and distorted to fit the irregular projection space...
My idea is to just leave the particle generating swf as it is and load it into another swf, then do all the positioning and rotationing as if it were a movieclip... My knowledge of Flash and the way movieclips have they own local spaces tells me that this has no reason to not work... but apparently, loaded swf's have a mind of their own...
I'm loading the swf using the UILoader component, which seemed to me the easiest way to get it working, since it doesn't need to be dynamic or anything... I just want to position it once, save it at that, and leave it be...
the trouble is that once loaded, the particle generating swf spawns it's emmiters (there are 5) in relation to stage space, and not loader space... so it doesn't respect it's boundaries or orientation...
I've tried all possible settings of the UILoader parameters... none seem to work with an swf that is creating movieclips at runtime...
Does anyone know why this is? I'm probably missing something stupid here... I'm feeling rather dumb today... yesterday I created the whole particle emmiter and bubble physics in 2 hours, but today it seems my head doesn't want to go and I'm stuck with this rather silly problem...
I tried placing the UILoader into another movieclip, so that any loaded content would be inside that movieclip's space, but it just doesn't respect any orientation... btw, I'm not rotating it by code... yet... I was trying to get it working using the editor, which would indeed be much faster and simpler.
I've been fooling with this problem since AS2.0 (and shared Objects) and I'm not much closer to solving it, partly because every article I read on it is focused on php and server-side stuff that doesn't apply. How to load a String Array from a txt file in local user space (the folder from which the .swf is run). What I need to know: The easiest way for the user to save/load a file. The file has to contain Objects and Arrays reflecting his current status in the game. The goal is to avoid non-Flash apps and languages, and external Classes if possible (I do everything right in the main fla). I don't mind that the user has to initiate and approve the upload/download.
I'm trying to create a Rubik's Cube in Flash & Papervision and i'm really stuck here. I'm up to the point where i can rotate any plane of cubes once, but after that...it's messed up because all local coordinate systems are messy.I dont really know where to go from here, can anybody give any advice on what do do? I'm not looking for 'read about transformation matrices', i know i should (and i am doing that), but i'm not really sure what to look for.My idea is that, after each rotation, i should fix each coordinate system of each cube again, but i have no idea how. Any hints on what i want to achieve (in words)
I've hit a wall trying to get this to work: - I've created a movie clip that contains 14 layers, each layer is a 3D Y-rotation using a motion tween on a movieclip object (just a solid rectangle) - Trying to emulate a venetian blind transition effect When I put this "mask" movie clip on my timeline, it won't allow me to use this as a mask!! - I tried setting up the mask in AS3 as well, using imgMC.mask = maskMC; Does Flash allow this? Can I use 3D motion tweens as masks? it doesn't seem to allow it. I was hoping maybe I missed something.
The properties window allows you to set a number of rotations for the tween to go through. Is there a similar thing for 3d rotations? Doesn't feel right that you should always enter the rotation in frame by frame (sometimes yes, but not every time).
I am making a simulation with a rotation button. When you click the button, and move around the middlepoint of this movieclip, it rotates along with the mouse. What i want to do is control a 'radio tuner' with this rotation. So for example, when the wheel rotates 60 degrees, the radiotuner moves 10 pixels on the x-axis.
The problem i have is as following. When you just say radiotuner.x = rotation, the radiotuner will jump back when you finish the circle (because after 360 deg it jumps back to 0). So what I want to do is register how many times the circle went round.
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?
I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.
I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.
My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."
The only way i know to fix this - is to change the security settings of flash - not very user friendly!
So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.
i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button
on (release){ getURL("folder/folder/file.htm","_self"); }
I have a SWF file located at the local network in the public shared folder that I do not control over trying to read the external file on the local network.
I am currently hitting instead an security violation
Error #2148: SWF file file://....mySWF.swf cannot access local resource file://...config.xml"
I've added the network path where SWF an XML file resides to "trusted locations" via Flash Player Global Settings.
The added network path is successfully displayed at the list of "trusted locations" within Global Settings Manager, but it does not look like Flash Player is able to really parse the local network path as a "trusted location"
I have a HTML box and load a local html file from the project. In this HTML file I use jquery and I want to load an image from my user directory. I see the image from my user directory but jquery doesn't works. I get this error:
[Code]...
But if I load an image from the app workspace, everything works fine (I see the image and Jquery works). Is this a policy problem? The error says that is a "null object reference" problem, but this can't be true...
I created 2 separate swf files. One is a slideshow and the other is an interactive tool. I have have also converted these two files into a flash projector so as not to worry about plug ins that customer may or maynot have.I have another file right now which is the menu flash file that has buttons pointing it to the flash projector individual files. Since these are exe files, once the customer clicks on it, it will warn that it is potentially harmful and they have to click "run" in order for it to show.
Anyone can tell me the way to combine 2 fla files together. It mean in the 1st fla file I'll make a button and when I click the button it will run the content of 2nd fla file.
Say I create a symbol, and then another inside the symbol. In the library I now have 2 symbols. Is there a way to combine these into just one library item?
I have 2 .flv files that I'd like to combine, no editing other than I want a sigle file so what were 2 sequences runs continuously as 1. Is there a way to do this (quickly) without having to re-encde? Easiest method: premiere or flash? or other utility that would join segments only?
I'm new user which is trying to developing simple game..I'm using template to create the game..I just wondering how to insert the symbols within existing timeline..meaning that, i'm trying to create new layer and convert it to symbol but I didn't how to combine it with existing timeline.
We are trying to build a game in flash with AS3 (Im no pro with this)I've got 7 Movieclips and 7 Buttons.none of the 7 Movieclips should be on stage, they only appear when you've clicked 3 of the 7 buttons. once these 3 are clicked 1 of the 7 Movieclips should appear.Now I've got the code to make 3 selections and make it show 1 movieclip.and I've gotten the code to make a random movieclip appear.My question: How do I combine these two to make them do what's supposed to for the game.[code]
I have 3 flash movies. Each has its own music. Now i want to combine those 3 movies into one flash file. How do I do that? It is a wedding flash movie for my sister. i have 3 separate movies because i want the music to synchronize with the each of the movie.
I'm trying to combine PHP/SQL and Flash. I've got a problem now. I want to load a variable that contains an url to an image. so the variable is like this:
[URL]
Now I want flash to load the image, not the text. The variable is called 'img1' but the loadmovie function doesn't work when I put it in.
I am using swfaddress for the moment but I am using it on the timeline which is not as dynamic as I would like it to be. How to combine xml and swfaddress? I would like swfadress to get the adress from an xml file and than do whatever its supposed to do.
I made an animation. I made a seccond animation that was suposed to go right after the first. I made a scene 2 and when I copy the frames over it says: Resolve liprary conflict, One or more library items already exist in the document. Replace existing items or dont replace.
If I replace the one works right but the first doesnt. If I dont replace the first one works but everythings all messed up in the other one. Is there a way to combine the 2 animations together?
I'm trying to create an effect which actually is combination of two effects explained in two tutorials on Kirupa website namely (1). ActionScript Text Animation and (2). Random Letter Cycling.The Text Animation part is working fine. but the random letter cycling part is not working fine.i'm not able to recall the corresponding Ist letter of the word i want. In current example the text is "Ritesh".
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.
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.