A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Linking to a xml file and jpg's

  1. #1

    Linking to a xml file and jpg's

    Hi

    I am going to be building a website and i need to be able to link parts of my code to a xml file, it will be height and width also i will need to pull in an external jpg image so if the user changes the image in the image folder it will update in the flash movie, can anyone point me in the right direction please.

    Cheers

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Well if I understand correctly, as far as the XML goes:
    <gallery>
    <image h = "320" w= "240 path = "http://www.somesite.com/someimage.jpg"/>
    </gallery>
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    no i need to pull an external xml file into flash... or a text file into flash i have a heigh and width in flash i need to control via a external file

  4. #4
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    var conFig:XML = new XML();
    conFig.ignoreWhite = true;
    conFig.onLoad = function (dat){
    if(dat){
    //if the xml loads correctly do this
    }else{
    //if it fails to load do this
    }
    }
    conFig.load("externalXMLName.xml");
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  5. #5
    basically i need it this to be as easy as possible it my not be a xml file i need, i need 2 things to be pulled in from an external source an image a vairable. if there is a better way to do this the iamge will be the image name and the vairable will be 1 or 2 im up for anything.

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center