A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: An simple XML problem of mine

  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    38

    An simple XML problem of mine

    I started working on XML 3 days ago. And the point I come is this


    ob.url = xmlPath.attributes.url;

    ob.mc.itembtn.onRelease = DisplayURL;

    function DisplayURL(){
    getURL("http://www.url.com")
    }

    What am I supposed to do for passing the url in to the DisplayURL function?

  2. #2
    Busy doing nothing Boris the Frog's Avatar
    Join Date
    Jan 2001
    Location
    Derby, UK
    Posts
    305
    function DisplayUrl(){
    getUrl(this._parent._parent.url);
    }

    or pass ob to the function
    function DisplayURL(srcOfURL){
    getUrl(srcOfURL.url);
    }
    or pass ob.url to the function
    function DisplayURL(targetURL){
    getUrl(targetURL);
    }
    --------------------------------------------------
    ‘There is no emoticon to express how I am feeling’ - Comic Book Guy
    There's an effective, simple solution to carbon sequestration... it's called 'coal', so leave it alone!
    There's an effective, simple solution to carbon capture....it's called 'trees', so plant some!

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