# Flash Classes

**URL:** <https://forum.kirupa.com/t/flash-classes/177603>\
**Category:** open source\
**Created:** [February 3, 2006, 9:12am UTC](https://forum.kirupa.com/t/flash-classes/177603 "2006-02-03T09:12:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkStreet](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@DarkStreet](https://forum.kirupa.com/u/DarkStreet)\
**Post date:** [February 3, 2006, 9:12am UTC](https://forum.kirupa.com/t/flash-classes/177603/1 "2006-02-03T09:12:43Z")

</div>

[SIZE=5] **DarkStreetLoader** class[SIZE=1]  
v1.0  
[/SIZE]  
[SIZE=4]Constructor[SIZE=1]

[/SIZE][SIZE=3][COLOR=Gray]DarkStreetLoader[/COLOR](target:Object, file:String, [option:Boolean])[SIZE=1]

[SIZE=2]When an instance of DarkStreetLoader is created, the specified file is loaded into the specified target and scaled according to the optional option flag.[/SIZE]

\*\*[SIZE=2][SIZE=2]Parameters[/SIZE][SIZE=1]

[SIZE=2]target:[/SIZE][/SIZE][/SIZE]\*\*[SIZE=2][SIZE=1][SIZE=2]Object - specify the path to the movie clip you would like to use to load content into.[SIZE=1]

**[SIZE=2]file:[/SIZE]**[SIZE=2]String - specify the path to the file to be loaded.[SIZE=1]

**[SIZE=2]option:[/SIZE]**[SIZE=2]Boolean [optional] - value indicating whether loaded file should be scaled in proportion to the dimensions of the target. When set to [FONT=Courier New]false[/FONT], the loaded file[/SIZE] [SIZE=2]will be stretched to the dimensions of the target. Default value is [FONT=Courier New]true.[SIZE=1]

[FONT=Verdana][SIZE=2] **Example** [SIZE=1]

[/SIZE][/SIZE][/FONT][/SIZE][/FONT][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][FONT=Courier New][COLOR=DarkOrchid]var[/COLOR][/FONT][FONT=Courier New] dsl:[/FONT][FONT=Courier New][COLOR=Green]DarkStreetLoader[/COLOR][/FONT][FONT=Courier New] = new [/FONT][FONT=Courier New][COLOR=Green]DarkStreetLoader[/COLOR][/FONT][FONT=Courier New]([/FONT][FONT=Courier New][COLOR=Green]\_root[/COLOR][/FONT][FONT=Courier New].target\_mc, [/FONT][FONT=Courier New][COLOR=Blue]“ash.jpg”[/COLOR][/FONT][FONT=Courier New]);[/FONT]  
[SIZE=5][SIZE=4][SIZE=3][SIZE=1][SIZE=2][SIZE=1][SIZE=2][SIZE=1][SIZE=2][SIZE=1][SIZE=2][FONT=Courier New]  
[/FONT][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][SIZE=4]Public Properties[SIZE=1]

[SIZE=2]None

[/SIZE][/SIZE][/SIZE][SIZE=4]Public Methods[SIZE=1]

[/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][COLOR=Black][FONT=Courier New]loadContent (DarkStreetLoader.loadContent method)  
**public** [COLOR=Gray]loadContent[/COLOR](file:String):Void[SIZE=1]

[FONT=Verdana][SIZE=2]This method loads a file into the target as specified when an instance of DarkStreetLoader was created.[/SIZE][/FONT]

[/SIZE][/FONT][/COLOR][/SIZE][/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][SIZE=1]\*\*[SIZE=2][SIZE=2]Parameters[/SIZE][SIZE=1]

[SIZE=2]file:[/SIZE][/SIZE][/SIZE]\*\*[SIZE=2][SIZE=1][SIZE=2]String - specify the path to the file to be loaded.[SIZE=1]

[/SIZE]\*\*Returns[SIZE=1]

[/SIZE]\*\*[SIZE=1][SIZE=2]Nothing.[SIZE=1]

\*\*[SIZE=2]Example[SIZE=1]

[/SIZE][/SIZE]\*\*[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][FONT=Courier New][COLOR=Black]dsl.[COLOR=Green]loadContent/COLOR;[/COLOR][/FONT]  
[SIZE=5][SIZE=4][SIZE=3][SIZE=1][SIZE=2][SIZE=1][SIZE=2][SIZE=1][SIZE=2]  
[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][COLOR=Black][FONT=Courier New]unloadContent ([/FONT][/COLOR][/SIZE][/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][COLOR=Black][FONT=Courier New]DarkStreetLoader.unloadContent method[/FONT][/COLOR][/SIZE][/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][COLOR=Black][FONT=Courier New])  
**public** [COLOR=Gray]unloadContent/COLOR:Void[SIZE=1]

[FONT=Verdana][SIZE=2]This method unloads the movie as specified when an instance of DarkStreetLoader was created.[/SIZE][/FONT]

[/SIZE][/FONT][/COLOR][/SIZE][/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][SIZE=1]\*\*[SIZE=2][SIZE=2]Parameters[/SIZE][SIZE=1]

[/SIZE][/SIZE]\*\*[/SIZE][/SIZE][/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][SIZE=1][SIZE=2][SIZE=1][SIZE=2][SIZE=1][SIZE=2]None.[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][SIZE=1][SIZE=2][SIZE=1][SIZE=2][SIZE=1]

[/SIZE]\*\*Returns[SIZE=1]

[/SIZE]\*\*[SIZE=1][SIZE=2]Nothing.  
[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][SIZE=5][SIZE=4][SIZE=3][SIZE=1][SIZE=2][SIZE=1][SIZE=2][SIZE=1][SIZE=2][SIZE=1]  
\*\*[SIZE=2]Example[SIZE=1]

[/SIZE][/SIZE]\*\*[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][FONT=Courier New]dsl.[/FONT][FONT=Courier New][COLOR=Green]unloadContent[/COLOR][/FONT]FONT=Courier New;[/FONT]
