IPhone Development, extract pos, rot, etc. in comma delimited format

Hello Everyone,
I'm working on an iPhone game, and the artists are supplying the animations in flash format.  I need to be able to extract the images, image positions, and image rotations in a comma delimited format as input to my iPhone OpenGL Rendering Engine.  Are there any tools that let you do this?
Perhaps this is a really basic question, but I am new to flash programming and would appreciate your help.  Thanks.

Extracting the stuff manually is probably what you will have to do, using File > Export > Image for each item. As far as getting the csv of each object's position you can do it in the code like this:
import flash.display.MovieClip;
//Add all objects you want in the array
var theArray:Array = new Array(item1_mc, item2_mc);
//Loop through each object and get its properties (code not optomized for real use)
for(var i:int = 0; i < theArray.length; i++){
    var theCurObj = theArray[i];
    trace(i + "," + "," + theCurObj.x + "," + theCurObj.y + "," + theCurObj.rotation)
Of course you will have to give unique instance names to every item on the stage for the above code to work.Once the above code runs you can then copy evertyhing in the output window into a new text file and save it as .csv
It would be nice if there was a progam out there that would do it for you but I don't know of any. You can try swf decompilers but by the time you find one you like and fork over some money you'd probably be better off just doing it all manually. How many things do you need to extract?

Similar Messages

  • Comma delimited formatting in Smartview

    I'm creating a report in smartview 9.3.1
    I have few columns with formulas and I have format my report (bold ,comma delimited and some color).
    The issue is when I do a refresh all the formatting remains intact except the comma delimited formatting on columns with formulas.
    I already have the "Use Excel Formatting" checked.
    Does any one run into this issue before ?

    Hi Brian,
    There are a few ways to do this:
    Using Subreports:
    1) Insert a Subreport with its datasource being the same table as the Main Report's in the Report Header.
    2) Inside the Subreport, create a formula with a code that looks similar to the below:
    whileprintingrecords;
    stringvar dates := dates + {Year} + ", ";
    Place the formula on the Details section
    3) Create another formula and place it on the Report Footer:
    whileprintingrecords;
    stringvar dates;
    Left(dates, len(dates)-2);
    4) Suppress all the sections of the Subreport, except the Report Footer
    5) Copy the record selection formula from the Main Report into the Subreport so that it returns the same records as the Subreport
    If the data for 'Authors' and 'Departments' is available for each row just like the 'Year', you can actually use the same subreport and modify the above formula by adding 'shared variables' to bring back a comma delimited string of the 'years', 'authors' and 'departments'
    Using SQL:
    This is probably the most efficient way to do this. Just write a SQL that returns the list of years as a comma separated string along with the other columns > drag and drop the column on the report header
    -Abhilash

  • Wrapping A SqlBulkCopy Class To Export A Proper Comma Delimited Table

    Hello!
    If anyone can point me in the right direction it would be greatly appreciated!
    In my search, it seems SQL Server cannot export tables to a proper comma delimited format. I have not found a out of the box solution for SQL Server to properly escape commas and double quotes within fields on a record.
    Which brings me here. I'm searching for a way to leverage the SqlBulkCopy class (or a alternative) to quickly export a record's values in a array or list so I can feed it into my custom DelimitedStringBuilder class.
    So far it seems the out of the box SqlBulkCopy class only supports import into other tables and not a text file.
    One thought (I have no idea how I would implement it) would be to attach a DataReader class to the SqlBulkCopy class and then pass the values from the DataReader to my DelimitedStringBuilder class.
    Has anyone been able to write something like this? Or is there a simpler solution?

    Have you tried just using SQL and ExecuteNonQuery? Below is an example:
    Dim TextConnection As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=" & "C:\Documents and Settings\...\My Documents\My Database\Text" & ";" & _
    "Extended Properties=""Text;HDR=NO;""")
    TextConnection.Open()
    'New table
    Dim TextCommand As New System.Data.OleDb.OleDbCommand("SELECT * INTO [Orders#csv] FROM [Orders] IN '' [ODBC;Driver={SQL Server Native Client 11.0};Server=.\SQLExpress;Database=Northwind;Trusted_Connection=yes];", TextConnection)
    TextCommand.ExecuteNonQuery()
    TextConnection.Close()
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • Help with formatting multiline output into comma delimited ordered output

    I have 2 tables:
    SQL> desc table_1;
    Name Null? Type
    ===================================
    ID NOT NULL NUMBER
    DATA1 NOT NULL VARCHAR2(440)
    DATA2 NOT NULL VARCHAR2(1024)
    SQL> desc table_2;
    Name Null? Type
    ===================================
    ID NOT NULL NUMBER
    ATTNAME NOT NULL VARCHAR2(255)
    ATTVAL                          VARCHAR2 (4000)
    DATA1 NOT NULL CHAR(1)
    DATA2                          VARCHAR2 (2000)
    DATA3                          VARCHAR2 (255)
    I need to get ATTVAL from where e.g. ATTNAME=att_name1 to ATTNAME=att_name6 from every entry (with its unique ID), and format the output into comma delimited format in e.g. this order:
    att_val1,att_val3,att_val6,att_val4,att_val5,att_val6
    So e.g. for entry with ID "9812" from the query below, the output I need would be:
    187,179,156,134,1436,1809
    What I've got so far is as follows:
    SQL> SELECT id,attname,attval FROM table_2 WHERE id in (SELECT id from table_1 WHERE data2='xxx')
    AND attname in ('att_name1','att_name3','att_name6','att_name4','att_name5','att_name6');
    ID               ATTNAME               ATTVAL
    ===============================
    1970 att_name1 123
    1970 att_name2 abc
    1970 att_name3 1234
    1970 att_name4 def
    1970 att_name5 1134
    1970 att_name6 ghj
    9812 att_name4 134
    9812 att_name5 1436
    9812 att_name3 156
    9812 att_name1 187
    9812 att_name2 179
    9812 att_name6 1809
    77 att_name1 1980
    77 att_name5 1867
    77 att_name3 174
    77 att_name4 1345
    77 att_name2 1345
    77 att_name6 1345
    but I don't know how to format the output comma limited in certain order. (or if this is the best way of getting the data out)
    Would someone have idea how this could be done?

    846954 wrote:
    Thanks Frank!
    I got much further now :).
    I've got Oracle 10g So I used the "SYS_CONNECT_BY_PATH" for my query.
    Now I get the output in the format I want, however, it comes out in the order that the attributes are (which is pretty random).The values you posted are in order: 'attval1' < 'attval2' < ...
    So I'm using this now(had to use "|" as separator because SYS_CONNECT_BY_PATH would not work with comma due to some of the attval having comma in them ):The values you posted don't contain and commas.
    You're hiding what the problem is. It would really help if you posted actual data. It always helps if you post CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data.
    Assuming you really have something that has to be in a certain order, and that order is not based on anything in the values themselves, then DECODE might be a good way to do it. Storing the sort value in a table might be even better.
    It looks like you were using an Oracle 9 exanple. In Oracle 10, using SYS_CONNECT_BY_PATH is simpler:
    SELECT     id
    ,     LTRIM ( SYS_CONNECT_BY_PATH (attval, '|')
               , '|'
               )          AS attvals
    FROM     (
              SELECT     id
              ,     attval
              ,     ROW_NUMBER () OVER ( PARTITION BY  id
                                  ORDER BY          DECODE (...)
                                )     AS curr
              WHERE     id     IN (
                             SELECT  id
                             FROM     table_1
                             WHERE     data2     = 'xxx'
              AND     attname     IN ('attname1','attname2','attname3','attname4','attname5','attname6')
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     curr     = 1
    CONNECT BY     curr     = PRIOR curr + 1
         AND     id     = PRIOR id
    ;You don't need two almost-identical ROW_NUMBERs; one will do just fine.

  • The best way to get into Mac or iPhone Development?

    Hi, Ive been meaning to get into XCode and start developing for Mac and / or iPhone, but because ive been study for exams ive put it off. There finally over and I would love to dive into the development world. Ive done very basic programing before but that was a long time ago. So i guess what im getting at is where is the best place to start. I have no objective C or C knoledge but really would love to learn as I want career in software development primarily with apple products. I mean theirs loads of YouTube tutorials but yet I still get puzzeled. So any tips, advise etc would be much appriciatred 

    The vast majority of worthwhile content, docs, samples and tools are from Apple and available with a paid agreement.
    In the mean time, see:
    Stanford CS193P iOS 5: iTunes U  |  Assignments 
    Stanford CS193P iOS 4: iTunes U  |  Assignments
    As well...iPhone Developer Beginner Resource Guide

  • Learn iphone development

    Where would be the best place to start with learning iPhone Development?  What classes, courses, books, videos, tutorials, etc. would be the best place for a beginner to start with.

    If you haven't already, wait to purchase a Developer Account until you know what you are doing. Download Xcode and experiment, even put your prototype app on your iOS Device. (Or Mac, if it's Mac Dev you're into)
    Until you are sure Development is what you want to do, I'd steer clear of a Paid Developer Account. Be sure you can handle the workload that comes with it too, including the nonstop demands of app users harassing you by email and reviews on the App Store.

  • IPhone Development - Switching Views

    First, let me mention that this post may be in the wrong forum, so if that is the case, please let me know to repost.
    Next, my question is very simple. I have two views. The first has a button. The second has some text. I want to switch from the first, which loads when the app starts, to the second. This should be pathetically easy, but I have yet to figure out how it's done. At this point, their must be a fundamental problem with the way that I am thinking about how Windows and Views are managed, because based on my current beliefs, I cannot figure the rest out. I have created several "1-View" applications and, for what I am trying to do, have created several Views each of which do what I want them to do. But, I cannot find a way to switch from one to the other. I go to several homemade videos of people doing it, but no two people do it the same way and they all have their own little tricks to getting it done. This leads me to believe that it's not simply a matter of a lack of documentation by Apple, but that Apple doesn't even have a standard. Instead the have several hacked-together solutions that each can kind-of work depending on the situation.
    Here is the way I am conceptualizing it and maybe someone can show me the error in my thinking. I create a View-based application for the iPhone. I believe that the AppDelegate class that is created for me appears to really just be a Window/View manager class in that it keeps track of the one and only Window and manages which View is currently being displayed in that Window. Then, there is the MainWindow.xib file which is really confusing, because it simply populates itself with whatever is in the ViewController.xib file. It's never even mentioned in any of the code I am given. I imagine it is mentioned elsewhere, but that is irrelevant.
    Now, the ViewController.xib file is used along with Interface Builder to create a View from Widgets and link those Widgets' references and corresponding actions to class variables and methods in its corresponding ViewController.h and ViewController.m files. So, it would follow then, that if I wanted to create a second View, so that when a button on the first view was clicked a new, second View would be shown, I would create a new "View.xib" file and corresponding .h and .m files for it. Then, I have a method in my AppDelegate that takes a UIView object and removes whatever view is currently the subview of the window and adds the parameterized view as the new subview. This is also where I would put my transitions.
    Now, the new View that I just created doesn't contain the Title Bar or whatever it's called where the battery monitor icon, carrier icon, etc. exist, so this means that whenever I am actually putting Widgets in the View I have to just remember to avoid it and that the "auto-alignment" thing is off. So, I try other options, and create a new "Window XIB". This blows my freakin' mind, because it appears to be what I want despite it being called a Window and not a View. So, I try the "Write Class File", and it creates a new class called UIWindow which is a subclass of UIView. But wait, aren't Views supposed to be what populates the Windows, and UIWindow is a class that already exists. AHHH!!!!
    So, I rename the class to SecondView and create an instance of it in the AppDelegate. Now, I go into the AppDelegate.m file and change "window addSubview:viewController.view" to "window addSubview:secondView.view" (Edit: Brackets aren't allowed, so I am using quotes in their place here.) which doesn't compile, because it is a subtype of UIView which doesn't have a view member variable, only UIViewController does. So, I change it to make it a subclass of UIViewController which has a view member variable, and it compiles and shows a blank white screen of which neither of my views look like. Then, I go shoot myself in the face. It would appear that I need to link the new SecondView class to the SecondView.xib file somehow.
    It appears that the AppDelegate class should manage nothing and should only have a single UIWindow object that it loads. Then, the View Controller which has a View object should really have an array of all Views and should populate its view object with the currently needed View. This would make sense except that of all the How-tos I have seen none of them do it this way. I am sure that I didn't say everything that I need to say, but at this point I am so infuriated that I cannot think straight.
    <rant>
    I have developed in several different environments, and I have never come across such a simple and common concept implemented in such a convoluted way. Maybe I am simply missing something obvious, here, but if that's the case, Apple please please please make the documentation far less cryptic. I feel like I'm walking blindly through a jungle when I try to read the How-to documentation on your site. If I need to know some information about some class then it is relatively easy to get to, but trying to figure out how to actually do something within iPhone development is painful.
    I began trying to develop for the iPhone by just diving in and seeing what happened. That sort of failed, so I began reading your online help documentation and believe I took a step backwards. Finally, I bought a book on Objective-C that concluded with creating an iPhone app. I read it in a few days and now feel that I am rather proficient with the language as well as creating applications on the iPhone as long as they only consist of a single View in the ViewController class. All I want to do is switch from one View to another, and it shouldn't be this hard.
    </rant>
    Message was edited by: PhoenixRebourne

    Well odds are you won't find what you are looking for here unless another developer happens to come here. These forums all withing the support area are user to user forums to help with issues of usage, repairs, etc.
    Doesn't the developer area where you signed up to be a developer have forums?

  • IPhone Developer Program Portal

    Im at the portal and it has 7 leftside options:
    Home - starting point which has a provisioning assistant button
    Team - im the only one anyway so this is easy
    Certificates - ive uploaded my CSR and downloaded the issued keys for Developer & Distribution
    Devices - Ive registered my device's ID
    AppIds - CONFUSING - do i need to create an AppID for each app i want to upload? Or what is this for? And how do i choose its name? because if its required for every app, then i would do something like FirstAppNameXXXX and then for another app i would do SecondAppNameYYYY...but if this is just one ID i need to create it would be diffnt...
    Provisioning - CONFUSING - its asks me to create a profile name, check the certificate to use and then an AppID so i guess AppIDs are not optional. So do i need to create an AppID and a provisioning profile for each app i upload?
    Distribution - i guess this is the final step...so ill get to it when i clear up the previous 2 which have me a bit confused
    I would like to know whats next so i can upload, first a free app, and then a paid version of it.

    Follow the process in this pdf...
    iPhone Developer Program
    Standard Program Portal User Guide for iPhone OS 3.1 Version 2.5
    • AppID: One for each app is my method, but you can create a global ID if you like...see the PDF above. Not optional if you expect to go into the store.
    • Provisioning is for testing on a device - I use one profile but again, multiple IDs.
    • Distribution is for uploading to the store
    I suggest you don't waste time doing two apps, and work to design a free app that has in-app purchasing instead.
    Good luck in any case and be sure to check the portal for additional resources, how-to videos, etc.

  • Noob question - just paid for iPhone Developer Program...so what now?

    Hi all
    Sorry if this has been asked and answered a thousand times already but I coulnd't see anywhere to search the forum for previous threads.
    I had an email earlier saying that I'm now eligable to sign up for the standard version of the iPhone Developer Program. I went ahead and paid my £59 and have a confirmation email saying everyting has been processed etc - looks like a complete transaction as far as I can tell.
    I've not received any additional emails with any instructions of what I need to do next regarding getting my apps signed or how I submit them to the AppStore etc?
    I've seen a few people mentioning iTunes Connect? but when I google that I get thousands of pages about people not being able to connect their iPods to iTunes
    Can anyone point me in the right direction here?
    Thanks
    Wayne

    I've logged in, is there something specific I should be looking for?
    Interestingly (and this may be irrelevant) but I still see some text a little down the screen in the right-hand colum saying...
    iPhone Developer Program
    The fastest path from code to customer. Apply now
    iPhone Devloper Program
    Already applied to the Program?
    We are currently processing your enrollment application and will be contacting you soon.
    Do you guys still see this? is this static text or dynamic based on specific login?

  • I have just bought a new iphone 4 as an upgrade to my iphone 3GS.  How can I transfer all my apps and data to the new iphone 4 and keep facetime etc on the new iphone 4.  If I do a restore of the iphone 3GS I only get the 3GS apps (i.e. no facetime)

    I have just bought a new iphone 4 as an upgrade to my iphone 3GS.  How can I transfer all my apps including saved levels in games etc. and data and folders to the new iphone 4 and keep facetime etc on the new iphone 4. When I have done this for someone else they got all their data etc but lost the Face Time App and teh iphone 4 looked like the iphone 3 screen.

    There is no FaceTime app for the iphone, FaceTime is built into the iOS. Follow the directions here:
    http://support.apple.com/kb/HT2109

  • My wife and I have separate have separate user accounts on our IMac.  We have separate Apple IDs for iTunes.  How can we use iCloud on our separate iPhones without sharing contacts, calendars, etc.

    My wife and I have separate have separate user accounts on our IMac.  We have separate Apple IDs for iTunes.  How can we use iCloud on our separate iPhones without sharing contacts, calendars, etc.

    If have separate iCloud accounts and want to keep your all your iCloud data separate, you can create separate user accounts for each of you, then sign into your individual iCloud account within your user account.
    If you want to just add both iCloud calendars on your Mac, you can sign into one iCloud account in System Preferences>iCloud, then add the second account in System Preferences>Internet Accounts>iCloud and only check Calendars with this second account.

  • Error when activating my iPhone Developer Program membership

    Ive just paid 99 dollars for my iphone developer program, and recieved an email containing the activation code. As you probably know, youre supposed to click on this activation-code and it links you to another site. But instead of activation I recieve this error-message on this site:
    "We are unable to activate your iPhone Developer Program membership because we are unable to successfully verify your identity. Please contact us and reference Enrollment ID# XXXXXXXXXX for further assistance."
    There was no problem verifying my identity when I paid for it. How come thats an issue now?
    Since people seem to have to wait for enormous periods of time to get even the simplest questions answered by Apple regarding the Dev Program, I thought I post this here to see if someone else have come across this, and what to do about it (except for waiting indefinitely).

    Mine got activated after a few days with no need for further information from me so if you get that same message you probably don't need to worry.

  • Hi, I upgraded my iphone 4 to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tels that this device is not registered as part of the iphone developer programme. How could I fix this problem? Please..?

    Hi, I upgraded my iphone 4 (4.3.3) to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tells that "this device is not registered as part of the iphone developer programme." How could I fix this problem? Please help me...,

    I had a similar occurrence with my just activated iPhone 4.
    I had been using the phone for three days when an odd occurrence with voice mail caused me to call tech support. After some discussion they decided to push the activation to my phone (even though I had been using it for three days). When I went to power it back up again I repeatedly got the "no service" notification. I got tech support on a land line and we tried hard reboots and so on. No joy. They told me to take it in to the point of sale and either the SIM card or the phone needed (or both) needed replacing.
    I tried one last hard reboot after dinner and the phone came up with service, but I took it in to the point of sale in the morning and they swapped the SIM card out and I went to a Genius Bar appointment to get the phone checked out. It is supposedly OK, but I am still having some problems when syncing it so I will have to visit the Genius Bar again tomorrow about that. At least I have not experienced the "no service" problem in the roughly 24 hours since the SIM card was replaced. (Fingers crossed)

  • My Iphone 4 will not start up, when i connect it to itunes i says : Activation error This device is not registered as part of the iPhone Developer Program.If you are a member of the Program, please register your device in the iPhone Developer Program Port

    my Iphone 4 will not start up, when i connect it to itunes i says : Activation error This device is not registered as part of the iPhone Developer Program.If you are a member of the Program, please register your device in the iPhone Developer Program Port

    Well, you downloaded a bootleg copy of iOS 7 beta and have installed it on your phone without being a developer. It has bricked your phone and you cannot get help here because doing what you did has voided your warranty. Have a nice day.

  • How long does it take to be an "official iPhone Developer?"

    I decided that I wanted to be a iPhone developer a couple of days after the March announcement. So I filled out the contact information, and of course got the reply that the beta program was full.
    Fast forward to July 14th, when I got a email from the iPhone Dev folks that my application was being reviewed. It is now July 26th, and I still haven't got an answer back. Does it really take this long to even become a developer??? Can someone get turned down? If so, why? Do you have to tell Apple what you plan to develop?
    I have never had to go through such hoops to become a developer for any other platform. You just pay your money and bang there your are, if you even need that. I'm not an official OS X developer because, I really don't need pre-released software.
    Also, since all I want to do is just run my own apps on my own iPhone/touch, do you really have to get the official stamp of approval for Apple to get a 'signature"? Do you have to go through Apple to even distribute your apps, even if you may or may not sell them?
    Finally, is there anyway to get a file to your iPhone application to read outside of adding it to your application's resources, or create a socket and read it in?
    Thanks,
    edji

    I signed up to be an iPhone developer two days ago and today I have my app running on my iPhone. It takes less than a day to get signed up. BUT, you need to watch out for one thing. When I originally placed my order for the $99 SDK I seemed to have checked some tax related checkbox I shouldn't have. The order completed as expected. But 36 hours later I had no email showing the order and I wasn't accepted yet. So I logged into my account on the Apple online store and looked at my order history. Sure enough, my order had a big red flag (not literally) stating I needed to fax in some tax exemption form. What? So I called the 800 number on the bottom of the screen. Since I'm an individual this shouldn't have been required. The guy on the phone sent me over to the small business dept who took care of the issue and the next day I had all my emails showing I was in the program.
    So if you sign up these days and it takes more than a day, check your order status.
    Enjoy,
    Rick

Maybe you are looking for

  • Hard disk installation and configuring?

    What is step by step procedure for installing 2nd hard disk into x86 box? What are the files to be edited? This was interview question by Sun .pls help.

  • How to fix a Trackpad contaminated by Duracell batteries

    My Trackpad recently stopped working after a 'low battery' warning.  When I opened the battery compartment to remove the two DURACELL AA batteries they had leaked!!  I thought this only happened 'in the old days' but apparently Duracell still make th

  • Help with my audio interface

    i use an usb yamaha audiogram6 interface on my MacBook Pro it works good, but i have the problem that if i plugged my guitar it sound everytime and i keep listen it even if im using guitar amps on logic pro i listen the clean sound from the guitar an

  • Link to image file for avatar

    I have been trying to figure how everyone puts their image in there podcast. I have a video podcast and using GB3 to do the podcast. When I submit to iTunes it has a default icon for an image.

  • Audio is shorter and doesn't sync

    I have a video, and when I import it in Premiere (or After Effects), the audio is shorter than video, and therefore of course out of sync. When I play it on VLC, it is correct, everything syncs. I had tried to re-encode it, but nothing has changed. (