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


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

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 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

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 :: Mask A Papervision Scene With Movieclip Out Of Library?

Apr 24, 2009

I am just scratching my head about how one would mask a papervision scene with a movieclip out of the library?

View 4 Replies

ActionScript 3.0 :: Target Movieclip With E.target?

Aug 30, 2010

qi have a movieclip which is added to the stage:

var profileholder:profileHolder=new profileHolder ;

inside of profileholder is another movieclip(infoBtn) that acts as a button.when the mouse is over profileholder i want to do something with infoBtn like:

//profOver is the over state of profileholder
function profOver(e:Event) {
e.target.infoBtn.alpha=1;
}

this doesn't work and brings up this error:ReferenceError: Error #1069: Property infoBtn not found on flash.display.Loader and there is no default value.
at main_fla::MainTimeline/profOver()

i also tried:
function profOver(e:Event) {
var item:profileHolder=e.target as profileHolder;
item.infoBtn.alpha=1;
}

and get this error:TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 1 Replies

Actionscript 3 :: Papervision Rendering PNGs With Transparency That's Inside A Movieclip?

Mar 9, 2010

I'm an actionscript dude - I'm working on a papervision game.

I have an asset of which is 127 pngs in a sequence for an animation.

I can happily project this onto my papervision plane. Problem is, there is no transparency. I Can't use a BitmapFileMaterial as I have many pngs -

View 3 Replies

ActionScript 1/2 :: Movieclip In ButtonMode - Draggable To Different Movieclip Target?

Jan 8, 2010

I'm doing a project that makes a movieclip draggable in different droptarget movieclip. When it is dragged in the 1st target an animation is triggered and so as the rest of the droptargets.Here's my initial code that does'nt work:
 
btn1.buttonMode = true;
b1OrigX = btn1._x;b1OrigY = btn1._y;
//btn1btn1.onPress = function(){    startDrag(this);}//droptarget = box1btn1.onRelease = function(){    stopDrag();       //droptarge1t

[code]....

View 2 Replies

ActionScript 3.0 :: Target A Movieclip Within A Movieclip?

Jul 30, 2010

Its day 3 of learning AS3 for me. I cant seem to target a movieclip within a movieclip. I code with all my actions on the first frame of the root timeline and would like to continue this practice. But when I target the clip from the root my function wont run.

Here is my example:

Code:
wheel_mc.spinBackward_mc.buttonMode = true;
wheel_mc.spinForward_mc.addEventListener(MouseEvent.CLICK, spinForward);
function spinForward(event:MouseEvent):void {

[code]....

Basically it wont gotoAndPlay("fadeIn") and I'm not sure why. So my question so I can move on in my AS3 learning is how to I target a movieclip with another movieclip, or is there another more proper way to do what I'm trying to achieve.

View 2 Replies

ActionScript 1/2 :: Target Movieclip Within This?

Jul 14, 2010

I have some buttons working great on my main timeline using this code on the actual timeline[code]...

So I know I need to make Revlon_mc into another movieclip (so I can do the actual animation inside this movie clip and move it easily around the main timeline) but I'm not what the code would be (something to do with parent perhaps??) and would I still keep the code on the main timeline or would it sit within the new moviclip just created?

View 3 Replies

Flash :: Get The E.target.name From A Movieclip?

Jan 21, 2012

I am trying to trace the name of the button that started the eventListener. But instead I keep getting

instance11 instead of the name of the movieClip which should be a number between 0-5

below is part of my actionscript.

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;

[Code]....

View 2 Replies

ActionScript 3.0 :: Target Covered MovieClip?

Nov 19, 2010

How do I make a MovieClip Targetable even if it is covered by another MovieClip?

View 4 Replies

ActionScript 3.0 :: Event.target Movieclip?

Jan 26, 2012

I have a movieclip named button1 that contains a dynamic text named txt in it.My problem is that if i try

if(event.target==button1)
{
}

[code]....

View 1 Replies

ActionScript 1/2 :: Drop Target Under A Movieclip?

Feb 27, 2012

I have some drop targets that work, but I also have a movie clip that can be turn on over the main timeline. All this clip is, is some low alpha colors for a viewing effect. Since it's above the drop target though it doesn't want to work. Is there a way to make it associate with the droptarget underneath, or a way to make the

View 6 Replies

ActionScript 3.0 :: Setting Target On Movieclip?

Nov 16, 2009

I have created movieClip through AS3 code but I need to set target on my movie clip. How to do .

private var myClip:MovieClip=new MovieClip();
// now i need to sent target on this myClip.

View 3 Replies

ActionScript 2.0 :: Load A MovieClip Into A Target?

Dec 22, 2004

I've been able to find how to load external .swf's into a target but how do I load a regular MovieClip from my Library? Can you do that with loadMovie?

View 1 Replies

ActionScript 3.0 :: Target Movieclip From Document Class?

Dec 17, 2010

i am making a drag drop game. i created a doc class for the dragged items . i want to make the hit test with some movie clips on the stage but inside the class they are not seen by there names. how to perform my hit test

this is my code,and target1_mc &target2_mc are movie clips on the stage

package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.text.TextField;

[Code].....

View 5 Replies

ActionScript 3.0 :: How To Target Nested MovieClip In FLV Component

Mar 31, 2009

I have a video player that's control bar's x & y are over the top of the video. It is set to alpha 0, and when the user rolls over the video the control bar's alpha goes to 1 and becomes visible. I have a few even listeners and a function that makes this happen. My issue is that the buffer handle and the volume handle do not go to alpha 0, despite the fact that their parents do. The instance of "volumeHandle" is the child of "volumeSlider". "volumeSlider" does go to alpha 0, then to alpha 1 on rollover, but it's child "volumeHandle, is always visible. The same applies to the respective instances of the buffer bar.

I have tried
volumeHandle.volumeSlider.alpha = 0;
But that doesn't work. My guess is that the conflict lies in the linkage of the controls for the buffer and volume handles.

View 1 Replies

Professional :: Can Target The Second Key Frame Of An Empty Movieclip

Apr 24, 2010

Can i target the second key frame of an empty movieclip which is created by actionscript.as for example:this.createEmptyMovieClip("target_mc",1);I want to write some script on the second keyframe on the target_mc movie clip. Is that possible.

View 1 Replies

Actionscript 3 :: Target Ignoring Parent MovieClip

Apr 4, 2012

I changed the question as its seems to be a problem with target not registering children mc/ or nested MovieClips.

var box:Box = new Box();
ground.push(box);
levelPlane.addEventListener(MouseEvent.MOUSE_DOWN, onOver);

[Code]....

How Do i target the movieclips(BOX) inside of the main MovieClip(levelPlane)?
imagine i have nested 10 boxes inside a MovieClip Called "levelPlane" i want to click on any of the boxes to add another Mc on the box i clicked x,y location.

View 2 Replies

Falsh :: Target MovieClip From Non-Document Class?

May 11, 2010

is there any way to target a MovieClip from an external class that's NOT the Document Class?

Is it correct to have the Document Class as Main AND View?

View 1 Replies

ActionScript 3.0 :: Drag Object Onto Target MovieClip?

Sep 14, 2009

I have been working with a very simple tutorial over at [URL], where you drag objects onto a target movieClip. My question is this, how do you target a movieClip inside a movie clip? What I have are 4 color squares that I want to drag and drop onto a pattern_mc. I put the target mc's with in the pattern_mc. In the tutorial the target mc's are not in a movie clip. I put my target mc's in a movieClip because I want to use the pattern_mc as a material.

View 7 Replies

ActionScript 3.0 :: Move MovieClip From Current X,y To Target?

Jan 13, 2010

I'm creating a site that allows drag and drop navigation. Here's the current preview:

[URL]

My goal is to allow the user to freely navigate the desktop and explore at their leisure, however, for the user who's a little more impatient I want to offer an option allowing them to click a button on the bottom menu and have the desktop slide directly from the movieclip's current XY coordinates (whatever they are at the time), to a designated XY, and center on that specific section, easing into place.

I've got placeholder buttons, and placeholders for the desired targets, but I can't wrap my mind around the code needed to do it, nor have I found any examples that use the same technique with AS3.

View 4 Replies

ActionScript 3.0 :: Target The MovieClip In The Listener Of Its Tween?

Dec 23, 2010

How to target the MovieClip in the listener of its tween ? I have an Array of MovieClip and each one have its own Tween. Each Tween have its own Listener. I want to target the MovieClip in the listener. I search in many forums and tutorials and I don't find anything convincing.

[Code]...

View 2 Replies

ActionScript 3.0 :: Target MovieClip That Class Extends?

Jun 22, 2011

Is there any way to get the name of the MovieClip that a class extends?Lets say I have an MC on stage called boxMC exported for AS using a class box which extends MovieClip.If I trace (this) within my class I will get the name of the class, if I trace (parent) I will get the name of the main MovieClip that boxMC sits within. So how can I target boxMC?Basically I want to be able to return the name of the MovieClip that the class is extending

View 2 Replies

ActionScript 3.0 :: String To Movieclip To Drop On The Target

Jan 31, 2012

I have the following code

[Code]...

Code: Error #1034: Type Coercion failed: cannot convert movieclip1 to MovieClip. My goal is to have the dropTarget.parent.name turned into a movieclip so I can use properties on it. There is a movieclip that I want to drop on the Target, and I can use "this" for source, the movieclip that I'm dragging, but when I want to have properties on the destination, when I want to convert the String to MovieClip, I get #1034 And I don't know what is it that I'm doing wrong...

View 5 Replies

ActionScript 2.0 :: Target Parent Movieclip From Within Itselelf

Mar 15, 2012

how do i go about and target a movieclip from within itself, without knowing it's name?

View 8 Replies

Actionscript 3.0 :: Move MovieClip From Current X,y To Target

Jan 13, 2010

I'm creating a site that allows drag and drop navigation.

Here's the current preview: [URL]

My goal is to allow the user to freely navigate the desktop and explore at their leisure, however, for the user who's a little more impatient I want to offer an option allowing them to click a button on the bottom menu and have the desktop slide directly from the movieclip's current XY coordinates (whatever they are at the time), to a designated XY, and center on that specific section, easing into place.

I've got placeholder buttons, and placeholders for the desired targets, but I can't wrap my mind around the code needed to do it, nor have I found any examples that use the same technique with AS3.

View 2 Replies

ActionScript 3.0 :: Loading External SWF To Target MovieClip

Jan 16, 2010

I am trying to build a menu, that loads external swf to target movie clip, in the code below it works if I remove the line target removeChild, but then if a press the other button, just put it on top, so my actual problem is that if I don't have anything loaded in target, this code doesn't work because it can remove child?

menu.btn_avanti.addEventListener(MouseEvent.MOUSE_DOWN, goseccion);
menu.btn_professors.addEventListener(MouseEvent.MOUSE_DOWN, gofotos);
function goseccion(Event:MouseEvent):void{
var main:Loader = new Loader();
main.load(new URLRequest("seccion_basica.swf"));
target.removeChildAt(0);
target.addChild(main);
[Code] .....

View 1 Replies







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