I want to embed text AND image from same XML file

Hey,
I got following problem:
I want to put 1 image AND my text in 1 external XML file.
I can load either one of them in seperate XML files.
I need this because I want my content to be scrollable on my website and with this my image has to scroll with my text.
I got following AS3 put in now:
(ACTIONSCRIPT3.0)
//LOADING EXTERNAL XML & IMAGE//
var xml:XML;
var urlRequest:URLRequest = new URLRequest("externaltext/welkom_content.xml");
var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
urlLoader.addEventListener(Event.COMPLETE, urlLoader_complete);
urlLoader.load(urlRequest);
function urlLoader_complete(evt:Event):void {
    xml = new XML(evt.target.data);
    welkom_content_text.text = xml.toXMLString();
//LOADING EXTERNAL PICTURES//
var xmlData:XML=new XML();
var pHeight:Number = 200;
var pWidth:Number = 200;
var listLoader:URLLoader = new URLLoader( new URLRequest("externaltext/testxmlimage.xml") );
var picLoader:Loader = new Loader();
listLoader.addEventListener(Event.COMPLETE, gotList);
function gotList(evt:Event):void {
   var xmlData:XML = XML(listLoader.data);
   var numImages:Number = xmlData.pix.length();
   var stImage:String = xmlData.image
picLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, gotPic);
picLoader.load( new URLRequest(stImage) );
listLoader.removeEventListener(Event.COMPLETE, gotList);
function gotPic(evt:Event):void {
var thisBmp:Bitmap = Bitmap(evt.target.content);
thisBmp.x = 0;
thisBmp.y = 0;
var thisWidth:Number = thisBmp.width;
var thisHeight:Number = thisBmp.height;
thisBmp.scaleX = pWidth/thisWidth;
thisBmp.scaleY = pHeight/thisHeight;
addChild(thisBmp);
picLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, gotPic);
(/ACTIONSCRIPT3.0)
And my XML file for the text content is as following:
(XML TEXT FILE)
<?xml version="1.0" encoding="utf-8"?>
.... ALL OF MY CONTENT
(/XML TEXT FILE)
And for my image the XML file is as following:
(XML IMAGE FILE)
<?xml version="1.0" encoding="utf-8"?>
<imagelist>
<image>externaltext/testpicxml.jpg</image>
</imagelist>
(/XML IMAGE FILE)
Does anyone know how to fix this and how to do it?
Thanks in advance!
Every help is appreciated!

Thanks!
And again... I'm doing some things wrong.. I feel dumb!
Trying to make a website in ASP.NET almost whole day, so my head isn't set to AS3 at all..
My code now to embed XML looks like:
var xml:XML = new XML();
var XMLURL:String = "externaltext/welkom_content_pic.xml";
var myXMLURL:URLRequest = new URLRequest(XMLURL);
var myLoader:URLLoader = new URLLoader(myXMLURL);
var page:Sprite = new Sprite();
myLoader.addEventListener("complete", urlLoader_complete);
function urlLoader_complete(evt:Event):void {  
addChild( page );
page.addChild( welkom_title_text );
page.addChild(  welkom_content_text );
page.addChild(  welkom_image_holder );
xml = new XML(evt.target.data);   
welkom_title_text.text = [email protected]();   
welkom_content_text.text = xml.item.toString();       
//use URLLoader to load the image from the path [email protected]()
Probably set some things wrong..
And what exactly do I have to set to load my image with it?
We were all a beginner once.. but I'm the uber annoying beginner I think... hehe
I probably won't be answering untill thursday, because I got a day off, so..
Thanks!!!!!!!!!!!!!!!!

Similar Messages

  • How can I erase the residual background text and images from the backside of a scanned page?

    How can I erase the residual background text and images from the backside of a scanned page?
    Also, I wanted to know what each subscriptions included as far as my question above is concerned?
    I am trying to edit a scanned page (pdf file) by changing some words and erasing the background from the page that is showing through it since the paper is so thin and want to know which subscription to buy in order to complete these tasks?

    This cannot be done in Reader. I think you will need software like Photoshop. You may be able to get buy with Photoshop Elements, but I haven't used recent versions of that software. Using either software this will not be an automated task.

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • Load Multiple Tables (schemas) from same XML file

    Hi,
    This is first time i am working XML files.
    I have one XML file with two tables (schema). I need to load those two tables into two different Target tables.
    This is the startegy to choose tables.
    <Entry type="full"> --Table 1
    <Entry type="short">--Table 2
    I am try to find the tables like this using condition split (Type == "Full" ) but tables are not splitting as expected, is am i going with wrong approach??
    Can anyone suggest me to process multiples tables from same XML file??

    Hi Naveen,
    After the issue in my environment, the package works well that the data in the XML file load to two destination tables based on one column values. The screenshot is for your reference:
    To troubleshoot this issue, could you please check the values in the type column? Verify the values have exactly the same characters, case sensitivity. It seems that you haven’t write correct values in the Conditional Split Transformation. They should be like
    below:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
     If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Paste selected text AND images from a webpage to Pages/Word?

    I'm a new Mac user (also running virtual Windows XP via vmware fusion), and I know next to nothing about my Mac. Please bear with me if this is something that has been answered (I looked, but didn't find a specific answer for my question...it may be here, but I can't find it).
    On a Windows-based PC, all I need to do is select, copy, then paste into a Word document. All text and images would paste. I can't seem to figure out how to do that in Pages or Word (have MS Office for Mac, too).
    Thanks for any help.

    I suppose I was hoping I could do on my Mac, what I did on my Dell...that doesn't appear to be the case.
    Specifically, I'm talking about clicking/dragging to select what I want (including images), opening a Word document then pasting everying, including ALL selected images. More specifically, at sites with game walkthroughs. I prefer to save them to a document and refer to them offline, if I need to. I actually tried it at 2 different sites (one that hosts their own images and one that does not), with the same results.
    While I was waiting for a response (thank you, so much, by the way), I tried again and actually managed to get the first 3 images (of 60+) to paste into Word. There were blank places in Word, but the invisible images were clickable. In Pages, only the text pasted.
    Tried it every which way, but Sunday, LOL, and nothing worked. If it can't be done on my Mac, then I'll just keep using my Dell (I knew there was a reason I decided to keep it) for that sort of thing and then email them to myself...or try installing my MS Office '07 under virtual Windows.
    Thanks, again.

  • Aiuto Riproporzionare tutto in Indesign CS6! readjust text and images from (30x30)cm to (23x23)cm..without rewrite everything

    Ciao a tutti!
    Si dà il caso che io abbia impostato un'ottantina di pagine in formato 30cm x 30cm (quindi un quadrato leggermente più largo di un a4 in orizzontale!)...ebbene mi sono accorta che è troppo grande il formato per quel che devo fare...perciò se volessi trasformarlo in un quadrato 23cm x 23cm devo riproporzionare tutto!immagini e testo!..c'è un metodo veloce per farlo che non sia riscrivere ogni cosa?.... :((((
    Grazie mille!
    Hello to everyone! I set a custom page size of (30x30)cm but I made a mistake..now I need to format a page size of (23x23)cm and I have to readjust/proportion all the text and the images...Is there a simple way to do it without rewrite everything? like a command to proportion or something else? Please help me it's urgent! I don't know how to make it faster.....

    @Lullu87 – of course you can modify the source of the PDF, your InDesign file, export again and update the links in the 23x23 cm sized InDesign file.
    But we have alternatives for that workflow:
    1. Place InDesign files instead of PDFs (yes, that is working!)
    [RECOMMENDED]
    2. Alternative Layouts with Liquid Layout Rule "Size" (CS6 and above)
    [NOT SO RECOMMENDED]
    What I like to rule out is the Alternative Layout feature with Liquid Layout rules for sizing the contents page wide.
    There are some good reasons not using that feature:
    a. If using align to baseline grid in your paragraph styles: The scaled text will align to the grid also on the scaled pages. And that's nothing you really want. Baseline Grid is a feature that is document wide and not restricted to single pages or sections like Alternate Layouts.
    b. IDML problems with the option "Scale" for pages, if you are using single-sided documents.
    Details on that here:
    https://forums.adobe.com/thread/1477817
    3. Using a ExtendScript(JavaScript) to scale the contents (without beeing hit by the baseline grid issue)
    [HIGHLY EXPERIMENTAL – SOME RISK INVOLVED]
    Just for the sake of completeness what you are able to do, not recommended for every case and highly experimental. Read the disclaimer there. And do not try it on your original document but on a saved copy!
    Marc Autret
    TotalRescale | Last-Minute Layout Adjustment
    http://www.indiscripts.com/post/2011/12/total-rescale-last-minute-layout-adjustment
    Before using it you have to change the margins, after using it you have to change the page sizes with the Pages Tool for achieving what you want.
    Try this scripting solution it in your spare time ;-)
    Uwe

  • How do I combine text and image on same screen?

    How do I comgine text and an image on the same screen in Final Cut Express 4.  I have had to use scrolling text and then import a graphic.  I want the text and graphic on the same page.  Thanks .

    Place your video clip (or still image clip) on track v1.  Then place your text clip immediately above it on track v2.  The text will overlay the image.  (Note: it doesn't necessarily have to be v1 & v2 - what's important is that the text clip be on a video track higher than the video clip/image clip.)
    Generally best to use white text, sans-serif font, larger than you might think you initially wanted.

  • Load Text and Transaction from same DataSource

    Hi,
    I have a datasource i generated using DB COnnect.
    In that datasource i have (among others) the Fields employee id and employee name.
    I would like to use that datasource to load employee name as the text of my Zemployee infoobject i created.
    Is it possible, or a new datasource is a must here?
    Regards,
    Gili

    Hi Gilad,
    This will be possible if you enable your char as an InfoProvider and allow flexible update. Then you can create update rules from this transactional data InfoSource to your InfoObject. We are using this in more than one scenario.
    Hope this helps...

  • How can i copy line with text and image to ms word

    When I insert an image in textflow using InlineGraphicElement it works, but when I copy the line with the image to MS Word it copies only the text (not the image).
    How can i copy the image to MS Word?

    If you want copy formatted text and image to MS Word, you need to give MS Word rtf markup, because Word can recognize rtf markup but not TLF markup.
    So you need to create a custom clipboard to paste a rtf markup. It's a large feature for you, because you need a tlf-rtf converter in your custom clipboard.
    TLF Custom Clipboard Example:
    package
        import flash.display.Sprite;
        import flash.desktop.ClipboardFormats;
        import flashx.textLayout.container.ContainerController;
        import flashx.textLayout.conversion.ITextImporter;
        import flashx.textLayout.conversion.TextConverter;
        import flashx.textLayout.edit.EditManager;
        import flashx.textLayout.elements.*;
        import flashx.undo.UndoManager;
        // Example code to install a custom clipboard format. This one installs at the front of the list (overriding all later formats)
        // and adds a handler for plain text that strips out all consonants (everything except aeiou).
        public class CustomClipboardFormat extends Sprite
            public function CustomClipboardFormat()
                var textFlow:TextFlow = setup();
                TextConverter.addFormatAt(0, "vowelsOnly_extraList", VowelsOnlyImporter, AdditionalListExporter, "air:text" /* it's a converter for cliboard */);
            private const markup:String = '<TextFlow whiteSpaceCollapse="preserve" version="2.0.0" xmlns="http://ns.adobe.com/textLayout/2008"><p><span color=\"0x00ff00\">Anything you paste will have all consonants removed.</span></p></TextFlow>';
            private function setup():TextFlow
                var importer:ITextImporter = TextConverter.getImporter(TextConverter.TEXT_LAYOUT_FORMAT);
                var textFlow:TextFlow = importer.importToFlow(markup);
                textFlow.flowComposer.addController(new ContainerController(this,500,200));
                textFlow.interactionManager = new EditManager(new UndoManager());
                textFlow.flowComposer.updateAllControllers();
                return textFlow;
    import flashx.textLayout.conversion.ITextExporter;
    import flashx.textLayout.conversion.ConverterBase;
    import flashx.textLayout.conversion.ITextImporter;
    import flashx.textLayout.conversion.TextConverter;
    import flashx.textLayout.elements.IConfiguration;
    import flashx.textLayout.elements.TextFlow;
    class VowelsOnlyImporter extends ConverterBase implements ITextImporter
        protected var _config:IConfiguration = null;
        /** Constructor */
        public function VowelsOnlyImporter()
            super();
        public function importToFlow(source:Object):TextFlow
            if (source is String)
                var firstChar:String = (source as String).charAt(0);
                firstChar = firstChar.toLowerCase();
                // This filter only applies if the first character is a vowel
                if (firstChar == 'a' || firstChar == 'i' || firstChar == 'e' || firstChar == 'o' || firstChar == 'u')
                    var pattern:RegExp = /([b-df-hj-np-tv-z])*/g;
                    source = source.replace(pattern, "");
                    var importer:ITextImporter = TextConverter.getImporter(TextConverter.PLAIN_TEXT_FORMAT);
                    importer.useClipboardAnnotations = this.useClipboardAnnotations;
                    importer.configuration = _config;
                    return importer.importToFlow(source);
            return null;
        public function get configuration():IConfiguration
            return _config;
        public function set configuration(value:IConfiguration):void
            _config = value;
    import flashx.textLayout.elements.ParagraphElement;
    import flashx.textLayout.elements.SpanElement;
    import flashx.textLayout.elements.ListElement;
    import flashx.textLayout.elements.ListItemElement;
    class AdditionalListExporter extends ConverterBase implements ITextExporter
        /** Constructor */
        public function AdditionalListExporter()   
            super();
        public function export(source:TextFlow, conversionType:String):Object
            if (source is TextFlow)
                source.getChildAt(source.numChildren - 1).setStyle(MERGE_TO_NEXT_ON_PASTE, false);
                var list:ListElement = new ListElement();
                var item1:ListItemElement = new ListItemElement();
                var item2:ListItemElement = new ListItemElement();
                var para1:ParagraphElement = new ParagraphElement();
                var para2:ParagraphElement = new ParagraphElement();
                var span1:SpanElement = new SpanElement();
                span1.text = "ab";
                var span2:SpanElement = new SpanElement();
                span2.text = "cd";
                list.addChild(item1);
                list.addChild(item2);
                item1.addChild(para1);
                para1.addChild(span1);
                item2.addChild(para2);
                para2.addChild(span2);
                source.addChild(list);
                var exporter:ITextExporter = TextConverter.getExporter(TextConverter.TEXT_LAYOUT_FORMAT);
                exporter.useClipboardAnnotations = this.useClipboardAnnotations;
                return exporter.export(source, conversionType);   
            return null;

  • Is the BSP extension better than this solution(Text and Image in Button)?

    Hi guys,
    I have a  concept question to decide whether a BSP extension is needed.
    I want to put text and image in htmlb button, and used the solution like below:
    <%
      data image type ref to cl_htmlb_image.
      data: image_string type string.
      create object image.
      image->id = 'back'.
      image->src = cl_bsp_mimes=>sap_icon( id = '@9S@' ).
      image->tooltip = 'Go back'.
      clear image_string.
      image_string = image->IF_BSP_BEE~RENDER_TO_STRING( page_context ).
            %>
            <xhtmlb:toolbarButton id      = "back"
                                  onClick = "back"
                                  text    = "<%= image_string %>" />
    But this solution is not desired by customer, since they don't think it looks nice. So is it possible to create my own BSP extension to get a nicer element?
    Thanks for any hint.
    Regards,
    Liying

    Hi,
    By a nicer element...did you mean to display a better image...or a nicer image ????
    if yes, the you can upload any image you need and then use it here...
    Tell me if you need more information...!!
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • Will Adobe ExportPDF convert a pdf with text and images to docx ?

    I have tried to convert an adobe pdf, which includes text and images, to a docx file.  The Adobe ExportPDF has not been able to do it - comes back with many errors.

    Mostly it can do it, though you can't expect a precise match on the layout. What errors do you get?

  • How to extract text and image information from postscript file

    I want to write a programe,and extract text and image information from postscript file using Java.Is it possible? How to extract ?
    Thank!

    First of all, PostScript is not a "text" file. It can and often does contain binary data. Since PostScript streams often contain nested procedures, unless you process the procedure definitions and can "execute" them, you cannot simply "scan" a file to get what you want. No, I can't talk about this in detail since it is quite complex. But Adobe does have the
    PostScript Language Reference Manual on-line for download at
    . Look that over and you will have a fairly healthy respect as to the task involved.
    - Dov

  • Can't copy text or images from webpages and paste into word documents or notepad

    Today suddenly I cannot copy text or images from webpages (I tried many different ones) and paste into my word 2010 document or notepad. What can I do to get this ability back. Yesterday it worked fine. It does not appear to be a problem with word or notepad so I have to assume it is a problem with Firefox

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    '''If Firefox is open,''' you can restart in Firefox Safe Mode from the Help menu:
    * Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    '''If Firefox is not running,''' you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    ;[[Image:SafeMode-Fx35]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • When I print a webpage from FF how can I make the text and images bigger?

    I am trying to print an eticket for a flight. The text on the schedule comes out too small and the UPC symbol's black lines look ganged together. I know I can view it zoomed up, but how do I make the text and images stay zoomed so they will print out that way?

    I upgraded but the problem remains. At least with Firefox I do have the option to print a selection even if it mangles the top and bottom lines. With Safari or Chrome I have no option to print a selection. At the moment the only way to get a complete copy of the selection is to copy to openoffice etc and print from there.

  • Reading text and charachters from image

    Hi,
    Is there anyone that could share code to extract/collect text from images? I've tried nConvert and gocr but its not working very well (also its external programs). I would be extremley grateful if someone could share som code to parse the texts and numbers from an image.
    Thanks in advance!
    BR

    To answer your question - I'm teaching myself java and I haven't covered enumeration classes yet.
    With the setGender("Q") scenario, the data in the text file has already been validated by other methods before being written to the file. Anyway I worked out my problems were caused by "input = read.readLine()" being in the wrong places. The code below works fine though I've left out the set and get methods for the time being.
    Chris
    public static void readFile()throws IOException{
    String name = "";
    String gender = "";
    int age = 0;
    BufferedReader read = new BufferedReader(new FileReader("myfile.txt"));
    String input = read.readLine();
    while(input != null){
    name = input;
    input = read.readLine();
    gender = input;
    input = read.readLine();
    age = Integer.parseInt(input);
    input = read.readLine();
    System.out.println("Name: " + name + " Gender: " + gender + " Age: " + age);
    read.close();

Maybe you are looking for

  • I am not able to generate PO Ack 855 for a cancelled line of a already booked sales order.

    PO Ack 855 is getting generated when we are booking a fresh order. But issue arises when we are cancelling any line from the existing sales order, i mean then only system is not generating 855. Thanks, Sunil

  • REP-1070/REP-1051

    Hi, I have a javascript that works independently and when I put that inside ora-rep, I get this error: REP-1051 unable to save report REP-1070 Error while opening or saving a document. non-specific error occurred. help! thanks!

  • Acrobat printer not working

    I have Acrobat Pro Vers 9..2 installed onto a Windows XP platform. When selecting the print option from any application (eg Word) Adobe PDF appears in the list of avavilable printers, however when it's selected the "print" command button is then disa

  • CORBA Exception whiel recieving document from rightsmanagement server

    Hello again, i have a problem with livecycle es rightsmanagement. after a policy was applied to a document i try to save the secured document via >Document.copyToFile(aFile) While saving tis exception is thrown: >26.01.2009 08:26:01 com.sun.corba.se.

  • Want to reinstall maverick in my mac book pro

    i upgraded to maverick but i want to clean my mac so i want to reinstall it in a clean way and put my mac book pro like coming  from factory is it possible to do that from internet?