hide the buttons outside of the loop for
Hello
I'm trying to hide listbuttons on mode full-screen. But only the last cache.
How to hide the total buttons on mode full-screen.
function playlistLoaded(e:Event):void { xmlPlaylist = new XML(urlLoader.data); //trace(xmlPlaylist.vid[0].@src); for (var i:int=0;i<xmlPlaylist.vid.length();i++) { var listbutton:Button = new Button(); listbutton.x = 482; listbutton.y = i * 19 + 1; listbutton.width = 197; listbutton.height = 20; listbutton.label = xmlPlaylist.vid[i].attribute("desc"); listbutton.name = xmlPlaylist.vid[i].@src+"__"+i; listbutton.addEventListener(MouseEvent.CLICK, playVidlist); addChild(listbutton); } } //==================FullScreen SetUp ======================== //=========================================================== controlBar.fullscreen_btn.addEventListener(MouseEvent.CLICK, fullscreenOnClicked); controlBar.normal_btn.addEventListener(MouseEvent.CLICK, fullscreenOffClicked); stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullscreen); function fullscreenOnClicked(e:MouseEvent):void { stage.displayState = StageDisplayState.FULL_SCREEN; } function fullscreenOffClicked(e:MouseEvent):void { stage.displayState = StageDisplayState.NORMAL; } function onFullscreen(e:FullScreenEvent):void { if (e.fullScreen) { controlBar.fullscreen_btn.visible = false; controlBar.normal_btn.visible = true; //listbutton.visible = false; removeChild(listbutton); controlBar.x = (Capabilities.screenResolutionX - 480) / 2; controlBar.y = (Capabilities.screenResolutionY - 116); vidDisplay.height = (Capabilities.screenResolutionY); vidDisplay.width = vidDisplay.height * 4 / 3; vidDisplay.x= (Capabilities.screenResolutionX - vidDisplay.width) / 2; } else { controlBar.fullscreen_btn.visible = true; controlBar.normal_btn.visible = false; //listbutton.visible = true; addChild(listbutton); controlBar.x = 0; controlBar.y = 244; vidDisplay.width = 480; vidDisplay.height = 360; }
One way to do it would be to place all the objects button inside an object (MovieClip or Sprite) container and then make the visible/invisible container with a single line of code.
Otherwise, just as you have used a loop to create the buttons, you need a loop to hide each of them. If you store each button in a table that you create, then you can use this array to loop through them all and make them visible/invisible individually.
Tags: Adobe Animate
Similar Questions
-
How to get the items on a loop at the same time during the execution of the loop for
Hello
I am a student. I would like to know how to get the outside loop counter values For in parallel so that the loop runs rather than obtaining the value finally outside the loop for future prospects for the answers.
Thank you
Frederick
You already said yes, and you have said some of the different ways (registrants, locals, reference, queue, etc.). Since the information was provided to your request, the thread can be considered closed? If you want details about how to implement something, you must provide the details on what you are doing.
-
Why this disable structure encapsulating the loop for that I'm falling?
In the middle of coding and debugging I noticed something weird... now I'm just curious.
Here is what happened (audio WARNING may be a bit much, fans of pumping in a warehouse im in...):
https://www.YouTube.com/watch?v=vC9BKJ0CwmY
I'm really just curious to know why this is happening - it seems that there is the note of "make sure wire you the error" fault behind the loop that the disable struc overlapped a bit...
Why the struc disable that first, I dropped in this video did seize all of the loop?
-pat
You have this decoration of the label on your block diagram behind your loop For. When you put the new business structure, he captured this label which is outside the loop For. This forces the case structure to take the loop too, since it is the only way to recover the property node and label.
-
Table of path error 1430 in the loop for
Hello!
I have a problem with the 1430 error: path is empty or relative, which seems impossible. The thing is that I have a battery of indicators of path connected to the loop for (check the .jpg and there is no problem with writing to a file by using the paths of an array with the first and last index.) Others are not saved because of the error... to be honest, that all data paths are absolute. Record in the file of the idicator path is the work of a Subvi (merge data vi) but it is in a for loop because I need to make it available to multiple files. There is no error that occur with the work of Subvi to a path. The question is: what labview makes with the paths saved in a table between the loops? I have just run out of ideas so if someone had some time, I would really appreciate for all the tips and ideas.
K.
Hello again,
If someone was interested in the happy ending: the solution is: 2 loops for. I think there must be something with the way that labview sends data between iterations. In any case - don't know how much exactly but works
the floor is .jpg.
-
Value of the loop 'For' pass before the complete loop - FPGA
Hello
8.5 LV, LV FPGA, PCI 7831-R FPGA Board
I got a cramp of brain on this one. I have a function (Arb. GIS read) that Im using to generate an arbitrary signal which I created in memory. I can't move to the value of data however. I don't know why I can not, its because it is nested in a "loop For" who runs indefinetly and updates only the value whenever it loops back to 'zero '. Ideas quick and dirty on how to use this value as it is being updated in the loop in my hand vi?
I've seen messages on the use of local variable 'Files' and property nodes, but I can not just give a sense the. Maybe because it's FPGA, something is different/no supported?
* My principal is 'control MicroMirror Arb. SP", look in the #4 case and the condition of"false. "
The 'Sub - VI' is called 'Arb Sig read RevB', and I'm trying to pass the variable 'Data' to hand while the loop For always runs.
Thank you!
-
When I put a Select statement inside a loop in a loop of Timed Cycle in LabVIEW FPGA, I get the following error when I try to compile:
"An internal software error occurred. Please contact National Instruments technical support on ni.com/support with the following information:
Error-61003 occurred at
Possible reasons:
LabVIEW FPGA: you cannot include this function in a loop For when the loop is within a single cycle timed loop. »
I didn't know that whatever it is documented that says that this is not allowed; is this a bug or am I missing some documents?
The code that causes this error looks like this, inside a SCTL (ignore Boolean wire wandering behind the loop for)
I came up with the code below instead, which compiles into one Cycle timed loop, but it is a bit ugly. Does anyone have a better suggestion?
This issue is currently followed under the CAR # 592391. Please keep an eye on our patches and new versions as usual!
-
Hello
I have auto indexed loop For (see attachment .vi).
I would like to show the position of the loop For on the front panel. At the moment the position appears only at the end of each iteration of a loop. I would like to show the iteration of the loop (ie 1-6) at the beginning of each loop. How to do this please?
Nevica
Click right int-cable in a loop and create indicator.
/Y
-
I stuck with a problem that I use FOR loop to generate expandable nodes.Now when I concat the node generated in the primary node and then I only last iteration of the loop FOR.can someone suggest me a way to manage this error...BECAUSE me IN 1.pl_phone_tab. CountyLOOPSELECT xmlelement ("phone", xmlelement ("PHONETYPE", xmlattributes ('01' AS "dmnADRP_PHONETYPE"), pl_phone_tab (i) .p_phtype_tab), xmlelement ("PHONENUM", pl_phone_tab (i) .p_phnum_tab), xmlelement ("PRIMARY_CONTACT", pl_phone_tab (i) .p_prcon_tab))IN p_phone_xmlDOUBLE; END LOOP;SELECT xmlelement ("PhoneInfo"xmlconcat (p_phone_xml))IN p_phone_info_xmlDOUBLE;Here, I'm a single node, but there must be two nodes for node of PHONE
-
Event inside the loop 'for' confusion
Hi all
I have an event inside a N = 2 for the loop, which generates an array of 2 elements (auto-index mode). The first value is a first event, the second of the second round. The events are the mouse clicks on a front panel with many buttons control.
Am I able to access the i counter inside the front loop of 2 elements output table? He does not appear.
Maybe I want just 2 events in the order I should put two copies of this event in a sequence of 2 image... but it creates the need to set up the event twice... a concern, because it contains many possible sources.
Ive tried everything in loops, by the way I like a local variable, tunnels, shift... registers but I don't seem to be able to access I have during the loop.
Can anyone suggest a method or a better structure/approach for this issue.
In any case, it seems that the program is blocked waiting for the second round, so I can't do anything with the value anyway?
I want to take action after the first test and before that I'm waiting for the second event.
Thank you
Carloman
OK, you're much too complicated things dong.
- Use a unique event for all low Boolean mice, then use the ctrlref of output event to detect only one. For Boolean values, you can use an array of Boolean instead of all these individual buttons.
- Don't do the "table of cluster... unbundle" songs and dances. It's just ridiculous! 'array Index' is sufficient.
- You need an event for the stop button.
- The structure of your outdoor sequence has no purpose.
- The coloring is registered with VI, no need to recolor with each race.
- Do not reproduce any of this code. Your internal matter differs only in a constant of the diagram, it's everything that belongs inside the case. The "subset of table to replace" belongs to the outside.
- Now, simply do the processing in a new event and ignore if the State isn't fair. Modify if needed.
-
Captivate 5: hide the playback for a specific slide bar
Is it possible to remove the bar reading and its controls to a specific slide to ensure that the user (after reading some information) necessarily must click on a button to go to the next slide?
For example: I built a production in which the quiz questions appear at certain intervals. I don't want the user to skip the question slides and proceed just click on the Play button. I want that they to select an option and click on the Submit button, which then leads to the next slide. So is it possible to hide the PlayBar to these slides only?
John
Hello
You have configured by action 'Enter' to the first Question slide hide PlayBar? So it makes sense that the action you set up 'Leaving' review slide (think you point to the slide of Score here?) is devastated when you re-enter the first slide of the question.
Could you try to hide the bar just before reading the first Question slide, slide "output on" slide just before the first Question? I think it would work, since this slide will not visited again when you return to the first slide of the Question for review. In this case, the action triggered on leaving the Score slide has an effect. Did not try, am a rush, please obtain if it does not work.
Lilybiri
-
creation of the loop for a Boolean value
Hello
I'm still a beginner at so forgive me if this sounds simple...
I created 16 Boolean values with all the false value.
Now with a loop for, I try to create 16 buttons, and when each button is pressed, the respective boolean compared to this button will change to true. Looks something like below:
Somehow, this does not work... someone can point me to an error in the coding? Thank you very much!
Couple things...
It is standard for a button work onRelease, not delivery.
-at your service delivery made reference to the button. Not the root
panel mounting as you probably want to target. The real problem, however, is the
the reference to I in the button. If you do a trace (i); within the delivery
you will find that each button will trace 17. This is because the button don't
not to maintain a local reference to i - just button refer to the final
value of i in the main timeline... it's called scope. Sometimes issues of concern
can be a real challenge. What you need to do is to create a local variable
in the buttons and I store it in this variable.for (var i = 1; i)<= 16;="" i++)="">=>
This ["button" + i] .i = i;
This ["button" + i] .onPress = function() {}
This ._parent ['status' + this.i] = true;
}
}--
Dave-
Developer leader
www.blurredistinction.com
Adobe Community Expert
http://www.Adobe.com/communities/experts/ -
Automatic indexation 2D array in the loop For - what is happening?
I found many sources dealing 1 d tables in a loop For or a While loop, using automatic indexing, but nothing on the tables of higher order.
I work with a program that feeds a 2D array in a loop (see table). From what I see, it looks like this the results of automatic indexing in a 1 d, the first column of table 2-D table.
This is the expected behavior, and it would hold true for arrays of higher order, table 3D for example?
Is it possible to refer to the second column rather than the first?
wildcatherder wrote:
I found many sources dealing 1 d tables in a loop For or a While loop, using automatic indexing, but nothing on the tables of higher order.
I work with a program that feeds a 2D array in a loop (see table). From what I see, it looks like this the results of automatic indexing in a 1 d, the first column of table 2-D table.
N ° it auto-index through a line at a time table. You will get a 1 d table which consists of all of the columns that make up each row in each iteration.
This is the expected behavior, and it would hold true for arrays of higher order, table 3D for example?
Yes. Automatic indexing on a 3D Board will give you a table on each iteration of each page 2D.
Is it possible to refer to the second column rather than the first? This question applies once you understand the first response.
-
The sum of several waveforms, created inside the loop for
Hello
I am currently viewing the Gibbs phenomenon by adding several sine waves. The issue I'm having is that I can't understand how to add sine waves created in the loop. I have attached a picture of the basic structure for my project below. I tried to use simply "add" with a feedback loop, but it seems that my programming skills apply here. Any suggestion is appreciated. Thank you!
0
Something like that?
1. make sure that you "reset" the generation of signals with each iteration
2. with the waveforms, please make sure that the sample rate is the same. This may be a problem with the first iteration. Then add in a check to use only the first waveform on the first iteration.
-
Hello and thanks for reading.
I have a program c ++ that I use for the list of available CCD cameras on computers in a local network. For this I built a VI, lets call it List.VI, I have provide a string containing the name of the computer. The back is a list of the cameras available on the specified computer.
Now, I want to use this VI to analyze multiple computers and store back in an array where each element represents the return of a computer. I don't know how many computers I use the size of return is specified by the number of elements in the input array. The VI I am providing is not functional on other computers, but it will give you an idea of what I meant.
I joined my List.VI in a loop, and it generates 3 messages back (in my example code). My problem is the function replace table subset. It requires a table control text (which I call fake table) in which I am suppose to replace something that works very well for a single loop. But when the iteration of the loop and the second return of List.VI is placed in the second element of the dummy array, but the first element is lost. I need to find a way to either stack the items back or somehow update the items already returned in the dummy array before filling the other. And I can't do it with all the functions available. There are all other functions of program designs that can help me?
Advice would be much appreciated.
Best regards
/ Mikael
Here you have some misconceptions. Why so complicated? All you need is a FOR loop autoindexing.
(In the most general case, you build your table in a registry to offset, but not here. You can't replace an element that does not exist)
-
Samples buffered not updated in the loop For
Hello.
I'm having some trouble with DAQmx Read.
I have 2 cards USB 6509 making a digital output to solve some multiplexers and I want to measure differential voltage
using 2 boards of 6255 USB. I have a sample clock shared for 6255 boards through a PFI line. Unfortunately
6509 boards do not allow for the synchronization of hardware I can say.
So, to synchronize the functions I used a flat sequence to ensure that multiplexers are processed before acquiring the data of voltage
and as you can see on the VI (LabVIEW 8.6) I use a loop to run 16 iterations and build a table with these data.
The problem is that sometimes I get is error 200287 or 200010. And when I don't get an error, the data of 16 iterations
is the same and it is incorrect because I'm monotoring the data to enter into the 6255 boards using a multimeter and data do not match.
I seems to me that the analog input is read-only data iteration and I can't understand why.
Also this VI takes a long time to run and it freezes for a few seconds on a few iterations.
Can someone take a look at the VI and enlighten us please?
I'm really stuck on this part.
Thanks in advance.
See you soon.
Rui
Rui,
Well-that the code has sufficient space to improve performance! Other than samples obvious to read the error that was made out, I recommend:
- Read the excellent post from Sean earlier today!
- Use "master of task.vi" to commit the task before starting the loop - as you have tasks enter the loop 'unverified' and so for each iteration tasks are verified, reserved, committed, started, stopped, no committed, without reserve and unverified. That's a lot of unnecessary work behind the scenes!
- Do not pass 30000 as a sample to the slave task rate HAVE read the actual sampling frequency of the main task of a task property node and pass a LARGE value this actual sampling frequency to the task of the slave (sample rate can get under duress and you cause a bit of a problem)
- Bring your constants out of the loop, that the 8.6 compiler doesn't have some of the modern optomizations available for reading constant each iteration is frowned on
- Check your version of DAQmx. You want more 9.1 to avoid the bug of the autostart.
Maybe you are looking for
-
Re: Satellite M35X-S149 - impossible to find a correct battery for this model
I can't find the correct battery for this model.I looked on the websites of Toshiba, but I did not yet find. This model does not recognize by finder tool toshiba.I will be grateful if anyone has any idea where I can find suitable battery. Battery mod
-
How do mI move the taskbar to the side to the bottom of the page
How can I move the task bar on the side to the bottom of the page
-
Ntoskrnl.exe damaged or missing error
I'm now locked in battle with the ntoskrnl.exe file corrupted on my computer. It started a week ago when I stopped, I noticed updates have been planned and so I clicked on to install updates and shut down option. Next morning all * broke loose and I'
-
WUSB600N and WDTV Live HD more
Hi, I was going around the city and asking retailers for the WiFi cards compatible with the HD WDTV Live Plus. Apparently, all the models are based on the old chipsets and are extremely rare. I was coming through the WUSB600N map, however, the proble
-
Lost my beloved 8330 with tons of data into it, but I have an old backup to a month using Blackberry Desktop Manager V 4.3.0.17. Verizon wanted to know if I wanted to Android. No, I'm staying with Blackberry, so I got a new Blackberry Bold 9650. BUT.