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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:02:04+00:00 2026-05-15T17:02:04+00:00

Can i do the following in actionscript-3? : I want to make an application

  • 0

Can i do the following in actionscript-3? :
I want to make an application that loads some images with a Loader by making URLRequests to a local folder. Can i build the application and include somehow this folder so when i send it from a server to a client the URLRequests operate normally on clients side? Also if this is possible, the folder may be not viewable/accessible by the client but only from the Flash application that comes with it?
So for example, this piece of code that runs nicely, locally, to my machine, if i send it to a client will continue to run to its machine. Can somehow send the folder and the SWF as one object?

private function clothesOn( outfit:String ) {
   var clothier:Loader = new Loader();
   var item:String = "clothes/" + outfit + ".gif";
   var getItem:URLRequest = new URLRequest( item );
   clothier.load( getItem );
   this.addChild( clothier );
}

ps:code taken from actionscript design patterns.

  • 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-15T17:02:04+00:00Added an answer on May 15, 2026 at 5:02 pm

    There’s no way to send files to the client unless they’re added as library assets in the flash file itself.
    However, if the folder is on your server in the same relative location as it is on your local machine, and you instruct the flash file to make all paths relative to itself (using the base:’.’ param) then the flash file should be able to find your image files without needing to send them to the client first.

    The base param is a value you can specify when embedding your flash file in your page. See here:

    http://kb2.adobe.com/cps/127/tn_12701.html

    Using SWFObject, the code would look something like this:

    <script type="text/javascript">
        var params = {
            menu: "false",
            scale: "noScale",
            allowFullscreen: "true",
            allowScriptAccess: "always",
            bgcolor: "#FFFFFF",
            base:'.'
        };
        swfobject.embedSWF("file.swf", "divID", "706", "706", "9.0.0", "swf/expressInstall.swf", null, params, null);
    </script>
    

    Once that param is set, urls within your flash file will be relative to the location of the file itself. So assuming you have a structure like this on your server:

    -root
      -index.html
      -file.swf
      -folder
        -img1.jpg
        -img2.jpg
    

    a url like 'folder/img1.jpg' will be loaded by the flash file just fine.

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

Sidebar

Related Questions

I want to do the following application: 1) I want to retrieve the message
I want to use vkontakte's new wrapper feature, that enhances your application abilities by
How can i create toast style windows in Flex MXML application like following? http://www.adobe.com/devnet/air/flex/quickstart/articles/creating_toast-style_windows.html
In ActionScript 3, there are some classes that will represent a value rather than
I have to work with webservices in Actionscript. I found the following code that
I'm currently writing a client in ActionScript 3 that talks to a Red5 application/media
How can I write mathematics formula in actionscipt2.0? As following: alt text http://www.freeimagehosting.net/uploads/bc5fee2333.png Thanks
How can the following function be implemented in various languages? Calculate the (x,y) point
How can the following simple implementation of sum be faster? private long sum( int
How can the following code be modified to run my insert statements 100 at

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.