ActionScript 2.0 :: How To Convert 2D Object To 3D
Apr 26, 2003I am new to 3D in Flash...I made a Capsule and I want a left perspective for this. How do I go through this...? How can I make an 2D object 3D...
View 4 RepliesI am new to 3D in Flash...I made a Capsule and I want a left perspective for this. How do I go through this...? How can I make an 2D object 3D...
View 4 RepliesAllright, i receive a string and want to convert it to object. here a test that i have made:
[code]....
this work pretty fine... but i am receiving the object property as follow: "{a:'test',b:'testAgain'}" How can i easily convert it to object properties?
How to dynamically add attributes to an object and convert that object into xml in Flex/Actionscript?
View 1 RepliesI was curious what libraries people are using to convert xml into objects. I found XMLtoObject.as but it seems to be choking on me. pixlib might do the job for me but their server seems to be down.
View 5 RepliesThe coding language is Java.I have a ByteArray embedded in ActionScriptObject.(Smartfox Server)I want to convert it into ByteArray.The idea is to save it as an image.This a sequel to the post --> Convert Byte Array from Action Script to Image in Java and save it
View 2 RepliesI have a working s3 uploader in actionscript that uses the FileReference class so a user can browse for files to upload when he/she clicks on the upload button. I have a web application and I want the user to have his/her configuration saved to s3 as an XML file when they hit the save button, so the "save" button will trigger the upload. However, I cant figure out a way to add the XML file to the FileReference variable I create. I was looking at the File class but that appears to be only usable in AIR. Is it possible to create a FileReference object based off of an XML file that actionscript creates within the application without browsing for a file using FileReference.browse(); ?
View 1 RepliesI am wondering if it is possible to convert an Object name into a string anf then remove an element from the string so I am left with just the number I can use and pass as a variable. This is a stripped down version of the code
[Code]....
If I set the rotation for any object on the stage, flash renders it as a 3d object, even if I set the rotation to 0 like this..[code]3d objects render differently and look fuzzier when you look at it dead on than when it is rendering as a 2d object. How do I convert the 3d object back to 2d so that I get the better quality 2d rendering back?
View 1 RepliesHow can I convert a Sprite with Graphics commands, such as lineTo() and drawCircle(), into a SVG? It would similar to what PNGEncoder does, except the output would be SVG.
View 1 RepliesI am using the following code to create an array of grid coordinates. After pulling my hair out for quite some time, I did a trace (typeof) and found out that the coordinates are going into the array as objects. Obviously, I need numbers. Does anyone know how to convert the array values to numbers instead of objects? (as you can see, I wrapped my push command with the Number() operator, but it still turns out to be objects!)
[Code]...
Is there a way to convert the XML object into a simple object? I'm parsing a string into XML and I realize that in itself is an object, but I want an object that doesn't include the functions/properties related to XML itself (appendChild, attribute, etc).
The problem is that I want to pass the XML data (in object form) to Javascript via the ExternalInterface, but I can't seem to pass anything more complicated than a simple object.
I am using the following code to create an array of grid coordinates. After pulling my hair out for quite some time, I did a trace (typeof) and found out that the coordinates are going into the array as objects. Obviously, I need numbers. Does anyone know how to convert the array values to numbers instead of objects? [code]...
View 9 RepliesI need to get the value of the item clicked and the name of the columns.
for each(item in colunas) {
var itemok:String = item.dataField;
Alert.show(''+datagridlist.selectedItem.itemok); // show value of column
[code].....
Convert a string from input to its object [code]...
View 1 RepliesI'm trying to turn an string into an instance name.
stage.focus = ["box_"+[i+1]];
this gives me back = box_2;
but I need it to be an object not a string.
In as2 I could use eval. How do I do it in as3?
In AS3, I want lo load a file text with URLLoader. In the file text I have the following string: {a:1,b:"string",c:["one","two"]}
Is it possible (once loaded) to convert it to an Object?
Is there any way to convert an object into an XML element in AS3?
I found this tutorial to serialize them:[URL]... But I also need a way to unserialize to get the original object (with its own properties) and ready to stage.addChild
I am trying to take data that I have extracted from a ZIP file in Actionscript, then convert it to a File object so I can write it to the documents folder for my air app to use.
View 2 RepliesI am writing a script in which i want to do collision detection with Bitmap. Actually i took the script from book. I am using Loader class instead of Embed tag because i am using Flash IDE CS 5. If you see the code then everything is fine except one thing. That in hitTest() method i am using Loader instead of Bitmap. So it gives me error that parameter type should be Bitmap. Now my question is how can i convert Loader object to Bitmap so i can use it in my hitTest() method. Here is my code
[Code]...
Anyone can teach me how to convert an array to object or to a sprite.
View 2 RepliesWhat is happening is, when I convert any object to any type of symbol, it disappears on my stage. It tests fine, but the symbol is invisible. This makes it difficult for me to see the overall design. Last time there was a folder that was just filled with about 10k blank files somewhere in the preferences for flash, but I can't seem to find it to delete those random files/ that folder. I'm on a Mac, and uninstalling/reinstalling flash does not work.
View 14 RepliesI have a set of 50 PNG image slices (cross sections) of a brain that I would like to stack together to re-create a 3D object (the whole brain) that can be rotated, zoomed inside a webpage. I will need to create the 3D object? Can I use Adobe? What will the file format be for the completed 3D object, does it need to be .3DS? And what web programming language do i need to display this 3D object once I create it? Can I use javascript to code the webpage interactivity part (zoom, rotate in 3 axes)?
View 2 Replieshow to turn that "Drawing Object" thing off! I cant even fill it in! (the thing i draw) Im using Flash Pro CS5
View 1 Repliesso I have a variable containing a date object. I want to convert it to a string in this format: dd/mm/yyyy. How could this be achieved?
View 2 RepliesHow to convert flex date object to sql date and time, I am using AMFPHP to connect with mysql.
View 2 RepliesTrying to write a function that will play a sound through a small FX (sound) class I made. The sound that I want played is passed in through a variable. I don't want to write a different function for every sound, so I've named the sound linkage class the same name as the name of another object in an array. However, it looks like I'm trying to pass the name of something off as an object, which won't work and I'm getting this error:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
Can I convert a 'name' into an object (of the same name)?
conversion of htmlText ( which contains all the formatting info ) to an equivalent TextFormat object.. so that I can transfer the htmlText info ( with formatting ) to a TextFormat object and then apply them to any textfield..
You may wonder why this approach when it can be done directly using the htmlText? Cos I am trying to manipulate the text field by resizing it ( with a user-controlled handle )..It works fine when I use normal text, but when I use the html=true, the resize seems to go haywire... ( if any one has tried this earlier.. I would like to hear about getting around this )
I need to apply the formatting at the same time make it resizable ( by user ) as expected.. which could be done if the html formatting info can be applied as a TextFormat object to the text field.. rather than set the htmlText="someFormattedText".
In short, I am looking for a parser that would read the htmlText info and convert it to TextFormat object(s).
Working on AS2 - Flash 8.
I found this great rotator on Flashkit. [URL]. Love the user interface. Unfortunately it is using FlasVars in the object code to load images. That won't work for me, and I would prefer to load subSWFs. I can't figure out what I need to do to convert it.
<param name="FlashVars" value="imageOne=image1.jpg&imageTwo=image2.jpg&ima geThree=image3.jpg
Code:
//This is needed in order to take advantage of the tween function
import mx.transitions.Tween;
//This hides the 3 grow bars from sight
TimeBar_mc1g._alpha = 0;
TimeBar_mc2g._alpha = 0;
[Code] .....
I made a flash effect for my friend's site and he won't let me get the flash back after a fight. I can see the effect on the homepage of his website. Is there any way I can get the flash to an fla file on my computer? Is there any way I can find the swf file on his websites system and convert it to an fla?
View 2 RepliesI'm using zend_amf and flex. My problem is i have to populate my advance datagrid using array collection. this array collection have a children.[code]...
View 1 Replies