redrocketcms.components.RRGraphic
The graphic renders out any visual assets. It is the essential component for loading and displaying images, video, and audio. It is also flexible enough to load anything anywhere, not just within components.
Static. This id is the sybolID linkage necessary for dynamic attachment using attachMovie().
Example Usage. Identical functionally to dropping the Graphic component on the stage:
Write-only. Will accept one of three values:
Write-only. Either a string of a function in the parent timeline, or a function to execute.
Write-only. Specifies a Component to render multimedia files (video or audio) if any exist. Currently, two are available:
"Default" - Does nothing to handle media files
"FLVPlayback" - Macromedia FLV player (no audio)
"MediaPlayback" - Macromedia media player (flv + mp3 but no flash 8 video)
Write-only. There are 7 differnt sizing methods:
Write-only. Aligns the loaded image to the bounding box. Note: this will only show results if fitStyle is set to "Crop to Size" or "Do Nothing".
possible values are:
The Graphic Class uses the Flash BitmapData Class to render all on-screen static images. The excellent feature of this ability is to ensure pixel-level perfection without any memory overhead. Since your images are dynamically re-sampled on the fly, if you resize images using the component, there will be loss of image data.
If you are doing any stretching/scaling/rotating, you should turn this feature on, but for the most part, it should no be necessary.
Note: this setting has no effect for absolute URL’s, FLV’s or MP3’s.
Write-only. If set to "Auto", the graphic will automatically seek out the first Provider class, and retrieve the data from it, otherwise, if you specify an ID, it will use that id when pulling the data.
Write-only. You can use the Graphic component to load external images not realted to the RRC framework. All you need to do is specify a relative or absolute path to the image, and it will load it in. Setting the source to "" (empty string) or undefined will re-load the automatic graphic from the provider.
This function is helpful if, after the fitting, cropping, and alignment of the loaded image, that the bounding box and the size of the final image do not match. This function returns the bounding box of the actual image instead of the bounding box of the component.
mc:MovieClip
the timeline of the movie to assign the coordinate space to.
returns Object
Object containing 4 properties: xMin, xMax, yMin, yMax
Macromedia/Adobe can be real idiots. For some reason, the loading rules for FLV’s are different than loading rules for every other type of external file — go figure. For FLV’s the loading is done relatively from the source of the FLV, not from the calling movie.
By Default, the FLV_PATH is set to "../../" which means the document root is 2 levels below. Depending on how your site is situated, you may need to change this.
This global setting turns off the bitmap functions of the Graphic component. It is false by default, but here are some things to consider to help you make a decsion:
example usage:
Read-only. The actual internal graphic. This is useful if you are setting up the media players and want to set them up using actionscript.
Returns a string representation of the file extension of the graphic. Possible values are:
redrocketcms.classes.collector.Auditable
The auditable is the class adds the first set of Component Inspectable properties. Any library-based Components will become a child of this class.
Write-only. The horizontal size policy instructs the component to resize itself to match the maximum width of the component’s containing objects.
Write-only. The vertical size policy instructs the component to resize itself to match the maximum height of the component’s containing objects.
redrocketcms.classes.Collector
The Collector class searches for data within it’s heirarcy. It will search for the closeset Provider and store the data.
The data property is a dump of the data that feeds the Component/Class. Typically, this is an object with properties or sub-objects that have exhaustive data realting to the component.
To find out what is in the data object you could write something like this:
thetainteractive.classes.architecture.Component
This is the base class for any class that is a Libray-based component. This class sets up the EventDispatcher, and base functions.
Sets the size of the bounding box of the component.
param width:Number
the size, in pixels of the width of the component. pass null if you do not want to set a width.
param height:Number
the size, in pixels of the height of the component. pass null if you do not want to set a height.
see also:
width
height
Sets the size of the component width in pixels.
Sets the size of the component height in pixels.
Moves the component.
param x:Number
moves the component x pixels horizontally.
param y:Number
moves the component y pixels vertically.
The invalidate function is a very important function. Usually, invalidate is called internally by other methods to redraw the component.
However, it is a public method, and by calling invalidate() on any component that uses an invalidation routine essentially "redraws" the entire component.
Care should be taken not to continually call invaidate() on any one component on a loop or onEnterFrame() function. invalidate is usually processor and memory intensive for one frame, so be sure to call it when you are sure that you want the component to redraw.
Another note is that many of the components are nested within other components, and they are linked together visually. Therefore, calling invalidate() on one component may cause multiple ares to redraw, again, another reason to use sparingly.
Event dispatched to listeners when the setSize() method is called. Note: this is also called if the width/height propeties are set.
Event Dispathced when the component is moved using the move() method.