ActionScript 2.0 :: Use Some Raw 3d Coordinates From A Text File And Display Them Joined Sequentially In A Wireframe Model?
Feb 20, 2004
I'd like to be able to use some raw 3d coordinates from a text file and display them, joined sequentially in a wireframe model. Then be able to rotate, scale etc the resulting model. The coordinates aren't from a 3d drawing package but rather measured - therefore each point is literally assigned three numbers, in a tab delimited file. With a large number of points (i.e. over 100) is there a way to load in the file and then generate the resulting model?
View 2 Replies
Similar Posts:
Aug 13, 2009
I'm working on a client's website. I use loaders to load various images and then I add them sequentially to the display list. These images include a big (BIG, ie, 6000x1500 , 220kb image) background image.. All of the images being loaded are PNG.. The site is fine and the images are fine/show up on a majority of browsers. However, after trying to view the flash file (at a .swf extension -- not embedded into html yet) on IE6 and on Chrome on only ONE of my laptops, the background .png does not appear and does not seem to have be loaded at all.
I haven't assigned loader listeners (i.e, there is no preloading).. Does the loader class have some sort of size restriction? I think not because it is working on some browsers and not on others. Otherwise, how could the actual PNG be at fault? I've temporarily fixed the problem by importing the background into my library and calling it from the actionscript but I would definitely prefer to load it dynamically or at least know why it is not happening as expected on some browsers/in some cases.
View 1 Replies
Mar 16, 2007
how to preload sequentialy thumbnails from xml file ? i tried numerous things and cant make it to work... my code looks like this
[Code]...
View 14 Replies
Oct 7, 2009
I have mashed a setting somewhere that put the stage in wireframe preview mode and I can't seem to find where the setting is to change it back. I THINK I have checked every setting.
how to change this back? It's a little difficult to work with images when all you see is an outline of the image's dimensions.
View 1 Replies
Nov 20, 2010
I'm found the site with the monkey on the the flash thing and all it shows is a name, email and something else and I used it and it works by including a txt file and displaying text from that file as putting down this information
name.text = this.name;
and I can't find the site anymore to get help.I want to know how to include a PHP script that shows this information like this
text=something I need&username=My Name&email=something@website.com
I want to show this stuff on the flash but every time I execute by using it as localhost/test.php, it will show a syntax error.
View 7 Replies
May 12, 2008
loadVariablesNum("testimonials.txt", 0);
gotoAndPlay("load");
This code works perfect when testing, and it works perfect viewing the SWF, but when you view the HTML file with the SWF embedded, it doesn't display the text file content.
View 5 Replies
Nov 2, 2011
I have a dynamic textfield being populated with an xml files' content. I then have a css stylesheet loaded into format the text. This all works great, but what doesn't work is the ability to bold some of the words in that text. I have both the regular and bold versions of the font embedded into the swf, I can test out just a bold block of text and it works fine. The css is also working as it will change the size of the text that I tell it to. Everything is working, but for some reason I am not able to get the bolder version of the font to display in the same text box as the regular one. I have also tried to change fonts but had the same outcome.
View 2 Replies
Feb 17, 2003
I have an object that moves when the arrows are pressed but how do i display the coordinates of the object, x and y? I tried
this.x=this.x
this.y=this.y
and then two dynamic boxes called x and y but it doesn't work!
View 5 Replies
Apr 2, 2010
I wanna generate a random triangle with coordinates, which shows the arcs of each corner in actionscript 2.0 with flash 8.0.
View 1 Replies
May 27, 2010
i'm trying to trace the x and y coordinates from within a sprite. i've added a rectangle to the stage:
var rect:Rectangle = new Rectangle(10, 10, 200, 200);
addChild(rect);
rect.x = rect.y = 100;
adding a Mouse_Move event to the rect, i can trace mouseX and mouseY to receive the coordinates of the stage while moving over the rect, but how do i get the local x and y coordinates? so if i mouse over the very top left of the rect sprite, the mouseX and mouseY return 10 as the global coordinates, but how do i make it return 0 and the local coordinates of the sprite?
i assumed localX and localY was what i was looking for, but this doesn't work:
function mouseOverTraceCoords(evt:MouseEvent):void
{
trace(mouseX, mouseY, evt.localX, evt.localY);
}
View 3 Replies
Feb 24, 2011
Within my component, I'm drawing some rectangles as below:
[Code]...
I need to display a custom tooltip for each rectange when the mouse cursor is hovering over it.
How can I do this? I'm using the MouseMove event to track when the cursor moves over these coordinates (that part is working), but when I change the tooltip text it's not refreshing
private function this_MOUSE_MOVE(event:MouseEvent):void
[code]...
EDIT: The problem seems to be with the following line:
ToolTipManager.destroyToolTip(_myToolTip);
If I comment out the preceding line, it will display the new tooltip, but it will keep creating new ones and the old ones never get removed. But if I add that line, it doesn't add any tooltips! Is the code not being executed sequentially, i.e., is the code to remove the tooltip somehow getting executed after the code to add the tooltip?
View 1 Replies
Jul 29, 2011
When tracing the mouseX / mouseY or localX / localY coordinates of a display object, why does x start at 1 while y starts at 0? For example, I've drawn a simple 400 x 400 pixel sprite onto the stage with a MouseEvent.MOUSE_MOVE event listener that calls a handler function to trace the local coordinates of the mouse. The first, top-left pixel returns {x:1, y:0} and the last, bottom-right pixel returns {x:400, y:399}. Shouldn't both the x and y start and end with the same value? I'm not sure which makes more sense for a the first mouse coordinate (either 0 or 1) but it certainly doesn't make sense that they are different?
[SWF(width = "1000", height = "600", backgroundColor = "0xCCCCCC")]
import flash.display.Sprite;
import flash.events.MouseEvent;
var darkBlueRect:Sprite = createSprite();
darkBlueRect.x = 23;
[Code] .....
View 1 Replies
Mar 16, 2011
Let's assume I have an Image that's used a button. By default, the image has no border around it. Clicking on this Image will cause another component be displayed beneath it or next to it. When the second component is displayed, I want to draw a joined border around the Image and the second component.
The second component would not be visible by default. It would only be visible after clicking on the Image by using the popupManager, PopUpAnchor, setting the visible property, etc.
Example before clicking:
+--------------------------------+
| |
| XXX <-- My Image |
| XXX |
| |
| |
| |
| |
| |
| |
| |
+--------------------------------+
Example after clicking:
+--------------------------------+
| +---+ |
| |XXX| <-- My Image |
| |XXX|_______________ |
| | | |
| | My Second | |
| | Component | |
| | | |
| | | |
| +-------------------+ |
| |
+--------------------------------+
How difficult would it be to create something like this?
View 2 Replies
Nov 1, 2010
I have a long movie 22 000 frames at 30 fps so I had to split it into two parts. I have joined them with AS. Can I have a slider that scrubs the timeline from part1 to part2 of my movie? Is this possible?
View 7 Replies
Dec 16, 2002
How to display a .txt file in flash and also to display an xml file in flash.
View 4 Replies
Oct 4, 2010
I have multiple movieclips (they all have instance names) and i want to display a text loaded from a xml file. I have loaded the xml file and it work fine but instead of trace the code i want to "eco" display it into my flash file when i click on a movieclip. Here's what i have done until now.
Code:
import flash.display.*;
import flash.net.URLRequest;
import flash.events.Event;
[Code]....
View 1 Replies
Apr 3, 2010
how i display the coordinates of a random triangle in a graph which ranges from -10 to +10 in XY axis with the points like A(2,1) etc with arcs in each corner, in actionscript 2.0
View 1 Replies
Feb 18, 2012
found that code to display html format text to dynamic textfield in as3:
var url:String = "http://edeejay.dyndns.org:8000/currentsong?sid=1";
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
[code].....
View 1 Replies
Feb 18, 2012
I've been reading about the security restrictions for file uploads in Flash Player 10.According to the FileReference docs for upload(), the upload does not have to be triggered by a user-initiated action (the browse() does, but that's another story). If it did, that would force an awkward user experience for multi-file uploads, since only one upload can occur at once -- so the user would have to click (or press a button) once per file to initiate the upload, but only when the previous file had finished uploading.
[Code]...
View 2 Replies
Dec 13, 2011
I have made a 3D model of a cube and imported it into Flash Builder with preFab and away3d as follows:
package {
import away3d.cameras.HoverCamera3D;
import away3d.containers.*;
import away3d.events.MouseEvent3D;
import com.greensock.TweenLite;
import flash.display.Sprite;
[Code] .....
The 3D model of the cube consists of 6 sides with each their own texture (jpg). You can find the script of the cube in the attachment. Is it possible to rotate one of the 6 sides (or one of the 6 textures) of the cube with a tween from the script above? So is it possible to do tweens into an external file (attached file) from another file (the script above)?
View 1 Replies
Jul 21, 2010
I am trying to display an HTML formated file in text area component using Action 3.0. The following script does not generates compiler errors, each function seems to be executed yet the file is not displayed. When trying the same code with myCV.txt and myCV_TA.text = (loader1.data) the text file is displayed OK. Flash MX and actionscript 2.0 had handled that differently but with success?
-----------------------------------------------------
var loader1:URLLoader =new URLLoader();loader1.addEventListener(Event.COMPLETE,displayText);
textload("myCV.html");//---------------------
function textload(file:String){ loader1.load(new URLRequest(file));trace("in textload");}
function displayText(e:Event){ myCV_TA.htmlText = (loader1.data);trace("in displaytext");}
//-----------------------------
View 1 Replies
Oct 14, 2008
I am trying to get a link to work in the body text of a text block. I am using CDATA but can not get this to translate to html in the flash. I have checked that the 'Render text as html' box is checked.
Below is my AS and below that is my XML
========================
xml menu stripped down
======================
function CreateMenu(menu_xml) {
var items = menu_xml.firstChild.firstChild.childNodes;
for (var i = 0; i < items.length; i++)
[Code].....
View 2 Replies
Nov 14, 2009
when the flash file reads text from a xml file, the font display is unclear. when the text is embedded in the flash, it appears clearly
problem in detail -
i am unable to resolve this problem despite my best efforts. see '~about.fla'. it has been decompiled from a swf file as the original source code was not available (can this be causing the problem?). the xml folder resides in the same folder as '~about.fla'. it contains 'about.xml'. you can download these files at [URL]
i discovered a problem - if you view 'about.swf' - when you click on 'history' link, you can see that the text is distorted. this text is read from the xml file. but is you click on the 'key people' link, you can see that the text appears perfectly. this text is embedded in the flash itself.
i have given the screenshots 'text is unclear.jpg' and 'text is clear.jpg' to further explain my query.
View 2 Replies
Oct 1, 2010
I'm trying to pull in dynamic text from a txt file and display in a web page. The text works great when I view the .swf, but when I place the .swf in a web page the text no longer appears. I'm using loadVariables("text.txt", ""); in my ActionScript and text.txt is located in the same directory. I have embedded the fonts and I'm using Flash CS5 and I have selected Classic Text/Dynamic Text.
View 2 Replies
Feb 13, 2011
I downloaded a flash template that includes a text file that it uses to load the content. So, I opened the text file and started to make changes to certain text and when I view the changes I noticed that certain letters and characters are not being displayed such as the letter w and the question mark ? and other letetrs.here is an example of the text I included in the text file:
&privacy_title1=Privacy Policy&privacy_txt1= what information do we collect?
We collect information from you when you register on our site, place an order or fill out a form.When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address or phone number. You may, however, visit our site anonymously.As you can see the w is missing and the question mark and some other letters.
View 5 Replies
Jan 28, 2007
i am unable to resolve this problem despite my best efforts. please see '~about.fla'. it has been decompiled from a swf file as the original source code was not available (can this be causing the problem?). the xml folder resides in the same folder as '~about.fla'. it contains 'about.xml'. you can download these files at discovered a problem - if you view 'about.swf' - when you click on 'history' link, you can see that the text is distorted. this text is read from the xml file. but is you click on the 'key people' link, you can see that the text appears perfectly. this text is embedded in the flash itself
View 2 Replies
Apr 10, 2007
I'm new in the forum,i want to make a photo gallery which loads images, thumbnails and description from XML file , no problem with that [url]... i made the Gallery in one column, want to add dynamic text field beside each thumbnail in order to display description[code]...
View 3 Replies
May 6, 2009
I want to load an external text file, and display loading percentage in flash,so I could show user how far loading is completed.And the problem is I can see progress in trace window,no progross message displays in the textfield,only when my text is completly loaded,the whole text shows in flash.
[Code]...
View 5 Replies
Oct 29, 2010
Im trying to get a button when pressed to display text from an external .txt file (which I've done so far), but (1) I want it to only display certain paragraphs (the actual dialogue) of this text and (2) every time I click the button it should replace the old text with the new (like in any RPG). Now I asked a former lecturer for help and he gave me a link to a website and gave me a hint of what to do, but seeing as I was recently voted #48 on Forbes worst 100 programmers of all time (actually I haven used AS for 5 years) so I thought someone could explain it to me in a much clearer fashion? PS: My lecturer said: When you click the button to add text to the textfield but you ewant the previous text to be cleared the first thing you do is empty the box ( myText.text = "") then fill the box again with your new text..
[Code]...
View 3 Replies
Aug 10, 2011
I am using this random code below to choose a quote to display and I want to move the quotes list to a text file.
Code:
quotes = [Fish are the last to recognize water.","I am my brains publisher.", "Every tool carries with it the spirit by which it has been created.","Curiosity is the mother of intelligence.","Thinking is drawing in your head.","A person without imagination is like a teabag without water.","Realism is a corruption of reality.","Its always better to be looked over than to be overlooked.","The hardest thing to see is what is in front of your eyes.","The soul has no secrets that conduct does not reveal.","Creativity is the defeat of habit by originality.","Those who cannot remember the past are condemned to repeat it.","If you want to get lucky... it pays to get ready" ,"Realism is the corruption of reality","I'd give my right arm to be ambidextrous.","Music is noise submitted to order by wisdom.","God...invented the giraffe,the elephant,the cat.He has no real style.He just goes on inventing things.","The person you love is 72.8% water."]
qNum = Math.floor(riddles.length*Math.random());
partThree = quotes[qNum];
mainTxt = """+partThree+""";
View 1 Replies