Actionscript 3.0 :: PV3D - MovieAssetMaterial Play And Stop?

Aug 8, 2009

I have managed to create a Plane with a material that is a running movieClip with 8 frames. The thing is that I want to be able to play and stop that movieClip that's acting as the material of the Plane but can't seem to get to it...That movieClip called "walkingTest" that I'm using as the material, has another movieClip inside it called animatedDoll that is the one I need to play and stop. If I use:

walkingTest.animatedDoll.stop();

I get this error:

1119: Access to a possibly undefined property animatedDoll through a reference with static type flash.display:DisplayObject

But the weird thing is that this:

trace(movieAssetMaterial.movie);

Is working perfect. Here's the code...

Code: Select allpackage{
///
import flash.display.Sprite;

[code]...

View 1 Replies


Similar Posts:


Actionscript 3.0 :: PV3D - MovieAssetMaterial Play And Stop

Jul 15, 2009

I have managed to create a Plane with a material that is a running movieClip with 8 frames. The thing is that I want to be able to play and stop that movieClip that's acting as the material of the Plane but can't seem to get to it... That movieClip called "walkingTest" that I'm using as the material, has another movieClip inside it called animatedDoll that is the one I need to play and stop.

[Code]...

View 2 Replies

ActionScript 2.0 :: Bar - Play And Stop Button To Play And Stop Frames In A Flash Movie

Dec 1, 2004

give me the actionscript for a bar that has a play and stop button to play and stop frames in a flash movie. i would be gratefull if you could as i am really stuck

View 2 Replies

Actionscript 3.0 :: PaperVision - Target Movieclip In MovieAssetMaterial?

Sep 13, 2009

I've been trying for ages to find out how to do this exactly, but haven't had much luck, I'm trying to build a version of my portfolio site using Flash and Papervision, however, I'm having a little trouble coming up with more sophisticated interaction aside from assigning click events to individual objects.

Say I make a MovieAssetMaterial, and inside that material, I place another movieClip.

How do I target that nested movieClip so I can get it to do something? Is it even possible? From what I've researched I need to be using an "InteractiveSceneManager" but I can't find any references on how exactly to implement one.

View 1 Replies

ActionScript 3.0 :: PPV3D MovieAssetMaterial Text Gets Warped

Jan 15, 2010

I have a plane, in a grid (DisplayObject3D) being rendered in BasicView that has dynamic text on it. the grid, wall (whatever you want to call it) pitches and rolls, and the more it does the more the text gets warped?

View 1 Replies

ActionScript 3.0 :: Get Main Timeline To Stop In The Beginning On Button Press To Play And At The End Stop Again?

Feb 1, 2008

I just got Flash CS3. I'm trying to get my main timeline to stop in the begining, on button press to play and at the end stop again. In AS2, you would just put stop(); on the first keyframe and stop(); on the last key frame and program your buttons accordingly.

The stop(); does not work!!!! It's driving me crazy. What am I missing? I've gone through the tutorials in Flash and they don't work either.Also, if you have MovieClip that contains an animation and you don't want the movie clip to be on a continuous loop how do you stop it from playing. In AS2, I would put a stop(); on the last keyframe of the movieclip's animation. This also does not work in AS3.

View 9 Replies

ActionScript 2.0 :: Play And Stop A Number Of Frames Later Without Using Stop?

Jan 2, 2004

Is it possible to play and stop a number of frames later, without using stop() in the frames? Like when I click a button frame 20 will start playing and it stops 30 frames later, all defined by the actions of the button..

View 3 Replies

ActionScript 2.0 :: Play And Stop A Number Of Frames Later, Without Using Stop()?

Jan 2, 2004

Is it possible to play and stop a number of frames later, without using stop() in the frames? Like when I click a button frame 20 will start playing and it stops 30 frames later, all defined by the actions of the button.

View 3 Replies

ActionScript 3.0 :: Play / Stop Button - Current Audio File To Play The Next One

Feb 27, 2012

I have created two buttons for separate audio files. Essentially if you click on the button it will play and stop. This works great! I have also injected a SoundMixer.stopAll(); to ensure if you click between both buttons that it will stop the current audio file to play the next one. My problem is when I select the 2nd button for the first time everything seems to be working...it's when I attempt to click on the first button again, that it will require 2 clicks and then it stops and plays accordingly...anyone know how I could eliminate this annoying two click process?

[Code]...

View 1 Replies

Actionscript 2.0 :: Movie Clip Play, Stop And Play On Mouse Event?

Sep 1, 2010

I want a movie clip (let's call it homecontent_MC) with 100 frames play to frame 80 and stop.Then when someone clicks a button on the navigation bar (home, about, services, contact, etc...) homecontent_MC would then begin playing from it's position (frame 80) til it reaches 100, at which point it wouldn't be on screen, and the movie clip that corresponds to the navigation button press (say services_MC...) would start from frame 1 and continue til it stops at it's frame 80...

View 7 Replies

ActionScript 2.0 :: CS3 - Modify From Just Play To Play/stop (toggle)?

Sep 21, 2009

I have modified the original to include more head shots accompanied by audio clips. I have worked out the playing of the clips on release. I realize now that people may not want to listen to entire clip. Each mug shot serves as the button to hear the person talk. I do not know how to modify the button code for it to be a toggle. I guess it would need to be some kind of "play if, stop if" The only part of concern is loading playing the the audio, no changes need to be made to the rollover functionality.

mugWidth = 60; //change these if you change the size of your mugshots
mugHeight = 60; //change to your mugshot height
//instantiate sound and textformat classes

[code]....

View 2 Replies

ActionScript 3.0 :: Play Next 5 Frames And Stop The Play Head?

Jan 6, 2011

how would you play the next 5 frames if the space bar was clicked and then stop the playhead?

View 4 Replies

ActionScript 3.0 :: Integration Of 2d Elements With PV3D

Jul 26, 2010

how I might go about integrating a 2D layer on top of a Papervison layer.

my goal: attach some 2D elements to a 3d object that is shifting rotation in 3dspace. Specifically, I want to draw a 2d line - x/y origin is the bottom right corner of the plane.

1. Height? Width? I can obtain the screen coordinates of a given displayObject3D with the screen property, but this gives me the coordinates of the center of the object. I simply haven't found a method to return the value of a related coordinate (the bottom right corner...) Since pv3d is projecting the object as a flattened 2d image at render time, you would think there would be a built in method to get such a thing. I've played around with papervisions built in drawing api, and it does a fine job of replicating the 2d api - so that might be an option if I can't find the coords in a predictable way.

2. translating zoom and focus of the camera into a predictable pixel values. If I have a plane that I know the 3d location of, and, hypothetically, the camera is viewing it squarely, how would I take into account the zoom and focus to translate the initial dimensions of the plane into pixel perfect height/width values? (for example, to place a 2d rectangle over the 3d content.) I can do a scale hack where I've applied a manual multiplier (just through trial and error), but its not exactly pixel perfect...

View 0 Replies

Actionscript 3.0 :: Event Propagation In PV3D?

May 18, 2009

how event propagation works in PV3D its definitely not like the conventional Flash style. On a quick search i have been able to find out that its possible using the InteractiveSceneManager Class, but unfortunately

View 1 Replies

Actionscript 3.0 :: PV3D: Collada Not Visible?

May 19, 2010

having a weird issue with a loaded Collada model. I'm not getting any errors as such, and I can trace out the collada's position etc, I just can't see it! Am I missing something stupid? Or is it a bad collada model, and if so how do I test for it? I thought it might be a texture issue, but I tried other collada models without textures and they show up as wireframes straight away.Here's the code:

Code: Select allpackage
{
import flash.display.Sprite;

[code]......

View 3 Replies

ActionScript 3.0 :: Do A Drag And Drop In 3d Like PV3D

May 19, 2011

I'm wondering if its possible to use for example Papervision or something similar to make a drag and drop action in 3d space. But when I say drag and drop I mean, you drag the object and then place it in its correct spot, if you do not, then you receive an incorrect message for example.

View 1 Replies

ActionScript 3.0 :: PV3D ShadedMaterial On A Collada File

Jan 20, 2009

i'm doing a materialtest with papervision, using some collada-objects that i load with the DAE-class. one thing that i didnt get to work is creating a shadedmaterial, not a shader as a material but combining a shader and my original material (loaded with the collada-file) into a new material. i dont get any errors, and when i look at examples i think i'm doing the right things, although the examples always create a new object from scratch (and add the ShadedMaterial to the fresh materialslist).What i do is load the objects, store their materials in an array (i clone them once they're loaded), and use this object-loop to create the shadedmaterial and replace it with its original.[code]The original materials are actually Bitmap FileMaterials, but since that's a subclass of BitmapMaterial i think that should work just fine. You can see my test here, every material works except for the flatshaded+bitmap, when i use that one my framerate drops dramatically but i dont see any change.URL...

View 1 Replies

ActionScript 3.0 :: Sphere Planes Rotation In PV3D

Oct 21, 2009

The effect I would like to achieve is when the plane around the sphere is clicked, the sphere rotates so that the plane is in the middle of the stage. but there always some problems when i clicked the plane the sphere seems like never rotate to it's back.[code]

View 3 Replies

ActionScript 3.0 :: PV3D Causes Movieclip To Spin Uncontrollably?

Feb 6, 2010

I have this script that creates a Tiltviewer effect and it works perfectly as long as you're on the page. However, if you switch focus to another browser window or tab, it begins to spin wildly and even takes a while to recover when the user comes back to the page.

ActionScript Code:
/* ----------  PV3D  ---------- */
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.materials.BitmapMaterial;

[Code].....

View 0 Replies

ActionScript 3.0 :: PV3D Gallery - Add Hyperlinks To The Images

May 26, 2011

I've been playing with this PV3D gallery that I found and dissecting and trying to learn everything I can, but I want to see if its possible to add hyperlinks to the images. Basically when the image resizes, I want it also to load a hyperlink after you click it again to remove the Image. I've included all the SourceCode in a zip file. If anyone can take a look and give me some pointers it would be awesome! edit*all the images are XML driven, I've tried making hyperlinks in the XML itself, but the way these gallery is setup is to load(img) not load(url)

View 1 Replies

Actionscript 3.0 :: PV3D Active HTML Links?

Apr 30, 2008

As part of a papervision project I need to render html text on to a plane. I've done this using a MovieMaterial and the html text renders perfectly as one would expect, except that any Code: Select all<a href=""> tags used in the html aren't working? Has anybody else experienced this problem? I've set the material to Code: Select allinteractive=true and that's working because buttons on the same material are working, just the html links aren't.

View 5 Replies

Actionscript 3.0 :: Creating PV3D Textures With A Loop

Apr 28, 2010

I'm trying to create multiple objects in Papervision using Flash Builder, each one with it's own texture that I'm getting from an imported SWC.My code works perfectly if I apply one texture to all shapes, but when I try to put it into a loop I can't seem to get it to work. I think this is more of a syntax problem, I'm just not sure how to tell Flex what I want.Here's a chunk of the code that works fine, applying an "img1" texture to everything: [code]Does that make sense? I want each iteration of the loop to add a number to the end of "img" and apply that to the shape.

View 8 Replies

ActionScript 3.0 :: Adding Video Player To PV3D Cube

Sep 29, 2008

With some great tutorials on the web, I have created an interactive cube in PV3d with a movieAssetMaterial for one the faces. I would like to add a fully functional video player to this face. I have code for an AS3 video player that I placed in the main fla on the movie clip that acts as the material. The video streams in fine, but the interface does not work. I'm wondering if this is a scope issue, a problem with adding events to a movie asset material, or some other problem. The video player code is attached. I have the video player code inside the movieAssetMaterial.

View 1 Replies

Flash :: Port Away3d Scene With Animation Into PV3d?

Jul 25, 2010

How to port Away3d scene with animation into PV3d? Are there any tutorials on how to do that?

View 1 Replies

Actionscript 3.0 :: PV3D - MouseEvent.CLICK On Object Instead Of Face

Feb 10, 2009

I've created 4 cubes, which turn on Rollover and Rollout, and on Click they should move to new x y coordinates.The Rollover and out on the faces (workfront,workback) work fine, but i don't get it right to put the Click on the whole cube.if tried to address it with workcube.addEventListener(MouseEvent.CLICK, workclick); but that doesn't work.if i address it with this or without workcube all my cubes react to the click

Code: Select allvar workcube:Cube = new Cube(new MaterialsList({front:mat2, back:mat3, top:mat0, bottom:mat0, left:mat1, right:mat1}), 60,60,60,10,10,10);
scene.addChild(workcube);

[code]....

View 4 Replies

ActionScript 3.0 :: [PV3D] 'MaterialObject3D: TransformUV() Material.bitmap Not Found!?

Nov 14, 2009

I was recently trying to import some collada models from 3d studio max into flash. verything looks fine, but I have some kind of error which rather shouldn't appear: Quote:'MaterialObject3D: transformUV() material.bitmap not found!'I've found some answers by googling it, but I'm not sur

View 0 Replies

ActionScript 3.0 :: PV3D: When Adding Text3D To Planes In A Carousel The Rotaion Slows To A Crawl?

Jan 13, 2010

I have added 2 text3D textfields for each plane that gets rendered via xml.Everything works fine, yet as more planes get added via xml the carousel slows down considerably.If I remove the text3D fields the carousel rotates very smooth and at normal speed. Is this just a limitation of text3D in Papervision3D or is there a way to optimize this better? Yes, smooth is set to false and images have been optimized.

View 1 Replies

ActionScript 1/2 :: Why Does It Play When Stop();

Nov 7, 2009

I have just started with a complete new flash project with only one scene and a few buttons and one movieclip (for a button with sound and animation). Already now at the beginning the problems start - the movieclip plays although I have put in the head timeline:
 
stop();
 
The same problem when I put in the rest:
 
instans1.onPress = function (){ play();}instans2.onPress = function (){ gotoAndStop(50);}

View 5 Replies

ActionScript 2.0 :: MC Play Twice And Stop?

Jul 26, 2005

I want a movie clip to play twice then stop. How do I do this?

View 3 Replies

Mc To Play Until A Certain Frame Is Reached, Then Stop

Sep 7, 2007

I have an mc placed on the main stage that I'm trying to control through a separate button. I want the mc to play until a certain frame number is reached and then stop. I've got the following actionscript on the button instance:

Code:
on(rollOver){
if (mc._currentframe == 10){
mc.stop()

[Code]....

This is not working at all - the mc is not stopping at frame 10, just looping continuously

View 5 Replies







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