ActionScript 3.0 :: Flex Applying A VideoStreamMaterial To A Cube?

Mar 4, 2010

I'm using papervision3d and I am trying to wrap a single flv video around 4 sides of a cube (Excluding the toip and bottom) but I am unsuccessful so far. I have searched everywhere on the net and all I can manage is to display the single video on each side of the cube seperatly.

Code:
video = new VideoStreamMaterial(videoFile, ncStream, true); var materialsList:MaterialsList = new MaterialsList() materialsList.addMaterial(video, "all");[code]....

Is there a way I can tell it to wrap the videoStreamMaterial around all 4 faces? Or if there isn't can I map the videoStreamMaterial onto a plane and then warp this plane to form a cube somehow?

View 1 Replies


Similar Posts:


Flex :: Applying Skins Through Actionscript

Feb 25, 2010

I have a problem in applying the styles for scroll bar skins through actionscript.[code]How can we specify scaleGrid properties in the above statement?

View 1 Replies

Flex :: Applying Dynamic Styles To Skins

Dec 24, 2009

I want to be able to style or set properties dynamically.[code]I want to be able to set these properties in the skin so the skin can be styled differently for each component that uses it.

View 1 Replies

Flex :: Applying Styles For Custom TextArea?

Apr 5, 2010

I have the following code to create and apply a few styles for a custom TextArea in ActionScript 3.

public class MyCustomTextArea extends TextArea
{
override protected function createChildren():void
{

[code]....

I have two problems with this code.this.styleSheet is always null when I create an instance of the class. If this.styleSheet is initialized to new StyleSheet() to avoid this issue, then the TextArea instance does not seem to recognize any of the HTML tags that can be used with the htmlText property.

View 1 Replies

Flex :: Applying Stylesheet To Slider Without MXML

Jun 15, 2010

I have a few styles that I want to apply to a slider. I'm aware of the MXML method of defining a mx:Style tag

<mx:Style>
HSlider{
} .SliderHighlightTrackSkin{
} .SliderTrackSkin{
} .SliderThumbSkin{
}
</mx:Style>

Instead of doing it this way I want to define all the styles in a style sheet. I then want to define my slider in a .as file (not an mxml file) and apply the stylesheet to it. Something like the following is what I'm after

levelSlider= new VSlider()
levelSlider.minimum=0;
levelSlider.maximum=1;
levelSlider.value=1;
levelSlider.y=150
levelSlider.styleName="sliderStyle.css"
this.addChild(levelSlider)

View 1 Replies

Flex :: Applying Blur Filter To BitmapData

May 14, 2011

I am using to blur an image using BitmapData. The function is called on a Slider_changeHandler(event:Event):voidevent and the value of the slider is passed to the function as blurvalue.The problem is the function works but seems to be cummalative (if that's the correct word!), that is, suppose I slide it to the maximum and after that try to reduce the blur by sliding it back towards the front the blur still keeps increasing. How do I make it to work so when I will slide it up blur increases and when I slide it back blur decreases and when slider is at 0, no blur is applied.[code]

View 2 Replies

Flex :: Applying Wipedown Effect Dynamically?

Jul 27, 2011

The panel is added OK, but the wipedown effect dont work

import mx.controls.Alert;
import spark.components.Panel;
import mx.effects.Effect;

[Code].....

View 1 Replies

Flex :: Stretch Out The Movie Clip After Applying Some Pixel Bender Filter?

Nov 12, 2009

How to stretch out the movie clip to twice its width and height after applying some Pixel Bender filter? I have some object with video on it (for ex 512 by 512) I apply a Pixel Bender Filter on it. Now I want to stretch the result (for ex to 1024 by 1024). How to stretch it?So my point is 1) Render the result of effect2) Stretch out the result

View 2 Replies

Css :: Flex 3 - Style Not Applying Completely On Dynamically Created Tabs In TabNavigator

Jan 19, 2010

When I create a tab dynamically via ActionScript, the style for the newly created (and selected) tab get applied to the skins, but not the text, unless I click on another tab and then click back to it.

[Code]...

View 1 Replies

Flex :: Top Horizontal Grid Line On Column Chart Is Not Applying Style

Oct 21, 2010

I have a Flex Column Chart that has a range of 0 - 6 on the y-axis. I have added the following block to change the default colour of the horizontal grid lines to black.

<mx:backgroundElements>
<mx:GridLines>
<mx:horizontalStroke>

[Code]....

This works fine for all but the horizontal grid line at the top of the chart (at y=6). If I change the maximum value for the y-axis to something different then this new max doesn't have the formatting applied (but all the others do).

how do I get the top line to be black like the rest of the grid lines?

View 1 Replies

Flex :: Refresh - Applying The Sort/filter On An Arraycollection Without Dispatching Event?

Aug 3, 2011

I have a object that is extended from arraycollection. This object has to access and manipulate the arraycollections source object. When this happens, the local sorted/filter copy of data goes out of sync with the source data. To line things up correctly, the sort/filter needs to be re-applied.

To do this normally, you would call refresh() on the arraycollection, but this also broadcasts a refresh event. What I want is to update the sort/filter without dispatching an event.Having looked into the ArrayCollection class, I can see it is extended from ListCollectionView. The refresh function

public function refresh():Boolean
{
return internalRefresh(true);
}

is in ListCollectionView and it calls this function

private function internalRefresh(dispatch:Boolean):Boolean
{
if (sort || filterFunction != null)
{

[code]....

annoyingly, that function is private and so is unavailable to and class that extends ListCollectionView. Also, a lot of what is in the internalRefresh function is private too.Does anyone know of a way to call internalRefresh from a class that extends ArrayCollection? Or a way of stopping the refresh event from being dispatched when refresh is called?

View 2 Replies

Flex :: Charts - AreaChart Gradient Fill Not Applying Ratios Correctly

Sep 27, 2011

When doing a gradient fill on an area chart, the gradient ratios are used only between the min and max of the chart. The area below the min is then filled with the last color in the gradient.

To make sure that it was using the ratios only between the min and max I inserted a zero (0) into the chart and the gradient expanded to the full height. I also checked the gradient values by creating a with the gradient fill.

How do i get the ratios to be effective through the entire fill not just between the min and max?

View 1 Replies

Flex :: Applying PaddingRight To Grid Column Not To Grid Header?

Mar 31, 2010

Whenever I add paddingRight to a column in the flex grid, it adds the padding to the header as well.Is anyone familiar with how I can add paddingRight just to the column and not to the header? Below is the column code where I was specifying the padding.

<mx:DataGridColumn width="60" headerText="Type" dataField="Grade" headerStyleName="headerLeft" textAlign="left" draggable="false" resizable="false" headerRenderer="GridHeaderRenderer" paddingRight="5"/>

View 1 Replies

Making A Cube Menu?

Sep 18, 2009

making a cube menu like this? [URL] post here or mail me to evilmini_me_2002@[URL] or add me on msn: metilic@[URL], ty for your time

View 1 Replies

ActionScript 2.0 :: Loading A .swf Into A Red Cube?

Feb 10, 2009

I want to load a completely different .swf into a 50 *50 Red cube which is called a.swf.However i want the newly loaded .swf which is called b.swf to appear in a.swf as its background only so you can still see the red cube .When i try to do this all i get is that the new b.swf completely replaces the old a.swf which becomes completely invisible.I have tried using masks and also holders for the new b.swf but still can not acheive my goal.

View 1 Replies

ActionScript 2.0 :: 3d Cube That Can Build Itself?

Sep 9, 2009

I got the nice 3d cube from eric Lin. [URL]It would be very cool if the cube can build itself, before it starts rotating. So that 6 faces(left on the stage) transform to one cube(right on the stage).

View 0 Replies

ActionScript 3.0 :: Add Interaction At The Cube?

Jul 6, 2010

i'm trying to use for the first time papervision.I'm able to add a cube to the scene. now i wanna add interaction at the cube. i try with

Code:
InteractiveScene3DEvent.OBJECT_PRESS

but it doesn't do anything.another thing that i've not understand is that if delete this instruction:

Code:
renderer.renderScene(scene, camera, viewport);

i don't see anything.This is the code:

Code:
import org.papervision3d.view.Viewport3D;
import org.papervision3d.cameras.*;
import org.papervision3d.scenes.Scene3D;

[code]...

View 5 Replies

ActionScript 3.0 :: Image Cube From XML?

Oct 3, 2011

A cube that will rotate automatically .Images from XML will be shown to each side of the cube and each side to have a url so when you click on it to redirect you to a website.More specific, something like this might help you understand more clearly.. 3D Cube Banner Rotator in the activeden(I can't post a URL yet).Without texts,shadows etc.

View 5 Replies

ActionScript 3.0 :: Create A Cube Using It In CS4?

Aug 17, 2009

I'm new to 3D in Flash, I've worked for a while with basic CS4 3D functions (rotation flat objects basically).

Now, I want to create a cube dynamically and start working with it.Since I don't want to start messing around with Papervision or Away3D for a basic cube.

I wanted to know how I can create a cube using AS3 in CS4?

View 11 Replies

IDE :: 3D Cube Flip Effect?

Feb 1, 2010

I need to make a 3D cube menu. All 6 faces should be a link to another scene (or basically just a link to anything). For rotation wise, it should turn towards the left when the user click and drag the cursor from left to right.[URL]

View 1 Replies

ActionScript 2.0 :: Cube With Round Edges

Sep 24, 2009

I want to make a rotating cube with rounded edges.I already saw lots of cube sources, but i need one with rounded edges.My maths actionscript is not so good.

View 1 Replies

ActionScript 3.0 :: Use StartDrag With A Movieclip That Contains 3D Cube?

Dec 20, 2009

I'm trying to use startDrag with a movie clip that contains a 3D cube (comprised of 3D planes). It only moves the face of the cube, but not the other sides. Can one use startDrag in 3D space, or is there another method?

View 2 Replies

ActionScript 3.0 :: Update ChildIndex Of 3D Cube?

Jun 28, 2010

I've got a 3d cube that rotates but when the the front side of the cube is in the back during the rotation, it blocks the view of the back side because it's child index is still higher. Is there anyways around it, I tried detecting the sides coordinates by using globalToLocal3D but the z property is always 0. below is my code, just copy and paste if and you'll see what I mean

var cube:Sprite;
var frontSide:Shape;
var rightSide:Shape;
var leftSide:Shape;

[Code]....

View 1 Replies

Actionscript 3 :: Add A Movieclip On A 3d Cube And Have Interaction With It?

Apr 6, 2012

I created a rotating cube using the below code and add bitmaps as sides of the cube. I was wondering if it's possibly to assign movie clips as sides of the cube so I can have some interaction with them.

[Code]...

View 1 Replies

Flash :: Fix Rotations In A Rubik's Cube?

May 16, 2010

I'm trying to create a Rubik's Cube in Flash & Papervision and i'm really stuck here. I'm up to the point where i can rotate any plane of cubes once, but after that...it's messed up because all local coordinate systems are messy.I dont really know where to go from here, can anybody give any advice on what do do? I'm not looking for 'read about transformation matrices', i know i should (and i am doing that), but i'm not really sure what to look for.My idea is that, after each rotation, i should fix each coordinate system of each cube again, but i have no idea how. Any hints on what i want to achieve (in words)

View 3 Replies

Flash :: Nothing Happens When Try To Render A Cube Using Away3D?

Aug 11, 2011

when I try to render a cube using Away3D + Molehill, I only get a white default screen, I followed the instructions here: hhe only thing I did not do, was the part that talks about the patch, cuz If I do that I get errors like when I try to import the Sprite class, for example.Im using FB 4.5.!

This is my code:
package
{

[code].....

View 1 Replies

Actionscript 3.0 :: Cube Crash Like Game

Jan 31, 2012

I'm trying to build game like [url]... in actionscript 3 (flash builder).I am able to create an array of bricks (that are visible on game start), but I have no idea how to find a group of bricks in array.[code]...

View 1 Replies

ActionScript 3.0 :: [PVD] : Change The Size Of A Cube?

Jan 27, 2009

I have a Cube, and I want to change it's width depending on it's container width...

ActionScript Code:
private var _sceneWidth:Number = 500;
override public function set width(value:Number):void

[code]....

View 1 Replies

ActionScript 2.0 :: Rotating Cube (from Ericlin) On The Mac

Oct 28, 2009

I got a problem with a nice rotating cube(from ericlin) on the mac. This is the link: [URL] When i click outside the swf movie(in html) the cube becomes nuts and rotates very very fast. I only have problem on mac. I already tried things like this, but no succes

[Code]....

View 0 Replies

ActionScript 3.0 :: Rotate My Cube Like In Appendix?

Sep 20, 2010

Ive created very similar cube in papervision except bitmap on walls.how can i rotate my cube like in appendix?

View 2 Replies







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