Actionscript :: Converting From Viewport3D To IUIComponent Using Papervision3D & Flex Together?

Aug 8, 2011

I'm developing using Eclipse Indigo, Flex 4.5.1, Papervision 3D 2.0.883. Basically what I'm trying to do is get this papervision3D/Flex example to compile so I can use it for a movie viewer on my own site. I've had to make a bunch of changes to get it to work with Papervision 3D 2.0, so that may be part of the problem. My application spits out the following complaint when I run it in Flash Debugger:

TypeError: Error #1034: Type Coercion failed: cannot convert org.papervision3d.view::Viewport3D@2bf6df49 to mx.core.IUIComponent.
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()
at mx.core::Container/addChildAt()[code]......

View 1 Replies


Similar Posts:


Actionscript :: Get Mouse Z Coordinates On Flex Papervision3d?

Mar 17, 2011

I am working on panoramic scene . And I want to move a plane with cursor. When I move mouse, plane must be mouse coordinates. And I want to take plane 3D coordinates (x,y,z) expecially z-coordinate. I try below code. But it doesnt work correctly. Mouse and plane are not be same coordinates on screen. How I can do?

public class RayTracer
{
public static function getIntersection(viewport:Viewport3D, camera:CameraObject3D, normal:Array):Number3D

[Code]....

View 3 Replies

Flex :: Papervision3d - Design A Sphere With 8 Holes Around One Of Its Diameters?

Jun 22, 2009

I am a newbie to Papervision. I want to design a sphere with 8 holes around one of its diameters. How do I do it? How do I draw anything on a sphere in Papervision?

View 1 Replies

Flex :: Papervision3D Throws An Error When A 3D Object Is Clicked?

Aug 25, 2011

I am working on a game in which there are several Plane objects that the player can click. My main application class extends the BasicView class. I made this whole game as an ActionScript project and everything works fine when I run it as one.

Now I load this game in a Flex application. When added to the Flex application, it runs perfectly until I click somewhere at which point it throws the following error:

undefined
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[D:Omer

[Code]......

View 1 Replies

Actionscript 3 :: Access Planes "child" Nodes In Flex/Papervision3D?

Feb 23, 2010

I have mxml thingy, for example:

<mx:VBox id="isThisVBoxAwesomeOrWhat" width="500" height="500"
backgroundImage="@Embed('images/500x500.jpg')" verticalAlign="bottom"
includeInLayout="false"[cod

So, I have a Vbox names isThisVBoxAwesomeOrWhat that contains another VBox that containst two text fields.Now, further in the code I make a plane out of it so I can make a 3D object out of it, here is the snippet:[for i in totalPlanes]
...

var material:MovieMaterial = new MovieMaterial(isThisVBoxAwesomeOrWhat, true, true, true);
...
plane = new Plane(material, isThisVBoxAwesomeOrWhat.width, isThisVBoxAwesomeOrWhat.height, 10, 10);[code].....

So now I have my scene filled with planes made out of VBox composite as I wanted. I also have those planes in a linkedList, and what I would like to do now is to "SOMEHOW" access each individual VBox and it's composites for each individual plane.Something like this (obviously doesn't work! Just an example):

linkedList.node.data.VBox.VBox.Text[0]

so I could modify parameters on the fly. Or maybe I'm totally wrong on this and I should have as many Vbox'en as I have planes and id each individually. Whatever the case I can't figure out how to access children of the parent in this mxml example.

View 1 Replies

Error When Converting A Site From Flex 3 To Flex 4?

Aug 20, 2010

I'm moving a Flex 3 site to Flex 4, but when I run the application, it attempts to download a .swz file from Adobe, and gives the following error:

*** Security Sandbox Violation ***
Connection to http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/textLayout_1.1.0.604.swz halted - not permitted from http://localhost/Fl/CityGIS/main.swf
Error #2048: Security sandbox violation: http://localhost/Fl/CityGIS/main.swf cannot load data from

[code]....

Following this is an attempt to download the same file from localhost.Is there a way to configure the SDK to get these files, or an issue with the configuration of my application?

View 3 Replies

Flex :: Converting Videos On Fly?

Mar 15, 2011

I ask google about this,but didn't find anything usefull. Is there a way to creat web app in flex that will convert video to flv,after that video is uploaded to the server?Can this be done with flex,if can,do I still need to install ffmpeg on server?

View 2 Replies

Flex :: Converting A GUID To Base64?

Aug 4, 2009

In Flex, I have a GUID that I receive as input in the following format "as a string. How would I convert this to a string of Base64 encoded values?

Please note that we have to account for leading zeroes in each section of the GUID, for example, "0091AFBC-8558-482A-9CF6-64F1745E7AC1"

View 1 Replies

Flex :: Converting A String Into A CheckBox?

May 20, 2010

I have a string which is ultimately the id of a CheckBox.

What I need to be able to do is to access the CheckBox's properties from the string

var myCheckBox:Object;
var myString:String;
myString = "checkbox_1"
myCheckBox = Object(myString); ?!?!

... and then I'd need to get to myCheckBox.selected, and myCheckBox.label etc

View 2 Replies

Flex :: Converting Adobe AIR To Application?

Sep 20, 2010

We have a Adobe AIR desktop client which talks to a WAMP server. How can i convert this AIR app to a Flex app to be used in the browser.

View 2 Replies

Flex :: Flash - Converting IDs To Account Name

Nov 23, 2010

I am using Adobe Air to get data from SalesForce, and present it in a datagrid. I am using a query to get the data, and then put it into an arraycollection that is bound to the datagrid, this works correctly and the data is displayed. The problem is that I want to convert the Account Id in the Event to show the account Name. To do this I am using the following code:-

_serviceWrapper.query( "Select * From Event order by StartDateTime asc", new mx.rpc.Responder( eventQueryHandler, faultHandler ))}
protected function eventQueryHandler(qr:ArrayCollection):void {
var acctIdss:String = "";
for each(var contact:DynamicEntity in qr) {
[Code] .....

This works and displays the Account Name, the problem is that when I use this script and then Sync Changes to SalesForce all the records that have been displayed are identified as needing to be syncronised even if they have only been displayed. If I skip the function eventQueryHandler, and link my query to the OnQueryResult function then there is no problem, but only the Account Id can be displayed. How can I stop Air marking these records as having changed, or is there a better way to achieve this?

View 1 Replies

Html :: Converting Flex Application To 5?

Sep 7, 2011

I have a flex application to work on an iPad. What is the best way to convert this application?

View 3 Replies

Flex :: Converting DateField Text To Seconds?

Dec 19, 2009

Is there anything wrong with following snippet of code?

var d:Date = DateField.dateToString(myDateField.text,"DD/MM/YYYY");
testTextArea.text = d.getSeconds().toString();
Error: Implicit coercion of a value of
type String to an unrelated type Date.

View 1 Replies

Actionscript :: Flex Converting # Colors To Uint

Mar 12, 2010

I'm working with several components that take color as a uint, but the colors I have are in the format of "#161616". I'm not sure what the relation between the 2 types of colors are or how to go from one to another.It doesn't have to be an actionscript solution. I have only a small number of these colors, so can be done manually too.

View 4 Replies

Flex :: Converting VideoPlayer CurrentTime To String

May 17, 2010

I want to format the currentTime displayed by a videoPlayer component inside flex, something like : 8230.999 to something like 01:59:59:999 which is "hours:minutes:seconds:milliseconds". I tried different sets of codes but they can't get it to work because currentTime is nor a correct milliseconds time as it adds a floating 3 digit point to seconds;
So instead of : 2000ms it outputs 2.000

Here's the current MXML:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
[Code] .....

View 5 Replies

Flex :: After Converting A Pdf To Swf - Select Text To Highlight?

Dec 14, 2010

I have used a tool to convert a pdf to a swf but i need to be able to select and hightlight the pdf's contents. How would I do this using flex/action script?

View 1 Replies

Actionscript 3 :: Converting Object To String In Flex?

Feb 6, 2011

I've faced a problem converting an Object into String in flex . my object is mydropdown selecteditem and I want to convert it to string and show it on a label tag . I've tried ".toString()" and "as String" and "String()" but none of them worked

View 2 Replies

AS :: Flex - Converting Barchart To Image Without Rendering?

Oct 6, 2011

Is there a way to create a BarChart (in the background) without adding it to the current view? I basically have a chart that I need to convert to an image and add it to a PDF report (using AlivePDF).

View 1 Replies

Flash :: Converting A SVG Image Into Bitmapdata In Flex 4

Oct 25, 2011

I am working on a flex project, where I have to load a couple of SVG files and compare their pixels. To compare the pixels, I like to convert them into a byte array (BitMapData). I am able to create a bitmap data for a PNG image, but not for a SVG image.

View 1 Replies

ActionScript 3.0 :: Converting Mac Style Menu From Flash To Flex

Mar 4, 2009

I'm comfortable with Flash and actionscript, but relatively new to Flex. I would like to convert a mac style menu from Flash to Flex [URL] but I'm running into problem translating or a better word is figuring out a comparable component set.

View 1 Replies

Flex :: Converting HTMLText As Object And Move In Textarea

Jul 8, 2009

Is it possible to convert htmltext in object and move that object in textarea?

View 1 Replies

Flex :: Mxml - Converting A Custom Component To A Module?

Sep 25, 2009

How to take an existing custom component in Flex and convert it into a module? EDIT: What should be done in the mxml where this custom component is used? Should it be replaced with a to load the module? If yes, how to deal with code that uses instances of the components?

View 2 Replies

Flex :: Converting Button Icon Back To Image

Dec 5, 2009

I want to extract/read the button icon image as a Flex image component, then apply transform filters to it to make it black/white and then apply image as an icon to another button. So far I can get the icon out as an Object by doing this: var iconImg:Object = myBtn.getStyle("icon"); Not sure how to convert that Object to an image.

View 1 Replies

Flex :: EOF Error Encountered While Converting Bytearray To Bitmapdata

Mar 18, 2010

I am using [code]...

In the 4th line in the code above i am getting "Error: Error #2030: End of file was encountered." I checked the length of the pixels object which is 4 times the width*height of the rect object. Given that setPixels() functions reads unsigned int from bytearray and sets that value to pixels, I think it should work.

But I have no clue why this wont work. The pixels object is filled after RLE decoding of the data which i get from a server.

Is there any work around or any other method which I could try to use. The loader class wont work as the data that I get from the server is not in any of the recognized format.

View 2 Replies

Flex :: Converting Mxml Rect & SolidColor To Actionscript?

Mar 19, 2010

how to use actionscript over mxml for flexibility. I have this simple block of mxml that I'm trying to convert to actionscript, but I'm stuck half way though

<s:Rect id="theRect" x="0" y="50" width="15%" height="15%">
<s:fill>
<s:SolidColor color="black" alpha="0.9" />

[Code]....

What's the most efficient way to add the SolidColor in as few lines of code as possible.

View 2 Replies

Flex :: DateTime - Converting Seconds To Readable English

Mar 23, 2010

For example :
input = 360 seconds
output = 6 minutes
input = 86400
output = 1 day
Is there a built-in method for this.

View 2 Replies

Flex :: Move Images Into And Out By Converting Back And Forth Between ByteArrays

Jun 21, 2010

I would like to be able to move images into and out of Flex by converting back and forth between ByteArrays. I've been having some trouble with this, so I designed a simple test program, and even that I can't get to work. Here's the code I'm trying right now:

[Code]...

So far the process follows top to bottom: Click button 3, image displays, everything is going well. Click button 4, and I get "Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type." after the line "loader.loadBytes(myByeArray);" in the function button4_clickHandler. As far as I can tell I'm using everything as intended.

View 1 Replies

Flash :: Converting A Flex Component W/images To Bitmap?

Jul 28, 2010

I am trying to take images I am placing in a flex canvas component to a bitmap. I was able to get to the point where I'm not getting an error but then no image shows up and the image I save out as a jpg is blank. I imagine I'm not setting the bitmap data correctly but can't figure out what I am doing wrong.

Here is the code where I am converting it to a bitmap:

[Code]...

View 1 Replies

Flex :: Converting Nested ArrayCollection Elements To Another Class?

Feb 1, 2011

I have an ArrayCollection and each element is an instance of the TreeNode class (a custom class made by me) that has a "children" property which is an ArrayCollection of more TreeNode elements. That way, I have a tree of elements in an ArrayCollection structure:

tree = new ArrayCollection([
[new TreeNode(param1, param2, new ArrayCollection([
[new TreeNode(param1, param2, null)],

[Code]....

But my problem is: I need to have the same "tree" structure (it doens't need to be the same variable) filled with instances of another class. How can I achieve that?

View 1 Replies

Flex :: Viewing Flash Source Code After Converting .swf To .fla?

Mar 29, 2011

I converted a .swf file into .fla file using Sothink SWF Decompiler. I can open the file with Adobe Flash Professional CS5, but I cant see the source code. The only thing that I see is the timeline layers. I want to change the background picture of the Flash and save it as .swf.

View 1 Replies







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