control flash movieClips from inside the repeat loop
Hi guysI have a flash sprite in my partition that contains 20 movieClips named button1 to button20.
I'm trying to rewind the movieClips touch to their executives 1 go in a loop of repetition, I tried a few different methods, but may not know!
This code works: sprite (11).button1.goToAndStop (1)
Does anyone at - he had success this?
Thank you very much
Hi guys, I thought about it.
I ended up setting a benchmark for the clips using getVariable()
Posted the code, might be useful!
-------------------------------------------------------------------------------
pFlashButton property
Repeat with i = 1 to 20
pFlashButton = getvariable (sprite (11), #button & i, False)
pFlashButton.goToAndStop (1)
end repeat
-------------------------------------------------------------------------------
See you soon
Tags: Director
Similar Questions
-
How to speed up film clip from inside the container file?
I created a Flash file (which I will call 'film 1') in which a clip was inserted. When I play the whole record, the clip rotates too slowly for my taste, but I noticed that if I go in the original movie clip file (I'll call "movie 2") to slow down and save it, back to the movie 1 and update the clip are impossible due to a motion tween that is bad (no idea about the solution which).
Is it possible to speed up the clip from inside the 1 movie? A kind of script tool or simple? I am a newbie to Flash and maybe there's an easy solution for it. Otherwise I set Movie 2, export it and re-import them inside the 1 film until I am satisfied with the result.
TIA
Kind regards
MOSHthe code below the dotted line adds two new method movieclips, playF() and stopF(). the first allows you to play the m frame movieclip to frame images per second fps n (forwards or backwards).
(for the control of accuracy (then), I have another code autocorrecteur to maintain a precise tempo.)
for use on mc1:
-
Slow loop inside the quick loop
It's my first week of work with LabView so perhaps the answer is very simple.
Here's my question:
How can I include a slow loop (event B) inside a quick loop (event A)?
What I would like is for event B run every 1000 milliseconds, and the event has every 100 milliseconds.
Where event is a position control loop and event B a simple write to a file of any measure.
Any recommendations on how I should do this?
You can use an Express VI of time spent inside the quick loop to see if it is time to perform the slow loop. I took the liberty to not use a loop for your "event B" because it sounded like you want just the rhythm with the event. Place B events in the real case of the box Structure. The design of producer/consumer model is the way to go if you are developing a complex application. This will make if your problem is relatively simple.
-
Oracle 11g: engage inside the outer loop or loop
Hello
Could someone pls help in this regard.
My PLSQL program retrieves approximately 400 000 thousand records in cursor loop and cl, it takes more than 4 hours to complete IT.
I commit every transactions inside the cursor loop... This can affect the runtime performance?
Also, pls suggest, can we use commit 400 000 transactions once it will be faster? (or) the performance of baskets longer than the current situation.
My goal is to make the fastest program and expect to reduce the timing of execution of 4 hours to 1 hour...
Appreciate your help...
Program design: advice:
a. Select 400 000 thousand documents in the cursor.
b. inside cursor for loop to two new sql instructions written to get values and store it in the local variable (this value is used in the call to insert data), two sql statements are handled with no_data_found and too_may_rows logic implicit sql statements to intercept the errors of the company
c insert statement.
validation of d. inside the loop (batch mode: nowait)
management at the level of the procedure using raise_application_error exception e...
Do not use the PL/SQL for data processing. SQL is a powerful language. Get the best out of him.
Here is an example of using INSERT ALL. This is untested code and may contain syntax and semantic errors.
insert all into medicomread.aatable_permit_people ( permitnum , lic_num , lic_type , bus_name , addr1 , addr2 , addr3 , city , state , zip , ph1 , ph2 , fax , bus_lic , lic_original_issue_date , expiration_date ) values ( appt_ref_no , lic_num ,'Business License' , company_name , postal_address , null , null , null , emirate , po_box , telephone , null , fax , license_no , issue_date , expiry_date ) log errors into err$_aatable_permit_people ('INSERT1: HEALTH CARD SPONSOR DETAILS') reject limit unlimited into medicomread.aatable_permit_people ( permitnum , tt_contact_type , name , b1_contact_nbr ) values ( appt_ref_no , 'Applicant' , cname , userseqno ) log errors into err$_aatable_permit_people ('INSERT2: HEALTH CARD BUSINESS USER DETAILS') reject limit unlimited into medicomread.aatable_permit_people ( permitnum , tt_contact_type , B1_Contact_Nbr , Name , gender ) values ( appt_ref_no , 'Individual Health' , userseqno , patient_name , *** ) log errors into err$_aatable_permit_people ('INSERT3: HEALTH CARD APPLICANT USER DETAILS') reject limit unlimited with t1 as ( select mr.appt_ref_no , mr.sponsor_name , substr(mr.PATIENT_NAME,1,79) PATIENT_NAME , mr.*** from medicomdata.mc_register mr , medicomdata.mc_process_type_register mptr , medicomdata.um_users uu , medicomdata.um_companies uc where mr.patient_id = mptr.patient_id and mr.pro_id = uu.user_id and mr.facility_id = mptr.facility_id and mr.process_type ='OH' and mr.regn_status = 5 and mr.sponsor_name = uc.company_name and uu.type_id = 3 and (add_months( mptr.issued_date, 12 )-1) > sysdate ), t2 as ( select decode(ucr.license_category_id,'DED','DED'||uuc.license_no,uuc.license_no) lic_num , uuc.company_name , ucr.postal_address , ucr.emirate , ucr.po_box , ucr.telephone , ucr.fax , uuc.LICENSE_NO , ucr.issue_date , ucr.expiry_date from medicomdata.um_companies uuc,medicomdata.company_registration ucr where uuc.license_no=ucr.business_license_number and uuc.inactive=0 and upper(ucr.request_status)=upper('true') ), t3 as ( select uu.company_name , cname from ( select uu.first_name ||' '|| uu.last_name cname , row_number() over(partition by uu.company_name order by decode(usr.service, 'HCDC', 0, 1)) rno from medicomdata.um_users uu , medicomdata.user_service_request usr where uu.user_id = usr.user_id and usr.service = 'HCDC' and uu.type_id = 2 and uu.inactive = 0 ) where rno = 1 ) select t1.appt_ref_no , t1.patient_name , t1.*** , t2.lic_num ,'Business License' , t2.company_name , t2.postal_address , null , null , null , t2.emirate , t2.po_box , t2.telephone , null , t2.fax , t2.license_no , t2.issue_date , t2.expiry_date , t3.cname , companyuserseq.nextval userseqno from t1 join t2 on t1.sponsor_name = t2.company_name join t3 on t1.sopnsor_name = t3.company_name;
-
target a movieclip from inside another movieclip
target a movieclip from inside another movieclip
I want gotoandplay symbol timeline from the main timeline
Clicking on 1, I want to goto inside 5. 5 timeline not. This is the main scenario. but I want to go symbol 5 chronology
Thus, the code I use is:
Stop();
movieClip_1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene);
function fl_ClickToGoToScene(event:MouseEvent):void
{
MovieClip (circle) .gotoAndPlay (1);
}
Here I wan to go
If inside5 is the object on the same timeline as movieClip_1 and you want the circle target is a child of inside5, use:
inside5. Circle.gotoAndPlay (1);
-
Is it supposed to be a rattle from inside the phone?
Got a Defy a few weeks ago. Love it until yesterday when I suddenly cant' hear someone on a phone call and only the speaker/headphone works (like make a few posts down). Back to T-mobile tomorrow.
However, my phone has a deaf/rattle sound from inside the phone when you shake it, and you can feel something moving inside. I thought it was something to do with sensors/accelerometers in the phone or something, but now the internal speaker is broken I wonder if it is supposed to do this or if she actually always a hardware problem.
Phone of someone else than the same noise/do the same thing? Is it supposed to do this or not?
-Daniel
There should not be a rattle... but there is!
I have the same problem. It is caused by the battery move when you shake the phone, it doesn't have a tight fit. I used a piece of foam under the battery very thin to stop this rattle noise. Not impressed!
You will see on these forums that some users have had problems with defective headphones... so far I did not have this.
Hope that such Defys won't suffer from bad workmanship I really like the phone.
Check your battery by shaking the phone with the cover off... let me know how you go.
-
Move data directly from inside the loop
Is it possible to move data directly from inside a loop outside the structure of matter in real time? I would like a chart of the data in a structure of matter in real time outside the structure of the case. Ideally, it would include information of the real deal and then the waiting period as a '0' for false case. Attached is a version simplified VI I'm working. I tried the local variables, but they only read the first item for loop puts each cycle T/F. One idea is welcome including a complete change in the structure of the VI.
Thank you!
-
Sequence structure flat inside the timed loop and execution order
I have some problems trying to implement a flat sequence structure when you use a loop timed on a target of cRio VI
I tried with or without the while loop around the structure of sequence flat, and I also tried to replace the 'Non-deterministic loop' with a timed loop
The problem is that the program seems to run only once, then get stuck somewhere
I am writing a program that performs the following operations as soon as possible:
1. read the Pos_MC of entry on the FPGA
2 send the value of Pos_MC to the VI target (on cRio CPU)
3. calculate a value of output based on Pos_MC with a PID block ("exit PID')
4. send 'PID output' to the FPGA
5 write "PID output" analog output "MOOG".In addition, I want the program to return the measured value "Pos_MC" to a host VI for the recording of data
So that the output of PID is calculated and sent to the FPGA as quickly as possible, I placed a flat sequence structure to ensure that it happens before you send the output to the nondeterministic loop for recording data
Also, I want the digital input 'Stop' to be able to stop the loop deterministic (the timed loop)
I read much more entries than that and the help of several PID and exit, but I rewrote the code for a single entry and exit to make it easier to illustrate
Screenshot of the code is shown in 'target code.png' and 'fpga code.png.
The VI themselves are attached in the next post (cannot attach files of more than 3)
Question 1:
Any advice on how to get this race? Thank you!Question 2:
Is also my correct understanding in that, using this structure, each 0.9ms (fpga loop time) comes the following:
1. the input ("Pos_MOOG") is read on the fpga
2. the production of PID is calculated on the cRio with some delay to computation (for example 0.1ms)
3. the output of PID is then written for analog output "MOOG" in all about 0, 1 - 0.2ms
4. the FPGA program then waits until 0.9ms spent and repeat the processAs opposed to the next pass whenever performing a loop is started on the FPGA:
1. the FPGA reads the input and written on the output (the output of the execution of the previous loop PID)
2. then the entry is sent the cRio, PID output is calculated and sent to the FPGA
3. the new release of PID is maintained until the next time through the loop
Thank you!
PHG wrote:
Thanks for the input guys, any advice as to how I could get the feature in scenario 1?
I still say that the best route is just putting all the logic of the control in the FPGA.
Other alternatives include 1) the use of DMA FIFO sedn data back or 2) use interruptions so that the FPGA code can not read the output level until the RT.
DMA FIFOs are usually very limited, and I would not use them in this situation since I belive said it this code to do for the many outputs.
-
Repeat regions inside the repeat regions
I don't know how to do this. Dreamweaver has said that we can not put server inside server behaviors behaviors. But it seems like a pretty standard thing, someone might want to do. For example:
Suppose you want to create a menu online. And say... you have two tables:
Elements of array
- item_id
- Nom_element
- item_description
- item_price
Ingredients of the table
- ing_id
- ing_name
- item_id
So, on your page, you want to display a repeat of each menu item region in the database. In addition, within each menu item, you want to have a repeat region of each ingredient that has the same id of the element.
Who is? So, it can look like:
Fishy lips Wonderful lips for all you lovers of the shady lip! Get 'em today! Ingredients
Fishy lips
Seasoning ladle
Herbs fish
Fishy spices
Luckity Hoppity Legs of amazing rabbit that bring good luck! Ingredients
Rabbit legs
Spices of rabbit
Language of cow
Sorry, I'm not a php programmer, but I can explain the concept.
First of all, your idea to recover the two recordsets and then display the corresponding data in the inner loop should work. But it looks like you get the wrong records. If I understand, you obtain a list of healthcare providers and then education for each display. Fix? If so, then the caregiver is the outer loop, and education is the inner loop, yet your inner loop made progress helping RS:
mysql_fetch_assoc($getCaregiver)
You could try just those switching.
However, it is more common first retrieve the recordset of the outer loop. Then, when you browse, you need to run an internal recordset for each iteration of the outside. Your SQL for the internal RS has a filter so that it contains only the matching records.
-
WRT54GL cannot transmit from inside the LAN port?
Hello
I have a Server servers running several (HTTP, SVN, FTP,...) inside my network.
I used to have a SMC router in the past, and of course I had to use port forwarding.
This is why I realized that when we "talk" to the server, I can 'talk' to the router that will forward requests to the right compurer, based on the NAT table. If, for example, that if I move the SVN server, I don't have to change the path to the repository, change the NAT entry is OK in this case.
If this is not understandable, here 's another report.
However, I discovered that even if my new WRT54GL seems to be much more advanced, it cannot do this. Requests made to the router from within the local network are not transferred to the right place.
Is there a way to accomplish what we need, or at least a road map? It's sad that the SMC products otherwise is not very reliable can do...
Kind regards
Matej
Well, I have it solved.
I tried to convey the SVN, HTTP, FTP, and SSH.
However, it was not working when the server IP assigned by DHCP.
When I set up (the server within the LAN) to use the static IP address, not only that port forwarding began to make sense, but I have seen web pages by typing my public IP address in the browser on a computer inside the LAN.
What surprised me, is that it only worked when the server had assigned auto private IP address. I know that these addresses change so it would not very long work, but it did not work even before that t has changed...
-
Since the reinstallation of Windows 7 I have Wifi access even if my laptop and tablet of my wife can become if the router is OK. Also, it restarts or freeze without reason. Sometimes I hear a metallic noise inside the Tower, but not always. My friend suggests a hardware problem, but has no suggestions on how to solve it.
Original title: Windows
Since the reinstallation of Windows 7 I have Wifi access even if my laptop and tablet of my wife can become if the router is OK. Also, it restarts or freeze without reason. Sometimes I hear a metallic noise inside the Tower, but not always. My friend suggests a hardware problem, but has no suggestions on how to solve it.
Hello
After a reinstall of the operating system, you must reinstall the latest drivers from your computer manufacturer's website:
Go to the website to make your computer > Driver and Software Support Section > search your computer or hardware model number > then your operating system > locate the correct drivers > download and install.
________________________________________
And you do not tell us why you did a reinstall and if there reboot/freeze before you did this reinstall.
FYI: Desktop computers normally are Wi - fi unless you install additional hardware for this.
________________________________________
Noise inside a desktop computer can be caused by fan/s or harddrives about to fail.
Go to the website of your computer manufacturer > search your computer specifications > know brand of hard drive > access the Hard Drive manufacturer's Web site > find and download hard drive Diagnostic software and make a record of start of it on the computer that you use to get here, following their instructions > test your hard drive...
See you soon.
-
read the version from inside the app
I am creating a control of update for my application. I'm using eclipse and setting the version by going to the blackberry project properties and changing the version there. Anyway for me to access this info from in the program, or is there a better way for me to set the version of project of in the program in order to access and do not have to change it in several places?
Thank you!
Here is a code that I use in my screen 'About', which I think is what you want.
ApplicationDescriptor ad = ApplicationDescriptor.currentApplicationDescriptor(); int moduleHandle = ad.getModuleHandle(); SimpleDateFormat sdFormat = new SimpleDateFormat("EEE, dd MMM yyyy"); String buildDateString = CodeModuleManager.getModuleVersion(moduleHandle) + "-" + sdFormat.formatLocal(CodeModuleManager.getModuleTimestamp(moduleHandle)); add(new RichTextField(_resources.getString(UI_ABOUT_BUILD) + " " + ad.getVersion() + ", " + buildDateString, Field.READONLY));
-
cannot ping in dmz subnet from inside the subnet
Hey guys
can someone pls take a look at this config in my 515 and tell me why I can't ping from host 10.2.1.20 (connected inside interface) to host (connected to the dmx interface) 10.3.1.20...
Thanks ;)
6.3 (3) version PIX
interface ethernet0 car
interface ethernet1 100full
stop 100full interface ethernet2
interface ethernet3 100full
stop 100full interface ethernet4
interface ethernet5 100full
ethernet0 nameif outside security0
nameif ethernet1 inside the security100
ethernet2 intf2 security2 nameif
nameif ethernet3 intf3 interieure4
nameif ethernet4 intf4 securite6
nameif dmz security50 ethernet5
enable password xxxx
passwd xxxx
hostname MYHOSTNAME
domain MYDOMAINNAME.local
fixup protocol dns-length maximum 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol 2000 skinny
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names of
inside_access_in ip access list allow a whole
pager lines 24
Outside 1500 MTU
Within 1500 MTU
intf2 MTU 1500
intf3 MTU 1500
intf4 MTU 1500
MTU 1500 dmz
IP address outside 61.29.xxx.xxx 255.255.255.248
IP address inside 10.2.1.11 255.255.255.0
No intf2 ip address
No intf3 ip address
No intf4 ip address
10.3.1.11 dmz IP address 255.255.255.0
alarm action IP verification of information
alarm action attack IP audit
no failover
failover timeout 0:00:00
failover poll 15
No IP failover outdoors
No IP failover inside
no failover ip address intf2
no failover ip address intf3
no failover ip address intf4
no failover ip address dmz
history of PDM activate
ARP timeout 14400
Global interface 10 (external)
NAT (inside) 10 0.0.0.0 0.0.0.0 0 0
NAT (dmz) 10 10.3.1.0 255.255.255.0 0 0
static (inside, dmz) 10.2.1.0 10.2.1.0 netmask 255.255.255.0 0 0
inside_access_in access to the interface inside group
Route outside 0.0.0.0 0.0.0.0 61.29.xxx.xxx 1
Timeout xlate 03:00
Timeout conn 01:00 half-closed 0:10:00 udp 0: CPP 02:00 0:10:00 01:00 h225
H323 timeout 0:05:00 mgcp 0: sip from 05:00 0:30:00 sip_media 0:02:00
Timeout, uauth 0:05:00 absolute
GANYMEDE + Protocol Ganymede + AAA-server
RADIUS Protocol RADIUS AAA server
AAA-server local LOCAL Protocol
Enable http server
http 10.2.1.0 255.255.255.0 inside
No snmp server location
No snmp Server contact
SNMP-Server Community public
SNMP-Server enable traps
enable floodguard
Telnet timeout 5
SSH timeout 5
Console timeout 0
Terminal width 80
Thanks again
Rob
ICMP is not a stateful Protocol, so you must explicitly allow ICMP traffic on the DMZ interface. Try adding the following:
access-list dmz_access_in allow icmp a whole
Access-group dmz_access_in in dmz interface
I hope this helps.
Scott
-
How to add the unique element (inside the while loop) to itself
I have only digital output element that is in the while loop. Its value changes in each time the loop iteration. If lets say I want to adds the values of the ten first in iterations of the loop of this variable. How can I do that.
See attach image for more precision.
Thank you
JK
Hi Joseph,.
THINK THE STREAM!
As the values are stored in the son and the shift registers (and NOT in any kind of variables), you must use these fundamentals of LabVIEW:
-
Create a directory tree: how to call a global function from inside a for loop
Hello
I am trying to create a workflow that will create a directory tree in vCenter.
Concept:
Basically, I am trying to execute nested for loops for each level of the tree to the caller a global tree.
Problem:
The 1st loop for works and creates the file 'Dev '. The second loop for does not work with error message:
[19:16:16.219 2013-06-27] [I] building Dev folder
[19:16:16.474 2013-06-27] [I] directory Built: Dev
[19:16:16.476 2013-06-27] [I] the records building servers
[19:16:16.480 2013-06-27] [I] TypeError: cannot find the createFolder function in dev object. (Workflow: TEST_TNG_New_Site_Folder_Structure / Scriptable task (item2) #36)I think it has to do with JavaScript not being not able to call a global function in a nested object (I'm not a programmer and don't know JavaScript, so don't shoot me on that :)
Code: (will clean this up once I do work)
var folderBase is ['Dev', 'DMZ', 'Prod', 'UAT'];.
var folderT1 = ["servers", "Jobs"];
var folderT2 = ['Window', 'Linux'];
var folderT3 is ["Repo2', 'Repo3', 'Repo1', 'Repo4'];.
var folderT4 is ["T1", "T2", "T3"];.
Create the files folderBase level
for (var i = 0, l = folderBase.length; i < l; i ++) {}
var rootFolder = parentFolder;
buildFolderTree (folderBase [i]);
Create the files folderT1 level
for (var j = 0, l = folderT1.length; j < l; j ++) {}
var rootFolder = folderBase [i];
buildFolderTree (folderT1 [j]);
Create the files folderT2 level
for (var k = 0, l = folderT2.length; k < l; k ++) {}
var rootFolder = folderT1 [j];
buildFolderTree (folderT2 [k]);
Create the files folderT3 level
for (var x = 0, l = folderT3.length; x < l; x ++) {}
var rootFolder = folderT2 [k];
buildFolderTree (folderT3 [x]);
Create the files folderT4 level
for (var y = 0, l = folderT4.length; y < l; y ++) {}
var rootFolder = folderT3 [x];
buildFolderTree(folderT4[y]);
}
}
}
}
}
function buildFolderTree (folderName) {}
System.log ("Building folder" + folderName);
rootFolder.createFolder (folderName);
System.log ("directory of frame:" + folderName);
}
Any help will be appreciated.
Thank you
B
Hello
The createFolder() method returns the object VcFolder to the folder just created, for the new file to be used immediately. Here is how I modified the code:
Create the files folderBase level
for (var i = 0; i)
var newBaseFolder = buildFolderTree (parentFolder, folderBase [i]);
Create the files folderT1 level
for (var j = 0; j)
var newT1Folder = buildFolderTree (newBaseFolder, folderT1 [j]);
Create the files folderT2 level
for (var k = 0; k)
var newT2Folder = buildFolderTree (newT1Folder, folderT2 [k]);
Create the files folderT3 level
for (var x = 0; x)
var newT3Folder = buildFolderTree (newT2Folder, folderT3 [x]);
Create the files folderT4 level
for (var y = 0; y)
var newT4Folder = buildFolderTree (newT3Folder, folderT4 [y]);
}
}
}
}
}function buildFolderTree (parentFolderObj, folder_name) {}
System.log ("Building folder" + folderName);
var newFolder = parentFolderObj.createFolder (folderName);
System.log ("directory of frame:" + folderName);
return NewFolder;
}
Maybe you are looking for
-
Recovery partition into conflict with Norton Go Back
Hi - I've recently installed work of system of norton that includes Go Back, and from the hard drive on my Satellite light is working overtime, causing the fan to be almost full-time. I contacted Symantec who said that if my Toshiba has a preinstalle
-
I bought a refurbished portege M200 all the time, but the hard drive has problems, I'm looking to replace it.However no one knows if there are restrictions on which will take hard drives the M200? I'm trying to decide between spending 100 euros for a
-
Count of Pages printed in Win 7
I bought a toner cartridge, supposed to give 18,000 pages of print. I didn't count, but I think I got about 7 000 pages maximum. Is there a way I can count how many pages (or same lines would help) in Windows 7 or in Word 2007? Printer is a Dell mon
-
Allow a standard user to run a program with elevation of the admin.
I have a program that will run only on admin or with the approval of the admin. I want him to be executed on all users computers with standard users. How can I do this?
-
I have a fish snap account, but I can not connect to the Print Center e
I am trying to create a newspaper in Print Center e I bought an officejet 8600, I winked fish account how I link them together. Thanks for your help, Erik