Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7040225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:53:35+00:00 2026-05-28T01:53:35+00:00

Right now I have a static way that I set the url’s to 5

  • 0

Right now I have a static way that I set the url’s to 5 buttons, here’s a sample of what I am doing:

Object(root).grid_slider.links.twitter.addEventListener(MouseEvent.CLICK, fl_ClickToGoToTwitter);
Object(root).grid_slider.links.facebook.addEventListener(MouseEvent.CLICK, fl_ClickToGoToFacebook);


function fl_ClickToGoToFacebook(event:MouseEvent):void
{
    navigateToURL(new URLRequest("http://www.facebook.com"), "_blank");
}

function fl_ClickToGoToTwitter(event:MouseEvent):void
{
    navigateToURL(new URLRequest("http://www.twitter.com"), "_blank");
}

I’m kindof noob to flash I kinda gave up on it after Flash MX but now I was asked to make just a quick slider(which of course I recommened jquery but they wouldn’t have it). I have everything working fine but I have been asked that the url’s are loaded from a xml file instead of static. Not quite sure where to go from here..I’ve read how to read from xml but do I need to set the values in global variables?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:53:35+00:00Added an answer on May 28, 2026 at 1:53 am

    Your XML:

    <?xml version="1.0" encoding="utf-8"?>
    <MYXML>
        <FACEBOOK>"http://www.facebook.com"</FACEBOOK>
        <TWITTER>"http://www.twitter.com"</TWITTER>
    </MYXML>
    

    You load this xml to a myLinks variable:

    var myLinks:XML;
    var urlRequest:URLRequest = new URLRequest("link to your xml file");
    var urlLoader:URLLoader = new URLLoader();
    urlLoader.addEventListener(Event.COMPLETE, urlLoader_completeHandler);
    urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, urlLoader_securityErrorHandler);
    urlLoader.addEventListener(IOErrorEvent.IO_ERROR, urlLoader_ioErrorHandler);
    
    function urlLoader_completeHandler(event:Event):void
    {
        myLinks = new XML(event.target.data);
    }
    
    function urlLoader_securityErrorHandler(event:SecurityErrorEvent):void
    {
        // Do you have crossdomain.xml?
    }
    
    function urlLoader_ioErrorHandler(event:IOErrorEvent):void
    {
        // Houston, we have a problem!
    }
    
    Object(root).grid_slider.links.twitter.addEventListener(MouseEvent.CLICK, fl_ClickToGoToTwitter);
    Object(root).grid_slider.links.facebook.addEventListener(MouseEvent.CLICK, fl_ClickToGoToFacebook);
    
    function fl_ClickToGoToFacebook(event:MouseEvent):void
    {
        navigateToURL(new URLRequest(myLinks.FACEBOOK.toString()), "_blank");
    }
    
    function fl_ClickToGoToTwitter(event:MouseEvent):void
    {
        navigateToURL(new URLRequest(myLinks.TWITTER.toSting()), "_blank");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that right now, runs by creating static html pages from
So right now I have this code that generates random letters in set increments
Right now I have a script that will get the last five files in
Right now I have a function, in a class that is used to listen
Right now I have a link that causes a hidden div to appear when
Right now I have a foreach loop that grabs the first link with an
Right now I have a PHP file that does a MYSQL query and then
Right now we have static code to a XML schema file. But now we
I have a static set of help pages that I serve in a Rails
I'm writing a website in Silverlight 5 right now. I have a public static

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.