A problem list: (choose in rear & amp; random items)

Hi all

I have a problem to list that I need your help. Here is my code:

option list is loaded with the following: [1,2,3,4]
on whichaccessoryload

TPO = accessoriesList.getPos (linetext)
n = accessoriesList.count)

If apt = 1 then
Window ("Haptek_player"). Movie.Sprite (1). "[[Hypertext =" \load [queue = ["& accessoriesPath &" "& accessoriesList [1] &"]] "]]".
-charge the first item in the list (that is, number 1)
on the other
If apt < = n then
whattodelete = accessoriesList [OPC - 1]
Window ("Haptek_player"). Movie.Sprite (1). Hypertext = "\delperson[figure=" & whattodelete & "]" "
-remove the previous support question (i.e., number 1)
Window ("Haptek_player"). Movie.Sprite (1). "[[Hypertext =" \load [queue = ["& accessoriesPath &" "& linetext &"]] "]]".
-loads a new element into the list (IE., number 2)

Whenever this handler is called: given a list with 4 digits [1,2,3,4], check if the position of the value of linetext is 1 in the list, and so true load this value (number 1) in the 3D engine... otherwise it deletes the previous value (in our example number 1) and load a new value instead (number 2)... then deletes the number 2 and charges of the order of the day (number 3) and so on... The above code works 100% if my user selects items in the list (1,2,3,4) sequencially.

Now... what I would like to add, is to select the elements backwards (4,3,2,1) but also at random (for example, 4, if you select Remove from article 2 4 and load 2 in the engine, or 3 If you select 1 Delete 3 and 1 in the engine load..). I hope that we don't know what I'm asking... Any help will be greatly appreciated...

Problem solved... Here is the code (I am simply remove ALL items in the list before you load the new value). Thanks for your tent...

Global linetext, accessoriesList

on whichaccessoryload

TPO = accessoriesList.getPos (linetext)
Re = "(\.\htr)$".

accessoriesPath = the moviepath & "Haptek_Resources\Accessories\".
n = accessoriesList.count)
v_sprite_ref = window("Haptek_player").movie.sprite (1)

-forward

If apt = 1 then

v_sprite_ref. Hypertext = "\delperson[figure= hair7_exp_brown]" - remove the original hair
v_sprite_ref. "[[Hypertext =" \load [queue = ["& accessoriesPath &" "& accessoriesList [1] &"]] "]]".

on the other

If apt<= n="">

Repeat with i = 1 to n
accessoriesList = RegExp_Replace (accessoriesList, re, "", "g")
v_sprite_ref. Hypertext = "\delperson[figure=" & accessoriesList & "]".
end repeat

v_sprite_ref. Hypertext = "\load [queue = [" & accessoriesPath & "" & lineText & "" "]]".

end if
end if
end

Tags: Director

Similar Questions

  • How to add a new application to the list "Choose the Helper Application"?

    I regularly download a wide variety of files based on text using Firefox. Most of the time, I want to open it with Notepad ++. Before, after, I opened the first file using Notepad ++ (selected through her Browse... button), the application are in the auxiliary list "choose the Application". However, I recently replaced my PC, and it is no longer the case. Now, I need to click Browse... and navigate through the file system every time to find Notepad ++ .exe, which is wasting time.

    Please note that I don't know to associate the types of files - as mentioned there are a lot of different file types, and I want just Notepad ++ appears in the list of the menu.

    Have you tried right clicking on such a file in Windows Explorer and the value of this file (temporarily) as the default application?

  • AppleScript, random items in list, without repetitions?

    Hello

    First of all it is what I have so far:

    the value myList {"Bob", "Brian", "Mark", "Joshua", "Sarah", "George"} as list

    Repeat

    the value of some element of myLIst randomChoice

    randomChoice2 the value of some element of myList

    display the dialog randomChoice & return & randomChoice2

    end repeat

    If you run this script, you will notice that sometimes there will be two of the same name (Bob Bob or Mark Mark).

    I want to be able to make sure the two random elements are not the same. So that once that a name is chosen as a randomChoice, it can not be chosen for the randomChoice2.

    Here:

    the value myList {"Bob", "Brian", "Mark", "Joshua", "Sarah", "George"} as list

    the value myList2 {"", ""}

    Repeat

    point 1 of the myList2 the value of some element of myList

    point 2 of myList2 the value of some element of myList

    Repeat until that point 1 of the myList2 is not point 2 of myList2

    point 2 of myList2 the value of some element of myList

    end repeat

    value {randomChoice, randomChoice2} myList2

    display the dialog randomChoice & return & randomChoice2

    end repeat

    (137457)

  • Display problem list in bb10 Beta 3

    Hello

    I develop a project in the bb10. His work properly in the beta version of bb10 2.

    Now I am this conversion to bb10 beta version 3.

    In that I have a list view. IE filtered list view.

    When header is clicked, the child must be visible.

    I had used the selectionchanged signal.

    but it is not called bb10 Beta 3.

    I had sought in known problem also, but it is not written anywhere as a known issue.

    Thanks in advance.

    bskania.

    Now it's different in Beta 3:

    ListView {
      listItemComponents: [
        ListItemComponent {
          type: "item"
          MyItem {
          }
        }
      ]
    
      onTriggered: {
        clearSelection();
        select(indexPath);
      }
    }
    

    And for MyItem

    Container {
      ImageView {
        id: background
        visible: false
    
        verticalAlignment: VerticalAlignment.Fill
        horizontalAlignment: HorizontalAlignment.Fill
    
        imageSource: "asset:///images/background.png"
        scalingMethod: ScalingMethod.Fill
      }
    
      function setHighlight (highlighted) {
        if (highlighted)
          background.visible = true;
        else
          background.visible = false;
      }
    
      ListItem.onActivationChanged: {
        setHighlight (ListItem.active);
      }
    
      ListItem.onSelectionChanged: {
        setHighlight (ListItem.selected);
      }
    }
    

    Nicolas

  • BlackBerry Smartphones Call Log problem - lists only the missed calls

    I have the curve 8900 with t-mobile and I'm having the same exact problem that this user has:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=8900&message.ID=3200

    My call log lists only the missed calls (dialed or received calls). He did this for a few weeks now. I received the error message 'exception: java.lang.NullPointerException eception' a few times as well.

    I checked all available software updates and I use the most recent software.

    Please help me if you can.

    Thank you

    Mike

    I fixed it!  It took about an hour on the phone with t-mobile, but we thought about it.   For me, the problem was probably a few information corrupted in my call history.  I need to delete all the call history, and then it was fine.  To do this, you need to install the blackberry desktop manager on your computer if you have not already (be it from the cd that came with the phone or the Web site).  Open Fund Manager and connect the blackberry to the computer.  Select the backup and restore option.  Then, select the advanced option.  On the right side of the screen, there will be a list of all the features of the phone.  Scroll to phone call logs.  It lists the number of records in the phone.  All I had to do was remove all records from phone call and it was corrected.  Now my lists of newspaper calls dialed, received and missed and I no longer get the error message.  I hope it helps you too!

  • Problem list access control

    Hi guys, I'm faced with a problem with one of my ACL...

    I applied it ENTERING the interface of the router facing the Internet.

    I'm trying to restrict access, the only thing visible to the Internet is my Web page, but when I apply the ACL on the router Interface must be the Internet connection (I am running a ping on one of my internal hosts, but as soon as I apply this INCOMING ACL on the external Interface of my router it pick up any communication to the Internet).

    I think it's because the router is down all packages «back»

    I know that there is an argument (ESTABLISHED) that I can activate to allow those who return packages, but it applies only to TCP, but what happened to the ICMP, UDP protocol?

    It's the ACL I use:

    Note access-list 101 FW-outside-to-Inside

    access-list 101 deny ip 192.168.0.0 0.0.0.255 any

    access-list 101 deny ip 172.16.0.0 0.15.255.255 all

    access-list 101 deny ip 10.0.0.0 0.255.255.255 everything

    access-list 101 deny ip 127.0.0.0 0.255.255.255 everything

    access-list 101 deny ip 255.255.255.255 host everything

    access-list 101 deny host ip 0.0.0.0 0.0.0.0 all

    access-list 101 permit tcp 66.137.99.107 host any eq 1720

    access-list 101 permit tcp 66.137.99.108 host any eq 1720

    access-list 101 permit tcp 66.137.99.109 host any eq 1720

    access-list 101 permit host tcp 66.137.99.107 any range 16000-20000

    access-list 101 permit host tcp 66.137.99.108 any range 16000-20000

    access-list 101 permit host tcp 66.137.99.109 any range 16000-20000

    access-list 101 permit udp host 66.137.99.107 any 5000 5075 Beach

    access-list 101 permit udp host 66.137.99.108 any 5000 5075 Beach

    access-list 101 permit udp host 66.137.99.109 any 5000 5075 Beach

    access-list 101 permit tcp any host MYWEBSERVERSIP eq 80

    access-list 101 deny ip any one

    I hope you guys can give me a hint...

    Thank you!!!

    The last two deny statements (before your tax permit), "host 255.255.255.255 everything" and "host 0.0.0.0 0.0.0 everything" may be the problem. You have specified a reverse mask on the 0.0.0.0 0.0.0.0, which will replace the "host" command (I think) I would first try to remove these and see if it works, then re - insert them (without the mask) to see if it still works.

  • Anyone know how to get your money back?  My CC application does not start and I have tried the suggested workaround solutions listed above and they have not worked for me.  The amount of problems listed here in the forum, I have to ask the product is real

    Anyone know how to get your money back?  My CC application does not start and I have tried the suggested workaround solutions listed above and they have not worked for me.  I'm new to the CC Apps but use the versions installed for years.  The amount of questions listed here in this forum, I have to ask the product is really stable?

    Thank you.  I've deleted and reinstalled.  Seems to have solved the problem.

  • Explore: Discover: Choose Details: Audio sample rate and the size of the Audio sample are not available in the list choose the details.

    With audio files (in particular the WAV), Audio sampling frequency and the size of the Audio sample are not the choices available in the list of details with Vista.  In earlier versions of Windows (2000 and XP) they were both selectable as details.  Is it possible to get these will appear under Vista?

    Vista - related audio details available:
    Album
    Album artist
    Bit depth
    Bitrate
    Duration
    Kind
    Year

    2000 / XP - audio related details are available:
    The album title
    Artist
    Audio sampling rate
    Audio sample size

    Bitrate
    Kind
    Title
    The track number
    Year

    FWIW, sampling frequencies are discussed in the Help window and how to (below).

    Reference: http://windowshelp.microsoft.com/Windows/en-US/Help/53adb4c7-d538-42f8-bb13-917379922afe1033.mspx

    Thank you!

    For the third part of the applications that perform many tasks, I usually discover www.tucows.com and www.download.com.  They have a wide variety of programs, and the trick is to put in the correct search terms to find what you are looking for.  Make sure you that your selection is compatible with Windows Vista and at tucows, try to pick one with 4 or 5 cows because they are the highest rated.

    Good luck! Lorien - a - MCSE/MCSA/network + / A +.

  • Vista Ultimate 64 bit - SP2-problem with Sidebar - gadgets comes in random order

    Hello
    I just installed SP2 on my Vista Ultimate 64 bit - system. Everything seems to work ok, but I soon discovered a very annoying problem. The order chosen for my gadgets in the sidebar is destroyed each time I close the OS or just close sidebar and reopen again.

    I tried to use the 32 - bit sidebar.exe rather version (located in C:\Program Files (x 86) \Windows Sidebar\sidebar.exe) and this version observe the correct order, but the 64-bit version (located in C:\Program Files\Windows Sidebar\sidebar.exe) destroy the order of gadgets.

    I have looked for a solution, but have not been able to find. But I discovered, that there is a general problem for all users of Vista 64 bit and a lot of people are very unhappy with this new pproblem caused by SP2. I hope that he will be made a fix for this problem that is boring as soon as POSSIBLE. A chronology of a solution?

    Cordially Teddy

    No solution for it yet, according to me, just use the x 86 version of the sidebar for now.

  • Problem list data execution prevention:

    I have a Vista Home Basic x 32 - desktop

    I have 2 or 3 programs to my list of Exception Data Execution Prevention (DEP) that I won't be there anymore, I removed the programs, but every time that I re - open it the back of DEP, deleted Programs window is still there. In addition, some programs are already uninstalled from my pc, but it's always to the DEP list. How can I permanently delete them? Help and thanks in advance

    Hi Sabledanny,

    1. have you uninstalled all 3 programs listed?

    If so, you will need to reinstall the programs, remove them from the DEP.

    After the removal of the DEP try to uninstall the programs again.

    You can view the links to install and uninstall a program:

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-a-program

    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    Also check out the link:

    Change Data Execution Prevention settings

    http://windowshelp.Microsoft.com/Windows/en-us/help/1d9bb9b4-f6ba-466D-AC2B-7b8c4f8361611033.mspx

  • Network connectivity problem, it must be disconnected at random

    Original title: connectivity problem

    connectivity problem: under troubleshooting is said: problem with nearby connections... the computer disconnects Internet after 45-60 minutes - it closes down also, usually when I repair as administrator, I can connect to internet, but still a time when left almost an hour without using the internet disconnects?

    Hi Kvhan,

    1. are you using cable or wireless network?

    2 have you made changes on the computer before this problem?

    This problem can occur because of network settings, try the following methods and check if it helps.

    Method 1:

    Run the network troubleshooter utility.

    http://Windows.Microsoft.com/en-us/Windows7/using-the-network-troubleshooter-in-Windows-7

    Method 2:

    This problem can occur if authentication enable IEEE 802. 1 X for this network checkbox is enabled. If this box is checked, but there is no server to authenticate the connection is interrupted. If you turn on the wireless network connection, it disconnects again after a short period.

    To disable authentication IEEE 802. 1 X, follow these steps:

    a. Click Start, type ncpa.cpl, and then press ENTER.

    b. right click on your wireless network connection, then click Properties.

    c. click the wireless networks tab.

    d. under preferred networks, click your wireless network, and then click Properties.

    e. click on the Authentication tab, click to clear the authentication enable IEEE 802. 1 X for this network check box and then click OK twice.

    Reference:

    Problems in Windows wireless and wired network connection: http://windows.microsoft.com/en-US/windows/help/wired-and-wireless-network-connection-problems-in-windows

  • Height for element converter problem list

    Hi all

    I have a list, the items are of the number 4. now I used the Web in the width and height 75.now 383 itemrenderer component when I select an item in the list, I want that specific canvas height be raised to 92...

    How can I make this possible as I want to say now on the choice of the converter of element I increase the height of this.height = 92.when debug code, variable, it shows 92 which was 75 earlier but no effect takes place from the point of view of design... can someone help me in this case

    Please

    Thank you

    Is that what you have set the variableRowHeight true property?

  • component box problem list Flash in director 11

    Jin

    in my project, I use listbox component which is default in director 11, because I try to resize the text using this script:

    on beginsprite me

    Sprite ("chindexl"). SetStyle("FontSize",28)
    end

    and this code gives me an error: "handler not found in the object, sprite("chindexl").setstyle("fontSize",28), #setstyle ' D11

    but this code works perfectly in Director 10 what is the reason. What is code problem or flash prob prob. or the Director, I don't understand.

    Thank you

    Dharam

    your suggesion is right but I'll try the same code and get error - 2147467259

    It works for me at D11.5 - I can't test in D11 since 11.5 it replaced. Maybe it's a bug 11 only?

  • Someone at - it a problem with the iPhone (6 more) random quits responding to touch?

    It started at the time update 9. carried out once - with support and they had me to do a clean install. Seemed to help for a while-, but began again in December (is there another patch/fix ousted?). Reboot solves almost always-so it leads me to believe that this isn't a matter of HW. Sometimes it starts to work again.

    IPhone 2 6plus just yesterday replaced for same issue.

  • Problem, my debit card was fresh random $ 25 yesterday and the info on the withdrawal gives me a MSN phone number. What could be?

    I have a Zune account and gold so I know how they look like when they charge me.

    This has nothing to do with the installation, upgrade, and activate Windows.
    You must contact your bank.

Maybe you are looking for

  • Connect a Sony DCR SR68 camera to a mac?

    Hi, can someone help me with the program that I use to help me get my talking Handicap of Sony (model DSR SR68) on my Mac? Best regards, Lawrence.

  • disabled trackpad?

    I accidentally pushed a key combination and briefly saw this image of a stop on a finger sircle.  AND now my trackpad is not working.  (No cursor) When I plug a mouse (Logitech Wireless), the cursor is visible remains in its original position (Center

  • Wireless Assistant

    Hello I just do a restore of the system on a newly bought laptop. When I got the laptop last month, I just had to click on the wireless on the lower right corner and fill security password for a wireless connection. But now after the system recovery,

  • LRT 214 Throtteling download speed by a factor of 7

    I have a TLR-214 (v 1.0.3.09) I have reset to factory settings and does any other configuration changes. There is no other network traffic (hard wired or wireless) connected to the LRT-214. I ran a network speed test using my ISP (Cox) site and get 1

  • BlackBerry Passport Crash Help!

    Took my passport to sit all night on the loading dock to check your e-mail. Email removed I read, but the kept item reappear. ? Then restarted it. However the hub is not does not come to the top. It hub continues to display the message "preparing Bla