How to get poster image (from_movie) when placing SWF file with JS?

I am able to place the poster from movie (flv) file. SWF files seems to belong to Movie class. I can place the generic posters (standard, none and proxy_image), but not "FROM_MOVIE".
I am getting the following error message:
"Error 81926" "The poster image could not be changed to the requested image".
I will attach my code (sligtly modified from the sample "placeMOVIE" which is coming with CS5) containing also code for other property settings to be tested.
Hoping to find a good solution for this, thanks in advance!
Erkki
/PlaceMovie.jsx
//An InDesign CS5 JavaScript
//Shows how to import a movie  file.
main();
function main(){
    mySetup();
    mySnippet();
    myTeardown();
function mySetup(){
    var myDocument = app.documents.add();
    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
function mySnippet(){
    var myDocument = app.documents.item(0);
    var myPage = myDocument.pages.item(0);
    //<fragment>
    //Given a page "myPage"...
    var myFrame1 = myPage.rectangles.add({geometricBounds:[72, 72, 288, 288]});
    //Import a movie file (you'll have to provide a valid file path on your system);
    var myMovie = myFrame1.place(File("~/Desktop/SWFsivut/a1.flv"))[0];
    //alert("myMovie.name: " + myMovie.name)
    //alert("myMovie.visibleBounds: " + myMovie.visibleBounds)
    var mySWF_bounds = myMovie.visibleBounds;
    myFrame1.remove();
    var myFrame2 = myPage.rectangles.add({geometricBounds:mySWF_bounds});
    var myMovie2 = myFrame2.place(File("~/Desktop/SWFsivut/01.swf"))[0];
    //alert("myMovie2.name: " + myMovie.name)
    //alert("myMovie2.constructor: " + myMovie.constructor.name)
    //alert("myMovie2.moviePosterType (DEFAULT), 1852796517 = NONE" + myMovie.moviePosterType);
    //myMovie2.moviePosterType = 1852796517; //NONE
    //alert("myMovie2.moviePosterType, 1852796517 = NONE: " + myMovie.moviePosterType);
    //myMovie2.moviePosterType = 2020623970; //STANDARD
    //alert("myMovie2.moviePosterType, 2020623970 = STANDARD: " + myMovie.moviePosterType);
    myMovie2.moviePosterType = 1298558310; //FROM_MOVIE
    //alert("myMovie2.moviePosterType, 1298558310 = FROM_MOVIE: " + myMovie.moviePosterType);
    //myMovie2.moviePosterType = 1299216505; //PROXY_IMAGE
    //Add a preview image. You'll have to provide a valid path on your system.
    //myMovie2.posterFile = "~/Desktop/SWFsivut/a1.flv"; // this path works with colons !!!!
    //myMovie2.posterFile = "EkinHD/SWFsivut/01b.jpg"; // this path dont with slahes !!!!
    //alert("myMovie2.moviePosterType, 1299216505 = PROXY_IMAGE !!!: " + myMovie.moviePosterType);
    //</fragment>
function myTeardown(){

... still continuation to my question...
You can put the poster for SWF using UI Media panel as shown here. So does this mean that there is a bug in a scripting environment?

Similar Messages

  • How to get the link report of a swf file to the set of clases

    He  But How to get the link Report of the SwF File

    Here are some links with additional information:
    http://stackoverflow.com/questions/185252/optimizing-flex-when-multiple-modules-are-used
    http://livedocs.adobe.com/flex/3/html/help.html?content=modular_4.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
    If this post answers your question or helps, please mark it as such.

  • How to get jpegs automatically resized when placed in a book?

    Hello all,
    New member on board here. Got a question for you guys.
    When I pull a jpeg into a book page (I'm using the Library theme), I'm getting a "!" in a yellow triangle. I'm assuming that means the jpeg is too big.
    Is there a way that iPhoto can automatically resize a jpeg to fit within the parameters of the picture space?

    Thinkingman:
    Welcome to the Apple Discussions. Just the opposite, it means that the pixel dimensions of the photo are deemed too small for optimum image quality by iPhoto. What pixel dimensions are the photos and what size frame are you using it in?
    iPhoto automatically resizes photos to fit the frames in books, and the containers in the other items, calendars, cards, etc.
    Do you Twango?

  • How to get best image quality when inserting PDF into Word?

    I am able to insert a PDF as an object into Word, but the image quality is slightly blurry.  Is there anything I can adjust to improve image clarity in Word?

    You can try to extract the images using Extract All Images or select the Settings on the save screen that you get when you save to a DOC, but I think the general result is that the image saves with the same resolution as contained in the PDF. It may be that you need to just adjust your screen in WORD. You might want to look at the image in WORD and see if it is being used at 100% or some other resolution. Bitmaps are not very forgiving if the resolution is changed for the document and does not like anything other than low number fractions of resolution display change.

  • How to get around safari no longer launching jnlp files with 6.0.3?

    I'm both a user of Java Webstart applications and a publisher (at work and for private projects)
    Given the latest update to Safari that no longer launches a JNLP file I've had no choice but recommend that my clients switch to Firefox or Chrome in order to continue using the Java Webstart applications.
    The fact that clicking the button or link to launch the JNLP appears to do nothing, that sometimes the JNLP is downloaded and other times not, and it never launches webstart,  makes it impossible to support clients and makes the applications appear completely broken.
    Is there no workaround to this? Some way to get Safari to run the JNLP file?

    For security reasons, WebStart application files are now downloaded to a hidden folder and are not launched automatically. Although you may find instructions on the Internet for defeating this protection, I strongly advise against doing so.
    The right way to launch a WebStart application is to click the Downloads button at the right end of the Safari toolbar and  then double-click the icon of the JNLP file you just downloaded. If you want to save the file for later use, click the magnifying-glass icon to reveal it in the Finder, and then move it.

  • How can i resize the icons when enclosing a file with safari

    With safari as well as with firefox it happens form time to time to enclose a file in the html page. There is a way to enlarge the icon preview ?
    thanks
    PS
    same is any dialog form to open a file.....must be a way to enlarge the icons i hope in the open file dialog from within photoshop rather than another application.
    thanks

    If the paths are open just click the intended end-point with the Pen Tool (P), add a point and delete it again.

  • How do I tell Windows 7 to open SWF files with Shockwave

    Windows 7 asks for a program to open SWF, and I installed Shockwave, but I cannot find the program in Program Files or Program Files (X-86).
    On Windows XP, SWF files automatically opened with Shockwave, but now W7 says I need a plug-in for my Firefox browser to open it.

    Please ask your question on a forum for the Flash Player

  • How to have posted images display as sRGB on wide-gamut monitors.

    I understand an sRGB profile is necessary for  posting images but I need help on how to do that with Photoshop CS2 and  my new wide-gamut monitor (HP  LP2475w with Spider3Express  calibration). Before doing a "save for web" and posting, I "convert to  profile" to either "sRGB IEEE61966-2.1" or "sRGB with hardware  configuration derived from calibration" (it makes no difference which), but I  see then a significant color shift in the posted images when I view them  through Firefox 3.6 (with operating color management software -verified  on other posted images) and the same color shift with IE6 (which has NO color management software).  So,  Firefox is NOT RECOGNIZING my posted images with the sRGB profiles that  I thought I was embedding in them in Photoshop.  So my question boils  down to: WHAT EXACTLY DO I HAVE TO DO IN PHOTOSHOP SO FIREFOX WILL RECOGNIZE THE POSTED IMAGES AS sRGB and display them 'correctly' on wide-gamut monitors??
    Thank you very much.
    -Jeff

    ISSUE RESOLVED.  Photoshop CS2 was not embedding an sRGB profile in  the images I was posting.  I needed to check the "ICC Profile" checkbox  in "save for web" to make that actually happen (after I did "convert to  profile" sRGB).
    I also have switched to "Full Color Management" Value 1 (hidden) in Firefox 3.6 so that Firefox now assumes any untagged image is sRGB standard and then converts those, and all other  images which ARE tagged, to my calibrated monitor profile. This definitely looks to me like the way to operate with a wide-gamut  monitor although I understand it is still recommended to always tag images for  posting as sRGB and not embed any other profile for color consistency  over color accuracy.  At least if there are some out there with wider-gamut  tags, I should get some benefit.
    Have I got it right ?
    Thanks,
    Jeff

  • How to get the image stored in archieve link as an attachment in work item.

    Hi All,
    through transaction OAWD we are storing scanned images.
    Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
    When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
    After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
    Our requirement is that the scanned image should also appear as the attachment.
    Can you please suggest how to get the image stored in archieve link as an attachment in work item.
    Regards
    Shraddha

    Hi Martin,
    with every parked document a scanned image is linked.
    I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
    At present the following functionality is available.
    The BO used is FIPP
    Objects and attachments:
    parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
    On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
    Now we want to have 2 links:
    parkeddocument:AK0108500001252008.
    image.
    When we click on the link image then the scanned invoice linked to the document should get opened.
    I am able to get the image id of the the image through  SAP_WAPI_GET__OBJECTS,
    export parameter leading_object provides the detail.
    But I am not able to figure out how to use it in my workflow to display it as an attachment.
    Hope this will give a better understanding of my question.
    can you please suggest as to how I should proceed with it.

  • How to get the Useru2019s position when the user doesnu2019t have CP relation

    We have a custom program which will add / delete attributes (In transaction PPOSA_BBP). It is working fine for users which were assigned with CP relation But it fails for users which doesnu2019t have CP relation (since we are getting the position of users form HRP1001 then we are retrieving the existing attributes based on the position after that updating the attributes) as we are getting the position from HRP1001 it fails for users were no CP relation.
    Help us how to get the Useru2019s position when the user doesnu2019t have CP relation. Suggest us any function module or how to query the HRP1001 or some other table if exists
    Regards
    Paul

    Hi Paul,
    Have a look at these tables.
    Using table BUT000 the central business partner data are stored, f.e. partner type, partner names, partner number, partner guid, person number, etc. In table BUTBKK the bank data to a business partner are stored.
    Central business partner address data
    The table ADRC is used for the address of a business partner. Table BUT020 links the business partner number with the address number. Using table BUT021 several addresses to a business partner with different usages (modes), f.e. correspondence or delivery address, can be stored. The personal data of a business partner person are stored with key person number in table ADRP. The person number is assignd to a business partner person in table BUT000. Communication data of business partners as e-mail, telephone, fax, etc. are stored in the tables ADDR1 u2013 ADDR12. The business address of a contact person or an employee consists of the organization address (company resp. org.-unit) and of an address addition, which describes f.e. a building, a room number, etc. The address addition is stored in table ADCP and is identified by the keys address number of the organization address and person number.
    Relationships between business partners
    Table BUT050 contains the relationships between a business partner organization and a business partner person using relation types. The relation types are defined in table TBZ9, f.e. the relation type u2018has employeeu2019 corresponds to identifier u2018BUR010u2019, the relation type u2018has contact personu2019 corresponds to identifier u2018BUR001u2019. Table BUT051 stores communication data of a contact person relationship (compare to table ADCP). Table BUT052 stores several address numbers to one business partner relationship (including a standard flag).
    Hope this helps,
    Kind Regards,
    Matthew

  • How to get Manager id automatically when Employee Id is given.

    How to get Manager id automatically when Employee Id is given.
    1) I created a simple BO with two elements namely
        1.Employee Id
        2.Manager id
    How to get employee's first name and last name?
    And how will i get manager id  automatic when i click employee id in element field.
    Anbu.

    Have you tried to use "APPS.FND_CONCURRENT" API?
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE%20BODY
    Thanks,
    Hussein

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • How to get those Char Description when i record please give a solution

    Hi Experts
    when i try to extend using BDC the meterial all data is getting copied to new plant but in MRP3 Configure varients is not getting copied in bdc i am getting all the values from parent plant but these values are not getting displayed in new plant for only *MRP3 Configure varients
    how to get those values please give a solution
    and
    when i am trying to make the BDC recording of creation of meterial in this process
    in MRP3 when i give configurable meterial  = Lamp  or CT or VOLTMETER and when
    i go for configurevariants button it's not displaying any Char Description  for the perticular meterial
    but in general when i creat a material process  there Char Description  are coming where i can give the values
    how to get those Char Description when i record please give a solution

    Hi Maen Anachronos
    i am Getting popup where i can give any value
    but in creation of meterial for a perticular config meterial there is will be 1 templete in which we will get some constant  Char Description where we'll have some options to give the value
    but when it 's done in BDC Recording  it's not displaying any values Char Description then how can we decide the values to what to give when Recording

  • How to get my images always order by file name, and not by time of captur, in all the folders in the library?

    How to get my images always order by arquive name, and not by time of captur, in all the folders in the library?
    Sorry for the poor english, but im portugues.
    In the library we can change the order of classification of image by, time of capture, name of file etc... I'm wondering if its possible define to be always by the name of file.
    It ´s possible?
    And i have other question, in print label we have an option to auto rotate to feet in page to have the image using the maximum area in the page (auto rotate, zoom etc), its possible to change the orientation of the rotation to be always in  the other direction?

    The Muvos are USB Mass Storage devices and do not have the ability to display track information based upon ID3 tags.
    The Zens all read and display track info based upon ID3 tag information that is either gathered from an online source or entered by the end-user.
    If you want the track information displayed instead of the ID3 tag information, you could edit the ID3 tags and rename the title to whatever you have as the file name. Not sure why your file names would differ so much from the ID3 tag info though, almost all of my content has the same name for the filename as it does on the ID3 tag title.

  • How to get all images in indesign CS5 with javascript?

    Hi,everybody,
    How to get all images in indesign CS5 with javascript?I want to delete them.
    Anyone can give me some example codes?
    Thanks,
    Bridge

    Hey!
    This will remove all images from your InDesign document:
    var myLinks = app.activeDocument.links.everyItem().parent;
    for(var i = 0; i < myLinks.length; i++)
        myLinks[i].remove();
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/

Maybe you are looking for