ComboBox prompt disappears when published to HTML

I am creating a form which contains four ComboBox components. I have defined the "prompt" property for each of these ComboBox components using the Component Inspector. The only real difference between these four ComboBox components is how their dataProvider property is defined.
Two of these components use DataProvider objects which I have defined using Actionscript. I defined the dataProvider property for the other two ComboBox components using the Component Inspector.
My problem is that when I publish the Flash movie to HTML, the prompts disappears for the two ComboBoxes whose dataProviders I defined using Actionscript. The prompt remains visible for the two ComboBoxes whose dataProvider property I defined in the Component Inspector. I should also mention that prompts for all four ComboBoxes appears just fine when I just publish to Flash.
I have tried correcting this by setting the "prompt" property using Actionscript but the result is the same.
Thanks in advance for any suggestions on how this may be corrected

I finally found a solution to my problem, however, I am not entirely sure I understand why the problem is there in the first place.
One of the things I did not mention in my original post, is that the DataProvider objects for the ComboBoxes are populated with XML from an external file which I am loading via a URLLoader object.
I originally had set the style of the ComboBox components within the same function that I am using to load the XML (I have called this function "init"). When the XML is loaded, I call another function to populate the DataProvider object for the ComboBoxes with XML. For some reason, I have to set the style of the ComboBox components again within that function otherwise it is as if there were no styles applied. The following code demonstrates my problem. I added in the timer function just to help demonstrate the issue, namely that the style set in the init function only applies until the DataProvider object is created and assigned to the ComboBox.
import fl.data.DataProvider;
var cbTextFormat:TextFormat;
var xmlStatesLoader:URLLoader;
var xmlStates:XML;
var dpStates:DataProvider;
function init():void {
//load data for states selection list
xmlStatesLoader = new URLLoader();
xmlStatesLoader.load(new URLRequest("states.xml"));
xmlStatesLoader.addEventListener(Event.COMPLETE, onComplete);
xmlStatesLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
//set the text format for ComboBox text fields
cbTextFormat = new TextFormat();
cbTextFormat.color = 0x0000FF;
cbTextFormat.font = "Arial";
//set style for cbOne ComboBox
cbOne.textField.setStyle("textFormat", cbTextFormat);
cbOne.textField.setStyle("embedFonts", true);
function onComplete(e:Event):void {
//notice that the prompt is displayed until the timer runs out and the onTimerComplete function is called
var myTimer:Timer = new Timer(1000, 3);
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
myTimer.start();
function onTimerComplete(e:TimerEvent):void {
xmlStates = new XML(xmlStatesLoader.data);
dpStates = new DataProvider(xmlStates);
cbOne.dataProvider = dpStates;
cbOne.prompt = "Loaded";
//uncomment the following lines to fix error
//cbOne.textField.setStyle("textFormat", cbTextFormat);
//cbOne.textField.setStyle("embedFonts", true);
function errorHandler(e:IOErrorEvent):void {
trace("XML Loading Error: " + e);
init();

Similar Messages

  • EMERGENCY! All site content disappearing when publishing to HTML

    When publishing to HTML, ALL content on the site (inclusive of header nav and footer content) is disappearing. Only the browswer image is visable. http://www.brainstormsuccess.com
    I quite Muse. Dumped cache. Rebooted. Have tried creating new layers and copy and pasting content. Nada.
    Some are seeing: MuseJSAssert: Error calling selector function: TypeError: Object [object Object] has no method 'toBrowswerWidth'
    ISSUE RESOLVED: Truncated line of Java script in the header.

    Hi,
    The site seems to be working fine on my end. Please refer to the following screenshot :
    Please try in a different browser.
    Regards,
    Aish

  • Urgent problem, somwthing disappear when publish to html

    Dears, i published my application to html file, the big problem, but somethings disappear from html, and the .swf file and .exe are working correctly.
    and my device has flash player 10, flash cs3, IE7, googlechrome, firefox and finally i founded that it works on some devices and others no.
    so if that in flash publishing settings, or something un my device/browser settings ?
    thank you very much in advance,

    Here's my screenshot, preloader is at the 1st frame, when reached 100 it must run on to the next frame,
    when published in html it doesnt automatically run the preloader, i need to play it first..
    tnx

  • Problem in preloader when published to HTML.. help..

    i have this application which has a preloader, when i try to publish it in html the preloader automatically sets to 100%, i need play the application first before i can see it load,
    is there a setting in here which i can set the preloader to run automatically?
    tnx..

    Here's my screenshot, preloader is at the 1st frame, when reached 100 it must run on to the next frame,
    when published in html it doesnt automatically run the preloader, i need to play it first..
    tnx

  • Shadow on slideshow box disappearing when published or in preview

    Hi.  I have a shadow on slideshow box and it disappears when I preview it.  Does anyone know why this happens?  You can preview my site that's under construction here:http://engagingfans.businesscatalyst.com/index.html
    thanks!

    After exchanges with Liz in the Typekit support team that suggested the text was displaying correctly according to the CSS defined in the published site, I think this problem relates to Muse CC 2014 Paragraph Styles.   Either I inadvertently used a style definition that BC overrode (I don't think this is possible) or there might be a bug in Muse.
    Basically, the affected text used a Muse Paragraph Style called "Content Headline" which was defined using Open Sans Regular.  For this particular instance I changed the paragraph text formatting to use Open Sans Light instead.  So in Muse terminology, the Paragraph Style for the paragraph appeared as "Content Headline+" with the changed font listed as the modification.  It appears that for whatever reason this modification is not picked-up when the site was published on BC and the CSS entries created.
    I then created a new Muse Paragraph Style called "Headline - Page Intro" using the Light version of the font; so this was part of the default style definition  Applied it to the paragraph and re-published.  Problem solved as far as I can tell.
    It will be interesting to see if this is confirmed by Adobe support.

  • No audio when published to HTML 5

    Hello,
    Im using Captivate 7.  I have a project with a video that has audio in the video, and also a couple small audio clips that are all on different pages, these are activated through an click button.  The problem is when I publish to HTML 5 I lose all audio.  The audio in the video is gone and the audio on the buttons is gone.  If I publish to SWF all the audio is available and working correctly.   It does not matter if I play the HTML on a mac, pc, ipad, etc etc there is no sound.   The thing that is really stumping me is when I play the project through captivate the audio is correct, it is just when I publish all audio is gone.
    Any ideas?
    Thanks,

    MMDENT,
    I did not have audio attached to an image.  The audio was 3 slides in and was a youtube streamed video an advanced action for when correct they got a clapping sound.
    The corrupt image came from the preloader image.  File>project info>start and end.
    The way I found this was by going through each property one by one until issue was found.

  • Widget (interaction) size and font issues when published in HTML 5

    I'm using Captivate 7 and when I create and preview widget interactions (accordian, tab, etc.) the sizing and font look correct. However, when I publish it to HTML 5, it is not the right size, is left justified rather than centered, and does not have the custom font (defaults to Arial).
    Is there anything I can do to fix this? Please help!

    Adobe writes inline css for the font on that widget, in the CPM.js file. You's have to create a new class and and write your own rules using @font-face to ensure end-users can use the font. SWF files can embed fonts, but html does not.
    If the user doesn't have to font you use it will default.
    This is an example of how the Header title and instruction of the widget is written:
    <headerTitle><font face="Arial" style="Arial" size="23" align="LEFT"/>
              <textDecoration bold="true" underline="false" italic="false"/>
              <color textColor="0xffffff" highlightRequired="false" highlightColor="0xffff99" highlightState="false"/>
            </headerTitle>
    <headerInst><font face="Georgia" style="Georgia" size="14" align="LEFT"/>
              <textDecoration bold="false" underline="false" italic="true"/>
              <color textColor="0xb9dff6" highlightRequired="false" highlightColor="0xffff99" highlightState="false"/>
    </headerInst>

  • Stroke/Border Disappears When Viewing on HTML File

    Hello -
    I am using Flash CS5.5. 
    I am working on Flash banners and I want to place a 1 pixel stroke/border around each banner.
    I did the usual, created a new layer, used the rectangle tool, put in the correct stroke number (1 pixel), matched the size to the banner and aligned it correctly, etc.  The stroke is the exact dimensions of the banner/movie and the stroke is on the top layer.
    When I Preview/Test the banners within Flash the stroke/border looks fine.  However, after I publish and I view the published SWF and also separately on a HTML page, the border/stroke does not show up on the right side and on the bottom.
    If I change the stroke to 2 pixels (from 1 pixel), then the right side shows up but the bottom still does not.
    Any ideas why this is happening? 
    Thanks!!!

    Well I found the answer here:  http://furizu.net/blog/2009/08/the-myth-about-flash-border/#more-312
    Not sure why it has to be done this way but it works.  If anyone else has other solutions I am still interested.
    Thanks

  • Photo Albums & Photos Disappear when publishing using ftp

    Hi,
    I am having trouble with both my iweb sites photos. There is two main problems:
    1. An album that appears normally in iweb is not visable on the published site
    2. An album will have random photos that are missing and replaced with a blank on the published site
    Some things I have tried:
    - I publish via ftp, so I tried publishing to a local folder - The albums and photos work normally
    - I tried republishing with a 3rd party cyperduck - same problem
    - I thought maybe it was therefore a ftp problem. So I logged in to my hostings file manager and check if the files are actually on the server -  but they are..
    - I tried republishing the entire site - same problem
    An example can be seen on the following - the third album is completely missing and if you go into the other albums, there will be random gaps where other photos are missing.
    http://www.gippmed.com/My_Albums/My_Albums.html
    Similar problem on this site, on the USA album, there is two photos missing towards the bottom:
    http://www.lukecainshooting.com/Luke_Cain/Photo_Gallery/Pages/USA.html
    Any help or suggestions would be greatly appreciated.
    Thank you

    Hi Cyclosaurus,
    Thank you for your reply. Sorry to bug you again but can I ask some further questions? Pls excuse my lack of knowledge on these things.
    In relation to your points:
    1) In the ftp publishing settings, public_html is acutal in where it says "site name", where it says "URL" I have http://www.gippmed.com. I was advised to put public_html in "site name" from my hosting. If I put anything else it publishes the entire site to a folder with that name on the server and is not viewable online?
    2) I have removed the spaces in the album page name and will reupload soon. In relation to the image file names, am I correct in saying that iweb is naming them from the captions? Do you really have to use one word captions or use underscores, it looks a little odd? I have read troubleshooting articles about iweb and spaces and it also recommends similar as you are, suggesting that all page names should have underscore instead of spaces. Problem is, if for example I change the page name "About Me" to "About_Me" iweb automatically changes it in the navigation menu and this looks silly to have undescores in the Nav Menu. Is there a way around this?
    Lastly, a new problem that I have never had before:
    Previously, iweb would remember what I had published and only publish new site changes. Now, every time I turn my computer off and on, I open iweb and it doesn't recognise any of the previous publishing, ie it republishes the entire site.
    Thank you again for your help

  • Graphics disappearing when publishing to Presenter

    Help! In Powerpoint the graphics show up fine but when I
    publish some of them end up not showing up at all. I have no idea
    why this is happening. I'm not creating the presentations, I get
    them from my clients. I'm using Powerpoint 2007, and presenter plug
    in 6.

    Hi,
    The site seems to be working fine on my end. Please refer to the following screenshot :
    Please try in a different browser.
    Regards,
    Aish

  • Getting a black screen when publishing in html or preview in browser

    Hi,
    Can anyone help. I am trying to publish a file that I converted from a captivate 4 file. It si a basic file with click boxes, captions and failure boxes. i also have 2 introductory slides with a slide BG, and animated text. (I need to go back and read that post about that). Can anyone help solve this problem? I cannot even preview via browser from withing c5.
    Thanks for looking!

    Try updating your Flash Player to the latest version.
    This black screen issue was first discovered several months ago after the first Flash Player 10 release.  It was caused by a conflict between the new Flash Player and Text Animations in Captivate.  Adobe issued a patch for Captivate 5 that required republishing content to fix the conflict.
    http://www.adobe.com/support/captivate/downloads.html
    Newer versions of Flash Player do not result in the same conflict, but you should still patch Captivate 5 and republish to be safest.

  • Help me - imported captions disappear when published!

    Help! I published my Captivate movie as an .exe file.
    To create it, I had imported several slides from two other
    Captivate files. Both of these files run fine. I imported the
    slides and objects, and everything shows up in the "final" .cp
    file. However, after I saved it, and upon publishing it, NONE of
    the captions appear!
    They are in the .cp file - I swear! I tried manipulating them
    to the front, I checked the timing of my buttons - nothing. I even
    tried just importing the objects from the files all over again. The
    graphics import fine, but again, my captions don't appear, even
    though they show up in the .cp file!
    What's going on????

    i use FLE2G-13S2C
    maker : Point Grey

  • FrameMaker 11 omits embedded pictures when publishing to epub 3

    I am trying to publish a book containing multiple embedded pictures to epub 3, but for some reason the FrameMaker 11 omits the pictures when running the publish script. The pictures also disappear when publishing to html help, but not when merely publishing to pdf. What may be wrong?
    I am running TC4 on win64 with everything updated

    What's the graphics file format of the imported image files?
    What conversion have you specified for the output, assuming that ePub workflow is similar to XML and HTML, where image destruction is controlled by:
    File > Utilities > HTML Setup
    [ Options \... ]
    File Format for Images:
    (_) GIF  (_) JPEG  (_) PNG
    {any new choices in FM11?}
    And since FM converts image formats for some workflows, those files have to reside somewhere, so access and permission problems could arise.

  • What happens when publishing both SFW and HTML5?

    I am publishing courses that will be used for both mobile devices (iOS and Android tablets) and computers. Most of the learners will access these by computer. When publishing to HTML, browser compatibility and performance are a challenge. I would prefer computers playback in Flash and mobie devices default to HTML 5.
    What exactly happens when I publish using both formats? Will the browser support be detect and launch and deliver the most compatible training?
    I'm also curious of any best practices used by others.
    Any help is much appreciated,
    Jon

    Yes, that is exactly what happens. It first detects mobile devices then the swf as a fallback. Some people have had to add other user agents as this is what Captivate checks for:
    ["blackberry","android","iphone","ipad","symbian","smartphone","ios","windows ce","webos"];

  • Desktop wallpaper published to HTML in Flash

    How do I change the alignment of the published html file on
    my Desktop when displaying on single monitor?
    I created a 1024 x 768 image in Photoshop; saved it as PNG
    file and imported it in Flash 8. I added a few buttons to it and
    published the file in SWF and HTML so that I could use the HTML
    file as my Desktop background. The published file size is also 1024
    x 768. When I apply the HTML file as my desktop background, the
    image on the desktop is pushed down and right leaving a 1/4" border
    at the top and left side of the screen, cutting off the bottom and
    right side of the image. However, when I publish the file in
    animated GIF or just set the PNG image as my Desktop background,
    they align correctly on the Desktop. I only experience this issue
    when publishing to HTML from Flash. When I extend my Desktop to
    dual monitors, the HTML wallpaper is aligned properly on the left
    monitor (does not extend to the monitor on the right).

    Just searched and found the answer by orangetractor.
    The getURL command works, but not offline. Upload files to
    server and test; it works then.
    getURL("pagename.html#anchorname");
    anyone else think its weired that it will work online and not
    off?

Maybe you are looking for

  • What is Marketing Manager in OBIEE administrator??

    When to use OBIEE Marketing Manager and in which situations?? Thanks in advance

  • Communication channel Attributes non trasportable

    Hi,       Some attributes of CC are non transportable during the transportation of Configuration objects. Can I have any  list or doccument one have which attributes are trasportable and which were not ? needed for FILE, JDBC, HTTP, IDOC, RFC. Thanks

  • Local sld pull from central sld

    We are in the process of configuring a brand new sp19 solution manager server. We have a central sld on a dedicated server with several systems already registered on it  I created a local sld on the new solution manager server. I want to pull the sys

  • Nike+ iPod - Adobe Flash = unusable Safari on iPad/iPod Touch

    If Apple does not support Adobe Flash, why did Nike+ iPod created their homepage on a 100% Flash based site? I can't seem to find the logic with this. Now I can't view my runs on my iPod Touch and iPad devices. They should have at least an app for th

  • Cs6 trial downloaded but not in programs list.

    I recently downloaded the CS6 trial version onto my Gateway 64bit system.  The files ended up in my adobe programs folder, but NOT on my programs list and I have no desktop icon to launch the program.  How to I get the files into my programs list and