Actionscript 3.0 :: Cube Rollover Using Papervision3D / TweenMax Libraries?
Aug 16, 2010
I have created a cube using Papervision3D where the back face has an image and some text, and the right face has an image and some text and contains a URL. I want the back face (the one facing the user) to wait for a MOUSE_OVER event then roll 90 degrees to the right and present the right face to the user. The right face then waits for 2 mouse events: either a MOUSE_CLICK, which will launch the URL, or a MOUSE_OUT, which should cause the cube to roll 90 degrees back to the left and present the back face again to the user. I am using the Papervision3D and TweenMax libraries in my code, which looks like this:
//front1 = back face
//back1 = right face
front1.addEventListener(MouseEvent.MOUSE_OVER, handleRollOver);
[code]....
View 1 Replies
Similar Posts:
Aug 16, 2010
I have created a cube using Papervision3D where the back face has an image and some text, and the right face has an image and some text and contains a URL. I want the back face (the one facing the user) to wait for a MOUSE_OVER event then roll 90 degrees to the right and present the right face to the user. The right face then waits for 2 mouse events: either a MOUSE_CLICK, which will launch the URL, or a MOUSE_OUT, which should cause the cube to roll 90 degrees back to the left and present the back face again to the user. I am using the Papervision3D and TweenMax libraries in my code, which looks like this:
[Code]....
View 1 Replies
Apr 1, 2011
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]....
View 2 Replies
Nov 28, 2011
I have a question about Papervision3D, or perhaps bitmapData, I am unsure where the problem is. I have constructed a program that takes 4 banners and splits them into pieces and then applies those pieces to cubes so that I can make a banner rotator. So after I run my program I have 10 cubes with a piece of a banner on 4 faces(front, top, back, bottom) of each cube. The problem is that some of the faces are oriented incorrectly(spun 180 degrees).
Is there a way in Papervision3D to spin a cube face? The other place I think the problem may be is when I create the bitmapData that will be applied to the cube faces. Is there some way to explicitly define orientation during bitmapData creation?
[Code]...
View 1 Replies
Jan 19, 2010
What is the best technique to apply anti-aliased text as texture on cube using papervision3d?
make dynamic textfield, convert it to moviematerial then apply it to the faces of cube. Design a bitmap using any picture editor and make a bitmapFileMaterial to apply on faces of cube.
View 1 Replies
Mar 2, 2010
i have been using AS2.0 for quite a long time. And i started using papervision3D too.I am using tutorial made by Lee Brimelow's cube tutorial. but i want different results. So long i am able to move the cube in one direction and that is my requirement. But in his tutorial he as link to urls. what i want is to expand one face of the cube which is clicked to expand to fit in the screen.(i am also using fullscreen and stage resize).
View 1 Replies
Aug 31, 2008
I have successfully implemented the INTERACTIVE 3D Cube, but I can't seem to figure out how to create a rollover function properly, so that once the user rollovers a face, a title for the face fades in and when the user rolls out, the title fades out. I have done it by placing 6 movieclips on the stage and giving each face a rollover and rollover event, but once I rollover a face the title flickers.
View 3 Replies
Mar 5, 2008
I have (what should be) a really simple little piece of code inside a moviclip, trying to get it to fade in and out in a loop. Here's the code (within the movieclip):
Code:
import gs.TweenMax;
this._alpha = 100;
[code]....
View 3 Replies
Sep 25, 2009
after i try to use it and publish as SWF, it not function and get error-->1172: Definition gs could not be found. only i realize that need a folder like a classes and import it. this is the website i found [URL]
View 2 Replies
Feb 10, 2011
I'm still relatively new to Java and Android development, so I'm still unfamiliar with the multitudes of libraries available for use, particularly for animation. Where I'm from (the Flash world), we have access to several 3rd-party tweening engines that make life very easy for us when we want to programmatically move things around the stage without relying on the (vastly inferior) built-in Adobe tween APIs. One of the most popular is Greensock's TweenMax
Looking at the way Android handles tweening natively, it appears to be very cumbersome compared to what I'm used to. I'm curious if there's a TweenMax-equivalent library out there for Android that makes animation sequencing equally easy to write in-code, with the benefits of smart intellisense, rather than having to write them all out in an external animation.xml file in the res folder.
View 3 Replies
Jan 11, 2010
I'm using Greensock's frameworkand everything worked fine until I tried to use one of the plugins. I'm just trying to get the bezier plugin to work on a single movie clip. My code looks like this:
var flakeMC:mcFlake = new mcFlake();
flakeMC.x = 12;
flakeMC.y = 12;
[code].....
View 4 Replies
May 4, 2010
I have a tween (code on main timeline) for a mc and on hitTest (code on mc) its supposed to stop, but it doesnt. This is the code on the mc:
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.rivalMc)) {
[code]......
View 1 Replies
Jun 17, 2011
i'm pretty new user with TweenMax and i have simple question. Usually using flash built-in TweenEvent i could get the object that is tweening, using e.target.obj. But then apparently i couldn't do it if i use Greensock TweenEvent, because it seems unable to retrieve the object as the property "obj" could not be found.
What should i write that is equivalent to "e.target.obj"?
View 3 Replies
May 7, 2009
I have two pics (pic1 & pic2) and I want them to fade in and fade out between each other forever.so basically I want this effect to repeat forever (pic 1 is currently on a higher layer than pic 2 so that it is the only picture that needs to fade in and out, but I'm sure this is not the best way to do it, especially if I add pic3):
TweenMax.to(pic1, 0, {alpha:0});
TweenMax.to(pic1, 1, {alpha:1, delay:5});
TweenMax.to(pic1, 1, {alpha:0, delay:10});
[code]....
View 1 Replies
Jul 1, 2008
im a former user of FuseKit, for the time being as i like more the performance of TweenMax over Fusekit, but i got used to the flexibility of Penner Easing Equations, is there a way to use them on TweenMax?
I tried fl.motion.easing.* seems to have all of the penner equations Expo, Sine, etc.So, is there a way to use them with TweenMax?maybe im not writting the syntax correctly i dont know here is my piece of practice code
Code:
import gs.*;
import mx.transitions.easing.*;
import fl.motion.easing.*;
function moveSq() {
[code]...
View 3 Replies
Mar 10, 2009
So, the good news is that I've got this about 90% solved. Anyway, I'm trying to use TweenMax to have a drop shadow fade up on a Mouse Event (on a roll out). Everything works fine except for the shadow color. I've got it set to black (0x000000), but it's making a shadow that's the same color as the menubar sprite it's trying to shadow.
In other words: I've got a bright blue menu button, and it's giving it a bright blue shadow, despite the fact that I've got the color value set to 000000. Basically, I've got some code to put together the parts of the menubar (size, shape, text, shadow, etc.)
[Code]...
View 2 Replies
May 12, 2009
Code:
base_scale = 70;
my_scale = 1;
scale_mod = 30;
[Code]....
EDIT: In fact, it is working now (behavior changed with updated TweenMax...?!), BUT still, when I zoom with mouseclick, everything goes well. When I zoom with a keypress, the image is resizing... but if the image is not centered, the registration point (set to center of the image) - the image is moving - for no reason...
Different results with the SAME function, no parameters etc.
View 2 Replies
Nov 11, 2009
I'm trying to get onComplete (frame 5 in this case) to skip to a given frame after a series of animations. Here is what i have written so far. Shouldn't this work?
stop();
import gs.TweenMax;
import gs.plugins.*;
[code].....
View 2 Replies
Jan 6, 2010
This may look like a long post but you may not have to read throught the whole thing... I have created a textfield within a loop and put it in a sprite called textHolder. I loaded images in the same loop and put them in a container called imageHolder. The containers are assigned to the buttons button created by the loop. This works all great. But the thing that I am having trouble with is being able to tweenMax one of the holders. for example:
I have a tweenMax that scales b1 (the first buttons created from the loop) by 3x. But I also need the text to fade out without the image fading out. So I tried just putting a tween on textHolder but nothin' happens! Maybe there is some rule here that I am missing that says I cant do that? If not, I dont know what I am doing wrong. here is some of my code:
[Code]....
View 2 Replies
Mar 19, 2010
I have an array of buttons on stage and a want when one if them is clicked to chage its tint.But when another one is clicked then the tint of the previous clicked button goes back to normal state , and eventually new clicked button's tint change.I am using this code
PHP Code:
var buttonsArray:Array = new Array(ai_btn, b_btn, c_btn);
//Loop through the buttons array
for (var i:uint = 0; i < buttonsArray.length; i++) {[code]...
View 2 Replies
Dec 17, 2010
I'm trying to make use of TweenLite / TweenMax and I'm getting nowhere. I made a test file - this is all that is in it:
Code:
import com.greensock.TweenMax;
import com.greensock.TweenLite;
import com.greensock.*;
[Code]....
View 3 Replies
Jan 10, 2012
I have an onEnterFrame function, and when the clip goes passed a certain x value, it tweens alpha to 0, and then on complete, it removes its listener and is removed from the stage ... here's the loop :::
Code:
function loop(e:Event):void
{
[code].....
View 1 Replies
Nov 19, 2008
I have a strange issue in flash player 10. I have done a simple slider class that is clickable and in flash player 9 works great but when I test it in flash player 10, the list just dissapears. The example uses elements from an xml but the problem happens even if I attach a simple array of shapes instead of text.I have attached the example with the bug. I've included also Tweenlite for testing purposes and if you uncomment the line 95-96 of the [url]......
95-96
//Tweener.addTween(masked, {x:xPhotoPosition,
y:yPhotoPosition, time:1});[code].....
View 3 Replies
Mar 1, 2012
I'm trying to tween in a movie clip to alpha:1 using the code TweenMax.to(mc, 1.5, {delay:2.5, alpha:1});But this results in a smooth tween to around 50% or so and then it jumps to 100%.I have had this problem before but it's really effecting a project I'm working on for a client. Is this a problem with the Tweenmax?
View 15 Replies
Dec 16, 2010
Is there a way to get TweenMax to tween the filters of an DisplayObject where The filters are added in the Flash IDE.
I want to Tween between two states and it would be nice if I could do it without creating the two states with bitmaps and tween between them. One state with the filters and one without the filters. [code]...
View 1 Replies
May 11, 2011
I have some image Containers which hold a lot of images(10-100). Some of those Containers(Sprites) are off screens but are loaded and added. Through arrow keys I start a tween in the according direction.The tween is not smooth(stumbles) always the first time when a container comes on-screen. How do I get a smooth tween ?
View 1 Replies
Mar 25, 2009
I'm using TweenMax to animate some arrows to move when I roll over a link, and the animate back, when I roll out. But it's not working, it animates on rollover, but not rollout.
function boxLink(mc_function:MovieClip, mc_target:MovieClip) {
mc_function.onRollOver = function() {
var myTween:TweenMax = new TweenMax(mc_target,0.5,{_x:"2", _alpha:50,
[Code].....
View 3 Replies
Mar 2, 2012
While im working on simple animation like text rolling.. in that i created external xml for menus. As im new to flash im learning it from tutorial, but its not clear. I download tweenmax rar file. i dont know how to import that file into my project.
View 1 Replies
Oct 6, 2009
Basically I have a menu with submenus. The submenu is a Sprite with two children, one is a square for the background and the text on top. On mouse over, I can change the color of the first child, the background, but not the color of the text, the second child. Here is the code.
ActionScript Code:
private function subMenuItemOver(evt:MouseEvent):void {
TweenLite.to(evt.target.getChildAt(0), 1, {tint:0x9ca26e}); // Works
TweenLite.to(evt.target.getChildAt(1), 1, {tint:0xffffff}); // Doesn't work
}
The menus are created from an xml document and the color is assigned with TextFormat.
View 9 Replies
Nov 3, 2009
I have a class that I was using TweenLight for handling all the tweens but came across one tween I needed the extra capabilities of TweenMax for and had to import it. Should I now convert all the tweens to TweenMax and stop the import of TweenLite? Will having both imported slow things down or swell the file size any?
View 2 Replies