Show and hide buttons
Hello world
I created a viewstack that displays text in a text box. He goes to the text box next, when I click on the next button and the previous textarea when I click the back button. What I want to do, it is that when it gets to the first text box, hide the back button (its visible property set to false) and then when it gets to the last textarea to hide the button following (its visible property set to false). I tried it here below but it does not work, please can you help me to solve my problem:
private void tipsResult(event:ResultEvent) {}
tips = event.result as Array;
for each {(var str:String in tips)
var textarea:TextArea = new TextArea;
textarea.percentHeight = 100;
textarea.percentWidth = 100;
textarea.editable = false;
textarea.setStyle ("verticalScrollPolicy", "true");
textarea.setStyle ("backgroundColor", "#EBEBEC");
textarea.text = str;
var can: canvas = new canvas;
can.percentHeight = 100;
can.percentWidth = 100;
can.addChild (textarea).
viewstack.addChild (can);
}
viewstack.selectedIndex = 0;
}
private function viewPrevTip(): void {}
if (viewstack.selectedIndex! = 0)
viewstack.selectedIndex-= 1;
if(viewstack.selectedIndex == 0)
previous.visible = "false";
}
private function viewNextTip(): void {}
if (viewstack.selectedIndex < (viewstack.numChildren-1))
viewstack.selectedIndex += 1;
if ((viewstack.selectedIndex + 1) == viewstack.numChildren)
next.visible = "false";
previous.visible = "true";
}
1. I recommend to use 'active' instead of 'visible' ease of use perspective.
2. I guess the problem is that you use the string 'true' instead of the Boolean true (i.e. remove the quotes).
* Edit *.
@spoboyle - the compiler probably converts the string to a Boolean according to the normal rules of casting.
Tags: Flex
Similar Questions
-
Show and hide content on stage with the action of the button
Hello...
I created a button to show and hide certain content on stage. The button works fine, but there is a problem... when I click on the button to display the content and I move to another section of the timeline, hides the content again, and I just want that it to hide when the button is clicked again :-(
Here is my code:
Quote:
Posted by: kglad
and your a real button or movieclip button? If it's a button movieclip instead of btAcess use _root.btAcess and see if that solves your problem.Forget it! you were right, and it's really simple after all...
just need to add _root variable btAcess: sThanks once again kglad for the patience and most importantly, help ;-)
-
I created show and hide features in InDesign I want to export to interactive PDF format. These functions work when seen in Acrobat on the desktop, but not on iPad/Tablet - why?
Why? Most likely because the PDF Viewer on the Tablet is too stupid to deal with show/hide functionality.
You could try PDF Expert of Readdle on qpdf Notes Pro on Android and iOS devices.
Depending on how the show/hide was created during the export of InDesign, it can work in viewers. Otherwise, you will need to open PDF files in Acrobat and edit features show/hide something more digests of PDF device viewers.
BTW, you will encounter the same issues with the PDF display components in web browsers.
I hope this can help.
-
Hello!
How could I show and hide the scroll bar attached to a dynamic text field depending on the size of the text?
I tried different solutions based on bottomScroll and maxcroll, but nothing works...
Thank you very much in advance for your help.
Best regards
GerryIf you use a text field, you can do a simple test:
If (textInstance.textHeight > textInstance._height) {}
show the ScrollBar
}--
Dave-
Developer leader
http://www.blurredistinction.com
Adobe Community Expert
http://www.Adobe.com/communities/experts/ -
Copy of a slide with a 'model' for the buttons to show and hide across multiple slides
Here's my problem... I'm going through many different products that each have a similar style click on each slide. The user can choose from 5 different catergories, when you click on one of the 5 buttons it shows the appropriate text box and hides one of the other visible text that can be opened from clicking on any other category. When all the 5 keys were pressed game re bar appears allowing the user to continue. It works just like a champion on a slide. Here's my problem, although I need to duplicate this slide about 200 times. When I duplicate, the name of the element in the text boxes so any change so my actions advanced making hide / display is no longer working. Do I really have to create a new tip action for each text box for each slide with a unique name for the element? (I know that I can't have the same text on several slides box item name... at least I don't think I can). I can do this, but there must be a quicker way? What Miss me?
I am using Captivate 5.5
Very brilliant way to beat the system, I am impressed. A problem, however, the text box must have a gray background to make the text readable, and for some reason when the variable positions within the text are it is overlooking the sid on the left of the box by a character. Everything else seems to fit but not that. See slide below and the "Drytime" box to the right illustrates my problem.
-
Hi, I have a doubt. I created a page with a large image. I need to put a subtitle, but I want to show the subtitle just at the time when I click on a button. And when I click once again I want to hide the subtitle. How can I do this? I use an Indesign CS5.5.
Thanks to you all
Alysson
Hi Alysson,
What you build is best done with a slideshow or multi-state-object, often referred to as a MSO.
Create an MSO with two States, one for the image without subtitle and one for the image with the subtitle.
Your show/hide button is then set to display the status 'next' your MSO. Whenever the user clicks the button, the DSO will switch from one State to the other.
Good luck!
Steven
-
Show and hide the text in a page of questions / answers
I need to create a FAQ page in Flex3. The page initially lists all questions with a "Show" button after each question.
A click of a button 'Show', the answer to this specific question is inserted and displayed below
the question and the button becomes "hide the answer.
A click on the button "Hide the answer," despairs the answer to this question, the questions (and answers if there is)
below moves upward to support the space and the button becomes «See the answer»
Suggestions or examples? DataGrid with masking of rows? Directly using state transitions?
I would use visible and includeInLayout properties
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
I did my own table of contents in a folio.
On this page, I have a few slide shows.
There are a few photo you can drag:
Now, I make a button on the top of this slide show and create a navto: statement in another article.
But now the slideshow no longer works:
Action on one place...
The solution is to create two interactive actions in one place?
Note After paste you it you will need to give him again the action of navto.
Not with this piece of magic: http://indesignsecrets.com/extension-deadens-pain-working-multi-state-objects.php
That said, navto: actions are fairly reliable in this regard. It's the go to the actions of the State who are lost.
AAD, I suggest you reconsider this layout, as well, but I would kill this sweeping action. It does not what most people expect it to do so, either have it auto play or use the buttons.
-
Show and hide multiple items using wildcards in advanced Actions?
Is there a way to show or hide multiple items at once by using a wildcard character in advanced Actions? Ex: Hide all the boxes to click in the presentation that begin with click_ *.
I'm trying to find a good way to use the same CBT to show me Mode (demo video with audio and no interaction) and the practice Mode (interactive simulation with boxes to click and prompt text box for interactions).
I saw a few business solutions have the ability to have 1 source file that publishes on multiple formats (demo, simulation, quick guide). However, they are a little more than 800 $de Captivate.
Micky
If I want to create a combination, I capture in all modes search and then copy and paste what I want one of the files? An example, but it's on a Dutch version of my blog, watch movie (power of lightning, hope, that you will always be able to see SWF?):
http://captivatenederlands.posthaven.com/classic-tutorials
Lilybiri
PS as for your original question: no wildcard in advanced actions. You can filter drop-down lists on "click_" and only objects will appear then (in CP6/7) but you will still need a single statement by click box unless you group boxes click on a slide (impossible to group objects sitting on different slides).
-
I want to use my application with different users (with a different authorization) and
I have to parent 12 navigation tabs.
But depending on the user (permission) I want to show or hide the parent tabs.
Is this possible in Apex?
I also have a second question:
I want to make changes in the CSS for the appearance of the tabs in my theme (topic 13). But how do you do that?
I tried on different ways, but it does not work.
1. I tried to use inline styles in my template on the page 'two level Tabs '.
I put the style of style inline = "color: Green;" in the tag DIV with id = "t13PageTabs", in the TR tag but nothing works.
2nd I tried to make a copy of the original CSS, and then make the changes in the CSS for the classes in the following tag:
-a: link, a: visited
-a: active,: hover
-span. OnC
-span. Creancesc a: link, span. Creancesc a: visited
-span. Creancesc a: hover
After the changes I load the CSS file (with a different name) through Shared
Components-> Cascading Style Sheets and change the href attribute in the link to the CSS tag
in the header of the page 'Two level Tabs' but who do not work also.
My questions are so follow them... Can I change the style of the tab (I mean just the color of the text in the tab)?
And how do you do that?
Somebudy can help me...Hello
Question 1: Go to Edit tab and use the conditional display settings.
Question 2: Go to the page template that you use and modify attributes of the tab Standard.
See you soon
Ben
-
Illustrator CC 2014 - Script to show and hide sublayers of name before exporting
Hello
I'm looking for a way hide and sublayers by name in Illustrator CC 2014 so that I can export each image as an action. I currently have an action for export, but I am unable to display and hide sublayers of name before as I have the export unless I do it manually.
Step #1: Sublayer "gray 1', the visible value.
Step #2: Export image.
Step #3: Primer 'Grey 1' set to hidden.
Step #4: Primer 'Gery 2' the visible value.
Step #5: Export image.
Step #6: sublayer 'Gray 2' set to hidden.
Etc...
Can I use a script or is there another way I can do this automatically without having to manually select each sublayer, and then export?
its not easy at first, but once you get the hang of it, it is not difficult
in a Word
-create a variable of visibility for each object that must be changed, or get hidden at some point, 1 grey, grey 2, etc.
-Gray cover 2, 3 grey, grey 4
-make a set of data
-Hide grey 1, gray unhide 2
-make a set of data
-Hide gray 2, gray unhide 3
-make a set of data
-Hide 3 gray, unhide Grey4
-make a set of data
then navigate with the arrows to view each set
-
show and hide a text with a qml button
Hi, I have a button and when onClicked I want to display a label and with a second click it hide again, what is the best way to do this in qml?
Lable{ id:lable text: "My Text" visible: false } Button{ text: lable.visible? "Hide" : "Show" onClicked{ lable.visible = !lable.visible } }
something like this should work
-
One button - show and hide the function
Hi I want to use it to be able to click the button once to show a subfield and click again to hide
I hide the code to the click event and click to show works of stage, but the second click does nothing
my code is:
If (help1vidlist.presence = "hidden") {}
help1vidlist. Presence = "visible";
} else if (help1vidlist.presence = 'visible') {}
help1vidlist. Presence = "hidden";
}
any ideas?
Thank you
I think that you should use the operator 'is' under the conditions, it is;
If (help1vidlist.presence == 'hidden') {}
help1vidlist. Presence = "visible";
} Else if (help1vidlist.presence == 'visible') {}
help1vidlist. Presence = "hidden";
}
Concerning
Bruce
-
Show and hide regions / buttons by changing the item values
Hello
is it possible to change a value of an element (LOV) that in the dependence of the selected a region of value / button see the STI or hide?
I try this with the conditions of the region / button, but it does not work...
Workspace: TEST_OA5
Username: [email protected]password: Hund123
Page: 2
THX for the help,
concerning
René
Hello
I've added a new dynamic action called ANIMAL SELECT and changed the terms on your reports using P2_TIER_AUSWAHL
Gus
-
Show and hide the symbols on the click event
Hello
I have 4 text overlays. Each of them can be clicked and opened individually. Any combination of them could be opened at any time. It can also be closed individually buttons within the same window.
In the assets Panel, I have a set of buttons that sit on the text overlays. What I want to do is to start with the visible buttons. Once all 4 text overlays is open the buttons are hidden. Once all 4 text collections are closed the buttons must be visible again.
I would be grateful for anyone's help.
You can set your buttons to display off the coast in the interface user, then show(); in your case.
Example:
SYM.$('elementName'). Show();
You can use an indicator of close all when the flag is true:
Insert a variable in each symbol example
A = 1;
B = 1;
C = 1;
D = 1;
then have a conditional in each event which will check the variable
If (A == 1 & B == 1 & C == 1 & D == 1) {}
code to display your buttons
} else {}
code to hide your buttons
}
Maybe you are looking for
-
Migration of files fails - old Mac again!
What I am doing wrong, or do I have to do differently? Migrating from an old MAC to a new MAc used to be so easy is not on this new MacBook PRO running OS 10.11.x. Migration of files on any media (wired Ethernet; and then the shot of lightning; then
-
May change my password on my phone connect my computer/laptop
My cell phone has been water damage, and I try to be sure that no one sees my message on my Skype account on the laptop. So I changed my password. That connects my laptop computer?
-
Usually, when I have IM replies come in chronological order. After Skype recently updated my answers get lumped all of mine and then the other person. It is very annoying because I have to scroll to see its new response (s), while mine to collect at
-
I can implement the project in nero10. But when I go to set the parameters for where I want the DVD to burn it does not list the hp1170.
-
AMD WIN7 DRIVER FOR HPPAVILLION E038TX
I haverecently bought computer hp laptop Pavilion 15 e038tx. It comes with 4 gb/500/3 rd gen amd of i3/1 GB graphics card. I was shocked to see that there is no driver for win7. If I use win8. I tried all the drivers of win8 on win7 64. they work per