STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #76267 |
Loading... |
Saving Data |
In |
FLASH |
Games |
By: Darren Chowles |
Next |
1/10 |
INTRODUCTION Have you ever wanted to add a function to your Flash game that will enable players to save their progress, data or score? Yes? This can very easily be done using Flash MX Shared Objects. Sounds confusing? Well it's not: as long as you have some basic experience in Flash, e.g. creating buttons, using text boxes, etc., this will be super easy. So what are we waiting for?! Let's start! |
Back |
2/10 |
For this example, we will be making a simple application that will save your name and surname. The concept, however, can be applied any way your game requires. We will be needing 3 keyframes for this example. Make sure you insert 3 keyframes (on frames 1, 2 and 3) and put a stop(); action on each one. |
3/10 |
Before we do the ActionScript, let's first set out the scene. In FRAME 1 -- Create a two buttons: one with text, NEW, the other with text, LOAD. When you click on the NEW button, you will be entering new data. When you click on LOAD, you will load previously saved data. If no previously saved data is present, you will be taken to the screen where you can enter new data. |
4/10 |
Add the following ActionScript code to the NEW and LOAD buttons, respectively: |
on(press){ gotoAndStop(2); } |
on (press) { game = SharedObject.getLocal("mydata"); if (game.data.name == undefined) { _root.gotoAndStop(2); } else { name = game.data.name; surname = game.data.surname; _root.gotoAndStop(3); } } |
...and... |
(Code can be copied from the text boxes above) |
5/10 |
Now for some explaining. The game = SharedObject.getLocal("mydata"); code declares the Shared Object. game is also the name of the .sol files that is created on the computer (which holds all the saved data). The rest of the code works as follows: if data does not yet exist (undefined) then go to the screen to enter data (FRAME 2), else, if data DOES exist, then go to the screen to display previously saved data (FRAME 3). |
6/10 |
I'm going to skip and do FRAME 3 instead of FRAME 2. The reason why is because FRAME 3 is easier to do, so we'll be saving the best for last ;) In FRAME 3, create two DYNAMIC text boxes. Enter their var names as name and surname respectively. This is the frame where the data will be displayed once it has been entered or loaded from a previous session. Now on to FRAME 2... |
7/10 |
Firstly, create two INPUT text boxes and set their var names to name and surname respectively (just like the previous ones, only now, it's an INPUT text box and not a DYNAMIC one. The type of text box can be selected in the PROPERTIES PANEL (CTRL+F3)) You can now create two STATIC text labels next to the input boxes that read Name and Surname, to make it more user friendly. Now create a button with text, SAVE DATA. |
8/10 |
Right-click on this newly created button and enter the following ActionScript: |
on (press) { game = SharedObject.getLocal("mydata"); game.data.name = name; game.data.surname = surname; game.flush(); _root.gotoAndStop(3); } |
This saves the data you entered (using flush();) and takes you to the screen that displays the data. |
9/10 |
That's it! Easy, huh? Now you can add functions to save game progress to all your Flash games. If something in this tutorial is unclear to you, don't hesitate to send me an e-mail. You can do this through my Newgrounds profile. Enjoy! |
10/10 |
ActionScript [AS1/AS2]
Frame 1stop();Frame 21stop();Frame 22stop();Frame 23stop();Frame 24stop();Frame 25stop();Instance of Symbol 83 MovieClip [FScrollBarSymbol] in Frame 25//component parameters onClipEvent (initialize) { _targetInstanceName = "InstanceName_0"; horizontal = false; }Frame 26stop();Frame 27stop();Frame 28stop();Frame 29stop();Frame 30stop();Symbol 1 MovieClip [FUIComponentSymbol] Frame 1#initclip 1 function FUIComponentClass() { this.init(); } FUIComponentClass.prototype = new MovieClip(); FUIComponentClass.prototype.init = function () { this.enable = true; this.focused = false; this.useHandCursor = false; this._accImpl = new Object(); this._accImpl.stub = true; this.styleTable = new Array(); if (_global.globalStyleFormat == undefined) { _global.globalStyleFormat = new FStyleFormat(); globalStyleFormat.isGlobal = true; _global._focusControl = new Object(); _global._focusControl.onSetFocus = function (oldFocus, newFocus) { oldFocus.myOnKillFocus(); newFocus.myOnSetFocus(); }; Selection.addListener(_global._focusControl); } if (this._name != undefined) { this._focusrect = false; this.tabEnabled = true; this.focusEnabled = true; this.tabChildren = false; this.tabFocused = true; if (this.hostStyle == undefined) { globalStyleFormat.addListener(this); } else { this.styleTable = this.hostStyle; } this.deadPreview._visible = false; this.deadPreview._width = (this.deadPreview._height = 1); this.methodTable = new Object(); this.keyListener = new Object(); this.keyListener.controller = this; this.keyListener.onKeyDown = function () { this.controller.myOnKeyDown(); }; this.keyListener.onKeyUp = function () { this.controller.myOnKeyUp(); }; for (var i in this.styleFormat_prm) { this.setStyleProperty(i, this.styleFormat_prm[i]); } } }; FUIComponentClass.prototype.setEnabled = function (enabledFlag) { this.enable = ((arguments.length > 0) ? (enabledFlag) : true); this.tabEnabled = (this.focusEnabled = enabledFlag); if ((!this.enable) && (this.focused)) { Selection.setFocus(undefined); } }; FUIComponentClass.prototype.getEnabled = function () { return(this.enable); }; FUIComponentClass.prototype.setSize = function (w, h) { this.width = w; this.height = h; this.focusRect.removeMovieClip(); }; FUIComponentClass.prototype.setChangeHandler = function (chng, obj) { this.handlerObj = ((obj == undefined) ? (this._parent) : (obj)); this.changeHandler = chng; }; FUIComponentClass.prototype.invalidate = function (methodName) { this.methodTable[methodName] = true; this.onEnterFrame = this.cleanUI; }; FUIComponentClass.prototype.cleanUI = function () { if (this.methodTable.setSize) { this.setSize(this.width, this.height); } else { this.cleanUINotSize(); } this.methodTable = new Object(); delete this.onEnterFrame; }; FUIComponentClass.prototype.cleanUINotSize = function () { for (var funct in this.methodTable) { this[funct](); } }; FUIComponentClass.prototype.drawRect = function (x, y, w, h) { var inner = this.styleTable.focusRectInner.value; var outer = this.styleTable.focusRectOuter.value; if (inner == undefined) { inner = 16777215 /* 0xFFFFFF */; } if (outer == undefined) { outer = 0; } this.createEmptyMovieClip("focusRect", 1000); this.focusRect.controller = this; this.focusRect.lineStyle(1, outer); this.focusRect.moveTo(x, y); this.focusRect.lineTo(x + w, y); this.focusRect.lineTo(x + w, y + h); this.focusRect.lineTo(x, y + h); this.focusRect.lineTo(x, y); this.focusRect.lineStyle(1, inner); this.focusRect.moveTo(x + 1, y + 1); this.focusRect.lineTo((x + w) - 1, y + 1); this.focusRect.lineTo((x + w) - 1, (y + h) - 1); this.focusRect.lineTo(x + 1, (y + h) - 1); this.focusRect.lineTo(x + 1, y + 1); }; FUIComponentClass.prototype.pressFocus = function () { this.tabFocused = false; this.focusRect.removeMovieClip(); Selection.setFocus(this); }; FUIComponentClass.prototype.drawFocusRect = function () { this.drawRect(-2, -2, this.width + 4, this.height + 4); }; FUIComponentClass.prototype.myOnSetFocus = function () { this.focused = true; Key.addListener(this.keyListener); if (this.tabFocused) { this.drawFocusRect(); } }; FUIComponentClass.prototype.myOnKillFocus = function () { this.tabFocused = true; this.focused = false; this.focusRect.removeMovieClip(); Key.removeListener(this.keyListener); }; FUIComponentClass.prototype.executeCallBack = function () { this.handlerObj[this.changeHandler](this); }; FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) { this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal); }; FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) { if (value == "") { return(undefined); } var tmpValue = parseInt(value); if (!isNaN(tmpValue)) { value = tmpValue; } var global = ((arguments.length > 2) ? (isGlobal) : false); if (this.styleTable[propName] == undefined) { this.styleTable[propName] = new Object(); this.styleTable[propName].useGlobal = true; } if (this.styleTable[propName].useGlobal || (!global)) { this.styleTable[propName].value = value; if (this.setCustomStyleProperty(propName, value)) { } else if (propName == "embedFonts") { this.invalidate("setSize"); } else if (propName.subString(0, 4) == "text") { if (this.textStyle == undefined) { this.textStyle = new TextFormat(); } var textProp = propName.subString(4, propName.length); this.textStyle[textProp] = value; this.invalidate("setSize"); } else { for (var j in this.styleTable[propName].coloredMCs) { var myColor = new Color(this.styleTable[propName].coloredMCs[j]); if (this.styleTable[propName].value == undefined) { var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"}; myColor.setTransform(myTObj); } else { myColor.setRGB(value); } } } this.styleTable[propName].useGlobal = global; } }; FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) { if (this.styleTable[propName] == undefined) { this.styleTable[propName] = new Object(); this.styleTable[propName].useGlobal = true; } if (this.styleTable[propName].coloredMCs == undefined) { this.styleTable[propName].coloredMCs = new Object(); } this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef; if (this.styleTable[propName].value != undefined) { var myColor = new Color(skinMCRef); myColor.setRGB(this.styleTable[propName].value); } }; _global.FStyleFormat = function () { this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true}; this.listeners = new Object(); this.isGlobal = false; if (arguments.length > 0) { for (var i in arguments[0]) { this[i] = arguments[0][i]; } } }; _global.FStyleFormat.prototype = new Object(); FStyleFormat.prototype.addListener = function () { var arg = 0; while (arg < arguments.length) { var mcRef = arguments[arg]; this.listeners[arguments[arg]] = mcRef; for (var i in this) { if (this.isAStyle(i)) { mcRef.updateStyleProperty(this, i.toString()); } } arg++; } }; FStyleFormat.prototype.removeListener = function (component) { this.listeners[component] = undefined; for (var prop in this) { if (this.isAStyle(prop)) { if (component.styleTable[prop].useGlobal == this.isGlobal) { component.styleTable[prop].useGlobal = true; var value = (this.isGlobal ? undefined : (globalStyleFormat[prop])); component.setStyleProperty(prop, value, true); } } } }; FStyleFormat.prototype.applyChanges = function () { var count = 0; for (var i in this.listeners) { var component = this.listeners[i]; if (arguments.length > 0) { var j = 0; while (j < arguments.length) { if (this.isAStyle(arguments[j])) { component.updateStyleProperty(this, arguments[j]); } j++; } } else { for (var j in this) { if (this.isAStyle(j)) { component.updateStyleProperty(this, j.toString()); } } } } }; FStyleFormat.prototype.isAStyle = function (name) { return((this.nonStyles[name] ? false : true)); }; #endinitclipSymbol 14 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(arrow_mc, "arrow"); component.registerSkinElement(face_mc, "face"); component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight"); component.registerSkinElement(highlight3D_mc, "highlight3D");Symbol 24 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(arrow_mc, "arrow"); component.registerSkinElement(face_mc, "face"); component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight"); component.registerSkinElement(highlight3D_mc, "highlight3D");Symbol 33 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(arrow_mc, "foregroundDisabled"); component.registerSkinElement(face_mc, "face"); component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight"); component.registerSkinElement(highlight3D_mc, "highlight3D");Symbol 34 MovieClip [UpArrow] Frame 1stop();Symbol 34 MovieClip [UpArrow] Frame 2stop();Symbol 34 MovieClip [UpArrow] Frame 3stop();Symbol 41 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight"); component.registerSkinElement(highlight3D_mc, "highlight3D");Symbol 48 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(face_mc, "face"); component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight"); component.registerSkinElement(highlight3D_mc, "highlight3D");Symbol 53 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(highlight3D_mc, "highlight3D"); component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight");Symbol 54 MovieClip [ScrollThumb] Frame 1stop();Symbol 62 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(arrow_mc, "arrow"); component.registerSkinElement(face_mc, "face"); component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight"); component.registerSkinElement(highlight3D_mc, "highlight3D");Symbol 70 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(arrow_mc, "arrow"); component.registerSkinElement(face_mc, "face"); component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight"); component.registerSkinElement(highlight3D_mc, "highlight3D");Symbol 78 MovieClip Frame 1var component = _parent._parent; component.registerSkinElement(arrow_mc, "foregroundDisabled"); component.registerSkinElement(face_mc, "face"); component.registerSkinElement(shadow_mc, "shadow"); component.registerSkinElement(darkshadow_mc, "darkshadow"); component.registerSkinElement(highlight_mc, "highlight"); component.registerSkinElement(highlight3D_mc, "highlight3D");Symbol 79 MovieClip [DownArrow] Frame 1stop();Symbol 79 MovieClip [DownArrow] Frame 2stop();Symbol 79 MovieClip [DownArrow] Frame 3stop();Symbol 82 MovieClip Frame 1var component = _parent; component.registerSkinElement(track_mc, "scrollTrack");Symbol 83 MovieClip [FScrollBarSymbol] Frame 1#initclip 2 FScrollBarClass = function () { if (this._height == 4) { return(undefined); } this.init(); this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0))); this.smallScroll = 1; this.width = (this.horizontal ? (this._width) : (this._height)); this._xscale = (this._yscale = 100); this.setScrollPosition(0); this.tabEnabled = false; if (this._targetInstanceName.length > 0) { this.setScrollTarget(this._parent[this._targetInstanceName]); } this.tabChildren = false; this.setSize(this.width); }; FScrollBarClass.prototype = new FUIComponentClass(); FScrollBarClass.prototype.setHorizontal = function (flag) { if (this.horizontal && (!flag)) { this._xscale = 100; this._rotation = 0; } else if (flag && (!this.horizontal)) { this._xscale = -100; this._rotation = -90; } this.horizontal = flag; }; FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) { if (!this.enable) { return(undefined); } this.pageSize = pSize; this.minPos = Math.max(mnPos, 0); this.maxPos = Math.max(mxPos, 0); this.scrollPosition = Math.max(this.minPos, this.scrollPosition); this.scrollPosition = Math.min(this.maxPos, this.scrollPosition); if ((this.maxPos - this.minPos) <= 0) { this.scrollThumb_mc.removeMovieClip(); this.upArrow_mc.gotoAndStop(3); this.downArrow_mc.gotoAndStop(3); this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null)); this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null)); this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null); this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null); this.scrollTrack_mc.useHandCursor = false; } else { var tmp = this.getScrollPosition(); this.upArrow_mc.gotoAndStop(1); this.downArrow_mc.gotoAndStop(1); this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller); this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling); this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller); this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling); this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller); this.scrollTrack_mc.onRelease = this.stopScrolling; this.scrollTrack_mc.onDragOut = this.stopScrolling; this.scrollTrack_mc.onRollOut = this.stopScrolling; this.scrollTrack_mc.useHandCursor = false; this.attachMovie("ScrollThumb", "scrollThumb_mc", 3); this.scrollThumb_mc._x = 0; this.scrollThumb_mc._y = this.upArrow_mc._height; this.scrollThumb_mc.onPress = this.startDragThumb; this.scrollThumb_mc.controller = this; this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb); this.scrollThumb_mc.useHandCursor = false; this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize; this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid; this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop; this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot; this.thumbHeight = Math.max(this.thumbHeight, 6); this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height; this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height; this.thumbMid_mc._y = this.thumbTop_mc._height; this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight; this.scrollTop = this.scrollThumb_mc._y; this.trackHeight = this.trackSize - this.thumbHeight; this.scrollBot = this.trackHeight + this.scrollTop; tmp = Math.min(tmp, this.maxPos); this.setScrollPosition(Math.max(tmp, this.minPos)); } }; FScrollBarClass.prototype.getScrollPosition = function () { return(this.scrollPosition); }; FScrollBarClass.prototype.setScrollPosition = function (pos) { this.scrollPosition = pos; if (this.scrollThumb_mc != undefined) { pos = Math.min(pos, this.maxPos); pos = Math.max(pos, this.minPos); } this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop; this.executeCallBack(); }; FScrollBarClass.prototype.setLargeScroll = function (lScroll) { this.largeScroll = lScroll; }; FScrollBarClass.prototype.setSmallScroll = function (sScroll) { this.smallScroll = sScroll; }; FScrollBarClass.prototype.setEnabled = function (enabledFlag) { var wasEnabled = this.enable; if (enabledFlag && (!wasEnabled)) { this.enable = enabledFlag; if (this.textField != undefined) { this.setScrollTarget(this.textField); } else { this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos); this.setScrollPosition(this.cachedPos); } this.clickFilter = undefined; } else if ((!enabledFlag) && (wasEnabled)) { this.textField.removeListener(this); this.cachedPos = this.getScrollPosition(); this.cachedMinPos = this.minPos; this.cachedMaxPos = this.maxPos; if (this.clickFilter == undefined) { this.setScrollProperties(this.pageSize, 0, 0); } else { this.clickFilter = true; } this.enable = enabledFlag; } }; FScrollBarClass.prototype.setSize = function (hgt) { if (this._height == 1) { return(undefined); } this.width = hgt; this.scrollTrack_mc._yscale = 100; this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height; if (this.upArrow_mc == undefined) { this.attachMovie("UpArrow", "upArrow_mc", 1); this.attachMovie("DownArrow", "downArrow_mc", 2); this.downArrow_mc.controller = (this.upArrow_mc.controller = this); this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false); this.upArrow_mc._x = (this.upArrow_mc._y = 0); this.downArrow_mc._x = 0; } this.scrollTrack_mc.controller = this; this.downArrow_mc._y = this.width - this.downArrow_mc._height; this.trackSize = this.width - (2 * this.downArrow_mc._height); if (this.textField != undefined) { this.onTextChanged(); } else { this.setScrollProperties(this.pageSize, this.minPos, this.maxPos); } }; FScrollBarClass.prototype.scrollIt = function (inc, mode) { var delt = this.smallScroll; if (inc != "one") { delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll)); } var newPos = (this.getScrollPosition() + (mode * delt)); if (newPos > this.maxPos) { newPos = this.maxPos; } else if (newPos < this.minPos) { newPos = this.minPos; } this.setScrollPosition(newPos); }; FScrollBarClass.prototype.startDragThumb = function () { this.lastY = this._ymouse; this.onMouseMove = this.controller.dragThumb; }; FScrollBarClass.prototype.dragThumb = function () { this.scrollMove = this._ymouse - this.lastY; this.scrollMove = this.scrollMove + this._y; if (this.scrollMove < this.controller.scrollTop) { this.scrollMove = this.controller.scrollTop; } else if (this.scrollMove > this.controller.scrollBot) { this.scrollMove = this.controller.scrollBot; } this._y = this.scrollMove; var c = this.controller; c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos; this.controller.isScrolling = true; updateAfterEvent(); this.controller.executeCallBack(); }; FScrollBarClass.prototype.stopDragThumb = function () { this.controller.isScrolling = false; this.onMouseMove = null; }; FScrollBarClass.prototype.startTrackScroller = function () { this.controller.trackScroller(); this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1); }; FScrollBarClass.prototype.scrollInterval = function (inc, mode) { clearInterval(this.scrolling); if (inc == "page") { this.trackScroller(); } else { this.scrollIt(inc, mode); } this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode); }; FScrollBarClass.prototype.trackScroller = function () { if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) { this.scrollIt("page", 1); } else if (this.scrollThumb_mc._y > this._ymouse) { this.scrollIt("page", -1); } }; FScrollBarClass.prototype.stopScrolling = function () { this.controller.downArrow_mc.gotoAndStop(1); this.controller.upArrow_mc.gotoAndStop(1); clearInterval(this.controller.scrolling); }; FScrollBarClass.prototype.startUpScroller = function () { this.controller.upArrow_mc.gotoAndStop(2); this.controller.scrollIt("one", -1); this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1); }; FScrollBarClass.prototype.startDownScroller = function () { this.controller.downArrow_mc.gotoAndStop(2); this.controller.scrollIt("one", 1); this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1); }; FScrollBarClass.prototype.setScrollTarget = function (tF) { if (tF == undefined) { this.textField.removeListener(this); delete this.textField[(this.horizontal ? "hScroller" : "vScroller")]; if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) { this.textField.unwatch("text"); this.textField.unwatch("htmltext"); } } this.textField = undefined; if (!(tF instanceof TextField)) { return(undefined); } this.textField = tF; this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this; this.onTextChanged(); this.onChanged = function () { this.onTextChanged(); }; this.onScroller = function () { if (!this.isScrolling) { if (!this.horizontal) { this.setScrollPosition(this.textField.scroll); } else { this.setScrollPosition(this.textField.hscroll); } } }; this.textField.addListener(this); this.textField.watch("text", this.callback); this.textField.watch("htmlText", this.callback); }; FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) { clearInterval(this.hScroller.synchScroll); clearInterval(this.vScroller.synchScroll); this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50); this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50); return(newVal); }; FScrollBarClass.prototype.onTextChanged = function () { if ((!this.enable) || (this.textField == undefined)) { return(undefined); } clearInterval(this.synchScroll); if (this.horizontal) { var pos = this.textField.hscroll; this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll); this.setScrollPosition(Math.min(pos, this.textField.maxhscroll)); } else { var pos = this.textField.scroll; var pageSize = (this.textField.bottomScroll - this.textField.scroll); this.setScrollProperties(pageSize, 1, this.textField.maxscroll); this.setScrollPosition(Math.min(pos, this.textField.maxscroll)); } }; FScrollBarClass.prototype.executeCallBack = function () { if (this.textField == undefined) { super.executeCallBack(); } else if (this.horizontal) { this.textField.hscroll = this.getScrollPosition(); } else { this.textField.scroll = this.getScrollPosition(); } }; Object.registerClass("FScrollBarSymbol", FScrollBarClass); #endinitclipSymbol 91 MovieClip Frame 1var total = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); _root.bla._xscale = total;Symbol 91 MovieClip Frame 2if (_root.getBytesLoaded() == _root.getBytesTotal()) { _root.gotoAndPlay(2); }Symbol 101 MovieClip Frame 16stop();Symbol 103 MovieClip Frame 31stop();Symbol 115 Buttonon (release) { nextFrame(); }Symbol 122 Buttonon (release) { prevFrame(); }
Library Items
Symbol 1 MovieClip [FUIComponentSymbol] | ||
Symbol 2 Graphic | Used by:3 21 39 40 46 47 49 55 67 | |
Symbol 3 MovieClip | Uses:2 | Used by:14 |
Symbol 4 Graphic | Used by:5 | |
Symbol 5 MovieClip | Uses:4 | Used by:14 |
Symbol 6 Graphic | Used by:7 27 58 73 | |
Symbol 7 MovieClip | Uses:6 | Used by:14 |
Symbol 8 Graphic | Used by:9 28 59 74 | |
Symbol 9 MovieClip | Uses:8 | Used by:14 |
Symbol 10 Graphic | Used by:11 16 26 60 64 72 | |
Symbol 11 MovieClip | Uses:10 | Used by:14 |
Symbol 12 Graphic | Used by:13 15 25 61 63 71 | |
Symbol 13 MovieClip | Uses:12 | Used by:14 |
Symbol 14 MovieClip | Uses:3 5 7 9 11 13 | Used by:34 |
Symbol 15 MovieClip | Uses:12 | Used by:24 |
Symbol 16 MovieClip | Uses:10 | Used by:24 |
Symbol 17 Graphic | Used by:18 65 | |
Symbol 18 MovieClip | Uses:17 | Used by:24 |
Symbol 19 Graphic | Used by:20 66 | |
Symbol 20 MovieClip | Uses:19 | Used by:24 |
Symbol 21 MovieClip | Uses:2 | Used by:24 |
Symbol 22 Graphic | Used by:23 | |
Symbol 23 MovieClip | Uses:22 | Used by:24 |
Symbol 24 MovieClip | Uses:15 16 18 20 21 23 | Used by:34 |
Symbol 25 MovieClip | Uses:12 | Used by:33 |
Symbol 26 MovieClip | Uses:10 | Used by:33 |
Symbol 27 MovieClip | Uses:6 | Used by:33 |
Symbol 28 MovieClip | Uses:8 | Used by:33 |
Symbol 29 Graphic | Used by:30 75 | |
Symbol 30 MovieClip | Uses:29 | Used by:33 |
Symbol 31 Graphic | Used by:32 | |
Symbol 32 MovieClip | Uses:31 | Used by:33 |
Symbol 33 MovieClip | Uses:25 26 27 28 30 32 | Used by:34 |
Symbol 34 MovieClip [UpArrow] | Uses:14 24 33 | |
Symbol 35 Graphic | Used by:36 | |
Symbol 36 MovieClip | Uses:35 | Used by:41 |
Symbol 37 Graphic | Used by:38 42 43 52 | |
Symbol 38 MovieClip | Uses:37 | Used by:41 |
Symbol 39 MovieClip | Uses:2 | Used by:41 |
Symbol 40 MovieClip | Uses:2 | Used by:41 |
Symbol 41 MovieClip | Uses:36 38 39 40 | Used by:54 |
Symbol 42 MovieClip | Uses:37 | Used by:48 |
Symbol 43 MovieClip | Uses:37 | Used by:48 |
Symbol 44 Graphic | Used by:45 | |
Symbol 45 MovieClip | Uses:44 | Used by:48 |
Symbol 46 MovieClip | Uses:2 | Used by:48 |
Symbol 47 MovieClip | Uses:2 | Used by:48 |
Symbol 48 MovieClip | Uses:42 43 45 46 47 | Used by:54 |
Symbol 49 MovieClip | Uses:2 | Used by:53 |
Symbol 50 Graphic | Used by:51 | |
Symbol 51 MovieClip | Uses:50 | Used by:53 |
Symbol 52 MovieClip | Uses:37 | Used by:53 |
Symbol 53 MovieClip | Uses:49 51 52 | Used by:54 |
Symbol 54 MovieClip [ScrollThumb] | Uses:41 48 53 | |
Symbol 55 MovieClip | Uses:2 | Used by:62 |
Symbol 56 Graphic | Used by:57 | |
Symbol 57 MovieClip | Uses:56 | Used by:62 |
Symbol 58 MovieClip | Uses:6 | Used by:62 |
Symbol 59 MovieClip | Uses:8 | Used by:62 |
Symbol 60 MovieClip | Uses:10 | Used by:62 |
Symbol 61 MovieClip | Uses:12 | Used by:62 |
Symbol 62 MovieClip | Uses:55 57 58 59 60 61 | Used by:79 |
Symbol 63 MovieClip | Uses:12 | Used by:70 |
Symbol 64 MovieClip | Uses:10 | Used by:70 |
Symbol 65 MovieClip | Uses:17 | Used by:70 |
Symbol 66 MovieClip | Uses:19 | Used by:70 |
Symbol 67 MovieClip | Uses:2 | Used by:70 |
Symbol 68 Graphic | Used by:69 | |
Symbol 69 MovieClip | Uses:68 | Used by:70 |
Symbol 70 MovieClip | Uses:63 64 65 66 67 69 | Used by:79 |
Symbol 71 MovieClip | Uses:12 | Used by:78 |
Symbol 72 MovieClip | Uses:10 | Used by:78 |
Symbol 73 MovieClip | Uses:6 | Used by:78 |
Symbol 74 MovieClip | Uses:8 | Used by:78 |
Symbol 75 MovieClip | Uses:29 | Used by:78 |
Symbol 76 Graphic | Used by:77 | |
Symbol 77 MovieClip | Uses:76 | Used by:78 |
Symbol 78 MovieClip | Uses:71 72 73 74 75 77 | Used by:79 |
Symbol 79 MovieClip [DownArrow] | Uses:62 70 78 | |
Symbol 80 Graphic | Used by:81 | |
Symbol 81 MovieClip | Uses:80 | Used by:82 |
Symbol 82 MovieClip | Uses:81 | Used by:83 |
Symbol 83 MovieClip [FScrollBarSymbol] | Uses:82 | Used by:Timeline |
Symbol 84 Graphic | Used by:Timeline | |
Symbol 85 Font | Used by:86 102 141 143 | |
Symbol 86 Text | Uses:85 | Used by:87 |
Symbol 87 MovieClip | Uses:86 | Used by:Timeline |
Symbol 88 Graphic | Used by:89 | |
Symbol 89 MovieClip | Uses:88 | Used by:Timeline |
Symbol 90 Graphic | Used by:91 | |
Symbol 91 MovieClip | Uses:90 | Used by:Timeline |
Symbol 92 Graphic | Used by:93 | |
Symbol 93 MovieClip | Uses:92 | Used by:Timeline |
Symbol 94 ShapeTweening | Used by:Timeline | |
Symbol 95 Graphic | Used by:Timeline | |
Symbol 96 Font | Used by:97 98 99 100 | |
Symbol 97 Text | Uses:96 | Used by:101 |
Symbol 98 Text | Uses:96 | Used by:101 |
Symbol 99 Text | Uses:96 | Used by:101 |
Symbol 100 Text | Uses:96 | Used by:101 |
Symbol 101 MovieClip | Uses:97 98 99 100 | Used by:Timeline |
Symbol 102 Text | Uses:85 | Used by:103 |
Symbol 103 MovieClip | Uses:102 | Used by:Timeline |
Symbol 104 Graphic | Used by:115 122 | |
Symbol 105 ShapeTweening | Used by:110 | |
Symbol 106 ShapeTweening | Used by:110 | |
Symbol 107 ShapeTweening | Used by:110 | |
Symbol 108 ShapeTweening | Used by:110 | |
Symbol 109 Graphic | Used by:110 | |
Symbol 110 MovieClip | Uses:105 106 107 108 109 | Used by:115 122 |
Symbol 111 Graphic | Used by:115 | |
Symbol 112 Font | Used by:113 120 | |
Symbol 113 Text | Uses:112 | Used by:115 |
Symbol 114 Graphic | Used by:115 | |
Symbol 115 Button | Uses:104 110 111 113 114 | Used by:Timeline |
Symbol 116 Font | Used by:117 118 123 125 128 129 130 132 133 134 135 136 137 138 139 141 142 143 144 146 147 148 149 150 151 | |
Symbol 117 Text | Uses:116 | Used by:Timeline |
Symbol 118 Text | Uses:116 | Used by:Timeline |
Symbol 119 Graphic | Used by:122 | |
Symbol 120 Text | Uses:112 | Used by:122 |
Symbol 121 Graphic | Used by:122 | |
Symbol 122 Button | Uses:104 110 119 120 121 | Used by:Timeline |
Symbol 123 Text | Uses:116 | Used by:Timeline |
Symbol 124 Graphic | Used by:Timeline | |
Symbol 125 Text | Uses:116 | Used by:Timeline |
Symbol 126 Bitmap | Used by:127 | |
Symbol 127 Graphic | Uses:126 | Used by:Timeline |
Symbol 128 Text | Uses:116 | Used by:Timeline |
Symbol 129 Text | Uses:116 | Used by:Timeline |
Symbol 130 Text | Uses:116 | Used by:Timeline |
Symbol 131 Graphic | Used by:Timeline | |
Symbol 132 Text | Uses:116 | Used by:Timeline |
Symbol 133 EditableText | Uses:116 | Used by:Timeline |
Symbol 134 EditableText | Uses:116 | Used by:Timeline |
Symbol 135 Text | Uses:116 | Used by:Timeline |
Symbol 136 Text | Uses:116 | Used by:Timeline |
Symbol 137 Text | Uses:116 | Used by:Timeline |
Symbol 138 Text | Uses:116 | Used by:Timeline |
Symbol 139 Text | Uses:116 | Used by:Timeline |
Symbol 140 Font | Used by:141 143 | |
Symbol 141 Text | Uses:116 140 85 | Used by:Timeline |
Symbol 142 Text | Uses:116 | Used by:Timeline |
Symbol 143 Text | Uses:116 140 85 | Used by:Timeline |
Symbol 144 Text | Uses:116 | Used by:Timeline |
Symbol 145 Graphic | Used by:Timeline | |
Symbol 146 Text | Uses:116 | Used by:Timeline |
Symbol 147 EditableText | Uses:116 | Used by:Timeline |
Symbol 148 Text | Uses:116 | Used by:Timeline |
Symbol 149 Text | Uses:116 | Used by:Timeline |
Symbol 150 Text | Uses:116 | Used by:Timeline |
Symbol 151 Text | Uses:116 | Used by:Timeline |
Instance Names
"bla" | Frame 1 | Symbol 89 MovieClip |
"InstanceName_0" | Frame 25 | Symbol 134 EditableText |
"face_mc" | Symbol 14 MovieClip Frame 1 | Symbol 3 MovieClip |
"arrow_mc" | Symbol 14 MovieClip Frame 1 | Symbol 5 MovieClip |
"highlight_mc" | Symbol 14 MovieClip Frame 1 | Symbol 7 MovieClip |
"shadow_mc" | Symbol 14 MovieClip Frame 1 | Symbol 9 MovieClip |
"darkshadow_mc" | Symbol 14 MovieClip Frame 1 | Symbol 11 MovieClip |
"highlight3D_mc" | Symbol 14 MovieClip Frame 1 | Symbol 13 MovieClip |
"darkshadow_mc" | Symbol 24 MovieClip Frame 1 | Symbol 15 MovieClip |
"highlight3D_mc" | Symbol 24 MovieClip Frame 1 | Symbol 16 MovieClip |
"highlight_mc" | Symbol 24 MovieClip Frame 1 | Symbol 18 MovieClip |
"shadow_mc" | Symbol 24 MovieClip Frame 1 | Symbol 20 MovieClip |
"face_mc" | Symbol 24 MovieClip Frame 1 | Symbol 21 MovieClip |
"arrow_mc" | Symbol 24 MovieClip Frame 1 | Symbol 23 MovieClip |
"highlight3D_mc" | Symbol 33 MovieClip Frame 1 | Symbol 25 MovieClip |
"darkshadow_mc" | Symbol 33 MovieClip Frame 1 | Symbol 26 MovieClip |
"highlight_mc" | Symbol 33 MovieClip Frame 1 | Symbol 27 MovieClip |
"shadow_mc" | Symbol 33 MovieClip Frame 1 | Symbol 28 MovieClip |
"face_mc" | Symbol 33 MovieClip Frame 1 | Symbol 30 MovieClip |
"arrow_mc" | Symbol 33 MovieClip Frame 1 | Symbol 32 MovieClip |
"up" | Symbol 34 MovieClip [UpArrow] Frame 1 | Symbol 14 MovieClip |
"down" | Symbol 34 MovieClip [UpArrow] Frame 2 | Symbol 24 MovieClip |
"disabled" | Symbol 34 MovieClip [UpArrow] Frame 3 | Symbol 33 MovieClip |
"highlight3D_mc" | Symbol 41 MovieClip Frame 1 | Symbol 36 MovieClip |
"darkshadow_mc" | Symbol 41 MovieClip Frame 1 | Symbol 38 MovieClip |
"highlight_mc" | Symbol 41 MovieClip Frame 1 | Symbol 39 MovieClip |
"shadow_mc" | Symbol 41 MovieClip Frame 1 | Symbol 40 MovieClip |
"highlight3D_mc" | Symbol 48 MovieClip Frame 1 | Symbol 42 MovieClip |
"darkshadow_mc" | Symbol 48 MovieClip Frame 1 | Symbol 43 MovieClip |
"shadow_mc" | Symbol 48 MovieClip Frame 1 | Symbol 45 MovieClip |
"face_mc" | Symbol 48 MovieClip Frame 1 | Symbol 46 MovieClip |
"highlight_mc" | Symbol 48 MovieClip Frame 1 | Symbol 47 MovieClip |
"shadow_mc" | Symbol 53 MovieClip Frame 1 | Symbol 49 MovieClip |
"darkshadow_mc" | Symbol 53 MovieClip Frame 1 | Symbol 51 MovieClip |
"highlight3D_mc" | Symbol 53 MovieClip Frame 1 | Symbol 52 MovieClip |
"mc_sliderTop" | Symbol 54 MovieClip [ScrollThumb] Frame 1 | Symbol 41 MovieClip |
"mc_sliderMid" | Symbol 54 MovieClip [ScrollThumb] Frame 1 | Symbol 48 MovieClip |
"mc_sliderBot" | Symbol 54 MovieClip [ScrollThumb] Frame 1 | Symbol 53 MovieClip |
"face_mc" | Symbol 62 MovieClip Frame 1 | Symbol 55 MovieClip |
"arrow_mc" | Symbol 62 MovieClip Frame 1 | Symbol 57 MovieClip |
"highlight_mc" | Symbol 62 MovieClip Frame 1 | Symbol 58 MovieClip |
"shadow_mc" | Symbol 62 MovieClip Frame 1 | Symbol 59 MovieClip |
"darkshadow_mc" | Symbol 62 MovieClip Frame 1 | Symbol 60 MovieClip |
"highlight3D_mc" | Symbol 62 MovieClip Frame 1 | Symbol 61 MovieClip |
"darkshadow_mc" | Symbol 70 MovieClip Frame 1 | Symbol 63 MovieClip |
"highlight3D_mc" | Symbol 70 MovieClip Frame 1 | Symbol 64 MovieClip |
"highlight_mc" | Symbol 70 MovieClip Frame 1 | Symbol 65 MovieClip |
"shadow_mc" | Symbol 70 MovieClip Frame 1 | Symbol 66 MovieClip |
"face_mc" | Symbol 70 MovieClip Frame 1 | Symbol 67 MovieClip |
"arrow_mc" | Symbol 70 MovieClip Frame 1 | Symbol 69 MovieClip |
"highlight3D_mc" | Symbol 78 MovieClip Frame 1 | Symbol 71 MovieClip |
"darkshadow_mc" | Symbol 78 MovieClip Frame 1 | Symbol 72 MovieClip |
"highlight_mc" | Symbol 78 MovieClip Frame 1 | Symbol 73 MovieClip |
"shadow_mc" | Symbol 78 MovieClip Frame 1 | Symbol 74 MovieClip |
"face_mc" | Symbol 78 MovieClip Frame 1 | Symbol 75 MovieClip |
"arrow_mc" | Symbol 78 MovieClip Frame 1 | Symbol 77 MovieClip |
"up" | Symbol 79 MovieClip [DownArrow] Frame 1 | Symbol 62 MovieClip |
"down" | Symbol 79 MovieClip [DownArrow] Frame 2 | Symbol 70 MovieClip |
"disabled" | Symbol 79 MovieClip [DownArrow] Frame 3 | Symbol 78 MovieClip |
"track_mc" | Symbol 82 MovieClip Frame 1 | Symbol 81 MovieClip |
"scrollTrack_mc" | Symbol 83 MovieClip [FScrollBarSymbol] Frame 1 | Symbol 82 MovieClip |
Special Tags
Protect (24) | Timeline Frame 1 | 0 bytes "" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "FUIComponentSymbol" |
ExportAssets (56) | Timeline Frame 1 | Symbol 34 as "UpArrow" |
ExportAssets (56) | Timeline Frame 1 | Symbol 54 as "ScrollThumb" |
ExportAssets (56) | Timeline Frame 1 | Symbol 79 as "DownArrow" |
ExportAssets (56) | Timeline Frame 1 | Symbol 83 as "FScrollBarSymbol" |
ExportAssets (56) | Timeline Frame 25 | Symbol 83 as "FScrollBarSymbol" |
Labels
"Symbol_36" | Symbol 1 MovieClip [FUIComponentSymbol] Frame 1 |
|