A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: How to set a contentpanel to a different file (Actionscriopt)

Threaded View

  1. #1
    Senior Member
    Join Date
    Aug 2006
    Posts
    109

    How to set a contentpane to a different file (Actionscriopt)

    Good morning ...

    I was wondering if anyone could give me an idea how to address the contentpane's File (property?).

    ie: I have a series of links ... click on each link and load the contentpane with a different text file (according to which link you pressed)

    I'm just a beginner but (in learning this arduous actionscript language) I can't figure out how to load a different file (every link would have it's own actionscpript to load it's own file into the content pane)
    like...

    on(press)
    {
    contentpane1.File = 'Song1Lyrics.txt';
    }

    Since it's not working I assume I'm not addressing it correctly... "File"

    I managed to load text into the contentpane by using the ".text" parameter. But, can't seem to load a file.

    Any help in how to load a text file (Via actionscript) would be appreciated.

    And any other obscure tip I may need to know ("oh you actually have to sync up this with this, and create a server before attempting to dynamically load files at runtime...") or whatever...

    amazing product by the way!!! (KoolMoves)
    Last edited by maed; 08-26-2006 at 09:10 AM.

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