Class com.blitzagency.xray.ControlConnection
Inheritance > ControlConnection
| Constructor Summary | |
|---|---|
| Property Summary | |
|---|---|
| Function | |
| private MovieClip | movieclip reference to the clip that currently is selected on stage with highlight. |
| Function | |
| DragableMovieClip | Dragable (EECOLOR - Thanks to Erik Westra) enables a movieclip to be dragged around the stage. |
| private Boolean | focusEnabledCheck is a boolean property indicating whether or not a focusEabled was applied to
an object onstage before we highlighted it. |
| FPSMeter | Instance of the FPSMeter object |
| private Color | Highlight color when a clip is selected in the treeview of the interface |
| Boolean | |
| ObjectViewer | Instance of the ObjectViewer, which is what recurses the Flash app and returns XML formatted
representation of your app. |
| Number | |
| Function | |
| Array | Array for pushing sections of the XML string returned by objViewer eg: it's a que |
| private XML | ObjectViewer returns an XML object that represents the physical layout of your app. |
| Method Summary | |
|---|---|
| Boolean | allowDomain(sendingDomain:String) |
| Void | executeScript(sExecute:String) executes commands (actionscript) from the interface. When you want change properties of a movieclip/object etc
you have to execute commands at runtime that aren't in the compiled SWF |
| Void | fpsOn(showFPS:Boolean) fpsOn recieves a boolean and based on that, the FPSMeter is either turned on or off |
| Void | getFunctionProperties(sObj:String) getFunctionProperties was written to retrieve Class properties and methods. Since all Classes
show up as type "Function" in the treeview and PI, I named it "getFunctionProperties" |
| Void | getMovieClipProperties(sTarget_mc:String, bShowAll:Boolean) returns all movieclip properties |
| Void | getObjProperties(sObj:String, key:String) returns the properties of an object |
| Void | getSoundProperties(sSound:String) retrieves the sound object's properties and returns them to the interface |
| Void | getTipMovieClipProperties(sTarget_mc:String, bShowAll:Boolean) returns via localConnection the tooltip properties. Hovering over a movieclip/button/textfield in the
treeview will trigger the tooltip. The call is identical to getMovieClipProperties, except, the return is
sent to a different method in the interface |
| Void | getVideoProperties(sNetStream:String) retrieves the NetStream object's properties and returns them to the interface |
| Void | hideFPS() This is a call recieved from the interface to turn the FPSMeter off. runFPS is a setter method. |
| Void | highlightClip(sTarget_mc:String) causes Flash's yellow selection rectangle to display around a movieclip |
| Void | init() |
| Boolean | This is called by Xray when the component loads. It creates the listening connection |
| Void | lowlightClip(sTarget_mc:String) causes Flash's yellow selection rectangle to be removed |
| Void | onStatus(infoObject:Object) |
| Void | pauseVideo(sVideo:String) pauses the NetStream object. |
| Void | playSound(sSound:String, iLoops:Number) plays the sound object specified. If loops is included, that is passed along as well |
| Void | playVideo(sVideo:String, flv:String) plays an FLV using the netStream object specified |
| Void | processes the que built by viewTree and sends the chunks of data via localConnection to the interface |
| Void | sendFPS(obj:Object) sends the current fps from the FPSMeter dispatch |
| Void | showFPS() This is a call recieved from the interface to turn the FPSMeter on. runFPS is a setter method. |
| Void | startExamineClips(sTarget_mc:String, iType:Number) applies a color transform (yellow) to a clip on stage and causes it to be dragable |
| Void | stopExamineClips(sTarget_mc:String, iType:Number) restores the movieclip to original color transform and removes the dragable code from the object |
| Void | stopSound(sSound:String) stops the sound object specified. |
| Void | stopVideo(sVideo:String) stops the NetStream object specified. |
| Void | updateHistory(target_mc:MovieClip) Updates the change history object in the interface when an object is moved around on stage after making it dragable |
| Void | viewTree(sTarget_mc:String, recursiveSearch:Boolean, showHidden:Boolean, objectSearch:Boolean) called via the interface. This method calles ObjectViewer to recurse the application and return an XML
formatted version of the applications structure.
You'll note that the XML is converted to a string and split into 5000 character chunks, then sent via LocalConnection to the interface. This is due to LC's speed limit of 40k. I'm not sure if it's 40k per movie frame or what, but I had throttle the que with an interval to pass the data. |
| Void | writeChangeHistory(obj:Object) writes out the change history in the IDE's output panel |
| Constructor Detail |
|---|
| Property Detail |
|---|
| Method Detail |
|---|
sExecute:StringshowFPS:BooleansObj:StringsTarget_mc:StringbShowAll:BooleansObj:Stringkey:StringsSound:StringsTarget_mc:StringbShowAll:BooleansNetStream:StringsTarget_mc:StringsTarget_mc:StringsVideo:StringsSound:StringiLoops:NumbersVideo:Stringflv:Stringobj:ObjectsTarget_mc:StringiType:NumbersTarget_mc:StringiType:NumbersSound:StringsVideo:Stringtarget_mc:MovieClipsTarget_mc:StringrecursiveSearch:BooleanshowHidden:Booleanobj:Object