0

My requirement is not to dynamically embed fonts in Flex, but to dynamically embed variable in Flex.For example: Code:

<fx:Script>
    [Bindable]
    [Embed(source=myPath)]
    private var _china:Class;
</fx:Script>

the background will pass the variable myPath to the flex

2 Answers 2

3

The point of embedding something is to include it in the swf DURING compile time. There is no such thing as dynamically embedding a resource.

Sign up to request clarification or add additional context in comments.

2 Comments

I want to pass the source path when the application is running. How it can achieve? Do you have other way to make it?
see stackoverflow.com/questions/8200861/… for how to pass data to a running swf
0

Embedding concept is do embed the image within the swf which is doable only in the design time (comile-time).

What you are asking is beyond the current capabilities of flex/action script.

May be you should look for alternative ways out there. Example, dynamically loading the image using Loader() class.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.