ComboBox issue w/ imported swf assets

I've imported a swf into my actionscript code which contains a combobox (instance name of "cb"). I'm having an issue with not being able to set the "prompt" property from within the code and also with the first item in the combobox always remaining blank.
When I compile my project withing FlashDevelop, the combobox populates all the items properly, but always leaves the first item (item 0) blank. When I try to assign the "prompt" property to a string, it has no effect - the first item always remains blank. When choosing different items in the combobox, the chosen item does not appear in the combobox for the user to see she has chosen it - it just remains blank.
**PLEASE help**
Here is the condensed code:
[Embed(source = "../../../../flash/as3/video_player.swf")]
private var VideoPlayerAssets:Class;
_xVideoAssetsLoader = new EmbeddedAssetSwfLoader(VideoPlayerAssets);
_xVideoAssetsLoader.addEventListener(EmbeddedAssetSwfLoader.EMBEDDED_ASSET_LOADED, videoAssetsLoaded); _xVideoAssetsLoader.loadAssetSwf();
_xVideoControlsSymbol = _xVideoAssetsLoader.getSymbolInstance("VideoControlsHome");
_xVideoControlsSymbol.embedWindow.content.cb.prompt = "Choose a Size"; //THIS HAS NO EFFECT
_xVideoControlsSymbol.embedWindow.content.cb.addItem( { label: "400 x 320", width:400, height:320, data:"400x320" } );
_xVideoControlsSymbol.embedWindow.content.cb.addItem( { label: "480 x 384", width:480, height:384, data:"480x384" } );
_xVideoControlsSymbol.embedWindow.content.cb.addItem( { label: "560 x 448", width:560, height:448, data:"560x448" } );
_xVideoControlsSymbol.embedWindow.content.cb.addItem( { label: "640 x 512", width:640, height:512, data:"640x512" } );
_xVideoControlsSymbol.embedWindow.content.cb.addEventListener(Event.CHANGE, sizeSelected);

Unbelievable...
So after two days of trying shorter animations, pouring over countless amounts of code, sifting through result after result of google searches, it all came down to a 2-second delay.
When I imported the .swf into Catalyst, I set the delay to 2 seconds before playing the animation. I uploaded it to the test server, and the freezing went away. I tried several other swf files, and they all played perfectly! Granted, there's a tiny delay before the animation plays, but its better than having it play right off the bat then watching it hang.
Is this a caching or buffering issue? I would think that, when the Catalyst swf loads, it would start pre-loading the animations before it played (unless if there's a way to do that on the original .swf, but I'm not that versed in AS3 to figure it out). That may be a feature worth having in future Catalyst versions.
So, for anyone experiencing an issue where their animations hang (i.e.: an imported banner): when you import it into Catalyst and set it to play, place a 1 or 2 second delay on it before it starts playback. That should give it time to load up.

Similar Messages

  • Overlaying SWF Asset with layer components - Strange behaviors.

    Hi !
    I am brand new at Flash Builder and Flash Catalyst.
    I have been spending most of my time in Catalyst at first and realized later on that I needed some of the nice features inside of FlashBuilder.
    I created a few FlashBuilder components and brought them in Catalyst in order to speed up my designing requirements.
    After bringing in several SWF assets in Catalyst I stumlbed upon a few curious behavior.
    1. If I load SWF assets in a same page and if they are inter mixed with components layers issued either from Photoshop or made from within Catalyst, I am unable to select most of them.  Only and only if I move them away from the other components, I can actually select them. They also become available when I make a test run, which they weren't before, if they were close or under other layerrs,  but stll visible.
    2. Is there a reason why the names of the SWF are not visual at the layer level within Catalyst ?  All I see once the SWF are loaded is the terminology SWF Asset with the Skin name Wireframe.  This also seems to be creating a conflict in how the SWF components are selectable, since every time I select one of the SWF Asset, it is the one at the highest level in the layer stack that gets selected and not the one that I am attempting to select.
    3. I ran once into a problem which was related to Skin name convention where I was duplicating buttons that always kept the same Skin name, which made it impossible to re-use them, since any modification would affect all of the duplicated components.  Why can't Catalyst create new Skin names in order to avoid this behavior?
    I am pretty happy using Catalyst and Builder, but I gotta say that some of those behaviors are putting a dent in my schedule.
    Anyone would have a few words of advice ?   I am especially concerned with the "perceived" impossibiliy to use more than one SWF asset within Catalyst.
    Thank you.
    lg

    Oops, on looking back at my original post I can see I was not
    clear on an important point. The layers that hold the three
    different swf files are in Dreamweaver, one layer holds
    Parks_Monuments.swf, another holds Land_Seascapes.swf and the third
    holds Cityscapes.swf. As it works now you click on the appropriate
    button on the left and through the use of Dreamweaver behaviors it
    shows the associated swf by hiding the other two layers. BTW the
    buttons are quite crude right now - no over or down states.
    I realize I can't use the layers in an Actionscript to do
    something but would it be possible to add a script to the down
    state of a button so that it would show/hide the Dreamweaver
    layers? I guess another way of doing it would be to put each swf on
    a seperate page and have the script call up it's URL. Seems like
    that would add a lot of overhead and duplicate uploading each time
    the user switches photo categories.
    Sorry for the confusion and thanks for taking the time to
    give me some guidance - much appreciated.
    Ed DiTomas

  • Import fixed Asset

    Dear All,8
    I cannot import fixed asset to SAP Business One ( Hanna) PL8, the following message appear
    The Remaining life of fixed asset for depreciation area GAAP is incorrect
    how i can solve this issue ?
    Regards,
    Abdualla Fatayer

    the formalla is :
    remaining useful life = ( date of fixed asset that will be imported to SAP - starting depreciation date)\30 day.
    and the result from this equation is subtracted from useful life of fixed asset.
    note:
    starting depreciation date =Dec 31 from the year that customer acqustion fixed asset.
    example:
    the capitalization date of an asset is 5/2/2012
    I will consider starting depreciation date will be 31/12/2012
    I will import the fixed asset on 1/1/2014
    asset useful life is 80 Month.
    then i will use the equation above to calculate remaining useful life
    regards

  • Import fixed asset master data

    When I try to import fixed asset master data from an excel file to the Sap Business, a problem that I cannot identify occurs, and as a result, data is not imported. The process runs normally, data is processed but at the end an informational message says that zero data was imported. I would like to have help on this to solve this issue.

    Hi all
    Message was edited by: JEAN PIERRE LANCEAU
    Problem resolved : see the addon logfile in %temp%/sap business one logs/addonlog.txt to show errors

  • Import SWF created in Catalyst

    The Catalyst program I created photo gallery and exporting him into swf. Then I put it into a new project (web pages) in the Catalyst Import function. In the program I see him as a SWF Asset, but the test (Run) even when exporting to the SWF, the original interface does not appear. SWF files created in another program (Sothink) appear normal.
    Thanks

    Unfortunately you can't import an SWF from Flash Catalyst into Flash CS5.  Flash Catalyst uses the Flex Framework for building the its SWF.  Flash CS5 does not use the Flex Framework and doesn't know what to do with that kind of file.  You can load an SWF from Flash CS5 into your Flash Catalyst project, though. 

  • ComboBox issue

    So I am sure Jonathan groans when he sees my name pop up, but I found another ComboBox issue and I am looking for help finding a workaround.
    (I opened a JIRA - http://javafx-jira.kenai.com/browse/RT-27654)
    Seems that calling clearSelecion() on a ComboBox disallows selecting the same item that was selected when the clearSelection() was called. In my sample code, if you
    1) select 'a' - 'a' displays
    2) click reset button - 'a' disappears
    3) select 'a' - 'a' does NOT appear and it should
    The issue is major when the combobox only has a singe item
    package javafxapplication2;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.ResourceBundle;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.ActionEvent;
    import javafx.fxml.FXML;
    import javafx.fxml.Initializable;
    import javafx.scene.control.ComboBox;
    * @author user
    public class SampleController implements Initializable {
        @FXML
        private ComboBox<MyObject> cb;
            private ObservableList<MyObject> myList = FXCollections.observableList(new ArrayList<MyObject>());
        @FXML
        private void handleButtonAction(ActionEvent event) {
            cb.getSelectionModel().clearSelection();
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            MyObject a = new MyObject("a", "A");
            MyObject b = new MyObject("b", "B");
            MyObject c = new MyObject("c", "C");
            myList.add(a);
            myList.add(b);
            myList.add(c);
            cb.setItems(myList);
        class MyObject {
            String key;
            String Value;
            public MyObject(String key, String Value) {
                this.key = key;
                this.Value = Value;
            @Override
            public String toString() {
                return key;
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.collections.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <AnchorPane id="AnchorPane" prefHeight="200.0" prefWidth="320.0" xmlns:fx="http://javafx.com/fxml" fx:controller="javafxapplication2.SampleController">
      <children>
        <ComboBox fx:id="cb" layoutX="82.0" layoutY="78.0" prefWidth="160.0">
          <items>
          </items>
        </ComboBox>
        <Button onAction="#handleButtonAction" layoutX="130.0" layoutY="137.0" mnemonicParsing="false" text="Reset" />
      </children>
    </AnchorPane>

    Hi. Here is a workaround.
    //Modified  initialize method.  Added a null object to the list:
      @Override
        public void initialize(URL url, ResourceBundle rb) {
            MyObject a = new MyObject("a", "A");
            MyObject b = new MyObject("b", "B");
            MyObject c = new MyObject("c", "C");
            myList.add(a);
            myList.add(b);
            myList.add(c);
            myList.add(null);   
            cb.setItems(myList);
          Modified handleButtonAction(ActionEvent event) method:
    private void handleButtonAction(ActionEvent event) {
             cb.getSelectionModel().selectLast();
             cb.getSelectionModel().clearSelection();
        }

  • Imported swf

    Hi,
    I am hoping someone will be able to help here. I have a
    10-slide presentation in Captivate 3 and the first slide is a flash
    animation I created in Flash CS3. When I test the project using the
    preview option - In Web Browser everything works fine and as
    expected.
    My problems start when I publish my project. I have tried
    swf, exe, with and without preloaders; I add a blank slide in right
    at the start to see if that was the problem again with and without
    a preloader. The imported swf does not play no matter what I do.
    After a while though the click button become active and when I
    click it moves on to the next slide. I just need to work out why my
    first slide does not play correct, as this is a key slide.
    I would appreciate any help in resolving this issue.
    Kind regards

    Hi Dave
    I know you have already found your answer, but I have a
    question and/or comment.
    When you published, were you certain to include the
    additional .SWF among the files on the server? If not, that
    probably explains why it failed. By changing to Flash 6, you caused
    the .SWF to be embedded inside the main Captivate movie, hence no
    additional file to ensure you distribute.
    Cheers... Rick

  • Unable to open or import .swf into flash CC IDE

    hello, since I installed flash CC yesterday, I am unable to import .swf file into my .fla neither open .swf file in flash IDE. SWF extension is even not listed in list of supported files (I did all this normally in CS6 and before). When I try to open swf file in flash (because I got some assets in swf and need to edit it and put it to fla) it says something like "one or more files  were not imported because there were problems to read them." Shall I reinstall flash CC again or any other suggestion please ? thank you

    Maýbe you can install the trial CS6 from the product page and then sign in with your cloud ID? It has worked for me before when I had to re-install. After installed it should ask if you want trial or has a license, sign in to license and it should work again I hope. You may have to update CS6 after through the cc manager.
    Adobe should have put a full list of dropped features to read in one place before updating. It´s very poor customer management not to. But wise to all previous updates of Flash I keep every version, for ever if possible.

  • Swf asset resize bug

    This is a beauty, the code always worked before but even after rewritting using gumbo replacement components the problem is still there, I have a container that has a swf and an image in it the swf being a frame for the image. When the container is resized the swf frame and image are supposed to follow it, unfortunately this doesn't happen the swf asset reports one set of co-ordinates but displays at a size different to the reported co-ordinates.
    https://bugs.adobe.com/jira/browse/SDK-22521  this is the bug I have raised
    http://gumbo.flashhub.net/sizetest/  a link to a test, when the component is initialised it displays correctly when you use the slider to resize it the swf in the component incorrectly resizes.
    I have also attached the testbed source code (its an fxp renamed to zip)
    Has anyone else had resize issues ?.
    David.

    [Update] it seems that if you load a swf asset at runtime or directly into an image component through in the IDE the sizing behavior works as expected. If you embed an swf or copy a loaded swf  into a different resource the resizing changes from size by stage to size by draw region (i.e. the swf asset has some details outside its stage area).
    Still a bug as this was never an issue with FB3.
    David.

  • Importing .264 assets

    Hi,
    I am willing to produce a Blu Ray DVD. I have encoded 264 and AC3 files with Compressor using the standard "create a Blu Ray disk" settings.
    Once I have my files I go to DVD Studio Pro and try to import my assets. The Audio files imports well. But not the video file. DVD Studio Pro tells me that the format is not compatible.
    What shall I do?
    Thanks

    I have read in the documentation that you can produce Blu Ray for replication but no for burn.
    You cannot mak a blu-ray disc in DVD SP. HD DVD (now defunct) could be made. You may be confusing blu-ray with blue laser, which is different. Once again, DVD SP cannot even format a blu-ray disc.
    As to the H.264 assets, it is probably related to the fact you chose the preset for blu-ray disc or the setting for AVCHD to will play in blu-ray players even though it is not a blu-ray disc, but will be "better" than SD DVD.. and not H.264 for DVD SP for the setting to burn a red laser disc (Standard DVD-R/+R etc).
    There were issues with H.264 from time to time in the past for HD DVD, but have not seen them pop up yet in the new DVD SP until now if your issue is not related to using blu-ray H.264
    Type in "Creating H.264" in Compressor help and look at Creating H.264 for DVD SP and Creating H.264 for blu-ray sections

  • LDAP import for Asset Inventory - eDir support?

    After reading the docs, it seems to indicate that if you wish to do an LDAP import for Asset Inventory (for demographic data) that you can only do a one to one relationship for the main item types.
    Meaning:
    eDir User stuff can only be mapped to ZCM "user" stuff
    Workstation stuff can only be mapped to ZCM Device stuff.
    Since eDir does not have workstation things (unless you happen to be migrating from ZFD, in which case the eDir items will eventually be removed via the AWI process or no longer updated), I have to ask if eDir is truly supported?
    I can see AD because users AND computers have to be in AD (well unless you wish to punish yourself and have your pc's be in a workgroup and not be in your AD Domain, but I've yet to see any customer have an AD domain and NOT have their workstations be members of said domain).
    But seems the only LDAP import you could do with eDir (especially if ZCM is your first install) is user level items, but I'm not sure that would actually accomplish anything for DEVICES.
    We had wanted to take the user level "location" and "department" fields and map them to the workstations. Appears the only way to do this is via the old method used by jared jennings for ZFD (I see he's updated it for ZCM as well)
    Am I wrong? Is there a way to map eDir user level attributes to the device so that when you look at Site/Department on the device it has the items based up on the user that logs into it?

    kjhurni,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Import Fixed Assets data

    Hi all,
    I got error msg when i import fixed asset data, the format data already follow the import template.
    This is the error msg:
    Time     AppID     ExtID     Sev     Scope     Message
    2008-01-29 13:02:55.678      0     BA     ER     CBAMasterDataTransfer::CBAMasterDataTransfer     Year Values: INVK001;Z-007-IKA;Handycam Sony;;2005-01-31;;;;;;;;7247000;;;100;2005-02-01;48;25;LINP;166679896;;1/1/2007;690;23;;;;200;2005-02-01;48;25;D20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    2008-01-29 13:03:00.037      0     BA     ER     CFrmMasterDataTransfer::FormPutData     Exception caught!
    I use SAP 2005A PL 31 and Fixed Asset version 65
    Thanks in advance
    Dody

    You have a date in your data sheet that is formatted 1/1/2007, this needs to be formatted as 2007-01-01, I think it is the depreciation start date?

  • FIXED ASSET : Import old asset in SBO ?

    Hi,
    I'm trying to import old asset in SBO which have been totally amortized for end 1998, and it seems impossible to do it.These assets are used and net to be in the Assets Book with one resdual value equal to 1.
    Is there any limits for importing old assets ?

    post in SBO forum

  • DI API to import fixed  asset master data and acquisition.

    Hi,
    Environment : SAP B1 8.8 PL18 & Fixed Assets Add-on 880.236.00.18
    Have been used to add fixed assets, and would like to perform using the API to import fixed  asset master data and acquisition.
    The commands to access the table of fixed assets related to the API that is available?
    Thanks.

    I have the same problem...
    Is there anyone who have tried these things?

  • How to import Fixed Asset Master File

    Hi all expert,
    I used BAMasterDataImportFile to import the Fixed Asset. But the message as below appear :
    "Import end;Number of successfully imported assets: 0;Number of processed assets:2"
    After complete import the fixed asset master files still empty. May i know anybody can advise me for import fixed asset files?
    Thank for help.
    From:
    Eric Tan

    Hi Eric,
    Please refer your error with the possible reasons below (from SAP notes):
    Error message: "Import End; Number of imported assets:0; Number of processed asset:2"
    Reason: Note that there is no error. It is usually because of the conflict of Depr. Start Date , Use Life and Remaining Life.
    The following is a list of possible errors:
    1. Fixed Asset in Production Mode -- Make sure Fixed Asset is in Transfer mode before importing.
    2. The number of semicolons for each line is not 66 -- For each line, each field must be separated by a semicolon(, the number of separators( should be 66.  Number( = 66.
    3. Wrong Date Format DD-MM-YYYY or MM-DD-YYYY -- The correct date formats should be : YYYYMMDD, YYYY-MM-DD, YYYY.MM.DD or YYYY/MM/DD
    4. Asset Class unavailable -- The asset class in your csv file does not exist in Fixed Assets; make sure the used asset classes are defined in Fixed Assets before importing.
    5. Depr. Type unavailable -- The given depreciation type does not exist in Fixed Assets, make sure the used depreciation type is defined in Fixed Assets before importing.
    6. Depr. Area unavailable -- You entered data for a depreciation area that does not exist. If there are only 2 depreciation areas in Fixed Assets do not enter data for area 3 or 4.
    7. Depr. Area is inactive for asset class  -- You entered data in the csv file for an area that is not active for the given class in Fixed Assets.
    8. Life parameter is negative or the remaining life is greater than planned life -- All life parameters should be positive, the remaining life should be less than the planned life
    Life Parameters(Depr. Start Date, Useful Life and Remaining Life) are mathematically incorrect for one of the areas in csv. Remaining life = Useful life - (the difference between the first date of import year and depreciation start date). Note that it is not the difference between import date(the date you import Fixed Asset Master Data) and depreciation start date. You must calculate the remaining life correctly. For example, you want to import an asset in 2005, you import it on 2005-09-01 ,then the first date of the import year is 2005-01-01, Depr. Start Date = 2003-06-01, Useful Life = 60 months, then
          Remaining Life = 60 - (2005-01-01 - 2003-06-01) = 60 - 19 = 41 months.
          The following calculation is wrong:
          Remaining Life = 60 - (2005-09-01 - 2003-06-01) = 60 - 27 = 33 months
    Import Fixed Asset for the current fiscal year -- The fixed asset master data import function is designed for legacy data importing. We recommend you to import fixed asset master in the past years. If you insist on importing an asset for the current fiscal year, make sure the depreciation start date is the first date of current fiscal year and the Remaining Life is the same as the Useful Life.
    Year Values -- the sum of the accumulated depreciation (planned, unplanned and special depreciation) in the csv file is greater than the acquistion and production costs.
    Also, don't forget to change the fixed asset mode to transfer. Administration>System initialization>Company Details> Basic initialization tab.
    Hope this helps.
    Rogelio Elicor Jr.

Maybe you are looking for

  • Key DAte

    Hi , We ahve a Key date option in BEX Query designer i am assigning an Customer Exit variable to that key date which based on calander day. In the same Query iam using another customer exit which should be depend on the above Key figure can anyone wi

  • How to get 10 screens on a Mac Pro

    Hi All: I'm trying to figure out how to get 10 screens working together like one big desktop on a Mac Pro. Currently I have a 12core 2010 Mac Pro with 2 ATI 5770 cards driving 6 30" cinema displays.  Each of these cards are double wide. I want to con

  • Plz Help. Enable Settings in Restrictions.

    Got a problem. My brother enable restrictions and turn off all applications there. I've iphone 3g. He don't know what was the purpose of it and now i am unable to see settings, clock, phone everything. How can i enable settings so that i can turn off

  • Timestamp field in BAM dataobject

    Hi, There is requirement for us to find response time of a service in milliseconds. For this we need to insert two timestamp fields in BAM data object. But BAM is allowing us to include only one Timestamp field in a data object.Is there any other wor

  • Join returns duplicate rows

    Hi All, I am joining 3 tables:OWOR, WOR1 and IBT1. Following is the query: SELECT OWOR.DOCNUM, OWOR.ITEMCODE, OWOR.CLOSEDATE, OWOR.DOCENTRY, WOR1.ISSUEDQTY, WOR1.DOCENTRY, IBT1.QUANTITY, IBT1.BATCHNUM FROM OWOR INNER JOIN WOR1 ON OWOR.DOCENTRY = WOR1