If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Oct 2003
    Member #
    Im using Flash MX 2004 Pro.

    in my HTML i have these two lines:
    <param name="Maxnum" value="3" >
    <param name="Dirname" value="imagedir/" >

    In the actionscript I would like to remove the line that manually sets the array, and replace it with something 'like' this:

    var Maxnum = 3;    // the html does this, but for the sake of arguement
    var Dirname = "imagedir/"   // I will include it hear anyway.
    for (i=0;i<Maxnum;i++) {
    this.pArray[i] = [Dirname + (i +1) + ".jpg"]; 

    thus resulting with the equivilent of :

    this.pArray = ["imagedir/1.jpg" , "imagedir/2.jpg" , "imagedir/3.jpg"];

    nomatter how i try this i cannot set the value of the array correctly. Any ideas ?


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 06:56 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: