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 6049037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:31:51+00:00 2026-05-23T07:31:51+00:00

Hello, I bought a flash template who uses this code for links in the

  • 0

Hello,

I bought a flash template who uses this code for links in the header

onClipEvent (load) {
    num = 2;
    _parent.ti1.gotoAndStop(num);
    _parent.ti2.gotoAndStop(num);
}
on (rollOver) {
    if (_root.link<>num) {
    _parent.gotoAndPlay("s1");
    }
}
on (releaseOutside, rollOut) {
    if (_root.link<>num) {
    _parent.gotoAndPlay("s2");  
    }
}
on (release) {
    if (_root.link<>num) {
        _root.link_prev = _root.link;
        _parent._parent["item"+_root.link].gotoAndPlay("s2");
        _root.link = num;
        getURL("./page-name/");
    }
}

What I want is to be able to modify the page URL from an external file (xml or txt). I want just an external file, and here, on the AS of the button to modify just the line number of where to get the link from external file.

Thank you

  • 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-23T07:31:51+00:00Added an answer on May 23, 2026 at 7:31 am

    Flash can read variables from text files. However, if the text file is on a different domain than the site you are hosting the swf, you need to place a crossdomain.xml file on the root of the domain containing the text file.

    onClipEvent (load) {
        num = 2;
        _parent.ti1.gotoAndStop(num);
        _parent.ti2.gotoAndStop(num);
        this.loadVariables("external.txt");
    }
    

    The text file called external.txt could be:

    &goToUrl=urlHere
    

    And then

    getURL(goToUrl);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I am working with a simulator that uses rcS scripts to boot, this
helo everyone This is a code from a book i have bought. It gives
Hello i have this code var queue = new BlockingCollection<int>(); queue.Add(0); var producers =
Hello can anybody solve this please I'm creating the object in the action class
Edited on April 29th, content changed Hello everyone, I recently bought a Sony Ericsson
Firstly Hello, This is my first post on this forum. I am completing a
I use FlashDevelop as my code editor and the Flash CS4 IDE for publishing
I have tried to work this out myself (even bought a Kindle book!), but
Hello I am trying to do a SOAP request here is my code: #
hello i got a batch file, something like this: if %day%==monday, tuesday, wednesday, thursday,

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.