ActionScript 3.0 :: Papervision - Add Some Text With Line Next To Cube?
Apr 14, 2011How can I position a bit of text (or text as image) next to a cube?
View 1 RepliesHow can I position a bit of text (or text as image) next to a cube?
View 1 RepliesI'm following the tutorial "PAPERVISION3D Basics Tutorial". I'm developing on mac and i've setup the global class path in the ActionScript 3.0 settings in the preferences panel like this:
[Code]...
I'm playing around with papervision and i've followed this tutorial:[URL]..I wrote the code as the tutorial but i have some errors.
[Code]...
I've flash cs4 and i've downloaded papervision 2. I followed the tutorial but i have this errors...why?
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]......
I coded my Papervision 3D .as file. I am getting errors for the section of code that creates variables for the materials that are images.
package {
import flash.events.Event;
import org.papervision3d.materials.ColorMaterial;
[code].....
I'm at the moment trying to recreate a menu system that I found on URL... as you can see, the menu you get after you've choosen a language is a 3d menu rotating so its always looking at the cursor, but as you will notice, the motion has a little bit of easing to it, which I'm currently trying to recreate using the cube you make with the "Papervision3D 2.0 Interactive Cube" from GotoAndLearn();URL...and here is the code behind that drives the rotation:URL...Now, my problem is that I'm having a hard time figuring out how to create a tween effect on his, resulting in a bit out of sync rotation that slowly stops instead of just following my pointer in an instant.
View 12 Repliespackage{
import flash.display.Sprite;
import flash.events.Event;
[code].....
I am testing with scaling a cube, like so
Code:
private function growCube():void {
TweenLite.to(cube3, 2, {scaleX:1.5 , scaleY:1.5, scaleZ:1.5} );
[code].....
I have successfully implemented the INTERACTIVE 3D Cube, but I can't seem to figure out how to create a rollover function properly, so that once the user rollovers a face, a title for the face fades in and when the user rolls out, the title fades out. I have done it by placing 6 movieclips on the stage and giving each face a rollover and rollover event, but once I rollover a face the title flickers.
View 3 Replieschange a cube's materialList at runtime in Papervision 3d?
I have a cube already drawn up with two different images on the front and back. When it's clicked, I want to change the image texture on the back and then spin it to show the recently loaded image's side. Spinning's fine, I'm just unsure how to change the cube's materialist.
currently I'm working on a tag-driven interactive image cube. It's almost done, but one thing doesn't work. I can't load my images onto the cube.
I'll give you the code:
PHP Code:
var externalXML:XML;
var picList:XMLList;
var bilder:Array = new Array();
[Code].....
I have a cube with a material on the front face. I'm trying to create a magnifying glass in 2D for the 3D cube. Can anyone offer a suggestion for how to achieve this? I was thinking I might try to find the UV under the mouse in an OBJECT_OVER InteractiveScene3DEvent and somehow get the bitmap from the material, mask it, and move it around in relation to the mouse position- mimicking a magnifying effect. How to do that, I have no clue.
View 2 RepliesI 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.
i was trying to put text in papervision but am having touble.
View 4 RepliesAnybody know how to create inputfield (that actually works) inside Papervision object or material? I've tried a few tweaks but haven't found a simple solution..
View 4 RepliesWhat is the best technique to apply anti-aliased text as texture on cube using papervision3d?
make dynamic textfield, convert it to moviematerial then apply it to the faces of cube. Design a bitmap using any picture editor and make a bitmapFileMaterial to apply on faces of cube.
in Flash CS4 I have static text like: Line1 and line2 It's in 9 point Arial Regular as a device font. If I set the line spacing below 3.9 the second line dissappears from the compiled SWF file. It still shows in the FLA file. The same thing happens at 6pt but NOT at 5pt or less.
View 1 RepliesIs it possible to load a text file using line breaks as a delimeter rather than having a &var= at the beginning of each line? Like by a for instance? I have a text file with about 1000 lines that I need to load/display.
View 5 RepliesWhen a Dynamic Multiple line text field is used in Flash CS3, it has a very annoying feature that auto inserts a line break at the end of inserted text. It also auto inserts a line break if no text is entered too.
I'm having a problem with this because the text is being saved from flash to a text file on the desktop. With every multi-line text field there's a nasty looking line break.
Any way of "turning off" this auto-line-break-at-the-end feature?
I'm attempting to add line breaks after the code I've included below. I know that I need to add a " " after the line of text, but I haven't had any success.
textField.appendText(""+ bldg.S11[i].Title.text())textField.appendText("Square Footage: "+ bldg.S11[i].SF.text())textField.appendText("Tenant: "+ bldg.S11[i].Tenant.text())textField.appendText("Status: "+ bldg.S11[i].Status.text())
i need to split a large text file into an array at line breaks so one array element = one line.i have tried the using "" in both match() and in RegExp but it doesnt work.i had the g and m flags on. tried the $ sign too.
View 8 RepliesI 'm trying to make it so an image will scroll with a specific line of text in a text field. I know that using delta of the scrollEvent will give me direction but everytime i try to increment and decrement the y value of the image the image doesn't follow the line of text perfectly it tends to "crawl" if you will.
[Code]....
I made a scrollbar, but now I have a problem, need to read the number of lines of Dynamic text field and if it is greater than x show the scrollbar and hide if is less. Like this:
if(text.instance>7){
scrollbar._visible = true;
}
else{
scrollbar._visible = false;
}
My problem is how do I count the total lines of dynamic text field after load a external text.
Is there any way to make line breaks when you load text into a dynamic text box, other than using html? And if not, could someone give me an example of how to do it using html?
View 12 RepliesI am trying to make a feed backbox for visitors on my website. I have made the editable text field and scroll bar and set all of my preferences, but when the typing reaches the border on the right of the text field it just continues to type further horizontaly. I can start a new line by pressing enter but I would like it to start a new line on its own when it reaches the boundary.
View 3 Repliesi have an xml file and i want my code in flash to read it line by line but its only showing the first line out of 5 lines.Below is the code:
var NigeriaNumber:Number;
var stateName:String;
var year:String;
[code].....
I have a simple text box with a UIScrollBar component added to it.
The text box properties are set to "input text, multi line.
The problem is when I want to change just one line of the text to a bold or a different color, the whole text box contents changes. I've tried different property setting for the text box itself with no luck.
i have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this
[Code]...
i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??
I am doing a webpage for my family's xmas lists, which I am using a flash template I found a year or so ago, and editing. Since finding the script, there is a new addition, and I need to fit another name into one of the circles on the page, which needs it to go under the other two names already there, but I cant figure out how to do this.
Quote:
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
flashmo_logo._visible = false;
[code]....
I've run into some problems with a combination of CSS and XML. It all loads fine, and works perfectly, BUT, when the text is loaded into a textField the text is placed one line down.
[Code]...