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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:41:02+00:00 2026-05-20T09:41:02+00:00

Typically, in a PHP setup, you can simply use include(‘includes/myphpfile.php’); to incorporate seperated parts

  • 0

Typically, in a PHP setup, you can simply use

include('includes/myphpfile.php');

to incorporate seperated parts of PHP code and / or HTML markup. Now when it comes to Flex 4, I’m not quite sure how I’d go about doing that same thing, only this time, for ActionScript files. I want to do this kind of approach since my source code gets really annoyingly huge as the Flex app I’m developing grows. That’s why I want to separate it into small chunks to avoid getting myself overwhelmed with too much code to see at a time.

  • 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-20T09:41:02+00:00Added an answer on May 20, 2026 at 9:41 am

    I strongly recommend you learn about building Flex Components. That is the preferred method of encapsulating code and breaking up a single ‘file’ into multiple components and you’ll thank yourself in the long term for learning those skills.

    The answer your posted can help you move ActionScript to a different file:

    <fx:Script source="MyActionScript.as">
    

    But it is not the same as building reusable encapsulated codee. You can also use the include directive to accomplish the same thing:

    <fx:Script><[[
     include "MyActionScript.as";
    ]]></fx:Script>
    

    The include directive can be used in ActionScript components / classes too, while the Script source attribute is MXML only.

    That said, relying on the include file is often considered a crutch and is not a decision I would take lightly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Typically I use E_ALL to see anything that PHP might say about my code
Typically when writing new code you discover that you are missing a #include because
Typically you will find STL code like this: for (SomeClass::SomeContainer::iterator Iter = m_SomeMemberContainerVar.begin(); Iter
Typically, when I use lambdas, I just use a, b, c, d... as variable
Typically languages have keywords that you are unable to use directly with the exact
I typically use URL rewriting to pass content IDs to my website, so this
I typically run a script each night that updates my code from SVN, then
I typically use extension methods very sparingly. When I do feel compelled to write
My company has a website built with PHP. We use the built-in PHP email
My server is setup with Nginx + PHP + FastCGI. Whenever PHP throws a

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.