Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7488761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:01:41+00:00 2026-05-29T15:01:41+00:00

I have an application with a SWF loader. From the loaded SWF file, I’m

  • 0

I have an application with a SWF loader.
From the loaded SWF file, I’m accessing public variables from the main application with this:

[Bindable] public var global:Object = FlexGlobals.topLevelApplication;

Alert.show(global.myvar); 

This all works perfect.


I have a MXML skin file (for buttons) in a directory called ‘skins’ in the main application.
Is it possible to use this skin in the child applications?


I’ve already tried this, unfortunately not working:

[Bindable] public var global:Object = FlexGlobals.topLevelApplication;

<s:Button label="My Text" skinClass="{global.skins.menuButtons}" />

And this, but then it can’t compile anymore:

[Bindable] public var global:Object = FlexGlobals.topLevelApplication;

<s:Button label="Button 1" skinClass="global.skins.menuButtons" />
<s:Button label="Button 2" skinClass="FlexGlobals.topLevelApplication.skins.menuButtons" />

Is it possible what I want in another way or do I have to copy the skin to the all the projects where I want to use the skin?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:01:43+00:00Added an answer on May 29, 2026 at 3:01 pm

    I’ve already fixed the problem.

    In my main SWF file, I’m defining a public variable as class:

    public var menuButtons:Class = skins.menuButtons;
    

    And in the children SWF files, I’m referring to this variable with FlexGlobals.topLevelApplication:

    [Bindable] public var global:Object = FlexGlobals.topLevelApplication;
    
    <s:Button label="My Text" skinClass="{global.menuButtons}" />
    

    Apparently it is not possible to refer directly to the skin with global.skins.menuButtons.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Main class loading 2 SWF (loader and viewer, also with document
I have a flex application that loads an external swf file. I created the
I have Flash application (main_container.swf) that loads another swf file (page1.swf). I want to
I have a main Flex Application ('A.swf') loading a SubApplication (defined in' B.swf') via
I have two Flash files: pre-loader and application. Pre-loader: (D:\Projects\FlashApps\dd\edd.fla) is doing basically this:
I have created a simple SWF-loader in ActionScript 3.0. It loads an SWF from
I have an application that loads external SWF files and plays them inside a
I have an Air application that lets users import jpg, png and swf files
Hello I have a SWF clip that I got from a friend. the code
I'm currently experimenting with loading external SWF files from both an standard AS3 application,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.