Any source code for how to do a ball that can be spun with the mouse exactly as shown on this website: [URL]. I just need the sphere that can be rotated by the mouse in that exact way. More information can be found at this link: [URL].
I want to attach spheres to rotating sphere but I've encountered some rotation problems:
In application u can rotate mainSphere in both x and y axiss'.
If I rotate main sphere in only x axiss or only y axiss, it works correctly. But if I rotate main sphere around both x and y axiss, sphere is attacing the wrong place.
Here is the code:
ActionScript Code: // these are the spheres containers. Sphere container class extends form object3d var mainSphere:SphereContainer3D; var attachingSphere:SphereContainer3D;
i wanna ask how do i make a ball bounce off something like a ball bouncing off a bumper in a pinball game? i've tried a lot of times but everytime the ball get stucked to the box and it doesn't move anymore...will be grateful if anyone noes the actionscript of it..
ball collision inside another ball using gravity.I have one large circle in the middle of the stage (its radius is 150 pixels). I have another circle inside of that one (20 pixels radius), this is the smaller ball that I would like to have bounce around inside of the larger one with gravity. When the small ball hits the edge of the larger circle, I would like it bounce inwards to the center of the larger circle. It keeps doing this until it eventually stops in the center of the larger circle at the bottom.
I have a rotating menu that sets the selected button to the 3:00 position once clicked. I need the labels for the buttons to stay in the upright position as they rotate with the button. I have attached an image. Anyone know of an action script that would keep the labels upright?
This works fine but now I would like to have another pointer but with an starting angle of 60degrees. Is there an easy way to ad a starting degree or angle value on this code?
I am building a website which loads some collada objects for each area. But I couldn't manage to clean the memory. It seems impossible to kill the objects.
I've found some samples implementing destroy() methods for away3d internal classes, but they're not working as well.
I cannot apply a texture to an object, I don't know why.( AS3 blender export script and Collada Import is not working for me either )
var loader:Loader3D = new Loader3D(); loader.addEventListener( Loader3DEvent.LOAD_SUCCESS, handler_loadSuccess ); var parser:Obj = new Obj(); loader.loadGeometry( "assets/objects/Test.obj", parser );
i have a small question concerning away3D. I have some cubes with the exact same dimensions that are positioned in the same place. When i click on the stack of cubes, i want to register a click on the cube i added last. Instead of doing this, the click is registered on the cube i added first.
I have found a way to alter the cubes position in the container and have tried putting the element at the end (code below) and start of the childrenArray, but nothing seems to work. I am kinda really stuck here, so if anyone knows how to get the top level element when clicking on the stack, i'd be happy to hear.
when I try to render a cube using Away3D + Molehill, I only get a white default screen, I followed the instructions here: hhe only thing I did not do, was the part that talks about the patch, cuz If I do that I get errors like when I try to import the Sprite class, for example.Im using FB 4.5.!
[URL]..why it's impossible to me to center the pivot of this container? if I do container3D.centerPivot() all my cubes are moved from they're position and still the pivot it's not in the center, but at the center of just ONE cube (the last on the bottom-right corner). How can I center the pivot of the container properly to ITS center?
I have a client that wants a product to rotate around its axis for a full 360 degree view of the product. The final view needs to be draggable - so a user can use their mouse to turn it left or right. I took photos of the product in 10 degree increments and created a movie clip - but I can't figure out how to get it so a user can control the view: turning the product left or right.
i want to rotate one line 0-180 how to set that target.i used this code movieclipname._rotation +=2;It is rotated 360 degree and looping.I just want to rotate 0-180 degree only once.
creating a 360 degree rotation like the one seen here: [URL] I need to be able to load about 24-36 images and have a slider to allow the user to rotate the images.
I have loaded a .obj into away3D with a given material (not using the .mtl file), and through the course of rendering, I want to change the object's material. Here is how I load the .obj:
What are the pros and cons of various Flash 3D engines with regards to performance on mobile devices? Which do you prefer -- which have you tried (examples of apps developed) implementing on mobile devices?
I'm working on a spherical movie viewer in Away3D & am having a problem when I apply a VideoMaterial texture to a 3D primitive. The video appears heavily pixellated, like it's being scaled or hugely compressed. When I apply a BitmapMaterial of a single still image from the video it appears fine, so I don't think the resolution of the video is the problem.
I found [this discussion][1] suggesting a solution by specifying the "fixedHeight" & "fixedWidth" when I call the constructor, but those arguements seem to have no effect, and I can't find them in the API either. I do see something called "lockH" & "lockW," [in the API][3], but I they don't seem to have any effect either.
I picked up the book on Away3D.It did a great job of explaining the basics but I did not see an example of the above question. What�s the easiest way to put different materials on each side of a cube primitive
I have a question regarding my implementation of a collada 3d file. This is really my first venture into the realm of 3d and I've read some of the basic tutorials so I'm not 100% clueless, but I am a bit confused by what is appearing with the following class (this is a document root class, loaded by the .fla file): the images I loaded to skin the board with are showing up, but just in specific triangles. I want it to skin across the whole board. Is [code]there something special I need to do to achieve this?Also, my final goal with this project is to skin (texture map) one side of the board with a bitmap (drawn from an MC) and the other side with a different bitmap.
I'm in a Flash Pro project with my View3D as big as the stage and I'm trying to make a cube of the dimension of the stage which would fit exactly the View. Practically the user shouldn't be aware of the presence of a 3D cube (until I animate it) How can I achieve this?
I've been trying to test out Away3D engine on Flash CS5.5, and I've been getting lots of errors. I have downloaded playerglobal.swc and placed it, edited player xml file and configured it for flash to use FP11. In Flash, I have chosen Flash player 11 to be used. But when I try to create a new View3D object: var view:View3D=new View3D(); I get an output error (not a compiler error) of: VerifyError: Error #1014: Class flash.display3D.textures::Texture could not be found.
creating 360 degree views? know nothing but Flash and Flex. Is there any tutorial available for beginners? to create thease kind of view using Flash and AS3
I'm trying to get the distance between two objects. Problem is that both objects are -45º rotated but one of them moves up and down with stage resize. So the distance gets a random degree. I've attached an image so that it could be simpler to understand my problem.
I've got a 3D model at hand, which I have imported as a movie and an image sequence of each frame depending on which is necessary. I basically would want to rotate it by 360 degree both on the x and y axis on a canvas as well as having that done manually, such as having to drag my mouse to control which direction the model rotates in. Can I do this in Flash?
I have written degree symbol (example: 15°C) in flash but when I export the move the symbol is absconding.Is there any way to retain the symbol when the movie is rendered?
i seen this over at 24 -7 and would like to use this effect on a site of mine, [URL].. does anyone know how to do the rotation spin that this site does i have looked around but think i am looking for the wrong thing lol.
Ok, my head isn't working so it would be faster if someone justs helps me/double checks my trig.I have a point at 300,300 or whatever, and I'm trying to find the points 100px away at any given angle... Say at angle 0 X is source, x is target 100 px away