Nevermind, figured out how:

FYI: On how

If you use:

 [Embed(symbol="YourPanelAssets")]  // YourPanelAssets is inside your SWC file
var CustomPanelAssetsSymbol:String;

inside your class {} it will bring in all assets you require. I had
tried this on singular assets in that:

 [Embed(symbol="MBContentBackground")] 
var MBContentBackgroundSymbol:String;

Which kind of worked, but basically it wouldn't associate the CLASS
witht he Symbol (ie registerObjectClass()

But if i put that MovieClip(s) inside a "AssetsContainer" it then
works? (which makes sense as when you export to SWC it compiles as
expected)

Sorry to spam :)





On 7/4/05, Scott Barnes <[EMAIL PROTECTED]> wrote:
> I'm trying to figure out how i can add in my own Symbol into the
> skinning process.
> 
> I've basically extended the mx:Panel container to suite my own
> specific "style", majority of it works if i utilise "known" symbol
> identifiers (ie TitleBackground) but if I try and attachMovie() a
> custom one inside thine mb:Panel, nothing happens! ie:
> 
> mx:Panel
> ---
> function createChildren():Void {
> this.attachMovie("MBContentBackgroundSymbol", "background_mc",
> this.getNextHighestDepth());
> super.createChildren();
> }
> 
> Now I had assumed that if you package up a SWC (theme) into one file,
> then using the "theme" attribute it would include all assets which are
> within that SWC - yet it doesn't, it seems as if it goes through a
> list of "known" assets only, and import those and ignore all others
> inside that SWC? (even though they via IDE have been marked for
> import)
> 
> i've checked the linkage properties (Export for ActionScript, Export
> in first frame) and nothing.
> 
> The only way I could introduce the assets was to put it on the
> ApplicationBackground asset (figured it gets loaded once per
> application) and do an internal process which basically unloadMovie on
> custom assets
> 
> Question is, did i miss some obsecure process in which this can be
> done? is it a known bug? or in fact a bug? working as intended?
> 
> eg:
> -- ApplicationBackground Symbol  - frame1 --
> MBContentBackground.unloadMovie();
> OtherCustomComponentContainers.unloadMovie();
> 
> 
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com ("Waiting for FLEX NCL to arrive")


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to