Flash - InteractiveScene3DEvent Not Firing In Papervision BasicView

Oct 2, 2010

I'm using BasicView to setup my PV3D scene, and the scene itself works fine (3d carousel of movie posters) but the InteractiveScene3DEvent is not firing when a poster is clicked or moused over. I set my viewport to interactive... twice.
view = new BasicView(stage.stageWidth,stage.stageHeight,true,true);
view.viewport.buttonMode = true;
view.viewport.interactive = true;

And here is the part of the loop where it the event listener is added.
var mm:filmsPoster = new filmsPoster();
mm.loadIMG(image);
var mat:MovieMaterial = new MovieMaterial(mm);
mat.interactive = true;
mat.animated = true;
mat.smooth = true;
mat.doubleSided = true;
mat.name = filmName;
mat.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, posterClick);

View 1 Replies


Similar Posts:


Actionscript 3 :: Load A Papervision/Flex Application (SWF) As A Material On A Papervision Plane?

Mar 24, 2011

I am trying to build a portfolio application similar to the used by Whitevoid. I am using Flex 4 and Papervision3D 2. I have everything working except for one issue. When I try to load an external SWF as a material on one of the planes, I can see any native Flex or Flash components in their correct positions, but the papervision objects are not being rendered properly. It looks like the viewport is not being set in the nested swf. I have posted my code for loading the swf below.

private function loadMovie(path:String=""):void
{
loader = new Loader();
request = new URLRequest(path);

[Code]....

Below I have posted two pictures. The first is a shot of the application running by itself. The second is the application as a MovieMaterial on a Plane. You can see how the button created as a spark object in the mxml stays in the correct position, but papervision sphere (which is rotating) is in the wrong location.

View 1 Replies

Flash :: SWF Loading In An SWF Containing A Papervision Scene

Apr 25, 2010

I have an SWF loading in an SWF containing a papervision scene.I've done it before yet problem is, I get an error - I'm not sure what the issue really is.[code]

View 3 Replies

Flash :: Importing DAE Files To Papervision?

Sep 14, 2010

i created a 3d model using sketchup and exported it as a DAE file.

then i try to import the model into papervision, but the model never appear.

when i use the DAE file provided in the examples, it works. only when i tried to create my own models, it doesn't work. does this have anything to do with sketchup?

View 2 Replies

Flash :: Using Papervision To Create A 3d Game

Oct 22, 2010

now i need to add a health bar and countdown timer on the screen. how am i going to do it? adding a plane in the 3d scene? the health bar is always on the top right corner of the screen. is there anyway of NOT using 3d concept to implement this. i mean i could do it with a plane keep changing it's texture to show the status of the character. is there any cleaner way of doing it?

View 1 Replies

Flash :: Papervision 3d Development Alive?

Dec 18, 2010

So I wonder if papervision 3d development alive? Any google code or ght..?

View 1 Replies

Flash :: Having Simple Buttons In Papervision

Jul 22, 2011

there's a simple thing in papervision I can't do , I want to have a simple button on my swf like we have in flash , just a 2d square which is on screen and you can click on it and have some action

View 1 Replies

Professional :: Setting Classpath For Papervision In Flash CS5?

Jul 17, 2010

I keep trying to get started with Papervision, but I must be entering the classpath incorrectly as I keep getting errors that the compiler cannot find the classes.Is there some kind of bug with setting the classpath on a mac?I checked out the papervision stuff so it sits in:
 
/Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/
 
Inside the src folder is a folder called "org", which contains "papervision3d" and the folders of classes.To set the classpath, I've gone to Preferences, chosen ActionScript, clicked on the ActionScript 3.0 button at the bottom, clicked the plus sign, and then clicked on the little folder button to add a path to the Library box (the middle box). I browsed and selected:
 
  /Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/
 
I thought at this point (after quitting and restarting Flash) that if I created a class file that had, for example,
 
import org.papervision3d.cameras.*
 
that it would work -- but it doesn't. It only works if I save the .fla and .as files themselves in /Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/, in the same folder as the "org" folder. And I guess this means that the path in the Preferences setting is useless. 

View 2 Replies

Flash :: Getting 2D Screen Coordinates Of A 3D Object In Papervision 2.0

Jan 27, 2010

How do I get the 2D screen coordinates of a 3D object when using Papervision 2.0 (Great White)? I've read that following properties should return the screen coords but these always return 0.

[Code]...

View 2 Replies

Actionscript 3 :: Convert CAD Model For Use In Flash / Papervision?

Jan 14, 2011

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?).

View 2 Replies

Flash :: Papervision 3d HitTestObject Doesn't Work?

Jul 4, 2011

I'm new to papervision 3d and I created two display objects in basic view.
Here's a part of the code :

...
_stick = new Cube(materials, 50, 5, 500);
_ball = new Sphere(new ColorMaterial(0xfc0000), 80);

In the onRenderTick method, I tried to check whether two objects are hitted

[Code]...

However, stick.hitTestObject always returns false even if the stick really hits the ball as I see in the flash.

View 1 Replies

Flash :: Correctly Load An .md2 Mesh Description With Papervision 3D 2.1.932?

Jan 15, 2010

How to correctly load an .md2 mesh description with Papervision 3D 2.1.932 ?

View 1 Replies

ActionScript 3.0 :: Interactive Flash Site And Recently Installed Papervision?

Sep 25, 2009

I am making an interactive Flash site and recently installed Papervision. I thought it would be cool to have a spinning 3D cube (using Papervision imports and so on). Unfortunately when I click on the 'Links' page (the 'links' keyframe with the AS3 actions) the cube appears, but when I got back to other pages (for example Homepage) the cube is still there!!

I was wondering how I unload/remove/un-import/?? this so that it works ONLY on that one keyframe.

[Code]...

View 1 Replies

Flash :: Why Are Event Listeners Firing More Than Once

Jun 14, 2010

In my Flash project I have a movieclip that has 2 keyframes. Both frames contain 1 movieclip each.

frame 1 - Landing
frame 2 - Game

The flow of the application is simple:

User arrives on landing page (frame 1) User clicks "start game" button User is brought to the game page (frame 2) When the game is over, the user can press a "play again" button which brings them back to step 1

Both Landing and Game movieclips are linked to separate classes that define event listeners. The problem is that when I end up back at step 1 after playing the game, the Game event listeners fire twice for their respective event. And if I go through the process a third time, the event listeners fire three times for every event. This keeps happening, so if I loop through the application flow 7 times, the event listeners fire seven times. I don't understand why this is happening because on frame 1, the Game movieclip (and I would assume its related class instance) does not exist - but I'm clearly missing something here.

I've run into this problem in other projects too, and tried fixing it by first checking if the event listeners existed and only defining them if they didn't, but I ended up with unexpected results that didn't really solve the problem.

View 2 Replies

ActionScript 3 :: Flash - KeyboardEvent Not Firing?

Nov 4, 2010

I'm new to ActionScript development and am using the FlashDevelop IDE. I've been playing around with some really simplistic things and have come across a problem I can't seem to solve.My application compiles and runs, and a function that watches click events fires perfectly and I can see the event in the console when I pass it to trace(), yet the same code watching for KeyboardEvent fails to fire at all.Here's my code:

package GameTesting
{
import flash.display.Bitmap;[code]............

The MouseEvent trace() fires every time as expected, but KeyboardEvent never fires, no matter what key I press.

View 2 Replies

ActionScript 3.0 :: Flash ENTER_FRAME Delay In Firing?

May 5, 2011

Its been a long time since i've posted on this forum. I've always just browsed, but never had enough experience to post and answer questions.I am doing a small project for uni, and im a little stuck with some (probably simple) AS3.

To set the scene.... I have a scene, funnily enough, with 5 frames (and several layers). I have navigation buttons back---home---forward, which do not change over the length of the scene.In each frame (2-5) i have an embedded flv in a movieClip. The idea was to have a listener on the back and forward buttons, when clicked they do either nextFrame(); or prevFrame();.

However, to stop the 5 frames playing (and looping) i put in an action listener for ENTER_FRAME on the first frame (see below).My problem appears to be the time it takes for the ENTER_FRAME to fire. The timeline plays straight away, and is already on frame 2 before the enter_frame actually stops it. Can anyone suggest a reason why there is such a delay in the firing of the enter_frame event, and is there a way to solve it without putting in a gotoAndPlay(1); instead of the stop();??

Also, the forward button works, but the back button never appears to be created. Not quite sure why, as its exactly the same code, with just the names changed, and the instance names as well.

[code]...

View 7 Replies

Flash :: URLRequest & Loader EventListener Not Firing For Image?

Dec 17, 2010

I'm loading images via a URLRequest and Loader classes and I want to manage the image when the request is complete. The example below doesn't fire the event when it is complete. The same code would work find for a URLLoader, but not a Loader object. Basically the image loads and the event listener is never fired. Can anyone tell me how to get an event to fire when Loader finishes loading an image.

var imageReq:URLRequest = new URLRequest("http://www.google.com/images/nav_logo29.png");
var imageLoader:Loader = new Loader();

[Code].....

View 1 Replies

Javascript :: Mouseup Event Over Flash Object Not Firing?

Apr 8, 2011

I have got this script working from How to get mouseup to fire once mousemove complete working within the jQuery (document) scope.Later on I added a flash object inside the body.and when I click on the flash object the mousedown event fired, mousemove event fired, but not the mouseup event which where I want to unbind the mousemove. But when I click on non Flash area, mousedown works, mousemove works, and mouseup also works. It works like I wanted it to in Chrome, but not in Firefox.Here are the codes, and I called handleMouseDown in $(document).ready

handleMouseDown: function () {
jQuery(document).mouseup(function() {
Log("unbind.");

[code]........

View 3 Replies

Flash :: KeyboardEvents Not Firing Until After I've Clicked On An Onscreen Button?

Apr 22, 2011

My document class is Main.as (it extends MovieClip). The following code is in my Main.as.I've declared all these variables in my class definition:

private var holder:MovieClip;
private var leftButton:SimpleButton;
private var rightButton:SimpleButton;

[code]....

View 2 Replies

Flash :: Custom Event Not Firing On Document Class?

Apr 28, 2011

Im trying to get my head round what is needed to catch event "Beep2", using dispatchEvent. The function "DoNext" is not firing, even though Im able to produce a trace result of the dispatchEvent "Beep2 true".

This code uses a CustomEvent Class to Extend the Event Class. Its right on my limit of knowledge so far,

[Code]...

View 1 Replies

Flash - Firing Events When SWF File Ends Playing?

Jun 15, 2011

What I want is to play a swf file in my site. And when that swf animation file ends that is fully watched by the User, I want to call a PHP page.

View 1 Replies

Flash :: Events Not Firing In Custom Flex Component?

Jun 24, 2011

I'm taking my first stab at writing a custom flex 4 component by extending the UIComponent class. Unfortunately, I cannot get the component to respond to any sort of mouse events.I've tried setting mouseEnabled to true is the component, as well as setting mouseChildren to true in the parent (the stage object). It seems whatever I do, my click events can be detected from the stage, but not with the component.Here is my component class:

package components {
import mx.core.UIComponent;
public class DrawCanvas extends UIComponent {

[code]......

View 1 Replies

AS3 :: Flash - StartDrag Firing Mouse_up / Mouse_click Events

Oct 10, 2011

As I started developing mobile apps for iOS/Android using Adobe AIR I encountered strange problem (or feature). If you create Sprite and make it draggable using startDrag/stopDrag inside MOUSE_DOWN/MOUSE_UP event handlers, everything works. But if you add another listener MOUSE_CLICK to the same object, it starts to fire together with MOUSE_UP. Logically this behavior is all right.

What I need is to prevent firing MOUSE_CLICK handler when user drags the Sprite (startDrag) and I need it to fire when user did not drag the Sprite. What I'm trying to create is a small thumbnail bar which is draggable and after clicking on concrete thumbnail its large version/image opens up. This is actually not possible as MOUSE_CLICK fires everytime user drags whole thumbnail bar so large image opens up everytime.

View 1 Replies

Flash :: Prevent Touch Event From Firing From Under Another Sprite

Dec 6, 2011

I'm trying to make a vieport in which you can pan by dragging the background image around. Here is what I've done: [URL] Note that I've hidden the mouse cursor and replaced it with 2 custom ones. The problem is, the event attached to the background, which is a touch event, fires even when the mouse is over a sprite/movieclip (the monkey or the stats) that's in front of that background. And the stats isn't even in the gameLayer (where the monkey and the bg and the mouse cursors are). Try to drag the stats around, and see that the background and everything else pans with it (this is unwanted). Also, I need to remove the custom cursor and show the regular cursor whenever the mouse is NOT on the background (i.e. when it's on the monkey or stats or any new sprites I may/will have in the future).

[Code]...

View 1 Replies

Actionscript 3 :: Flash - Loader Event Not Firing In Firefox?

Mar 15, 2012

I just inherited some code that produces an embedded rdio music player into a swf. It works great in firefox and safari, except the embedded player does not appear in Firefox... :(

Is this a common issue with the Loader class or contentLoaderInfo events?

import flash.display.Loader;
import flash.display.Sprite;
import flash.display.StageAlign;

[Code].....

View 2 Replies

ActionScript 3.0 :: Flash - Event.COMPLETE Never Stop Firing?

Aug 1, 2010

I write directly on the time line on the scene and, well... the code looks fine to me, but my list of slideshows (which is what the xml contains) keeps on repeating itselfe... here is the code:

var uloader:URLLoader = new URLLoader();
//var slide:Slideshow = new Slideshow();
uloader.addEventListener(Event.COMPLETE, loaderCompleteHandler);

[code]....

View 1 Replies

ActionScript 3.0 :: Event.deactivate Is Not Firing With Flash Plugin 10,2,152,26 Embeded In IE 8 And Above

Feb 23, 2011

I am working on a portal which is built in flex. I wanted to perform some action based on my applications is in focus or out of focus. So  I tried to use two Events for this purpose Event.Activate and Event.Deactivate inside my flex code.
 
These events fire perfectly in FF 3.0 and above, Safari, Chrome and these events get triggered till IE 7.
 
But when I switch to IE 8 and above versions with latest flash player plugin 10,2,152,26 the Event.deactivate is not firing, and I am not able to detect whether my Flex application is out of focus.

I tried doing some research around this issue both using Flex Events and Javascript approach using window.onfocusin and window.onfocusout, but still no luck in IE 8 and higher versions with latest Flash plugin 10,2,152,26.

As we have a large number of users viewing this portal in IE 8 with latest flash plugin.
 
The code is simple and I have pasted below:
 
package {
import flash.display.*;
import flash.utils.*;

[Code]....

View 3 Replies

Flash :: Use A Parabola Formula In Firing An Arrow That Will Always Intercept A Given Point

May 11, 2011

First note: mathematically, I'm not that skilled at all. I played a game on iPhone a while back where you press a point, and an arrow fires from your castle which will always intersect the point you pressed. I wanted to make a similar game, thinking it would be an easy quick make; then I ran into the realization that the mathematics for this is actually beyond my skill level.

I'm assuming they're using a parabola formula or something which would determine the velocity and angle needed when the arrow is launched for the arrow to always intersect the clicked point. I only vaguely remember how parabolas work from school and have no chance of working out any formulas.

[Code]...

View 2 Replies

Actionscript 3 :: Flash NetStream.Buffer.Flush Firing Repeatedly

Oct 13, 2011

I've made a custom video player in as3. Everything works, but once a video has loaded and played through completely, if the user replays the video it continuously fires the NetStream.Buffer.Flush event until the video stops playing again (by either ending or by the user hitting pause). It doesn't seem to effect anything negatively, but I would rather not have an event continuously firing in the background like that. I can't find any documentation of this happening online anywhere. Is this normal behavior for a NetStream that has fully loaded?

View 1 Replies

Actionscript 3 :: CHANGE Event Not Firing From Numeric Stepper (Flash)

Nov 8, 2011

I have a Numeric Stepper. If I click on the plus or minus my event will fire.

[Code]...

However, when my function changes the value based on a button press, the Numeric Stepper will update the number but it will not fire the CHANGE event.

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved