Problem adding images to html text box.

This one, like a steering wheel down the trousers, is driving
me nuts....
Source can be downloaded where is says 'herehere' below (not
used to this forum, seems a bit weird.)
I have 2 text boxes on the stage, both are set to 'multiline'
and set to render 'html'.
they are also set to show the contents of the variables html1
and html2 respectively
via the 'Var' field in the property window.(so this is an
Actionscript 2 thing).
the html I'm using is a very basic <img src /> tag.
You can use any small image file you like to try this out,
just change both source file names.
(mine happened to be called bonkers.jpg, but gifs and pngs
seem to be the same).
When I define 'html1' directly, it works fine.
If I define 'html2' directly it works fine,
However if I define html2 via an array, although the content
of both html1 and html2 both seems the same,
(and all the trace code that follows checks this) the second
html box doesn't work.
It took me the best part of a day to figure out it was the
process of transferring from an array
that was causing the issue, but why ? What does an array do
to a string that makes it stop working at html ?
Any help would be much appreciated.
Thanks
Gaz
here
here

Giving them the same instance name was an error on my part, I
think it happened when I copied the text box across, but even
without the instance names or different instance names, the set-up
only worked when the html didn't come via an array. Perhaps not a
bug, but an anomaly.
I think I need to get out of the practice of using the
preference panel to assign variables to text boxes (something I do
a lot when debugging), and one barrier that's held me back from
switching to AS3. Now you've introduced me to htmlText(), there
will be no holding me back :-)
Thanks again.

Similar Messages

  • Since moving to Maverick and the new updated of Keynote, I have a constant problem when typing in a text box, the program crashes. Is there a bug fix for this. Drives me nuts.

    Since moving to Maverick and the new updated of Keynote, I have a constant problem when typing in a text box, the program crashes. Is there a bug fix for this. Drives me nuts. Like many who can type quite quickly but at secretarial level, the text box freezes, nothing works and you know what's coming...crash!
    This is most annoying. Is there bug fixes for this. Apparently I have the current updates and this problem still exists. Is it a Maverick bug or Keynote.
    Barry

    How did you install Mavericks, as an update ontop of the previous OS or did you wipe the drive and install clean?

  • Customizing Slideshows - how do I add an image in the text box that only shows up for a specific ima

    Customizing Slideshows - how do I add an image in the text box that only shows up for a specific image and not in every text box?

    Can you maybe provide a screen shot to further explain your question?
    Julia

  • I downloaded the new version of firefox, now my flash player wont work, the html text box is gone and so is the back and forward buttons. please help??

    I downloaded the new version of firefox, now I cant watch any movies, the html text box is totally gone, and so is the back and forward website buttons, please help? can i just have the old version back?

    Not sure whether for instance you initially had a Yahoo optimised version of Firefox, and have now overwritten it with an official Mozilla version. Although the Mozilla version should NOT add unwanted features, but the Yahoo version may well do.
    If you merely need to find the Yahoo emails page quickly just add it as a bookmark or as a bookmark on the Bookmarks toolbar and make sure that is visible.
    Clicking the star icon on the location bar whilst looking at your emails will bookmark the page.
    * [[How to use bookmarks to save and organize your favorite websites]]
    * [[Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window]]
    I do not use Yahoo myself,and am not sure what add-ons are available. You could search yourself using
    * FirefoxButton -> add-ons
    ** see [[Find and install add-ons to add features to Firefox]]
    ** examples [https://addons.mozilla.org/en-us/firefox/addon/yahoo-toolbar/ yahoo toolbar] & [https://addons.mozilla.org/en-us/firefox/addon/yahoo-mail-notifier/ mail notifier]
    * also look at Yahoo's own information such as http://help.yahoo.com/tutorials/toolbar/cl3/c3_ff_toolbar1.html

  • Can I stop iWeb from making png image files for text boxes?

    I have a web page that contains one text box - the TextEdit file from which I pasted the text is 4 KB. The html file from iWeb is 12 KB. The shapeimage_2.png file is 132 KB! Is this necessary? How do I stop this. This is just text. Arial font, regular, 15 pt. The formating in the TextEdit version and the iWeb version is identical.

    Some tips from this forum for reducing the number of png files in a web site:
    1 - do not use and frames or borders, etc. around photos.
    2 - don't use any reflections.
    3 - create your own navigation bar with linked text* and turn of the iWeb Navigation bar. That's because the nav bar is all png based.
    *Put your linked text directly under the Navigation bar. Then turn off the nav bar in the Inspector window. The nav bar will disappear and the linked text will move up to the top of the page as seen in this screenshot.
    4 - use only the web safe fonts from the Font pane.
    5 - do not use drop shadow on fonts.
    6 - turn off smart quotes
    7 - if you add a jpg to a page don't resize it in iWeb as that will cause it to be converted to png. Resize it to what you need before adding to the page..
    The above will reduce the number and size of files associated with a web page quite a bit. Photos with fancy frames and reflections can generate a thumbnail png of around 110KB whereas the plain version will be a jpg of only 28KB. Although it doesn't sound like a lot, it will speed up loading of the page and be more darkside (i.e. PC) friendly.
    Run a test with a test site and publish to a folder. Then follow the hints above and publish to another folder and compare folders.

  • Converting images that include text boxes and callouts in FM

    Hello,
    I'm on a new project (TCS 3.5, RH 9, FM 10) that requires me to include text boxes and lines (callouts) on top / in front of many of the images in FM. The reason they are not allowing me to add the text/callouts to the images themselves is because they want to keep the text boxes editable for translation.
    The problem: After importing into RH, these images have white borders on all sides that they didn't have previously and I can't figure out what's causing it.
    When I remove the text/callouts from over the images in question, then reimport, the problem resolves and the white borders disappear. When I view the original image files, there are no borders present. After I import, I view the image file in the RH folder and it does include the border. (So the border is on the image itself.)
    Presently, the Object Properties for the images are as follows:
    Offset From:
    Top: 0.0"
    Left: 0.0"
    Border Width: 0.015 (which is lowest FM allows me to set... I get an error message when I try to enter 0.0)
    Anchored Frame settings:
    Anchoring Position: Below Current Line
    Alignment: Left
    Cropped/Floating: both unchecked
    I've tried many different variations and tests; probably too many to list here. In short, the "border" appears when there is text/callouts on the image and it disappears when I delete the text/callouts. I was hoping that someone may have had a similar issue. Please let me know if you need more info to troubleshoot and thanks for reading.
    Best,
    Tom

    I had the same problem with callouts, but my solution was to add them directly to the image, so that doesn't help you.
    Another things you can try to is ensure that the edges of the image do not touch the edges of the anchored frame. Make sure there is a bit of white space. I don't know why, but when any of my images touch the anchored frame, the conversion looks awful.
    Also, my images appeared best in Robohelp when I set the properties for the image in Robohelp as follows:
    File > Project Settings
    Import tab
    Edit conversion settings for FrameMaker documents
    On the left side, select Image
    Set Width and Height to 0pt (this ensures that the image is not resized)

  • Adding Images to a Combo Box-Acrobat 9 Pro

    Hello everyone. Can images be used as selections in a combo box in Acrobat 9 Pro? If so, how can I set that up? I only see an option for text choices when I look at the combo box properties. Basically, I want to click the drop-down and see images (clip-art basically) to choose from instead of text choices. Thank you for the help.

    Yeah, unfortunately, that isn't an option for the people will be using this form. I really need to know if there is a way to have 1 text box that I can alter line spacing.

  • Removing image overlapping over text boxes in InDesign?

    I am importing an image without a background and when it prints, you can see where the image has been placed over the text box. How can I prevent this to allow it to look natural?
    I am submitting a quote in a grey box. When I insert the speech mark image, the PDF looks ok but when I print the addition on top has appeared.

    I am importing an image without a background and when it prints, you can see where the image has been placed over the text box. How can I prevent this to allow it to look natural?
    I am submitting a quote in a grey box. When I insert the speech mark image, the PDF looks ok but when I print the addition on top has appeared.

  • Simulation Capture Problem CP4 - last character in text box cut off.

    This is somewhat difficult for me to explain, but here is what we are experience. The issue we are having is when capturing a demonstration or simulation of our Windows based form in Captivate 4, occasionally the last character of text in a text box field appears to be cut off unless an extra space is added after the character. However, after advancing to the next field in the capture, the complete text does appear in the previous field. So it is actually capturing the text but for some reason it is not showing on the previous slide capture when that text box is active. We are capturing at a resolution of 1024x768.
    Has anyone experienced this behavior? If so what was the solution?
    Thank you.
    Kyle

    Hi Kyle,
    Yes, I have seen this one numerous times. Sometimes I find that pressing the Print Screen key after I have finished typing can help ensure that all the  characters are captured correcty. Pressing the PrntScn enables you to capture manually and is something that many Captivate users prefer to do rather than rely on Captivate's automatic capture engine.
    To be fair, if you own Adobe Captivate 4, then you might find that the new Capture interim screenshot feature (located in the Preferences dialog) might capture all the text for you automatically. Though I have to say that I still prefer to press PrtScn just to be on the safe side.
    HTH
    Best - Mark

  • How can i enable the html:text box when clicking the html:button

    Hi,
    i have a text box which is disabled defaultly and i want to enable it when i click on submit button.
    <html:button property="new" value="new">
    <html:text property="name" disabled="true"/>
    how i will enable that text filed? please tell me?
    Thanks,
    swarupa

    try using javascript onclick attribute:
    onclick="document.form.name.disabled=false"
    m

  • Adding images in custom dialog box

    Hi!
    Do  you know if it's possibile to insert an image in a custom dialog box? I mean during the custom dialog box design (during the .dre file creation).
    Thanks to all!

    Hi Stemens,
    I'm hesitant to answer your questions anymore because somebody always comes behind and shows everybody how much I don't know   Anyway, I do not know of a way. I remember that there have been other developers discussing this and I think everybody just gave up. I have never seen an image in a dialog box, so that tends to indicate to me that no one has found a way.
    Russ

  • Adding a graphic into text box (runtime without drawing sprite)

    I have the game instructions in a scrolling box but would
    like to add graphic of the arrow keys
    into the text field .
    this is probably simple .. tried adding with "+" .. but
    wasn't that simple...
    thanks for considering

    it can be either ... I tried with a library graphic ... and
    then as a mc .. but figured a image in the library would be the
    easiest ....
    was hoping I could just add it in the AS3 text script.. but
    did not work for me
    thank you for asking

  • Javascript - added images display as grey boxes

    I am attempting to add an Image to an InDesign document via a javascript that I am executing via the RunScript() soap method of InDesign Cs4 server.  The script I am using to add an image is something similar to this:
    var imageFile = File("//c/images/animage.pdf");
    var imageGraphic = myDocument.pages.item(0).place(imageFile, null, imageLayer);
    imageGraphic = imageGraphic[0];
    var imageFrame = imageGraphic.parent;
    imageFrame.geometricBounds = [IMAGE_TOP_Y, IMAGE_TOP_X, IMAGE_BOTTOM_Y, IMAGE_BOTTOM_X];
    imageFrame.fit(FitOptions.proportionally);
    imageFrame.fit(FitOptions.frameToContent);
    The script adds the image correctly, but when I pull up the document with InDesign, the Images are displayed as grey boxes.  I am able to fix this within InDesign designer by manually setting the "Display Performance" to "High Quality" through the menus, but I need to handle this via the script run on the server.  I attempted to update the script to the following:
    var imageFile = File("//c/images/animage.pdf");
    var imageGraphic = myDocument.pages.item(0).place(imageFile, null, imageLayer);
    imageGraphic = imageGraphic[0];
    var imageFrame = imageGraphic.parent;
    imageFrame.geometricBounds = [IMAGE_TOP_Y, IMAGE_TOP_X, IMAGE_BOTTOM_Y, IMAGE_BOTTOM_X];
    imageFrame.fit(FitOptions.proportionally);
    imageFrame.fit(FitOptions.frameToContent);
    //HERE IS THE NEW LINE
    imageFrame.localDisplaySetting = DisplaySettingOptions.HIGH_QUALITY;
    This script runs without problems within the CS4 ExtendScript Toolkit on my local pc.  However, when I run the script against the InDesign CS4 server, I get the following error:
    Error Number: 55
    Error String: Object does not support the property or method 'localDisplaySetting'
    Does anyone have any advice on how I should proceed?  My main goal is to have the image display correctly without the grey box.

    hello, I'm running into the same issue with image showing up as grey boxes. I'm updating documents via (JS) scripts by placing new images into rectangles. When I open up that document after the script saves it, all I see is a grey box until I change the Display Performance to Typical (or higher). In my scripts, I can change the localDisplaySettings to DisplaySettings.TYPICAL, but it only works locally, when I run this on the server it fails because it says DisplaySettings is undefined. I'm wondering if this is a server setting, and if so, how I might be able to change it?
    Thanks in advance!

  • Problems adding images

    I'm trying to create a website for my photography. Why can't I add more than one photo per page? The second photo begins disappearing under a blue line when I enlarge it.

    Try taking photos across one at a time - I have had problems when selecting all and copy paste.
    check out www.norrislyons.com if you are doing photo websites.
    Email me if you need more help
    Also, www.shaldoncottages.com is another site I built

  • How do I have an image move with a text box?

    I need to embed an image within a text box so that when I add additional text in the future, the image moves with the text that surrounds it.
    For example, if I have a paragraph of text, then on the following line vertically I have an image, then on the following line another paragraph of text ... When I add additional paragraphs of text above the image, how can I have the image track down to stay between the original two paragraphs of text?

    Thanks Zak!  I figured that out but now have another problem that I just posted. The app keeps locking up when I try to export HTML or upload my site to the server. Please give me any advise on how to handle it.
    Here's my other post:
    Hi,
    I just upgraded to the latest version of Muse. I made a few changes to my site and I'm trying to export the HTML. I've now tried 3 times and the app locks up at 89%. It completes all pages, but locks up there. When I look into the Muse Export folder, there is nothing there. The window reads "Finishing export" but it stays at that point for more than an hour when I finally give up and force quit.
    Any ideas? Anyone else having this issue? Any ideas on how to get my HTML exported successfully?
    Thanks in advance for any help!
    Reply
    27 Views   2 Replies   Latest reply: amchambers,      May 26, 2013 9:23 PMWas this helpful? Yes   No
    Replies
    20 posts
    Sep 19, 2012
    1.amchambers,May 26, 2013 9:18 PM   in reply to amchambers
    Just an update. Previously I was attempting to export HTML to the Muse Export folder on my computer. I described what happened above. Now, I'm trying to publish directly to my FTP site. Its doing basically the same behavior where it exports all desktop pages (189 of them) then it locks up. However, the interesting thing is that when exporting to the Muse Export folder on my computer this said it was 89% complete. When uploading to my server, it says its 59% computer when all pages have been exported. Both options result in the app locking up and never completing the export. I did check my site online to see if the pages were really updated. I made a change to the nav bar on the master so I should see that on every page. It is not showing up online yet even though the app says all 189 pages have been exported. Still looking for help, all advice and ideas will be appreciated! I do want to get my updates online.
    Was this helpful? Yes   No
    Reply|
    Mark as:
    CorrectHelpful
    20 posts
    Sep 19, 2012
    2.amchambers,May 26, 2013 9:23 PM   in reply to amchambers
    Here's what I have when it locks up. It sits like this for hours.

Maybe you are looking for

  • Bizzare effects when letters are created via a CASE...

    CRM 5.0 Our production CRM system is periodically copied into our regression system. Sometime in late October it was noted that all apostrophe (') characters we being replaced by hash (#) characters when any letter was produced as part of a Case run.

  • How sync beats with audio files.

    Hi, I took many songs that I created and synced beats to them. I was able to do this easy with the Acid program. Now, I'm using Logic 8, got as far as clicking the beat map in the global functions. But it does not say the beats per minute nor do the

  • Lat & longitude coordinates in flash map?

    Currently, I have a map of the united states, where each state is a button that jumps to another page when you click on it. I also have a list of customers and the (town, STATE) where they are located. I would really like to be able to have flash coo

  • Simple Math VI crashes LabVIEW 2009 SP1

    Hi, We previously filed a related issue, (ref #: 7302858). The last problem was resolved by  Andy Hertzka from NI re-compiled the VI and send it back to us. That re-compilation solved the LabVIEW crashing. However, the interesting crash happens again

  • How to buy in-app purchase

    I updated my Garageband app to the now free version and apparently there is an in-app purchase that unlocks new instruments. I can not find it ANYWHERE. Please help.