This is a discussion on "Converting file to Flash" within the Flash & Multimedia Forum section. This forum, and the thread "Converting file to Flash are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Converting file to Flash
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Converting file to Flash
I had a file which is this:
(NamedView -186352,183508 265712,-66188 Initial) (View -186352,183508 265712,-66188) (Background 0) C 3 P 5 0,0 0,122880 122880,122880 122880,0 0,0 P 37 -12587,58659 -13906,73739 -17822,88362 -24217,102083 -32896,114486 -43596,125195 -55992,133884 -69708,140289 -84328,144217 -99407,145547 -114488,144241 -129114,140336 -142840,133953 -155250,125284 -165967,114592 -174666,102203 -181082,88492 -185022,73875 -186364,58797 -185070,43715 -181177,29086 -174804,15355 -166145,2938 -155462,-7788 -143080,-16496 -129374,-22924 -114760,-26875 -99683,-28229 -84600,-26947 -69968,-23065 -56232,-16704 -43808,-8054 -33074,2620 -24356,14995 -17917,28696 -13955,43306 -12588,58383 P 4 142892,-6950 204332,115930 265772,-6950 142892,-6950 (EndOfDWF) I had to rewrite this file in flash. Is their and easier way to rewrite this file instead of doing all these shapes separetly?This file that you are looking at is a CAD file. It starts with the initial view and then you have all the coordinates for the shapes on the rest of the page. The p's stand for polyline and the number next to it is the amount of points. So the first is a square with 5 points, the second is a circle with 37 points and the third is a triangle with 4 points. I need to rewrite this so that all those shapes are on the same file. Does that make any sense? |
|
|
|
|||
|
Re: Converting file to Flash
...What?
I have...No idea what any of that means. |
|
|||
|
Re: Converting file to Flash
That whole file is just x,y coordinates. The top part(view) is the stage. 2 sets of coordinates and it is a rectangle. All the other coordinates are separated by P's and next to the P's are the number of points. The 1st set of points makes up a square,2nd set a circle and 3rd a triangle. I just need to know how to rewrite this so that all the shapes are on the stage at once.
|
|
|||
|
Re: Converting file to Flash
I'm sorry. I know nothing about this. I'll try and look around google or something, but I have no idea where to even start with stuff like this. lol
|
|
|||
|
Re: Converting file to Flash
Here is what I have already. I had to create and Array which is in the test.txt file that I included and I tried to write the script for this but it is not working and that is also included. Do you have any idea where I am going wrong?
|
|
|||
|
Re: Converting file to Flash
Here is a new text file that I have written up in an easier format.How do I write a script to put that array into flash 8. I want to be able to import that text file and flash draw those shapes.
|
|
|||
|
Re: Converting file to Flash
You need to use XML to call in the .txt file and then withing flash you can manipulate the .txt file (which I would reccomend converting to a xml file and labeling everything...to bring in the XML file and put it into an array it would look like this:
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: Converting file to Flash
I am trying to avoid rewriting these text files in XML. Is XML the only way to handle these arrays? I have been getting mixed answers about how to set up an array. Its about 50/50 between XML and delimiters.
|
|
|||
|
Re: Converting file to Flash
I can't really comment on that as I have only used XML for everything I have built. But, then again - it was nothing like what you are trying to do.
Sorry I can't be much help on this one...
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: Converting file to Flash
I am on the same page as you. I have never done anything like this either hence why I am having such a problem. Thanks for the help that you were able to give me.
|
|
|||
|
Re: Converting file to Flash
Ok so I have this txt file which I have included in this message and the file is nothing but x,y coordinates. I am wanting to import this file as an array and then have flash draw it. How is this possible?
|
|
|||
|
My hair is falling out as we speak!
I have a txt file that I am reading into flash 8 and having flash draw the objects. I included a txt file, a master fla. file and the actual file that I am working on(test.fla.). The master file is what the txt file should look like. Can someone look at my script and see where it is going wrong. I keep getting a mesh of shapes and it is driving me crazy. Thanks
|
![]() |
| Tags |
| rewriting file |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting Word Document to PDF file. | akshitshah | Scripts and Online Services | 5 | Jan 8th, 2008 07:25 |
| [SOLVED] converting flash to html | Posie | Starting Out | 3 | Dec 2nd, 2007 20:04 |
| putting flash into .png/.psd file | afowler | Flash & Multimedia Forum | 4 | Sep 28th, 2007 17:00 |
| Why is my Flash file so big? | BlackReef | Flash & Multimedia Forum | 9 | Jul 18th, 2007 15:22 |
| Is there anyway around this? Every Flash file I build gives | courtjester | Flash & Multimedia Forum | 3 | Sep 24th, 2004 23:06 |