ActionScript 3.0 :: Map / Surface Separating From 3D Ball (Globe)
Dec 16, 2010I'm about to make an animation where a whole world map separates from globe/ball. Kind of coating/jacket that opens from 3d ball to plain 2d surface.
View 1 RepliesI'm about to make an animation where a whole world map separates from globe/ball. Kind of coating/jacket that opens from 3d ball to plain 2d surface.
View 1 RepliesI have created a globe that rotates with no problem, but what I am trying to do is to control the direction of the rotation based on the mouse position. For example, if the mouse is to the right of the globe, it rotates towards the right and if the mouse in on the left, the globe rotates left. When the mouse is over the globe, it should stop.
View 1 Repliesmy boss gave me the difficult project. he wants me spin the globe.now i can spin the globe forward and backward. but has one error that the globe cannot play backward continuous when my mouse is move more than 1/2 of stage width.it's should be
forward :: frame 1, 2, 3, 4, ..., 24
backward :: frame 24, 23, 22, 21, ..., 1
no have error when play on frame 1 - frame 23
find the error when play frame 24
it is forward :: frame 1, 2, 3, 4, ..., 24 and not play backward and the problem can found when play until the last frame.here is code
Code:
stop();
//forward
MovieClip.prototype.playForward = function() {[code]........
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..
View 3 Repliesball 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.
View 1 RepliesI have done globe in papervision - basically sphere + material (image of political map) over it.Now, I need to make every country on my globe interactive, what means, I need somehow create event listeners for lots (at least 15) of small areas on my globe, and if I click those areas, something will happen (say, additional info windowwill come out)I googled a lot and found a lot of things describing some realted stuff (hotspots?), but since I am quite new in flash/actionscript/papervision, could I, please, get some introductory idea how my problem might be solved?
View 1 RepliesI am trying to develop a Flash globe carousel and I need some help in doing so.A normal carousel moves along a circle.I am trying to develop a Flash carousel that moves in every direction along the lines of a globe. You can see attached a normal carousel that I have created. I have tried to upgrade it to a globe carousel but I am having problems in doing so.It is not easy but I am sure that there are people here that understand trigonometry and can point me in the right direction.
View 1 RepliesI've created a 2D globe in Flash which automatically rotates clockwise very slowly using actionscript. On the globe there are sign posts which rotate with the globe, each sign post will link to another url. I would like to allow the user to spin the globe faster when they click the left mouse button while moving the mouse in a downward motion but once they've spun the globe faster it should then gently slow back down to its original speed.
View 5 RepliesI am trying to write a Playbook app using the AIR SDK, I need a surface of some kind that I can load a large image onto, then subsequently place some smaller images on top of and add the whole lot to a ScrollPane so I can pan it around the screen. I have tried by adding the image to a sprite and displaying that in a group in the application but the image does not show up. What is the correct surface kind I should be using here and how should I be loading the images? (currently using "Embed" and loading the image into a BitmapAsset.)
var scroll:ScrollPane = new ScrollPane();
scroll.setScrollContent(image);
scroll.update();
scroll.graphics.beginBitmapFill(icon.bitmapData);
scroll.graphics.drawRect(100,100,56,56);
scroll.graphics.endFill();
scroll.update();
This code causes a non-moving icon to be drawn behind the scrollContent, I want to add something on top of the scroll content that moves with it.
There is something i do not understand, i'm making a Tetris like game and i want borders (limits) but when put an height and width to my MovieClip nothing appears.
Code:
public class Thugtris_V2 extends MovieClip
{
var ts:ThugtrisShapes;//ShapeManager.GetInstance().CreateShape(ThugtrisShapes.RLSHAPE);[code]....
I have second problem, i check my coordinates of my dropping shapes and my shape disapeared from the screen,fell completely down, and it's last coordinates were : pos = (x=-6, y=371).My bottom is suppose to be at 440? The entire screen does not "measure" 400 pixels? How can u get a negative coordinate,are'nt the coordinates suppose to be like texture coordinates, only positive and (0,0) is at the top left corner?How do u measure the pixels limits of the top DisplayObject? How are the coordinates actually "setuped"? Like cartesian but only the upper part?
I'm working on a game, and I'm a bit stuck on something that I think I'm really close to solving.
I have an actor, which I can move around on a platform (Top-down view)
The platform rotates, and I want the actor to receive the x- and y acceleration, so that it appears to be on top of the platform, and thus rotate together with it. I don't want the actor to rotate 'inside' the platform, because of some other constraints
I am working on a firework move look's coolfire works are dynamic. Is there a way I could add a type of reflective surface kind of like water to show he reflection?
View 4 RepliesDo you have any recommendation for a free 3D charting library in Flex. To be more precise, I only need to draw surface (for now). Basically, I just need a chart that displays three axes (one should be timeline, and two should be linear axises) and the surface.
From what I have seen so far, two most popular free Flesh 3D libraries are Papervision3D and Away3D. Also, I've found one IBM library - ILOG Elixir that looks really nice, but it's proprietary (although, I haven't seen any surface examples for Elixir neither).
From what I have seen, Papervision3D and Away3D should do much more then 3D charting, but I haven't seen any examples on how to draw surfaces in any of them (except this line chart in 3D: [URL]..So, if anyone has a link to a documentation or some examples that would be great. Also, I'm interested to hear your opinion and recommendations on this topic.
I'm not sure what I'm doing wrong for this simple task. I have a sheet and right now I only want to use a small portion of the sheet. I try to click on the sheet and it moves around. I lock it, and I can't select any part of it. How do I separate it?
BTW does it matter if it's a symbol or just a PNG sheet?
I'm trying to seperate my projects along a horizontal and vertical row, for every project the images are shown vertically one after the other, then when the </project> closes and a new one opens a new column is created (creating the horizontal row).
i am almost there with it, i think i just need an if or for each piece of code to separate out the projects but i cannot figure it out.Here is the important part of my code:
[code]....
This one concept has been bugging me for days now and I can't seem to solve it. You see, I'm trying to rotate my enemies along an uneven surface. So far, they follow along it perfectly, using my hitTestPoint collision checks.But I don't know how to rotate the collision points and thus rotate the movieclip along the curve so it remains clipped to the ground like in Fancy Pants Adventure 2 or a tanks game.Here is what it looks like right now
View 3 RepliesI would love to get some help or advice on how to create an effect in a drawing application. I want to build a drawing application, which is not that difficult. I've found several resources on these type of applications. What I want to do is "merge" 2 examples that I've found. This drawing application makes sense to me and I feel I can modify it to my liking. (sorry in advance I cant post links)
[Code]....
I created a 3D globe in 3DS Max, put on render and would like to now be able to this object using the mouse to offend 360 degrees on one axis. Unfortunately, I do not know how to go about it.
View 0 RepliesI'm working on a new site: [URL]. However, I've got some problems with my reflection of the mouse-pointer. The problem is that I don't know how to create the fake 3D effect, because now when you move your mouse over "Identity" the reflection is above the real mouse. I was thinking to put a mask, so the reflection cannot go above the real mouse, but then there is no reflection.
View 14 RepliesI make this simple system to simulate a colision of a block in "walls" and bounce like a pong ball. To use drag the orange square and release to start the movement. But i have a problem, sometimes the colision not happen and the block go through the walls, i try less the time of setInterval that verify the colisions but not solve my problem. colision system -> [URL]
View 3 Repliesfind weather one movieclips area on stage is equal or more than the other.. I mean, ok here it goes, I have some movieclips on stage, circle shaped exactly speaking. Any of these Mcs.onMouseDown event adds another circle to the stage which is a very small circle , and as long as the mousedown event continues it grows in size from the center.The idea is to fill the onstage circle mc with exactly he same size circle.This i could do if the mouse had been clicked exactly in the center of the onstage circle by comparing the width and height of both (I guess havent started doing it yet).
I want to check if the scaling circle has exceeded the bounds of the onstage circle which is bound to happen more often as the user can mostly never point to the exact center of the onStage circle and as a result the circle is going to go out of the boundaries of the onstage one. I have been racking my brains and me thinks that by creating a bitmap data of the onstage circle i could maybe find out when the being scaled circle bitmap stopped overlapping the onStage one. But i have no idea on how to do this ! It is jus something that came to mind from some example i saw somewhere but i jus cannot find it now .
In my code I have SWF A and SWF B.
SWF A loads SWF B.
The problem that I have is that both of the SWF's have a class of the same name but that have different member variables.
So from time to time depending on the scenario conflicts occur.
How can I avoid this?
I remember reading before about being able to separate the classes of two different swf but I can't find the article again
I recently began a project and soon felt that it would be useful for me to have my users put a code into a TLF text field, such as 0123456. The user then clicks a button and each character of the text field are put into several variables.
For example:
Code:
variable1_var = "first character in text field"
variable2_var = "second character in text field"
/* This would be repeated up to variable7_var */
variable1_var would equal 0 and variable2_var would equal 1, so on and so forth.
well i have this string im receiving from an URL: "245500" All I need to do is separate all of the characters, so it would gimme back an array just like
PHP Code:
Array = ["2", "4", "5", "5", "0", "0"]
I've tried using .split(), but since it does not have an index (like a comma or dot), it won't do..
I Have been working on a collision detector based on the seperating axis theroem as explained here .[URL]..
And i am working on a polygon vs polygon collision example. I have put together a Veronoi Regions Test in flash but i dont kno whte correct way to find if a the closest point or axis inside on of my regions or even to determine if it is in these areas. Can someone please help me.
Right now I have an array with a bunch of different file and folder names in it. I want to separate the files and folders in to two separate arrays. How would I check the arrays to see if the elements have a "." in them, and then if they do have a "." in them, put them into files array.
View 3 RepliesI am currently working on a game and I am stuck. I do not know how to make a rounded surface that will act as a wall/barrier. It is pretty much a semi-circle. I know you can make a circle act as a barrier but I would need to use the perimeter of the circle. Also is there a way you can make an actual image a barrier? I am new at this but I know from reading up that making a rounded wall is pretty tough. I am going to use this wall to make a ball bounce or "roll" around it. Below is a picture of what I am trying to do. The black dot is the ball.
View 3 RepliesSo I have some 3d points generator that gives points like
{1,1,1}
{1,2,3}
{1,3,3}
[code].....
I've made a particle system snow globe and right now I have snow blowing across the stage, but I want to have the snow blow around only within the snow globe which is placed in the middle of the stage. I made a movie clip (area_mc) that I want to use as the boundary for where the particles can float.
View 0 RepliesIs there a way in flash to make the letters come from around the globe just like on the Universal intro? [url]...
View 1 Replies