Fonts - Cannot Get Flash Runtime Shared Library To Work

Oct 18, 2011

I am using Flash CS5 (assets) and FlashDevelop (code) for my project. We have about 20 fla/swf's that contain textfields. All of our textfields use the same Font, and the font is specific to our company so won't be installed on anyones computers, hence it needs to be embedded.

My ultimate goal is to have one single font embedded that all of the textfields use, for 2 main reasons:

Whenever we add more characters to the font (other languages), we only need to add them once and not 20 times The file size doesn't blow out dramatically

I'm having great difficulty in trying to achieve this. It seems that everything I try, characters are missing (only characters entered in the text property of the textfields in each fla seem to be embedded).

The latest solution I am trying is using Runtime Shared Libraries, as this seems like it should work. I have an fla called FNFont.fla. It contains just one object in the library, the embedded font. The font is exported to AS3, exported in frame 1 and exported for runtime sharing. The URL is FNFont.swf (all swf's are in the same folder).

In all the other fla's, I create the font object in font embedding. I tick Import for Runtime Sharing and give it the same class name as the one in FNFont.fla. The URL is FNFont.swf. The fla(s) contain many textfields using this font. The textfields have instances of themselves as children of other movieclips.

When I run the program and attempt to load a movieclip that contains an instance of one of these textfields, I get the error:

[Fault] exception, information=ReferenceError: Error #1065: Variable FontName is not defined.

FontName is the class name of the Font object in FNFont.fla and all other fla's. It is not the instance name of the textfield (nor the class name), so I don't understand how it thinks its a variable.

View 3 Replies


Similar Posts:


Flash :: Set Up RSL (Runtime Shared Library)?

Feb 8, 2011

I'm having a little trouble setting up a new project (an e-Learning) that I think will benefit a lot from RSL.My case is something like this[code]...

The Main will be the first movie to be instantiated, then, all that is necessary from here will be download.Every lesson will be put in a fla/swf apart from the "Architecture" (that is the Main, Scenes, Navigation and a whole bundle of classes called Engine) and will be added at runtime inside the Scenes.

The Engine is responsible for handling repetitive and necessary tasks, events, common methods, communication with server, among other things.The Navigation is responsible for handling user input, as the navigation (next/prev lesson and such), and then passes it to the Engine, that will manipulate the Scenes (and it's children).

Well, I have some restrictions too:Every swf file that will be handed to our client need to have less than 80kb, which means I'm tied.I can't compile the whole thing as a package ready to delivery.As size counts, I need means to alleviate the load as much as possible.So, I searched a lot these days and found out RSL.I've created some tests to know better how to use this and, of course, got into a trap.

I haven't been able to set up my Flash correct, haven't any success with the "Library Path" (under AS3 configuration), haven't been able to compile classes inside the SWC...

Another thing is that I won't make the lessons, only the Architecture.Those lessons will be created by people that may not have any knowledge in AS3 (OOP or program logic) at all.And I'm not inclined to delivery the whole engine (source code) to anyone from outside that may mess with it, making the whole app (apps, in fact, we'll produce hundreds of e-learnings).

How to use RSL efficiently

How to bundle classes inside the SWC

How to package all that is imperative for the whole thing work in the SWC, and then, delivery only this SWC

View 1 Replies

Flash - How To Setup RSL (Runtime Shared Library)

May 24, 2010

I'm having a little trouble setting up a new project (an e-Learning) that I think will benefit a lot from RSL.
My case is something like this:

Main.fla - A Shell
Scenes.fla - I'll explain this in a minute
Navigation.fla - Some kind of GUI
Lots Of Fla Files - The Lessons

The Main will be the first movie to be instantiated, then, all that is necessary from here will be download.Every lesson will be put in a fla/swf apart from the "Architecture" (that is the Main, Scenes, Navigation and a whole bundle of classes called Engine) and will be added at runtime inside the Scenes.The Engine is responsible for handling repetitive and necessary tasks, events, common methods, communication with server, among other things.

The Navigation is responsible for handling user input, as the navigation (next/prev lesson and such), and then passes it to the Engine, that will manipulate the Scenes (and it's children).Well, I have some restrictions too:Every swf file that will be handed to our client need to have less than 80kb, which means I'm tied.I can't compile the whole thing as a package ready to delivery.As size counts, I need means to alleviate the load as much as possible.

how to use this and, of course, got into a trap.I haven't been able to set up my Flash correct, haven't any success with the "Library Path" (under AS3 configuration), haven't been able to compile classes inside the SWC...Another thing is that I won't make the lessons, only the Architecture.Those lessons will be created by people that may not have any knowledge in AS3 (OOP or program logic) at all.And I'm not inclined to delivery the whole engine (source code) to anyone from outside that may mess with it, making the whole app (apps, in fact, we'll produce hundreds of e-learnings).How to use RSL efficiently How to bundle classes inside the SWC How to package all that is imperative for the whole thing work in the SWC, and then, delivery only this SWC

View 2 Replies

Actionscript 3 :: What Is RSL (Runtime Shared Library) Used For In Flash

Oct 31, 2011

Kindly note I am not asking what SWCs are used for, I know about that. I want to know, the use of RSLs in flash. Say i have some useful classes which i currently am using by specifying the particular folder as an "Additional source folder". So, can i make use of RSL here. If not, when and why i need to use RSLs ( I use SWCs without any problem, but i wanna know how to make use of RSL, without making SWCs, ie just by bunch of actionscript classes )

View 1 Replies

ActionScript 3.0 :: Flash: Runtime Shared Library Preloading Warning?

Feb 22, 2011

I keep getting this warning coming up everytime I go to preview my file. Can anyone help me prevent this warning from coming up? I tried to create a seperate preloader for the website I'm making and that didn't work, and I think it might be because of this Runtime warning in my main file.

View 3 Replies

Flex :: Use RSL(Runtime Shared Library) In It?

Dec 29, 2011

How to use RSL(Runtime shared library) in flex ?how can decrease loading time of swf using rsl?

View 1 Replies

Performance :: Flex And Embed Fonts Shared Library?

Feb 21, 2010

I have a question regarding flex and embed fonts , i want to have a library of embed fonts that will have about 30 different fonts Is there any way i can only load the fonts that i use? ( dynamicaly )

View 1 Replies

ActionScript 2.0 :: Shared Library Embed Fonts NOT WORKING

Apr 22, 2006

I wanted to separate my embedded fonts to save filesize, so i've put them into sharedLib.SWF, and then preloaded sharedLib.SWF into flash using another SWF so that i could use these fonts further in multiple FLAs, without consuming additional bandwidth. I followed one tutorial, and checked out many different ones, to see if this issue occured to somebody else too. I had no luck finding the solution. Furthermore, i want to embed these fonts into AS-created textfields using AS.[code]I tried to create 1 TF manually, and placed it on the Stage, setting its display text to one of the embedded texts (Tahoma*). This actually worked! And one more strange thing happened.. Three of those TFs created using actionsctript, which were before blank, were NOW also filled with correct embedded text, EXCEPT one textfield which used Tahoma text non-bold, non-italic [!?]. Now how does this happen, and why the exception, i wonder.

View 2 Replies

ActionScript 3.0 :: Runtime Shared Library Woes?

Jan 12, 2009

I am facing an error using shared libraries. The error pops up during compile and only happen when I give an instance name to my imported asset. Let me describe further:

I have an asset library where all movie clips in this file are exported for runtime sharing - LibraryA.swf

Next is the file that uses the assets - ShirtA.swf

What I did is to import an asset from LibraryA.swf (e.g. collar) into ShirtA.swf. Now I have collar movieclip in my ShirtA library. I drag an instance of it to the stage and compile. No problems.

I then gave this instance a name, "myCollar". I tried to compile again, and I get an error from Flash IDE - 1046: Type was not found or was not a compile-time constant: collar

View 9 Replies

Professional :: Runtime Shared Library Preloading Error?

Sep 8, 2010

I just finished up my site, and this is the only thing holding me back from publishing it. Whenever I "Test" my site, I get this error: " Your content will not stream. Runtime Shared Library (RSL) preloading will require all of your content to download before the first frame will play.
 
To prevent this you can change the Runtime Shared Library Library Settings, in the Advanced ActionScript 3.0 Settings dialog which can be raised from the Publish Settings dialog.The Runtime Shared Libraries being preloaded are:
 
textlayout_1.0.0.595.swz for TLF Text"
 
Does anyone know how to correct this error? If you do, could you please walk me through it step-by-step. I am still very new to "Flash Professional (CS5)" & "ActionScript (3.0)"

View 4 Replies

ActionScript 3.0 :: Runtime Shared Library Store Classes?

Sep 19, 2009

working a project that has 9 swf.a lot of the swf are using the same classes like papervison and tweenlite.is there a way to store classes like papervison in a share library?

View 1 Replies

ActionScript 3.0 :: Runtime Shared Library - Main And Assets SWF

Mar 26, 2009

This is the concept I want to get into code:
1) Have a Document Class attached to the Main.swf
2) Have a Assets.swf that has all MovieClips that set to Export and have been given actual Classes.
3) Have the document class Load the Assets.swf.
4) Once loaded, be able to create instances of the MovieClips from Assets.swf by writing the code in the Document Class of Main.swf

I can get all this to work.. However what I am finding is if I have a public function on the Document class that creates an instance of something from the Assets.swf, lets say var okTest:TestClass = new TestClass(); I have to also import it in the Document Class (import com.test.TestClass). When I compile it, yes it works. If I remove the Assets.swf file it doesn't display. Ok.. But I've noticed that the Main.swf file is including all the imported classes (eg: com.test.TestClass) so the Main.swf filesize is pretty much the same as the Assets.swf file.

I also ran it through a decompiler and can see yes in fact Main.swf is including all those Classes from Assets.swf because I'm trying to access them from Main.swf and had to import. So the biggest question is how do I go about this properly? Being able to load the asset file that has movieclips etc that have custom classes. Then create instances of those classes within the document class but only if Assets.swf is loaded.

View 2 Replies

ActionScript 3.0 :: Runtime Shared Library Load Timing?

Mar 22, 2010

I think I basically get runtime shared libraries, but I have some very specific questions which I have not been able to find answers for anywhere:

1) When you load swf "A" that references a runtime shared library swf, does the entire runtime shared library swf also immediately load? (true/false)

2) When swf "A" instantiates a symbol that is linked to be imported from the runtime shared library, does the entire runtime shared library swf load then? (true/false)

3) When swf "A" instantiates a symbol that is linked to be imported from the runtime shared library, does only that specific symbol load? (true/false)

My problem is, if I put all my bitmaps in swf "A", then it takes a really long time to load. I'm wondering, if I put all my bitmaps in a runtime shared library, and link the symbols in swf "A" to the runtime shared library, then will swf "A" load fast (because the runtime shared library is not loaded)? And when I instantiate a linked symbol, will it also load fast (because the entire runtime shared library is not loaded)?

View 5 Replies

Professional :: Content Will Not Stream / Runtime Shared Library Settings

Mar 21, 2011

I recently began using CS5 with AS3.0 and I encountered this error.I can not find where I can edit the AS3.0 settings nor do I know what to change.

View 1 Replies

Actionscript :: Instantiate A Class From A Runtime Shared Library Through An Interface?

Dec 3, 2011

In my Runtime Shred Library SWF I have a class named BackButton that extends MovieClip and interfaces IGameButton:

package com.game.button
{
import com.interfaces.IGameButton;

[Code].....

View 1 Replies

Flex :: Build Error - Runtime-shared-library-path?

Jan 4, 2012

I recently switched a Flex project over to using RSLs. It built fine for quite a while but has recently dug its heels in and is giving me this error:configuration variable 'runtime-shared-library-path' requires a value for 'rsl-url'I went through all the flex XML files I could find and either this value doesn't exist or there are entries available for it. Nowhere did I see a <rs-url></rs-url> with no value.

View 1 Replies

IDE :: CS5 - Setting URLs For Import / Export For Runtime Shared Library

Aug 27, 2010

Summary: I don't quite understand how the import/export URLs for symbols in a runtime library work. I can't figure out how I can set them so that the runtime library will be properly loaded and accessible for other swfs to import from, if I want it to work both in a local environment (on my harddrive), and from a remote environment (on a web page).

Relative URLs seem to work great for the hard-drive case, but fail for the web page. Is there a magic way to set the relative URL to work from the web too? And/or, is there some way of manually loading up the RSL at runtime and making the importing swfs import from that loaded copy, rather than having Flash doing it behind the scenes based on the import URL set in the symbol? Following is a longish description of what I'm trying to do, and why... I'm trying to figure out if we can use RSLs to contain common UI controls for our next project. I'm running into an organizational issue that I can't quite figure out - how to get the RSLs to work in both a local development/debugging environment, and on a production web environment, with the same exporting/importing URLs.

Here's what my setup would look like. Say I have a main application main.swf, an RSL lib.swf, and a UI module dialog.swf. Main.swf loads or embeds dialog.swf. lib.swf exports some symbols that dialog.swf imports. On a local development environment, these swfs are found in folders like so:

[Code]...

View 1 Replies

Professional :: Setting Up Runtime Shared Library URLs With Multiple Environments

Aug 26, 2010

I'm trying to figure out if we can use RSLs to contain common UI controls for our next project.  I'm running into an organizational issue that I can't quite figure out - how to get the RSLs to work in both a local development/debugging environment, and on a production web environment, with the same exporting/importing URLs.
 
Here's what my setup would look like.  Say I have a main application main.swf, an RSL lib.swf, and a UI module dialog.swf.
 
Main.swf loads or embeds dialog.swf.  lib.swf exports some symbols that dialog.swf imports.
 
On a local development environment, these swfs are found in folders like so:

[URL]
 
Here is the problem.  If I set the export/import url for symbols in lib.swf to "assets/lib/lib.swf" (relative to the location of main.swf), the runtime library gets loaded fine in the local environment.  But in the web environment, it does not load - the player just shows the "..." graphic indicating it is trying to load. 
 
Alternatively, I can use "http:/myapp.com/assets/lib/lib.swf" as the export/import url.  Now, it will work in the web environment.  However, in the local environment, dialog.swf will load symbols from the lib.swf that is out on the web, not the one that is local.  But I need it to load from the local version, so that designers can muck about with the assets and see the results locally before publishing to the web.
 
Is there some alternative way to set up the swf's, or way to set the URLs, or some other hoop I can jump through that will make the RSL load properly in either environment without having to manually change URLs all the time?
 
(Details: I am using Flash Builder 4, CS 5, Action Script 3, Flash Player 10... No Flex!  My example omits some details from my actual setup, such as the fact that we are using a preloader to load the main application, and a php script on the web page to start the preloader.)

View 4 Replies

Flash :: Runtime Fonts Not Playing Nice With Fonts Embedded In Static Text?

Jul 11, 2010

I save my (embedded) fonts in an external file (fonts.swf) that gets loaded at runtime. Pretty standard. I also use a bunch of UI artwork generated in the Flash IDE. Some of this artwork contains static textfields (thus, not proper TextFields that can change. Just frozen glyphs). Here's the problem: if I use the same font in any static textfield and then embed that same font into my collection of runtime fonts, the runtime font will refuse to render. It's the same effect you get if you set a textfield with embeddedFonts=true to use a font that isn't embedded. If I change the static textfields to use a different font, the runtime fonts work just fine.

[Code]...

View 2 Replies

ActionScript 3.0 :: Change The "Runtime Shared Library"?

Mar 22, 2011

I recently began using CS5 with AS3.0 and I encountered this error -I can not find where I can edit the AS3.0 settings nor do I know what to change

View 1 Replies

Flash Runtime Shared Libraries / Memory Benefit?

Jun 7, 2011

Suppose that I have two applications running on the same page. I have the Libraries compiled into the SWF file: [code]Is RSL intended to just improve the download time (via caching) or does it also lower the memory foot print of an applicaiton?

View 1 Replies

Flash :: Pro CS 5.5 Runtime Sharing Bug - Fonts?

Sep 19, 2011

I have an issue with an apparent bug in Flash Pro CS5.5. I have recently upgraded to CS5.5 Master Collection from my previous version of 4.0. The bug is when I create a fonts FLA file with fonts embedded in it that I want to use throughout an entire site. I correctly configure those fonts as export for runtime sharing.

In any other FLAs in which I wish to use the shared fonts, I either (a) drag the assets from one library to the other, or (b) add them to the new fla and configure them as import for runtime sharing (both of which achieve the same result).

[Code]...

View 2 Replies

Actionscript 3 :: Runtime Fonts In Flash Builder 4?

Apr 23, 2003

The Actionscript project compiles but all I get on screen is a tiny rotated square with no text in it.Does anyone know why this might be happening? My code is identical to the example above - I have compiled the first class into _Arial.swf.EDIT:Ive also tried this...

package {
import flash.display.Sprite;
import flash.display.Loader;

[code].....

View 1 Replies

Flash :: Loading CFF Embedded Fonts In An External SWF At Runtime?

Nov 29, 2010

We have a large flash site which is translated into 11 languages. We have a font loading system whereby all the characters required to display the site in each language are embedded in external swfs (so 11 swfs).recent update to the site requires us to use the Text Layout Framework (TLF) for one area of text display, which of course only supports fonts embedded in the new CFF format. I've attempted to embed a second instance of the font using the tag embedAsCFF="true", and after loading in the font SWF I can see this font is correctly registered as it shows up in the array returned by Font.enumerateFonts.The TextFlow instance I am using has the following properties set:

textFlow.fontLookup = FontLookup.EMBEDDED_CFF;
textFlow.renderingMode = RenderingMode.CFF;
textFlow.fontFamily = "HeadingFontCFF";

[code]....

View 2 Replies

Professional :: Use A Shared Library - Recompile The Library Folder When Do The Smallest Changes To A Component?

Jul 20, 2010

I am working in two different applications, one to be compiled for desktop use (AIR) and one to be compiled for the web. They are part of the same project and use the same visual components, but they are completely different apps. When a visual component is changed in one application then it should also change in the other one. Is this a good situation to use a shared library fla? I am new to the concept of shared libraries and I am considering the options.

On one had I would not have to update 2 applications everytime I change something, on the other, I would always have to recompile the library folder when I do the smallest changes to a component.

View 4 Replies

Flash - What's The Definition Name For Fonts Loaded At Runtime Created With Fontswf

Apr 11, 2011

I ran into the 'fontswf' utility to embed TTF fonts into SWF and I am struggling to load them at runtime from my app. All the examples I find online refer to loading the font via [Embed] but I am actually loading them with a flash.display.Loader and from what I gather, once the Loader.contentLoaderInfo fires an Event.INIT I need to register the font, like so:

public function handleLoaderComplete( event:Event ):void {
var FontClass:Class = event.target.applicationDomain.getDefinition( fontName );
Font.registerFont( FontClass );
}

The problem is I don't know what to pass in as fontName. I am generating my SWF through:

$ fontswf -a belshaw -o belshaw.swf belshaw.ttf

But when I try to call getDefinition( 'belshaw' ), I get an error saying 'Variable belshaw is not defined'. Any suggestions on how to accomplish this?The alternative is to generate my on SWF files through templating an .as file and compiling them, but I would rather use a built in tool like fontswf if it's already there.

View 2 Replies

Flash :: How To Setup A Shared Library

Mar 3, 2009

Apparently, there is a way to have one library, update a symbol in that library, and have the one update be reflected in 10 different documents that share that library. However, I cannot find any (coherent) documentation on how to do that.

View 1 Replies

Flash :: Shared Library To Minimize Size Of FLA File?

Apr 6, 2010

In a project we use large flash FLA file with lots of graphic assets, but the actual data that is changed is just in a few symbols. Sometimes it is not very efficient to transfer the whole FLA file that comes up to 20MB now.

I was thinking about using Shared Libraries, but it seems that, even if you import external library, it still copies the whole assets into the destination file, but does not link it from external file. Consequently, size of the FLA file still remains the same.

Is there any way to split FLA files into few separate in order to minimise size of the most frequently updated file and keep all unchanged data in another file?

View 2 Replies

Actionscript 3 - Using Imported Shared Fonts In Css?

Sep 15, 2010

I have a main.fla, in the library, i created two new fonts:

RegularFont and BoldFont.

And I found the following piece of code somewhere, which works fine!

[Code]...

In my actual project implementation, I have to host the fonts hosted in another swf. So I simply modified in this way:

Instead of declaring new font the in the main.fla, i imported the BigFont and RegularFont from another fonts.swf(dynamic fonts sharing) HERE COMES THE PROBLEM, THESE TWO LINES WONT COMPILE

[Code]...

Flash IDE is throwing this error:

1180: Call to a possibly undefined method RegularFont.

View 1 Replies

Flash 9 :: Shared Library Process For The First Time With Audio Files Not Working

Sep 15, 2008

I'm trying to use the Shared Library process for the first time with audio files and I'm not sure why it's not working. I've followed both processes from here:[URL] and have a library file called libTestAudio.swf with all the audio files set up right (see Flash file here [URL] My question is should the testAudio.swf ever grow in file size? When it has no content it is at 4Kb but when it has the shared library file added to the timeline it becomes 8Kb. Now this might sound small but I've tried this with much longer pieces of audio and the file size does get bigger for testAudio.swf . I was thinking that only the libTestAudio.swf file would increase in file size and testAudio.swf would remain at it's 4Kb size. Am i wrong there?

View 0 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved