STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228091
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/56683944?noj=FRM56683944-4DC" width="1" height="1"></div>

Saving in Flash Games.swf

This is the info page for
Flash #76267

(Click the ID number above for more basic data on this flash file.)


Text
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 1
stop();
Frame 21
stop();
Frame 22
stop();
Frame 23
stop();
Frame 24
stop();
Frame 25
stop();
Instance of Symbol 83 MovieClip [FScrollBarSymbol] in Frame 25
//component parameters onClipEvent (initialize) { _targetInstanceName = "InstanceName_0"; horizontal = false; }
Frame 26
stop();
Frame 27
stop();
Frame 28
stop();
Frame 29
stop();
Frame 30
stop();
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)); }; #endinitclip
Symbol 14 MovieClip Frame 1
var 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 1
var 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 1
var 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 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 MovieClip Frame 1
var 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 1
var 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 1
var 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 1
stop();
Symbol 62 MovieClip Frame 1
var 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 1
var 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 1
var 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 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 82 MovieClip Frame 1
var 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); #endinitclip
Symbol 91 MovieClip Frame 1
var total = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); _root.bla._xscale = total;
Symbol 91 MovieClip Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) { _root.gotoAndPlay(2); }
Symbol 101 MovieClip Frame 16
stop();
Symbol 103 MovieClip Frame 31
stop();
Symbol 115 Button
on (release) { nextFrame(); }
Symbol 122 Button
on (release) { prevFrame(); }

Library Items

Symbol 1 MovieClip [FUIComponentSymbol]
Symbol 2 GraphicUsed by:3 21 39 40 46 47 49 55 67
Symbol 3 MovieClipUses:2Used by:14
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:14
Symbol 6 GraphicUsed by:7 27 58 73
Symbol 7 MovieClipUses:6Used by:14
Symbol 8 GraphicUsed by:9 28 59 74
Symbol 9 MovieClipUses:8Used by:14
Symbol 10 GraphicUsed by:11 16 26 60 64 72
Symbol 11 MovieClipUses:10Used by:14
Symbol 12 GraphicUsed by:13 15 25 61 63 71
Symbol 13 MovieClipUses:12Used by:14
Symbol 14 MovieClipUses:3 5 7 9 11 13Used by:34
Symbol 15 MovieClipUses:12Used by:24
Symbol 16 MovieClipUses:10Used by:24
Symbol 17 GraphicUsed by:18 65
Symbol 18 MovieClipUses:17Used by:24
Symbol 19 GraphicUsed by:20 66
Symbol 20 MovieClipUses:19Used by:24
Symbol 21 MovieClipUses:2Used by:24
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:24
Symbol 24 MovieClipUses:15 16 18 20 21 23Used by:34
Symbol 25 MovieClipUses:12Used by:33
Symbol 26 MovieClipUses:10Used by:33
Symbol 27 MovieClipUses:6Used by:33
Symbol 28 MovieClipUses:8Used by:33
Symbol 29 GraphicUsed by:30 75
Symbol 30 MovieClipUses:29Used by:33
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:33
Symbol 33 MovieClipUses:25 26 27 28 30 32Used by:34
Symbol 34 MovieClip [UpArrow]Uses:14 24 33
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:35Used by:41
Symbol 37 GraphicUsed by:38 42 43 52
Symbol 38 MovieClipUses:37Used by:41
Symbol 39 MovieClipUses:2Used by:41
Symbol 40 MovieClipUses:2Used by:41
Symbol 41 MovieClipUses:36 38 39 40Used by:54
Symbol 42 MovieClipUses:37Used by:48
Symbol 43 MovieClipUses:37Used by:48
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:48
Symbol 46 MovieClipUses:2Used by:48
Symbol 47 MovieClipUses:2Used by:48
Symbol 48 MovieClipUses:42 43 45 46 47Used by:54
Symbol 49 MovieClipUses:2Used by:53
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:53
Symbol 52 MovieClipUses:37Used by:53
Symbol 53 MovieClipUses:49 51 52Used by:54
Symbol 54 MovieClip [ScrollThumb]Uses:41 48 53
Symbol 55 MovieClipUses:2Used by:62
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:62
Symbol 58 MovieClipUses:6Used by:62
Symbol 59 MovieClipUses:8Used by:62
Symbol 60 MovieClipUses:10Used by:62
Symbol 61 MovieClipUses:12Used by:62
Symbol 62 MovieClipUses:55 57 58 59 60 61Used by:79
Symbol 63 MovieClipUses:12Used by:70
Symbol 64 MovieClipUses:10Used by:70
Symbol 65 MovieClipUses:17Used by:70
Symbol 66 MovieClipUses:19Used by:70
Symbol 67 MovieClipUses:2Used by:70
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:70
Symbol 70 MovieClipUses:63 64 65 66 67 69Used by:79
Symbol 71 MovieClipUses:12Used by:78
Symbol 72 MovieClipUses:10Used by:78
Symbol 73 MovieClipUses:6Used by:78
Symbol 74 MovieClipUses:8Used by:78
Symbol 75 MovieClipUses:29Used by:78
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:76Used by:78
Symbol 78 MovieClipUses:71 72 73 74 75 77Used by:79
Symbol 79 MovieClip [DownArrow]Uses:62 70 78
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:80Used by:82
Symbol 82 MovieClipUses:81Used by:83
Symbol 83 MovieClip [FScrollBarSymbol]Uses:82Used by:Timeline
Symbol 84 GraphicUsed by:Timeline
Symbol 85 FontUsed by:86 102 141 143
Symbol 86 TextUses:85Used by:87
Symbol 87 MovieClipUses:86Used by:Timeline
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:Timeline
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClipUses:90Used by:Timeline
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:92Used by:Timeline
Symbol 94 ShapeTweeningUsed by:Timeline
Symbol 95 GraphicUsed by:Timeline
Symbol 96 FontUsed by:97 98 99 100
Symbol 97 TextUses:96Used by:101
Symbol 98 TextUses:96Used by:101
Symbol 99 TextUses:96Used by:101
Symbol 100 TextUses:96Used by:101
Symbol 101 MovieClipUses:97 98 99 100Used by:Timeline
Symbol 102 TextUses:85Used by:103
Symbol 103 MovieClipUses:102Used by:Timeline
Symbol 104 GraphicUsed by:115 122
Symbol 105 ShapeTweeningUsed by:110
Symbol 106 ShapeTweeningUsed by:110
Symbol 107 ShapeTweeningUsed by:110
Symbol 108 ShapeTweeningUsed by:110
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClipUses:105 106 107 108 109Used by:115 122
Symbol 111 GraphicUsed by:115
Symbol 112 FontUsed by:113 120
Symbol 113 TextUses:112Used by:115
Symbol 114 GraphicUsed by:115
Symbol 115 ButtonUses:104 110 111 113 114Used by:Timeline
Symbol 116 FontUsed 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 TextUses:116Used by:Timeline
Symbol 118 TextUses:116Used by:Timeline
Symbol 119 GraphicUsed by:122
Symbol 120 TextUses:112Used by:122
Symbol 121 GraphicUsed by:122
Symbol 122 ButtonUses:104 110 119 120 121Used by:Timeline
Symbol 123 TextUses:116Used by:Timeline
Symbol 124 GraphicUsed by:Timeline
Symbol 125 TextUses:116Used by:Timeline
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:Timeline
Symbol 128 TextUses:116Used by:Timeline
Symbol 129 TextUses:116Used by:Timeline
Symbol 130 TextUses:116Used by:Timeline
Symbol 131 GraphicUsed by:Timeline
Symbol 132 TextUses:116Used by:Timeline
Symbol 133 EditableTextUses:116Used by:Timeline
Symbol 134 EditableTextUses:116Used by:Timeline
Symbol 135 TextUses:116Used by:Timeline
Symbol 136 TextUses:116Used by:Timeline
Symbol 137 TextUses:116Used by:Timeline
Symbol 138 TextUses:116Used by:Timeline
Symbol 139 TextUses:116Used by:Timeline
Symbol 140 FontUsed by:141 143
Symbol 141 TextUses:116 140 85Used by:Timeline
Symbol 142 TextUses:116Used by:Timeline
Symbol 143 TextUses:116 140 85Used by:Timeline
Symbol 144 TextUses:116Used by:Timeline
Symbol 145 GraphicUsed by:Timeline
Symbol 146 TextUses:116Used by:Timeline
Symbol 147 EditableTextUses:116Used by:Timeline
Symbol 148 TextUses:116Used by:Timeline
Symbol 149 TextUses:116Used by:Timeline
Symbol 150 TextUses:116Used by:Timeline
Symbol 151 TextUses:116Used by:Timeline

Instance Names

"bla"Frame 1Symbol 89 MovieClip
"InstanceName_0"Frame 25Symbol 134 EditableText
"face_mc"Symbol 14 MovieClip Frame 1Symbol 3 MovieClip
"arrow_mc"Symbol 14 MovieClip Frame 1Symbol 5 MovieClip
"highlight_mc"Symbol 14 MovieClip Frame 1Symbol 7 MovieClip
"shadow_mc"Symbol 14 MovieClip Frame 1Symbol 9 MovieClip
"darkshadow_mc"Symbol 14 MovieClip Frame 1Symbol 11 MovieClip
"highlight3D_mc"Symbol 14 MovieClip Frame 1Symbol 13 MovieClip
"darkshadow_mc"Symbol 24 MovieClip Frame 1Symbol 15 MovieClip
"highlight3D_mc"Symbol 24 MovieClip Frame 1Symbol 16 MovieClip
"highlight_mc"Symbol 24 MovieClip Frame 1Symbol 18 MovieClip
"shadow_mc"Symbol 24 MovieClip Frame 1Symbol 20 MovieClip
"face_mc"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"arrow_mc"Symbol 24 MovieClip Frame 1Symbol 23 MovieClip
"highlight3D_mc"Symbol 33 MovieClip Frame 1Symbol 25 MovieClip
"darkshadow_mc"Symbol 33 MovieClip Frame 1Symbol 26 MovieClip
"highlight_mc"Symbol 33 MovieClip Frame 1Symbol 27 MovieClip
"shadow_mc"Symbol 33 MovieClip Frame 1Symbol 28 MovieClip
"face_mc"Symbol 33 MovieClip Frame 1Symbol 30 MovieClip
"arrow_mc"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"up"Symbol 34 MovieClip [UpArrow] Frame 1Symbol 14 MovieClip
"down"Symbol 34 MovieClip [UpArrow] Frame 2Symbol 24 MovieClip
"disabled"Symbol 34 MovieClip [UpArrow] Frame 3Symbol 33 MovieClip
"highlight3D_mc"Symbol 41 MovieClip Frame 1Symbol 36 MovieClip
"darkshadow_mc"Symbol 41 MovieClip Frame 1Symbol 38 MovieClip
"highlight_mc"Symbol 41 MovieClip Frame 1Symbol 39 MovieClip
"shadow_mc"Symbol 41 MovieClip Frame 1Symbol 40 MovieClip
"highlight3D_mc"Symbol 48 MovieClip Frame 1Symbol 42 MovieClip
"darkshadow_mc"Symbol 48 MovieClip Frame 1Symbol 43 MovieClip
"shadow_mc"Symbol 48 MovieClip Frame 1Symbol 45 MovieClip
"face_mc"Symbol 48 MovieClip Frame 1Symbol 46 MovieClip
"highlight_mc"Symbol 48 MovieClip Frame 1Symbol 47 MovieClip
"shadow_mc"Symbol 53 MovieClip Frame 1Symbol 49 MovieClip
"darkshadow_mc"Symbol 53 MovieClip Frame 1Symbol 51 MovieClip
"highlight3D_mc"Symbol 53 MovieClip Frame 1Symbol 52 MovieClip
"mc_sliderTop"Symbol 54 MovieClip [ScrollThumb] Frame 1Symbol 41 MovieClip
"mc_sliderMid"Symbol 54 MovieClip [ScrollThumb] Frame 1Symbol 48 MovieClip
"mc_sliderBot"Symbol 54 MovieClip [ScrollThumb] Frame 1Symbol 53 MovieClip
"face_mc"Symbol 62 MovieClip Frame 1Symbol 55 MovieClip
"arrow_mc"Symbol 62 MovieClip Frame 1Symbol 57 MovieClip
"highlight_mc"Symbol 62 MovieClip Frame 1Symbol 58 MovieClip
"shadow_mc"Symbol 62 MovieClip Frame 1Symbol 59 MovieClip
"darkshadow_mc"Symbol 62 MovieClip Frame 1Symbol 60 MovieClip
"highlight3D_mc"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"darkshadow_mc"Symbol 70 MovieClip Frame 1Symbol 63 MovieClip
"highlight3D_mc"Symbol 70 MovieClip Frame 1Symbol 64 MovieClip
"highlight_mc"Symbol 70 MovieClip Frame 1Symbol 65 MovieClip
"shadow_mc"Symbol 70 MovieClip Frame 1Symbol 66 MovieClip
"face_mc"Symbol 70 MovieClip Frame 1Symbol 67 MovieClip
"arrow_mc"Symbol 70 MovieClip Frame 1Symbol 69 MovieClip
"highlight3D_mc"Symbol 78 MovieClip Frame 1Symbol 71 MovieClip
"darkshadow_mc"Symbol 78 MovieClip Frame 1Symbol 72 MovieClip
"highlight_mc"Symbol 78 MovieClip Frame 1Symbol 73 MovieClip
"shadow_mc"Symbol 78 MovieClip Frame 1Symbol 74 MovieClip
"face_mc"Symbol 78 MovieClip Frame 1Symbol 75 MovieClip
"arrow_mc"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip
"up"Symbol 79 MovieClip [DownArrow] Frame 1Symbol 62 MovieClip
"down"Symbol 79 MovieClip [DownArrow] Frame 2Symbol 70 MovieClip
"disabled"Symbol 79 MovieClip [DownArrow] Frame 3Symbol 78 MovieClip
"track_mc"Symbol 82 MovieClip Frame 1Symbol 81 MovieClip
"scrollTrack_mc"Symbol 83 MovieClip [FScrollBarSymbol] Frame 1Symbol 82 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 1 as "FUIComponentSymbol"
ExportAssets (56)Timeline Frame 1Symbol 34 as "UpArrow"
ExportAssets (56)Timeline Frame 1Symbol 54 as "ScrollThumb"
ExportAssets (56)Timeline Frame 1Symbol 79 as "DownArrow"
ExportAssets (56)Timeline Frame 1Symbol 83 as "FScrollBarSymbol"
ExportAssets (56)Timeline Frame 25Symbol 83 as "FScrollBarSymbol"

Labels

"Symbol_36"Symbol 1 MovieClip [FUIComponentSymbol] Frame 1




http://swfchan.com/16/76267/info.shtml
Created: 5/4 -2019 04:27:12 Last modified: 5/4 -2019 04:27:12 Server time: 04/05 -2024 14:14:17