Conditional statement to improve the functions of navigation bar

Question of AS2:

I have created a navigation bar of four buttons with the normal state in box 1 and place the cursor in the frame of 10, 20, 30 and 40, States.

Hover States are made by adding a mask on each button to reveal a layer of color differetly on frame 10, 20, 30 and 40

I have scripted buttons like this:

on (rollover) {gotoAndPlay (10);}

}

(deployment) {gotoAndStop (1);}

}

(press) {gotoAndPlay (1);}

}

on (release) {gotoAndPlay (9)}

}

On the four frameworks there is also an action that says:

Stop();

to import flash.external.ExternalInterface;

{btn1.onRelease = Function ()}

ExternalInterface.call("saveglobalscore",score) ("f1");

}

It all works well. The button triggers a javascript function on the page.

Request:

Can I do the buttons stay in addition to their States when a button is clicked, so it serves as a clear marker that the viewer of the page selected and seeks to?

Page loading on the release, but as soon as the pointer leaves the button, the command deployment on-site the playhead to frame 1 (with the normal state)

(1) is the following:

Put a conditional statement to say frame 1:

If the read head came to frame 10 then go to section 10 and stop.

If the read head came to frame 20, then go to section 20 and stop.

If the read head came to frame 30 then go to frame 30 and stop.

If the read head came to frame 40 then go to the frame of 40 and stop.

Another thing: stay on the frame 1.

?

(2) or is there another solution that I have not thought?

Often, it would be useful to be able to follow where the read head just left for example with scroll on the side and other advanced layouts.

Is this possible and if so, how?

Thank you in advance.

ggaarde

var mcA:Array = [mc1, mc2, mc3,...];

for (var i: int = 0; i<>

.Ivar mcA [i] = i;

mcA [i] .buttonMode = true;

mcA [i] .addEventListener (MouseEvent.MOUSE_OVER, overF);

mcA [i] .addEventListener (MouseEvent.MOUSE_OUT, outF);

mcA [i] .addEventListener (MouseEvent.CLICK, clickF);

}

function overF(e:MouseEvent):void {}

MovieClip (e.currentTarget) .gotoAndStop ("over");

}

function outF(e:MouseEvent):void {}

{if (MovieClip (e.currentTarget) .lastClicked)}

MovieClip (e.currentTarget) .gotoAndStop ("clicked");

} else {}

MovieClip (e.currentTarget) .gotoAndStop ("up");

}

}

function clickF(e:MouseEvent):void {}
for (var i: int = 0; i<>

{if (mcA [i]. Clicked)}

mcA [i] .gotoAndStop ("up");

}

}

MovieClip (e.currentTarget) .gotoAndStop ("clicked");

do something else. has clicked the button movieclip MovieClip (e.currentTarget) .ivar th

}

Tags: Adobe Animate

Similar Questions

  • How can I hide the page thumbnails navigation bar initially to the top of Adobe Reader and open a pdf file?

    How can I hide the page thumbnails navigation bar initially to the top of Adobe Reader and open a pdf file? I couldn't find this option on the Preferences tab? Thank you

    Under Edit - Prefs. - Documents check the box that says "Restore last display settings when reopening documents." Hide the Pages panel manually, and the next time that you open the file it should have disappeared.

  • Why is there a gap between the banner and navigation bar?

    Hi gang,.

    I hope someone can help me. I tried a new layout, but cannot work out why space appears between the banner and navigation bar.

    It seems (at least for me) fill and margins are reset to zero, so I do not understand.

    The url of the temporary page is www.iainmoran.com/new.html

    Thank you very much in advance for your time.

    Iain.

    In your attempt to css:

    #masthead img {}

    display: block;

    }

  • Toolbar - address bar: I can shorten? I've moved all the stuff of navigation bar in the menu bar (to save space), but I need to shorten the address bar, so it does not cover the Wolf/Moon icon. How can I do this?

    I just started using firefox (yesterday). I moved stuff navigation bar on the menu bar to make room for gameing toolbars, I want to add. Problem, the location bar covers, which is now part of the Wolf/moon picture that I would like to know. Can I set the length of the address bar not decide on his nose?

    today is... I'm exploring firefox... well! can do most of what I need to.

    Hello Cassandra.

    I'm not sure that I understand very well what is your problem, but have you tried to add the spaces of the view > toolbars > customize... screen?

    I hope that makes sense and it helps you to solve the problem.

  • Is there a way to block the spread of navigation bar for a specific page/section?

    Hello

    I would like to know if it is possible to hide the navigation bar for a specific post/page?

    In our society, we have built a presentation guide to our sales representative. We have recently added a html content embedded in the presentation.

    The question we have is that the html page contains drop-down lists boxes. Each time we press the drop down menus, navigation bar will appear. It really is intrusion with the user experience.

    I know it is possible to turn it off for the application, but is it possible to simply to block for the page that contains the embedded HTML code?

    Thank you!

    John

    If you make your HTML consume all the gestures of contact on the page I think it's going to keep the top navigation bar to appear. However this does not mean your readers will not be able to slide off the page, and you can use hyperlinks to take them to other content within the application.

    If you use DPS 2015 instead of that we have API, you can call since in the code HTML to have the finer level control over how the gestures are handled in HTML.

    Neil

  • I have a problem with the functionality of search bar

    If the search bar has changed recently and is shit... Basically, there is way more information to I type in my search, and if my mouse happened to move a button randomly when I hit "enter" it looking a different engine or go to "change search settings"... These buttons do not need to engage with the key enter, it's really annoying... in the screenshot, photo, I took it took my cursor but notice that "change search settings" is highlighted, if I press on enter would not seek, he would open parameters

    If you want to revert changes to the search bar and to have the standalone window to manage search engines, you can enable or disable this pref to false with a middle-click on the topic: config page.

    • browser.search.showOneOffButtons = false

    Close and restart Firefox for the changes to take effect.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • Why just they ruin the functionality of search bar?

    The search bar has always had the drop that would change the site default that you were looking for with when you typed something in there, there recently that a few minutes ago has changed and now it is terrible. He always had an icon in the bar to show what site I was using now it doesn't. First, it changed my default Yahoo search as I am a 50 year old grandmother who actually uses yahoo, so I had to change my default again. Now because of these stupid changes each time I have type anything in the search bar if I want to search youtube or wiki or something else, I have to click the new stupid ugly menu everysingle time that it is beyond stupid and infuriating. What happens if I close the browser and go back a moment later and want to find something on the same site. Well I guess I'm screwed because now I have to click on the stupid button again once each time. They could have at least let the icon on the taskbar to show where I was looking,

    In any case thanks for ruining the best feature of your browser was fixing something that wasn't broken, making it much more complicated and annoying you guys rules.

    You can return to the old regime to the search bar.

    Open Subject: config (typed in the address bar) and turn this false preference
    browser.search.showOneOffButtons
    Then restart Firefox.

  • Fireworks navigation bar won't show 'down' and ' over all the way down ' States.

    So my Fireworks navigation bar won't show 'down' and ' over all the way down "says when I saw it.

    Heres javascript for navigation bar:

    < script type = "text/javascript" >

    <!--

    function MM_preloadImages() {//v3.0

    var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();

    var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

    If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

    }

    function MM_findObj (n, d) {//v4.01

    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}

    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}

    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];

    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);

    If (! x & & d.getElementById) x = d.getElementById (n); Return x;

    }

    function MM_nbGroup (event, grpName) {//v6.0

    var i, img, nbArr, args is MM_nbGroup.arguments;

    If (event == "init" & & args.length > 2) {}

    If ((img = MM_findObj(args[2]))! = null & &! img.) MM_init) {}

    IMG. MM_init = true; IMG. MM_up = args [3]; IMG. MM_dn = img.src;

    If ((nbArr = document[grpName]) == null) nbArr = document [grpName] = new Array();

    [nbArr.length] nbArr = img;

    for (I = 4; I < args.length - 1; i += 2) if ((img = MM_findObj (args [i]))! = null) {}

    If (! img.) IMG MM_up). MM_up = img.src;

    IMG.src = img. MM_dn = args [i + 1];

    [nbArr.length] nbArr = img;

    } }

    } Else if (event == "over") {}

    document. MM_nbOver is nbArr = new Array();.

    for (i = 1; I < args.length - 1; i += 3) if ((img = MM_findObj (args [i]))! = null) {}

    If (! img.) IMG MM_up). MM_up = img.src;

    IMG. SRC = (img. MM_dn & & args [i + 2])? args [i + 2]: ((args[i+1])? args [i + 1]: img.) MM_up);

    [nbArr.length] nbArr = img;

    }

    } Else if (event == 'out') {}

    for (i = 0; i < document.) MM_nbOver.length; i++) {

    IMG = document. MM_nbOver [i]; IMG. SRC = (img. MM_dn)? IMG. MM_dn: img. MM_up; }

    } Else if (event == 'down') {}

    nbArr = document [grpName];

    If (nbArr)

    for (i = 0; i < nbArr.length; i ++) {img = nbArr [i]; img.src = img. MM_up; IMG. MM_dn = 0; }

    document [grpName] is nbArr = new Array();.

    for (i = 2; I < args.length - 1; i += 2) if ((img = MM_findObj (args [i]))! = null) {}

    If (! img.) IMG MM_up). MM_up = img.src;

    IMG.src = img. MM_dn = (args [i + 1])? args [i + 1]: img. MM_up;

    [nbArr.length] nbArr = img;

    } }

    }

    ->

    < /script >

    And here is the code of navigation bar:

    < table border = "0" cellpadding = "0" cellspacing = "0" width = "196" >

    <!-fwtable fwsrc = "navbar.png" fwpage = "Page 1" fwbase = "Page 1.gif" fwstyle = "Dreamweaver" fwdocid = "182993200" fwnested = "0"->

    < b >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "196" height = "1" border = "0" id = "undefined_2" / > < table > "

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "1" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Index.html" onmouseout = "MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r1_c1','... / Kuvat, TESTINAVI, images, navbar_r1_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r1_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r1_c1','... / Kuvat/TESTINAVI/images/navbar_r1_ c1_f3.gif', 1);" > < img name = "navbar_r1_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r1_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r1_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Hevoset.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r2_c1','... / Kuvat, TESTINAVI, images, navbar_r2_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r2_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r2_c1','... / Kuvat/TESTINAVI/images/navbar_r2_ c1_f3.gif', 1);" > < img name = "navbar_r2_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r2_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r2_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Tunnit.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r3_c1','... / Kuvat, TESTINAVI, images, navbar_r3_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r3_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r3_c1','... / Kuvat/TESTINAVI/images/navbar_r3_ c1_f3.gif', 1);" > < img name = "navbar_r3_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r3_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r3_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Leirit.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r4_c1','... / Kuvat, TESTINAVI, images, navbar_r4_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r4_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r4_c1','... / Kuvat/TESTINAVI/images/navbar_r4_ c1_f3.gif', 1);" > < img name = "navbar_r4_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r4_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r4_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Hinnasto.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r5_c1','... / Kuvat, TESTINAVI, images, navbar_r5_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r5_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r5_c1','... / Kuvat/TESTINAVI/images/navbar_r5_ c1_f3.gif', 1);" > < img name = "navbar_r5_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r5_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r5_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Tayshoitopaikat.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r6_c1','... / Kuvat, TESTINAVI, images, navbar_r6_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r6_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r6_c1','... / Kuvat/TESTINAVI/images/navbar_r6_ c1_f3.gif', 1);" > < img name = "navbar_r6_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r6_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r6_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Kuvagalleria.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r7_c1','... / Kuvat, TESTINAVI, images, navbar_r7_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r7_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r7_c1','... / Kuvat/TESTINAVI/images/navbar_r7_ c1_f3.gif', 1);" > < img name = "navbar_r7_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r7_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r7_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Kisamenestys.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r8_c1','... / Kuvat, TESTINAVI, images, navbar_r8_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r8_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r8_c1','... / Kuvat/TESTINAVI/images/navbar_r8_ c1_f3.gif', 1);" > < img name = "navbar_r8_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r8_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r8_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Ajankohtaista.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r9_c1','... / Kuvat, TESTINAVI, images, navbar_r9_c1_f2.) " GIF ',', Kuvat/TESTINAVI/images/navbar_r9_c1_f4.gif',1); "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r9_c1','... / Kuvat/TESTINAVI/images/navbar_r9_ c1_f3.gif', 1);" > < img name = "navbar_r9_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r9_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r9_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < b >

    "" < td > < a href = ".. / Html/Yhteystiedot.html ' onmouseout ="MM_nbGroup ('out'); "onmouseover =" MM_nbGroup ('over', 'navbar_r10_c1','... / 2.gif Kuvat, TESTINAVI, image, navbar_r10_c1_f ',', Kuvat/TESTINAVI/images/navbar_r10_c1_f4.gif',1); " "" onclick = "MM_nbGroup ('down', 'navbar1', 'navbar_r10_c1','... / Kuvat/TESTINAVI/images/navbar_r1 0_c1_f3.gif', 1);" > < img name = "navbar_r10_c1" src =""... / Kuvat/TESTINAVI/images/navbar_r10_c1.gif "width ="196"height ="36"border ="0"id ="navbar_r10_c1"alt =" "/ > < / has > < table >

    "" < td > < img src = "... / Kuvat/TESTINAVI/images/spacer.gif" alt = "" name = "undefined_2" width = "1" height = "36" border = "0" id = "undefined_2" / > < table > "

    < /tr >

    < /table >

    I had a look at the files you sent me and tested in different browsers. I don't see a problem because mouseover and mouseout/mouseouthandler() events work as expected. The reason why all down and several events have not been programmed to. Remember that when a menu item is clicked on, it takes you to another page with a different menu and a different logic.

    If you want the item of menu appropriate to remain in an inactive state, you need to program for it.

    Why don't you use a menu ready fact as Spry system?

    GRAMPS.

    PS: Faceless and nameless moderators have removed some of my responses that made me decide that I can use my time better in other places. I won't answer any further.

  • force the order of execution of code in conditional statements?

    I don't know if the above subject line is the best description, but here's the question.

    I created an image gallery where each "slide" is an image loaded by a UILoader component.  Everything works, except that I noticed that, as a user, it's annoying to wait for each new slide load.

    So, even with my knowledge of AS3, I decided to find a way to load the next image to come until requested by the user. 

    My solution 'dirty' had to have 2 UILoaders - one for odd slips, one for even-numbered slides. In this way, when the user displays a slide with an odd number in the first charger, the following image can be loaded into the charger (currently invisible) second and ready to go when asked. A "next slide" button would simply toggle the visibility of these two loaders.

    Not an elegant solution, but I thought it would work. Unfortunately, this isn't the case. The question lies in the function that is called when the user clicks on the button "next slide":

    function nextButton(event:MouseEvent):void

    {

    imageNumber ++;

    myModulo = imageNumber % 2;

    if (myModulo == 1)

                {

    Loader1.visible = false;

    Loader2.visible = true;

    loadNextSlide();

    //where loadNextSlide() functions load the next image in the currently invisible charger

                }

    Else if (myModulo == 0)

                {

    Loader2.visible = false;

    Loader2.visible = true;

    loadNextSlide();

    //where loadNextSlide() functions load the next image in the currently invisible charger

                }

    }

    Say that the user currently displays slide 3, when they click on the "next slide" button, imageNumber (which was = 3) is now = 4, and which defines myModulo = 0, answering the second condition.

    I assumed that would happen then was the properties of visibility of the Chargers would change immediately and then call the loadNextSlide function. In SIMULATED DOWNLOAD, however, it seems that none of the conditional code executed until the function is loadNextSlide.

    He completely defeated my effort, because when the user (who, in the example, look at slide 3) click on the "next slide" button, they expect to see slide 4 (which is already loaded) due to the loading of slide 5.

    I tried to replace "loadNextSlide();" with "dispatchEvent (new Event ("loadNextSlide"));" and add an eventlistener that calls the function loadNextSlide, but I got the same result.

    Is it just the nature of the AS3 language? Or, more likely, I think this evil? 

    If it really is the 'law of the land", is there a way around it? y at - it a better way to load blades to come with a charger?

    I think that he abandon the current and start the new load.

  • Conditional statement advanced interaction checking if a variable is odd/even?

    Hello

    I was wondering if it is possible to have a conditional statement that checks if a variable is even or odd? I am using Captivate 5.

    Here's what I would do, and I know that I could do the same thing with the two sepaparate buttons, but I am curious to know if it is possible to do it with a button only.

    What I'm trying to do, is to give learners the ability to display some documents as a resource on their screen while they are listening for an example of an interaction with the customer. During this interaction some forms have to be filled, and I want learners to be able to display a before and after of the completed form, if they would like to see it.

    The easy way to build that according to me is to have a single button that would make the visible resource and the other button that hides the resource. I tried it and it works like a charm using standard measures.

    Since there are several resources that I want to put available for learners, with two buttons for each resource can clutter the slide a little, so I thought I'd try if I could create the same function using a button with a tip action.

    Whenever the learner clicks on the button for a resource, the variable associated with the resource is increased by 1. I would then have a conditional statement, saying: If the variable is odd-> see the resource, if the variable is same-> hide the resource.

    I can't find the option in the advanced actions to compare if a variable is even or odd. I can only find how to compare to a literal or another variable.

    Hello

    May I suggest another approach instead of odd/even?

    I would build a conditional action with 2 decisions. In the first decision, it of really a standard action (use IF 1 = 1, while it is still running), use this statement:

    Expression v_one = 1 - v_one

    v_one is the variable user for this button. It will always pass the value of this variable between 1 and 0. If the variable has no value assigned when set, first time user clicks it will get a value of 1, the second time the value 0.

    Second decision will be your cheque to condition:

    IF v_one = 1

    THEN hide resources

    ELSE to see the resource

    I hope you get the idea?

    Lilybiri

  • How to define the rules of navigation in faces - config.xml dynamically?

    In jdev 12.1.2 I am studying and performing the adf faces demo (12.1.2 version).

    I am trying to implement the function of navigation like this:

    1. in the navigation tree in the left panel of the accordion will show the features of an application which is read from database tables;

    2. When you click on a node in the navigation tree, a corresponding function/page will be launched in the Panel to the right of the home page;

    3. the navigation tree nodes display names and information pages target will be resident in the database tables and will be read in my case, the control of data bindings.

    and now I know, the click action was executed in this file in the demo: componentGallerySideBarTree.jsff:

    ->action = "#{stamp.actionOutcome}"

    < af:tree id = "tree" value = "#{attrs.menuModel}" var = "stamp" = "single" rowSelection fetchSize = "200" "

    Summary = "#{uploading." Summary}"disclosedRowKeys =" #{attrs.menuModel.foldersTreeState} "autoHeightRows = '0'"

    displayRow selectedRowKeys = "#{attrs.menuModel.selectionState}" = "selected" "

    contentDelivery = 'immediate' emptyText = "there are no demos for this category.

    styleClass = "AFStretchWidth" >

    < f: facet name = "nodeStamp" >

    < af:panelGroupLayout id = "nodePgl" >

    < af:image source = "#{stamp.ico}" styleClass = "GalleryIcon" shortDesc = "Image of a tree node" "

    ID = "nodeImg" / >

    < af:switcher facetName = "#{stamp.children == null?' leaves ': 'notLeaf'}" id = "nodeSw" > "

    < f: facet = "journal batch name" >

    < af:link id = text = "#{stamp.label"leafLink"} '"

    shortDesc = "#{stamp.label} #{stamp.deprecated eq 'real'?" (not recommended) " :"} »

    action = "#{stamp.actionOutcome}"

    inlineStyle = "#{stamp.deprecated eq 'true'?-style: italic; color: gray':"} ' "

    selected = "true" >

    < af:target execute="@this"/ >

    < / af:link >

    < / f: facet >

    < f: facet name = "notLeaf" >

    < af:outputText id = value = "#{stamp.label"notLeafText"} ' shortDesc =" #{stamp.label} "/ >"

    < / f: facet >

    < / af:switcher >

    < / af:panelGroupLayout >

    < / f: facet >

    < / af:tree >

    and the value of actionOutcome was entered in this file DemoConfusedComponentsMenuModel.java:

    (for the case of the confused component navagation tree folder)

    private TreeModel _initConfusedComponents()

    {

    Confused components

    The list < DemoItemNode > confusedComponentsNodes = new ArrayList < DemoItemNode >)

    {

    {

    ..

    Add (new DemoItemNode ("Tabs", "/ confusedComponents/tabs.jspx","/adfdt/panelTabbed.png","confused.tabs"));

    Add (new DemoItemNode ("iterators","/ confusedComponents/iterators.jspx","/adfdt/iterator.png","confused.iterators" ""));

    }

    };

    DemoItemNode confusedComponentsGroup = new DemoItemNode ("Often confused", "/ images/folder.png", confusedComponentsNodes);

    List ConfusedComponentsList = new ArrayList();
    confusedComponentsList.add (confusedComponentsGroup);

    TreeModel confusedComponents = new ChildPropertyTreeModel (confusedComponentsList, _CHILDREN);
    Return confusedComponents;
    }

    In addition, there are elements in faces-config .xml to define the rules of navigation for the actions 'by clicking on the tree node.

    <>navigation-case

    < from outcome >confused.iterators< / de-results >

    < to view - id > /confusedComponents/iterators.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    So, I can add a new entry in the navigation tree, like this:

    1. in DemoConfusedComponentsMenuModel.javaof the file: Add

    Add (new DemoItemNode ("Iterators", "/confusedComponents/cms.jspx","/ adfdt/iterator.png","confused.cms" ""));

    2. in the file faces - config.xml, add:

    <>navigation-case

    < from outcome >confused.cms< / de-results >

    < to view - id > /confusedComponents/cms.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    and it works!- I have successfully added a new node in the navigation tree, called a new page created by myself cms.jspx.

    If I implement them using database tables (links datacontrols EO/VO),.

    I think I can put action = "#{stamp.actionOutcome}" by links.

    But how can I pay the entry in the faces-config file. XML? -That is to say:

    How to define the rules of navigation in faces - config.xml dynamically?

    Thanks in advance!

    ADF 12 c comes with support for JSF 2.0, you can use the implicit navigation feature.

    In short: you don't need to add case action property, any set of navigation in the name of the page (and include the path if necessary).

    In your case, the name of the action will be: ' / confusedComponents/cms.jspx ' and of course, you can link the action property of method that returns this string.

    If you want to add by the case of navigation program, try ConfigurableNavigationHandler.

    For example:

    Manager of ConfigurableNavigationHandler = (ConfigurableNavigationHandler) FacesContext.getCurrentInstance () .getApplication () .getNavigationHandler ();

    handler.getNavigationCases () .put (...);

    Dario

  • Maintenance of the visible Navigation bar?

    It seems possible to keep hidden with the gesture API navigation bar. However, I can't understand consistently to maintain the visible navigation bar.

    The following code will ensure that the navigation bar is visible on the loading of the page and show page; However, as soon as the page is moved in a certain way, the navigation bar automatically hides and is irretrievable.

    {$(document) .ready (function ()}

    adobeDPS.Gesture.disableNavigation ([$("body") [0]]);

    adobeDPS.Gesture.toggleNavigationUI ();

    });

    document.addEventListener ("visibilitychange", function() {}

    If (! document.hidden) {}

    adobeDPS.Gesture.toggleNavigationUI ();

    }

    });

    Is there a way to ensure that the navigation bar is indicated?

    There is no way to force the navigation bar to stay standing. It will disappear when the player interacts with the page to ensure that the full screen is available for the reading experience.

    Neil

  • Add a button to the navigation bar on QooQee post-it

    I am using the QooQee sticky navigation bar and I have 7 pages/buttons in the NAV., BUT the bar only comes with 6. I can't understand how to add an extra button.

    Also, is there a way to use drop downs with this menu bar?

    Thank you very much!

    The menu in the sticky navigation bar items are State buttons, so you can add more status button in the Group and then link to pages.

    You can create drop down, but this would require an overhaul of the menu. Use the control panel or compositions and the button States trigger containers, under elements of target container.

    Thank you

    Sanjit

  • How to have the backup CSS navigation for older browsers

    Hello

    I'm on DW CS4 and I use an iMac intel. I just put a new CSS cool gradient on the my site navigation bar, and I know that I need a backup for older browsers that cannot display the CSS gradients.

    And I * thought * that simply by putting in solid background colors as a backup in the same chains of CSS would work for older browsers. But I don't get any result on IE 6 - I simply empty squares for navigation. The text is there fortunately, but this is all I get.

    http://www.frankbright.com/index3.htm

    Could someone point me to a tutorial or offer a tip on how to do this? I really appreciate all the assistance.

    Thank you, Frank B.

    One trick is to use conditional comments to earlier versions of Internet Explorer. Comment between theandTags of your HTML documents like this:

    
    

    Nancy O.
    ALT-Web Design & Publishing
    Web: Print: graphic design: media
    http://ALT-Web.com/
    Twitter: http://twitter.com/altweb
    Blog: http://alt-web.blogspot.com/

  • Address box has disappeared from the Navigation bar

    Don't know how or why, but the address box has simply disappeared from my PC of Win8 (x 64) with Firefox 27.0.1.

    Any help appreciated or is - what a relocation?

    Make sure that you run not Firefox mode full screen (press F11 or Fn + F11 to toggle; Mac: Command + SHIFT + F).

    If you are in full screen view then hover over with the mouse to the top of the screen to facilitate the bar appear Navigation and tab bar.
    Click the expand (in the top right Navigation bar) to exit full screen or right-click on a space empty on a toolbar and select "exit full screen" or press the F11 key.

    Make sure the toolbars like the toolbar 'Navigation' and the 'personal bar' are visible.

    • Firefox menu button > Options
    • View > toolbars (press F10 to display the hidden menu bar)
    • Right click on empty toolbar space

    Use the toolbar (Customize) to open the Customize and set the toolbar to display items.

    • Make sure the "bookmarks toolbar items" are on the personal bar
    • If "Bookmarks Toolbar items" is not on the bookmarks toolbar, then FRY it in the palette of the toolbar in the window the bookmarks toolbar Customize
    • If the missing elements are in the toolbar palette then drag them from the window, customize the toolbar
    • If you do not see an item on a toolbar in the toolbar palette and then click the button "Restore default" to restore the default toolbar configuration

    You can check the problems caused by a corrupt localstore.rdf file, if this did not help.

Maybe you are looking for