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?
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?
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.
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.
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)
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]
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
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.
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.
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?
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?
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?
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.
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.
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).
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.
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?
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]
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.
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?
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;
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.
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)
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.!
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]...
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