Associating a FLEX object with a file type

I am grappling with a problem for a potentially big flex
project. Is there any way a flex component could be built that was
associated with a particular file type. So that whenever such a
file type was offered from an HTML page, this component
automatically processed it? This would be a parameter file that the
other parts of flex application could then utilise.
Very Best
Steve

Ok, first, when you say, "...such a file type was offered
from an HTML page..." exactly what do you mean? Give us an example
of such a file type, what is "offered", and tell us how you want to
"process" it.
Tracy

Similar Messages

  • Testing for applications associated with a file type

    Dear contributors,
    while trying to open a simple *.txt file via java.awt.Desktop.open(File)
    the IOException is thrown. According to Javadoc there is "no associated
    application or the associated application fails to be launched" in this
    case. Interestingly the Desktop class does not provide methods to test
    for particular file type registration, just for the "support" of a generic
    Desctop.Action. Colud you please illuminate how to check, whether a file
    extension / file type / mime type has an associated application in a platform
    (in)dependent way at least for "opening" ?
    OS: Linux, 2.6.24-22-generic, x86_64
    JDK: 1.6.0_07, 64 bit
    Many thanks
    Jaro Pullmann

    If you make the call and an exception is thrown, then there is not application associated with the file type--otherwise I believe you need to do some registry work if you do not want a pretest.

  • Problem with import file type setting

    Problem with import file type settings - In preferences>general I select "wav encoder" But then going to tools>Create it still says "create mp3 version".
    Can't find a way to overcome this. Thanks for any help.

    Doublechecking, roy. After making the preferences change, are you leaving the General tab by clicking the OK button down the bottom-right-hand corner of the tab?

  • Firefox will not save my "Always do this with this file type" preference.

    Alright, bear with me because I am extremely new to Firefox. Anyway, when I download a .torrent file for uTorrent, it asks me the obligatory "What to do with this file type" question. Great. But when I checked to be sure it was opening uTorrent (Yes.) and ticked the "Always do this for this file type" box. Then, I clicked "OK". Awesome.
    Then, after that, when I try to download a .torrent file it asks the same question again. Click click. and again. click click. and again......you get the picture. Why wont it remember this preference?

    Sites override the "Always do this" preference by serving files with a special HTTP header known as '''Content-disposition: Attachment'''
    You can look for this happening by installing the [https://addons.mozilla.org/en-US/firefox/addon/3829 Live HTTP Headers] extension then accessing it from the '''Tools''' menu just before clicking a .torrent link to monitor the headers sent.

  • 2d object with multiple primitive types

    I've done some research and tried a few options and finally decided that I want a two dimensional object to handle several different types of primitives. My current plan is to just put them all in a 2d String array, then parse them to whatever type I need when I need to do calculations with the integers or doubles. But I also wanted to ask if there was already an object type that could handle this for me without the parsing. I need more than one value per key, so I don't think that a map will work (although I've admittedly never used one before and may not fully understand how it operates).
    My other thought was to just make a new object with several different arrays of different types and to use the indices to relate one to another. This would at least clean up my code and take out some repetitive parsing steps, but it seems a very roundabout way to handle the situation.
    Any suggestions?
    Should I just use a 2d String array?
    Should I make a new object?
    Does an object already exist for this application?
    Also, if I muddied any of this up by using improper word choice, please let me know so that I can try to clarify.

    Fair enough. I'm working on analyzing some data for a videogame. I want to find the optimal set of items on a character by trying every combination and analyzing it's effectiveness. In order to do this, I want to store about a dozen different stats (some integers, some doubles) for about 30 different items along with the item's name, then use some nested loops to evaluate each combination. There is no 'perfect answer', so I need to perform this process multiple times under varying circumstances. I figure this would be easiest to accomplish if every stat is associated with an x value and every item is associated with a y value because I could then use the index of a for loop to process the information.
    In short, I have several different data types that I want to store in a manner that allows me to load and retrieve all the information using loops. Each set of data has the exact same format (String, int, int, double, double, double...).
    I know it doesn't sound like an important project, but I like to take any opportunity I can to practice my programming. I think it's an important skill in today's world and I'm always trying to improve.

  • Changing default open with for file type for all users

    hello
    can I change the default app to open a specific file type for all users and not juist for my user?
    i am admin for my mac mini.
    tnx
    gil

    What applications are offered for open with depends on the application itself informing the system it can open certain files, plus your own custom selections for opening files. Evidently the alternate app you want to use does not claim to be able to open the files you are assigning it. If you have a plist editor and know how to use it you could edit the info.plist file inside the application itself to add the file type you want to the application's declaration of file types it will open. Then restart so the system will read that declaration. I think it would be far easier to simply launch the application and then drop a file you want it to open onto its icon in the Dock.
    Francine
    Francine
    Schwieder

  • BPEL Process with multiple file types using one FTP adapter is not working

    i created a bpel process which will fetch the files from remote location using FTP adapter.
    Now the process works for only one format or file type like *.xls.
    How can i use more than one file format in one FTP adapter.
    OR
    is there any other way to do it.
    file type assignation is 5th step in FTP adapter configuration.
    i have tried *.xls,*.csv and *.xls;*.csv and *.xls:*.csv by seperating with comman, colon, space... still not working.
    i read the documentation *.* will not work.. for one file format it's working fine.
    looking forward for reply as soon as possible.

    Are you positive that it is not working? I'm not sure how you can use one FTP adapter for multiple file types unless the underlying data is exactly the same format or you are processing it as opaque data. Sometimes when a FTP adapter chokes on a file with a bad structure it doesn't create a BPEL instance, it simply moves the bad file to a separate folder.
    So I assume you are using opaque as the data type instead of using an XSD element?
    That said, I don't think you can put two separate file types in the filter. Is it possible for you to do something like: CommonFileName*.* or do you have similar files with other extensions?
    I know the above probably isn't of much help, but I had so many problems with the FTP adapter and its lack of features that I am writing my own. Unfortunately that is a large undertaking and there isn't any good documentation of JCA resource adapter / BPEL PM integration.

  • View Object with User Defined Type input

    I am trying to use a View Object with a query that requires a user defined object as an input parameter.
    I have the query working with a PreparedStatement, but would like to use a View Object.
    When I use the PreparedStatement, I prepare the user defined type data like this:
    // get the data into an object array
    Object[] wSRecObjArr = wSRec.getObjectArray();
    // set up rec descriptor
    StructDescriptor WSRecDescriptor = StructDescriptor.createDescriptor("WS_REC",conn);
    // populate the record struct
    STRUCT wSRecStruct = new STRUCT(WSRecDescriptor,conn,wSRecObjArr);
    Then I can use this in the PreparedStatement like this:
    OraclePreparedStatement stat = null;
    ResultSet rs = null;
    stat = (OraclePreparedStatement)conn.prepareStatement("Select test_pkg.test_function(?) FROM DUAL");
    stat.setSTRUCT(1, wSRecStruct);
    rs = stat.executeQuery();
    I would like to do the same process with a View Object instead of the PreparedStatement.
    My question is "How do I create the input objects"?
    I obtain the View Object from the Application Module using findViewObject(). I don't actually have a connection object to pass into the StructDescriptor.createDescriptor method.
    I have tried just using Java Object Arrays (Object[]) to pass the data, but that gave an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    Any help or pointers are greatly appreciated.
    Thank you.
    Edited by: 942120 on May 1, 2013 8:45 AM
    Edited by: 942120 on May 1, 2013 8:46 AM
    Edited by: 942120 on May 1, 2013 9:05 AM
    Edited by: 942120 on May 1, 2013 9:06 AM

    Custom domains are the way to go.
    When I try to pass custom domains that represent my user defined types - it works.
    However, one of the functions requires a table of a user defined type be passed in.
    I tried creating a domain of the table type. It forces me to add a field during creation (in JDEV), so I tried adding a field of type Array of Element of the domain representing the user defined type.
    I populate the table by setting the field I created, but the table is empty in PL/SQL (TEST_TAB.COUNT = 0).
    I also tried passing the oracle.jbo.domain.Array object, but that produced an error:
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call
    I also tried passing Object[], but that produced an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    How do I properly create, and pass an domain that represents a table of a user defined type?
    When I use a OraclePreparedStatement, I can pass a oracle.sql.ARRAY using stat.setARRAY.
    Thank you for the help you have provided, and any future advice.
    JDEV 10.1.2.3
    JDBC 10.2.0.5
    Edited by: 942120 on May 13, 2013 7:13 AM
    Edited by: 942120 on May 13, 2013 7:16 AM

  • Backup file with vhd file type

    I have a backup file with a vhd file type.   Other files are xml document.  I wish to recover the original files.  what do I do?

    Hello wasteh2o,
    Do you use the system image back up to create the VHD?
    What file do you want to restore?
    If you want to restore system file and settings, you could use system image backup. For more information, please take a look at the following article.
    http://windows.microsoft.com/en-hk/windows/restore-computer-from-system-image-backup#1TC=windows-7
    Additionally, please check if you can restore the file to previous version.
    http://windows.microsoft.com/en-hk/windows/previous-versions-files-faq#1TC=windows-7
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Attributes...Help with displaying File Type Icons

    I have a document area folder(s) that content managers can
    upload files into. I know that they can place an image with
    these files by using the secondary tab, BUT, my question is
    this....
    Is there a way to have the portal identify what type of file
    this is and associate an image to it to display just like
    the "NEW" icon does....ie....when they load a word document, the
    word icon will be displayed next to the title.
    This would get rid of having to upload the image with every file
    (Which there are many) and save space within the database as
    these images are stored with in each record.
    Please let me know if this is possible and if anyone has any
    suggestions.
    PS...running 308 at this time.

    OK...I figured it out a couple different ways.
    First way I did it was to create perspectives for each file type
    ie word, excel Power Point etc. You can then just add the
    perspective when adding files to the document area.
    BUT, this also isn't automated and can be if you want to.
    Simply write a trigger(s) to do this for you. Wrote one this
    afternoon and it work flawlessly. Now when users add a file to
    the document area, a nice little ICON displays next to the file
    name.
    If anyone else has a different more efficient way, please pass
    it on.
    Thanks

  • Flex object in Flash file

    Hello. I have a Flash website template (.fla). I would like to use Flex components and datagrids, populated with dynamic content, on some of the pages in the Flash website. Others on my team are using the Flash Builder 4 IDE. I will eventually have to integrate with them. Do I begin with Flex or with Flash? How do I integrate the two? Resources? Tutorials? Thank you in advance.

    Help??? any one???

  • Flex services with multiple return types

    Hello,
    We are creating a webapplication with flex and php.
    Everything is working very good, until we got to the library part of the application.
    Every service so far had only 1 return type (eg: User, Group, ...)
    Now for the library we want to return a ArrayCollection of different types of objects. To be more specific the LibraryService should return a ArrayCollection containing Folder and File objects.
    But how to configure this in Flex (Flash Builder 4 (standard))?
    So far it converts every object to the type Object, i would really like it to be Folder or File
    The only solution we can think of right now is to create a new object Library that will contain 2 ArrayCollections, one of type Folder and one of type File. This could work ofcourse, but I wonder if there is a better solution for this OR that i can configure multiple return types for a service.
    Any ideas/advice is greatly appreciated.

    Normally if you are using Blazeds(Java stuff, i'm sure there should be something similar for php), you can map java objects to that of the AS objects, when you get the data back you are actually seeing the object which is a Folder or a File object rather than just a Object.

  • Validation of attribute in Entity Object with List Rule Type

    hi all
    I have an entity "currncy" and I want to make
    a validation in entity level on its attribute "Isdefaultcurrency"
    which is boolean.
    Entity Object : Currency
    attributes :
    1. Currencyid DBsequence
    2. Currencyname String
    3. Isdefaultcurrency, Boolean, CheckBox
    Rule Type : List
    Operator : In
    List Type : Query Result 'select ISDEFAULTCURRENCY from currency where ISDEFAULTCURRENCY=1'
    I want when user insert in table, validation checks the attribute 'Isdefaultcurrency'
    was true then show the error message that there was default currency and if you
    want to set it to true (or default) you must change another record that was true
    and uncheck it then back to current record and will make it true and
    there is one record in my table that its attribute 'Isdefaultcurrency' must be true
    this validation that I used , it does not work correctly and it allows to enter 2 records with
    true value for Isdefaultcurrency. In fact I want when User Enter the First record and
    set the Isdefaultcurrency to true then enter the second record and set the Isdefaultcurrency
    to true the error message will be shown.
    pleas explain it
    Edited by: Marzieh on Jan 30, 2012 9:43 PM

    Is it that you want to only allow one record in the table to have isdefaultcurrency='1'?
    yes , that is correct . I used Oracle DataBase .
    DECODE(isdefaultcurrency, 1, 1, null) please explain about it.
    isdefaultcurrency attribute has boolean Type with 0 or 1 values.
    I would like to show an error if check box was checked for the second time. The idea is that just
    one check box should be checked.
    thanks for your answer

  • Issues with Video file types

    I have videos on my computer and it says they are in a divx compression format with mp3 audio. I want to put them on my iPod, but iTunes won't recognise them. Do you know what types of video files can be recognised by iTunes and iPod and is there any way I can convert these videos so they will be recognised?

    vanilla_ice633 wrote:
    I have videos on my computer and it says they are in a divx compression format with mp3 audio. I want to put them on my iPod, but iTunes won't recognise them. Do you know what types of video files can be recognised by iTunes and iPod and is there any way I can convert these videos so they will be recognised?
    From http://support.apple.com/specs/ipodhttp://support.apple.com/specs/ipod:
    H.264 video: up to 768 Kbps, 320 x 240, 30 frames per sec., Baseline Profile up to Level 1.3 with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats
    MPEG-4 video: up to 2.5 mbps, 640 x 480, 30 frames per sec., Simple Profile with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats
    iTunes doesn't recognize your video files because they are not in a file format and/or encoding scheme which it accepts.
    Use the free MPEG Streamclip application to convert DivX-encoded AVI files into an iPod-acceptable format.
    Hope this helps,
    Steve

  • Managing multiple libraries with different file types (AAC v. Lossless)

    I have set up two libraries, one for my AAC music and the other for my lossless music. The files themselves are located in two separate places on my hard drive. When I switch libraries (option-clicking iTunes), and go to Preferences/Advanced tab, the directory for the files and the import method doesn't change -- I have to change it manually. This is annoying.
    Does anyone know of a way to automate this change, so that if I open a new library, the default location of the files and the import format changes automatically? I tried ituneslibrarymanager from Dougscripts, but for some reason can't get this program to install on my machine.

    No, it's the same Windows XP user account, but I have two separate music libraries - the music files in library are in a lossless format, while those in the other are in AAC. For convenience, I wish to keep the two libraries separate.
    In iTunes 7 it is possible to have separate libraries - start iTunes and hold down the SHIFT key (Windows) while the program starts. A dialogue box then appears where the required library can be selected. However, as far as I can tell, it's not possible to have a different set of preferences for each library.
    Say the preferences are set up for my lossless library, which is located on a separate network drive. If I then make the AAC library active and open iTunes, iTunes reindexes the library according to the settings for the lossless library and I end up with the AAC library full of lossless files. I've tried unchecking various things in the preferences box, but I've had no luck fixing the problem. Thanks for your suggestion - I have already reported the problem.
    The whole thing is a rather inelegant way of managing multiple libraries in iTunes. Surely the Apple developers can come up with a way of doing it from within iTunes??

Maybe you are looking for