« back

Global Navigation: changelog

2.16

  • Some updates to make reparenting possible.
  • Change text label at runtime

2.15

  • IMPORTANT: It is now needed to call navigationManager.create() explicitly! This is because in some situations the listeners were not ready yet when the navigation started. So now you decide when to create the navigation after everything is set up.
  • Bugfix: width was not properly calculated if the width of navigBtnBg in mainBtn.swf was wider than 100px
  • NavigationManager2: width changed to initWidth
  • NavigationButton2:
    • old: navigBtnAsset.navigBtnBg.width = btnSize
    • new: navigBtnAsset.navigBtnBg.scaleX = btnSize / 100;

2.14

  • Error display added. (To display if a btn swf fails to load or the navig.xml is not well formed etc.)
  • NavigationParser2: xmlLoadCancel and getErrorMsg added
  • NavigationManager2: onParserCancel added
  • Fixes:
    • makeVerticalRoom in NavigationManager2 suppresses Animation if a deeplink is pending. Before, it was only if the doFade was true.
    • AutoActivation fixed.- was not working properly when the autoActivationDelay was set too small.
  • NavigationButton2:
    • deactivateDepth added
    • btn.setDepth() added. If set to “front”, manualDepth will be set to front. Then, all depth changes will be ignored (rollOutDepth, rollOverDepth etc.) To remove it again, simple call btn.setDepth(””).
    • initWidth = btnSize; added in positionLabel()
  • new xml attributes added:
    • btnDisabledAlpha, to set the alpha value manually if a button is disabled, Note: If you set btnDisabledAlpha=1, a gotoAndPlay(“disable”) will be executed in your btn swf. There you can define whatever disable state you like.
    • btnIgnoreRelease: If a button should only reveal its sub buttons at rollOver, but not perform/dispatch any action when clicked/released.
  • destroy() method added in NavigatonManager2
  • xmlFile replaced by xml. Now you can “feed” the global navigation by either an xml file or an xml object. Needed for example if the navigation needs to be re-created and the xml file should not be loaded more than once.
  • public method “getNavManager()” added in NavigationButton2.
    So you have access to the navigationManager from within a button swf.
  • relayoutButtons(btn:NavigationButton2, tweenTime:Number = 0) added.
    If you change the font inside of the btn fla (eg. you used a normal font for rollout states, and a bold one for the release state), the spacing between the buttons needs to be adjusted. You can do this now by calling parent[“btnClass”].getNavManager().relayoutButtons(parent[“btnClass”], .3) inside of the btn fla, where ”.3” is the time in seconds i will take for tweening to the new positions

2.13

  • internal improvement: holdAddress added in NavigationManager2.as to store the SWFAddress value if the navigation is suspended and the site is started with a deeplink.
  • latest Greensock files added
  • Caching added. (Cache and CacheLoader, inspired by Thijs Broerse).

2.12

  • Bugfix: missing method “getSuspended()” added in NavigationManager.

2.11

  • Bugfix: If there was only one child navigation button defined in navig.xml, it would not show up in the global navigation.

2.10

2.09

  • TweenLite replaced by TweenNano. “gs” changed to “com.greensock”
  • Bugfix in Gaia Demo Files (createBreadcrumbs)

2.08

  • Bugfix: fadeIn → “if btns.length == 0 return” added

2.07

  • Event added: LOADING_PROGRESS. → dispatchEvent(new NavigationEvent(NavigationEvent.LOADING_PROGRESS, {percent:perc, buttonCount:buttonCount, buttonTotal:buttonTotal}));

2.06

  • Improvement: getSiblings(id:String) changed to getSiblings(id:String, skipBtnID:Boolean = true). If you get the siblings of a btn, than this btn will not be in the array. This is the default. If you want all buttons (including the one you called the method with), use skipBtnID = false.
  • setAutoActivateDelay(n:Number) added.

2.05

  • New parameter added: navigationManager.setAlwaysHideChildren(true,true). If the second parameter is true, the menu will disappear immediatly when the button is released. If it is false, the buttons will remain either for the time set in “setFadeOutTimerDelay” or until the user clicks anywhere. Default is false.

2.04

  • Bugfix: btnAutoActivate handling

2.03

  • changes in navigationParser2:
    BEFORE: o.data = {swf:String(node.data.@swf), content:String(node.data.@content), sourceArr:sourceArr, titleArr:titleArr, addressArr:addressArr};
    NOW: o.data = {swfArr:swfArr, sourceArr:sourceArr, titleArr:titleArr, addressArr:addressArr};
    (used for language switch)
  • Bugfix in navigationManager2:
    isDeeplink added. If the navigation sub buttons are fading in and a button has autoactivate=true, only take care of it if it was not called by a deeplink

2.02

  • Updates for Fleb Framework (improved language detection/switch)
  • navigationManager2: setLanguageByURL(address:String) added.
  • setSWFAddressValue (value:String) added.
  • some minor refactorings.

2.01

  • Changes for the fleb framework.
  • seo data attribute integrated. Also the whole node so it is possible to access any individual user node in structure.xml
  • btns[t.btnID].data = t.data and btns[t.btnID].node = t.node added
  • activateBtnByAddress() and getBtnIDbyAddress() added
  • setLanguage added
  • getLanguageSplitter(), setLanguageSplitter() added

2.00

  • new xml soure handling, new attribute naming etc.
  • changed getParent to getParentIntern
  • changed getSiblings to getSiblingsIntern
  • changed getChildren to getChildrenIntern
  • changed getBtnsByID to getBtnsByIDIntern
  • …because they use btnID, which is now an internal value. Then I added getParent, getSiblings, getChildren, getBtnsByID again for the user to retrieve this value by the new id attribute. This update requires a different navig.xml file, that's why the version number changed to 2.00.

1.58

  • NavigationButton.as: added the option to change btnDisabled at runtime

1.57a

  • Bugfix: When children were fading out not only the parent was rolled out but the siblings also, which was unnecessary.

1.57

  • New methods added: setKeepRolloverStatus(value:Boolean), setAlwaysHideChildren(value:Boolean), setFadeInDepth(value:String). Then, the events MC_MOUSE_OVER, MC_MOUSE_OUT and MC_MOUSE_DOWN are now always dispatched (Before version 1.57, they were only dispatched when the button was inactive). You can get the state with the new variable “status” to know if the button is currently active or inactive to react accordingly. More info here.

1.56

  • Global event handling (net.kaegi.events.EventCentral) removed. Now, the NavigationManager class itself imports flash.events.EventDispatcher and dispatches all events. That way it is possible to have more than one Global Navigation (even I would not recommend it). More info here and here.

1.55

  • New XML attribute added: btnDisabled. If set to “true”, the button will be visible, but with alpha = 0.3 and mouseEnabled = false. You can use this if your website is already online, but you are still working on some content. So the visitor gets the whole picture of the site, but cannot yet click on the disabled buttons.

1.54

  • __btnLabelLetterSpacing removed again. It is not needed anymore, because you can just set the format of the textfield inside the textFieldMc of your button.swf (mainbtn.swf, subBtn.swf etc.) This format will than be fetched at initialization and re-applied after the label has its text set.
  • IMPORTANT NOTE: The textformat is usually needed when you don't embed the font. In that case you have to put at least 1 character in the textfield so that the format can be fetched at initalization!

1.53

  • new method added. It is now possible to change the depth of a button depending on its state (rollout, rollover, press and release)
  • setBtnDepths(rollOutDepth:String, rollOverDepth:String, pressDepth:String, releaseDepth:String)

1.52

  • __btnLabelTextNewLine added. This is used to insert a newline manually. For example, if in the xml file the btnLabel is “This is$a test”, then if you have set setBtnLabelTextNewLine(“$”) in navigationManager, the “$” in btnLabel will be replaced by a newline.

1.51

  • Update in LoadChildAsset.as (used in NavigationButton.as): removeEventListeners when a load is cancelled.

1.50

  • It is now possible to include a path to your btn swfs –> new NavigationManager(ref:MovieClip, xmlFile:String, btnPath:String = ””) This can be helpfull if your btn swfs are in a different location and you want to keep the xml file clean (btnSWF=“mainBtn.swf” looks better than btnSWF=”http://www.yourdomain.com/folder/anotherfolder/buttonfolder/mainBtn.swf”)

1.49

  • “btnHide” attribute added. This is used when the button itself should not be visible, but it needs to be loaded for proper alignment etc. This is often the case with the “home” button: The functionality should be in the navigation but it is triggered by a click on the logo and not specific “home”-button.

1.48

  • Bugfix when the last btn had sub-buttons (Type Error #1010 with btns[nextSiblings[0]].makeRoomAddSpace)

1.47

  • Added btnLabelLetterSpacing again

1.46

  • Change in NavigationButton.as

1.45

  • getInitDone() implemented in makeVerticalRoom() to check if btn.intro() has been called yet

1.44

  • Bugfix: setBgSize() removed

1.43

  • Instead of removing blurFilters by TweenMax in makeVerticalRoom(), I used btn.filters = null. Sometimes, the blur was not removed “properly”, so that pixel fonts appeared “washed out”.

1.42

  • Bugfix in NavigationButton.as

1.41

  • Bugfix: wait until all assets have loaded and are in place (layoutButtons(), addBtnMouseListener() → navigationInitialized=true)

1.40

  • More Encapsulation

1.39

  • blurFilter reset at makeVerticalRoom

1.38

  • deactivateChildren(btnID) added in method doActivateBtn(). Needed in case the parent button can be reselected for the same reason, I added if (b[0].fadeStatus == “in”) return; } in fadeIn().

1.37

  • __btnLabelLetterSpacing removed, because this can be done directly in the btn.swf

1.36

  • btnsContainer is now internal. btnsContainer.setChildIndex added, so that when the mouse is over a button, its children are always on top

1.35

  • alignButtons() + makeVerticalRoom() Code optimized (when makeRoomY is active)
  • resetLastMovedBtns() eingebaut.

1.34

  • btnMakeRoomAddSpace added.

1.33

  • getBtnsByID and getBranchForGaia implemented for GAIA Flashframework

1.32

  • Events added: EventCentral.getInstance().dispatchEvent(new NavigationEvent(NavigationEvent.LOADING_COMPLETE ));

1.31

  • weak Reference added to addEventListeners (someObj.addEventListener(“eventName”, listenerFunction, useCapture, priority, weakReference))

1.3

  • btnReselect + deactivateChildren() integrated

1.2

  • More flexibility: Now there are functions in the btn.swf files which are called, instead of “gotoAndPlay(label)”

1.1

  • Clean up code

1.0

  • Public release
global_navigation_changelog.txt · Last modified: 2011/11/11 18:55 (external edit)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki