Is this a bug? loading component swf with MovieClipLoader

Guys, one wierdarse 'bug?' for you.
I have a swf created in Flash 8 Pro, published to Flash 7
with AS2.0 which contains just a selection of components dragged
from the standard library (date chooser, date field, combo bog,
radio button ,number list etc)
This swf is then loaded dynamically into a second fairly
straight foward swf - created in Flash 8 Pro, published for Flash 8
with AS2.0 using MovieClipLoader
The error:
When the first component is run on it's own, in flash, in
html etcetc all components work fine.
But when loaded into the 2nd swf all components work fine
APART from those containing some type of popup class (i'm guessing
here as don't know the inside of the components)
The two i've encountered which don't work are : Date field -
the click of the button, and comboBox
boxth of which ar eactive as they highlight in the standard
Flash green - so are active but do nothing when clicked.
so HELP, anyone know why, know a fix, has any idea what's
going on.
regards, Rich

The components you're having trouble with create their popup
ui in _root.
For example, the list part of the ComboBox is created in
_root. But if _root
doesn't have the necessary assets in its library, that part
of the component
cannot be created. In your case, you can either add all the
components to
library in your topmost movie or use _lockroot to force the
popup parts to
be created in the loaded movie.
Example:
this.createEmptyMovieClip("components_mc",
this.getNextHighestDepth());
var lo:Object = new Object();
lo.onLoadInit = function(target_mc){
target_mc._lockroot = true;
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(lo);
mcl.loadClip("components_mc.swf", components_mc);

Similar Messages

  • Unloading a loaded external SWF with a close button on the external SWF to unload

    I have found some discussion on this topic but I am still having trouble getting it to work and was hoping to get some help here.
    Here I have a file: http://www.dril-quip.com/test/main.swf
    I have: main.swf (a menu) and I have module.swf (content)
    If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent.
    So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.
    below is the code I used to load the file but I cant, for the life of me, find a way to unload it.
    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
    function bigborecontent(event:MouseEvent):void{
    var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf");
    bigboreLoader.load(bigboreRequest);
    stage.addChild(bigboreLoader);
    I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
    Main FLA:
    function removeF() {
    removeChild(bigboreLoader);
    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
    function bigborecontent(event:MouseEvent):void{
    var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf");
    bigboreLoader.load(bigboreRequest);
    stage.addChild(bigboreLoader);
    EXTERNAL FLA:
    btnClose2.addEventListener(MouseEvent.CLICK, bigborecontent);
    function bigborecontent(myevent:MouseEvent):void {
    MovieClip(parent.parent).removeF();
    I think I have a misunderstanding of the code. Thanks for any help you might be able to provide.

    This was the original code I got:
    Main FLA: (on AS layer inside DropDownButton Movie Object)
    function removeF() {
    removeChild(myLoader);
    var myLoader:Loader=new Loader ();
    page1_mc.addEventListener(MouseEvent.CLICK, page1content);
    function page1content(myevent:MouseEvent):void {
    var myURL:URLRequest=new URLRequest("page1.swf");
    myLoader.load(myURL);
    addChild(myLoader);
    EXTERNAL FLA: (on main time line of this file)
    close_mc.addEventListener(MouseEvent.CLICK, closeMC);
    function closeMC(myevent:MouseEvent):void {
    MovieClip(parent.parent).removeF();
    Main.FLA
    myLoader=bigboreLoader (my new loader)
    page1_mc=btnbb2 (the button who event will call external swf)
    page1content = bigborecontent (name given to SWF being loaded???)
    myURL=bigboreRequest (my new URLrequest for bigbore)
    page1.swf=moduletemplate.swf (actual address of what I am loading)
    External.FLA
    close_mc=button that will close external swf
    closeMC=movie clip to close?

  • Loading child SWFs with TLF content (from Flash CS5.5) generates reference errors in FB4.6

    I am currently producing e-learning content with our custom AS3-Framework.
    We normally create content files in Flash CS5.5 with dynamic text fields, which are set at runtime from our Framework (AS3 framework in FB4.6).
    Now we are in the progress of language versioning, and since one of the languages is Arabic we are changing the dynamic text fields to TLF fields.
    Then all my problems started.
    In Flash I have chosen to include the TLF engine and to export in frame 2.
    (see to: http://helpx.adobe.com/flash/kb/loading-child-swfs-tlf-content.html )
    I get this error:
    VerifyError: Error #1053: Illegal override of getEventMirror in flashx.textLayout.elements.FlowLeafElement.
                at flash.display::MovieClip/gotoAndPlay()
    I guess it is because our framework wants to gotoAndPlay before the TLF engine has been loaded.
    Can this be it?
    Any good suggestions on how to handle loading child SWFs with TLF content.

    Please refere to the following articles .. you may find some help.
    http://www.stevensacks.net/2010/05/28/flash-cs5-tlf-engine-causes-errors-with-loaded-swfs/
    http://www.adobe.com/devnet/flash/articles/preloading-tlf-rsl.html
    I also faced similar problem and posted a question at the following link, but, I still couldn't find the solution.
    http://forums.adobe.com/message/4367968#4367968

  • Loading a swf with FLVPlayback component, and the flv restarts playing by itself......

    Hi.
    i have an fla file with 5 keyframes. Each keyframe navigates forward to the following keyframe. On the fifth keyframe, a Loader loads an external swf. The external swf has an flv playback component with sound.
    The fifth keyframe, other than having a button to click to load the swf, has a movie clip that navigates you back to the first keyframe.
    The loaded swf, once loaded, may be removed using removeThis function which has removeChild code as well as a  _flv.stop(); which makes the flv stop when the swf is removed. So u're back on keyframe 5, no sound - good!.
    ASo, all is well and the user can navigate back to the first keyframe (from keyframe 5), and from there continue on to the 2nd, 3rd, 4th and 5th keyframes again,  problems start though, when you get to that 5th keyframe again: that keyframe has an FLVPlayback component playing an flv, which at that point becomes very sluggish as all the mc animations on that 5th frame. And worse, i realize, the flv in the external swf that was previously loaded, starts playing by itself, which i know, because i hear its sound track.
    I tried putting a conditional statement to tell the _flv to stop on keyframes 1 and 5, but that causes errors, considering that the flv is an undefined property from the perspective of those keyframes.
    Any help would be very appreciated:)
    thanks.

    var loader:Loader = new Loader();
    loader.load(new URLRequest("_.swf"));
    house.addEventListener(MouseEvent.CLICK, loadswf1);
    function loadswf1(event:MouseEvent):void
        addChild(loader);
    this is how i'm loading the swf. I tried using   Loader.unloadAndStop() inside that loadswf function but get an error -
    Scene 1, Layer 'a', Frame 75, Line 83
    1061: Call to a possibly undefined method unloadAndStop through a reference with static type Class.

  • Loading external SWF with masked content - get size of masked area

    I am loading an external swf using the SWFLoader component. The swf that is being loaded is masked so that only a portion is being shown. However, when it's loaded the actual size of the swf (loader.content.width && loader.content.height) is the complete swf including the masked area. Therefore, the loaded swf does not display properly in the itemrenderer Is there a way to to grab the size of the just the masked area as opposed to getting the size of the entire swf's contents (area not masked)?
    One item to note that is complicating the issue, is that these are swf files that have already been created and there are many of them. In some instances, the size of the stage matches up with the size of the masked area. In other instances, the stage is larger (or possibly smaller) than the masked area movieclip as well as possibly the actual size of the movieclip (w/o the mask).
    I am currently loading the external swf in using a Loader. Once loaded, I make a copy (screen shot) of the swf by creating a bmp of the loader.content.This is done as I don't want to have any animations being shown on screen at this moment. I am setting the size of the bmp using using loader.content.width & loader.content.height. I then set the SWFLoader.source to the bitmap.

    Here's the code I am using to load the swf:
         <fx:Script>
                <![CDATA[
            protected  function application1_applicationCompleteHandler(event:FlexEvent):void {
                 loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onSWFLoaded);
                 loader.load(new URLRequest("c:\\Flex Testing\\FA warns Mr. Jones.swf"),  context);
            private function  onSWFLoaded(event:Event):void {
                bmData=new  BitmapData(loader.content.width, loader.content.height, true, 0x990000);
                 bmData.draw(loader.content, new Matrix());
                bmp=new  Bitmap(bmData);
                swfLoader.source=bmp;
                 addElement(swfLoader);
                with (swfLoader)
                    setStyle('verticalAlign', "middle");
                     setStyle('horizontalAlign', 'center');
                     verticalCenter=0;
                    horizontalCenter=0
                     scaleContent=true;
                    maintainAspectRatio=true;
                     addEventListener(MouseEvent.CLICK,onClick,false,0,true)
                     useHandCursor = true;
                    buttonMode = true;
                     width=200;
                    height=200;
                 loader.unload()
                loader=null;
               ]]>
    </fx:Script>

  • Loaded external swfs with transitions

    I need help getting my loaded swf files to play the "out" transition before the next movie loads. I have a main swf with 5 buttons (movie clips) that load external swf onto the stage.
    package
        import flash.display.MovieClip;
        import flash.display.SimpleButton;
        import flash.display.Loader;
        import flash.net.URLRequest;
        import flash.events.MouseEvent;
        import flash.events.*;
        public class V2 extends MovieClip
            private var sections_array:Array;
            private var section_buttons_array:Array;
            private var loader:Loader;
            private var sectionHolder  : MovieClip;
            private var swf:String;
            private var currentSection:int=0;
            private var nextSection:int;
            private var id:int=0;
            private var homeLoc = "./swfs/home.swf";
            public function V2()
                init();
            private function init():void
                stop();
                stage.frameRate=31;
                preloader_mc.visible=false;
                preloader_mc.fill_mc.width=0;
                sectionHolder = new MovieClip();
                sectionHolder.x = 37;
                sectionHolder.y = 42;
                addChild( sectionHolder );
                sections_array = new Array('./swfs/section1.swf',
                './swfs/section2.swf',
                './swfs/section3.swf',
                './swfs/section4.swf',
                './swfs/section5.swf');
                section_buttons_array = new Array(btn1,btn2,btn3,btn4,btn5);
                addMenuListener();
                addMenuEvents();
                loadHome();
            private function addMenuListener():void
                for(var i:int=0;i < section_buttons_array.length;i++)
                    section_buttons_array[i].id=i;
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_DOWN,loadSectionHand ler);
            private function loadHome():void
                swf=homeLoc;//sections_array[0];
                var request:URLRequest=new URLRequest(swf);
                loader=new Loader();
                initListeners(loader.contentLoaderInfo);
                loader.load(request);
                id=0;
            private function changeSection(m:MouseEvent):void
                id=m.currentTarget.id+1;
                loader.unload();
                sectionHolder.removeChild(loader);
                removeListeners(loader.contentLoaderInfo);
                loadSection(m.target.parent.id+1);
            private function loadSectionHandler(evt:MouseEvent)
                id = evt.currentTarget.id;
                loadSection(id);
            private function loadSection(n:int):void
                swf=sections_array[id];
                var request:URLRequest=new URLRequest(swf);
                initListeners(loader.contentLoaderInfo);
                loader.load(request);
            private function initListeners(dispatcher:IEventDispatcher):void
                dispatcher.addEventListener(Event.OPEN,start);
                dispatcher.addEventListener(ProgressEvent.PROGRESS,atLoading);
                dispatcher.addEventListener(Event.COMPLETE,completed);
            private function removeListeners(dispatcher:IEventDispatcher):void
                dispatcher.removeEventListener(Event.OPEN,start);
                dispatcher.removeEventListener(ProgressEvent.PROGRESS,atLoading);
                dispatcher.removeEventListener(Event.COMPLETE,completed);
            private function start(event:Event):void
                preloader_mc.visible=true;
            private function atLoading(event:ProgressEvent):void
                var n:uint=(event.bytesLoaded/event.bytesTotal)*100;
                preloader_mc.fill_mc.width=n;
               private function completed(event:Event):void
                sectionHolder.addChild(loader); 
                preloader_mc.visible=false;
            private function stopAll():void
                for(var i:int=0;i < section_buttons_array.length;i++)
                    section_buttons_array[i].stop();
                    sections_array[i].stop();
            private function addMenuEvents():void
                for(var i:int=0;i < section_buttons_array.length;i++)
                    section_buttons_array[i].mouseChildren=false;
                    section_buttons_array[i].buttonMode=true;
                    section_buttons_array[i].id=i;
                    section_buttons_array[i].isPressed=false;
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_OVER,setOver);
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_OUT,setOut);
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_DOWN,setDown);
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_UP,setUp);
            private function setOver(evt:MouseEvent):void
                if(evt.target.isPressed==false)
                    evt.target.gotoAndStop(2);
            private function setOut(evt:MouseEvent):void
                if(evt.target.isPressed==false)
                    evt.target.gotoAndStop(1);
            private function setDown(evt:MouseEvent):void
                nextSection=evt.target.id;
                checkState(evt.target.id);
                evt.target.gotoAndStop(3);
                loadSection(1);
                currentSection=evt.target.id;
            private function setUp(evt:MouseEvent):void
                if(evt.target.isPressed==false)
                    evt.target.gotoAndStop(1);
            private function checkState(n:int):void
                for(var i:int=0;i < section_buttons_array.length;i++)
                    if(i==n)
                        section_buttons_array[i].isPressed=true;
                    else
                        section_buttons_array[i].isPressed=false;
                        section_buttons_array[i].gotoAndStop(1);
            private function removeSWF(e:Event):void
                loader.unload();
                removeEventListener("removeMe", removeSWF);
                var request:URLRequest = new URLRequest(swf);
                loader.load(request);
            private function onClick(e:MouseEvent):void
            targetID = e.currentTarget.id;
            addEventListener("removeMe", removeSWF);
            MovieClip(loader.content).play();
            private function removeSWF(e:Event):void
            loader.unload();
            removeEventListener("removeMe", removeSWF);
    The loaded swf has a stop() an intro animation and on the last frame have.
    dispatchEvent(new Event("removeMe", true));

    your isse begins here ..
    loadSection()
    you use the same loader to not only load files but you are tyring to use it to target the movieClip you also want to play.
    The issue is loader.  The loader can only reference one load at a time.. otherwise you screw up your listeners and the ability to unload files properly.
    You should load all files in Your current system as its own variable so that while one loads you can still control a movie.
    So what type of end transitions do your files have?
    What exactly with this seems like youre getting an issue.. looking at it looks alright aside from the fact that some methods are not used at all by your class

  • Is this a bug? createdBy populated with value "1"

    I have a field in entity object mapped as historical column "createdBy". once I create a new record, this field populated as login user name. -- this works fine.
    However, after I specify this field "refresh after inserted/updated". this field populated with value "1" automatically once new record created. -- Is this a bug?
    BTW, the historical column "modifiedBy" does not have this problem.
    Thanks

    at javax.swing.JInternalFrame.setMaximum(JInternalFrame.java:890)
    at TestInterface.initComponents(TestInterface.java:48)What you posted there cannot be the entire contents of the method. According to the stack trace, your initComponents method, at line 48, calls the setMaximum method of some JInternalFrame object. However, the problem remains: Why a NullPointerException? It's possible there is a bug in the JVM, but that theory doesn't get your problem solved if it's true. And it's more likely (MUCH more likely for most of us) that it's a bug in your program. But what could that be? I looked at the API documentation for JInternalFrame.setMaximum and noticed this:
    "A maximized frame is resized to fully fit the JDesktopPane area associated with the JInternalFrame."
    I don't know how you would "associate" a JDesktopPane with a JInternalFrame, but possibly if you failed to do that, then references to the JDesktopPane would fail with a NullPointerException.

  • Loader Component SWF Audio

    How can I regulate the volume of an SWF that I load through a
    loader component? I am loading several SWFs, each has its own
    audio, so it's producing a cacophony of sound. I've already tried
    stopAllSounds(); and no luck.
    Any ideas? Thanks!

    Hi,
    Goto following link, will help you
    http://ryangoodman.net/blog/index.php/2008/02/14/adding_a_pre_loader_in_xcelsius_dashboar
    http://help.sap.com/businessobject/product_guides/xcelsius2008SP3/en/Xcelsius2008_FP3.1_release_notes_en.pdf
    http://saptechblogsxcelsius.blogspot.com/
    -Obaid

  • Loading External Swf with Other Swf Dependencies

    I'm trying to load an old project into a new project via swf. My old project had local external swf dependencies.In other words A.swf is the old project swf and it loads in B.swf and C.swf. I want to load A.swf into my new project. All the .swf file are local and will be loaded locally. Using the url and loader to load the old project's swf into the new project, I get an error that says that the stage must not be null. I have put A.swf, B.swf, and C.swf all within the same folder together in the new project. Is the correct approach? I'd like to know if this is even possible and if so how should I do it? Thanks in advance!

    Hmm I don't believe I have targeted the stage. Here's my code below.
    package ExergameShell.screens
      import flash.display.Loader;
      import flash.events.Event;
      import flash.net.URLRequest;
      import feathers.controls.Screen;
      import starling.core.Starling;
      import starling.events.Event;
      public class Leaderboard extends Screen
      private var url1:URLRequest;
      private var loader1:Loader;
      public function Leaderboard()
      addEventListener(starling.events.Event.ADDED_TO_STAGE, init); // necessary for all screens
      private function init():void
      url1 = new URLRequest("A.swf");
      trace(JSON.stringify(url1));
      loader1 = new Loader();
      loader1.load(url1);
      //Starling.current.nativeStage.addChild(loader1);
      //loader1.contentLoaderInfo.addEventListener(starling.events.Event.COMPLETE, resetFPS);
      private function resetFPS(event:flash.events.Event):void
      Starling.current.nativeStage.frameRate = 60;

  • Is this a bug? Interactive form with a simple script fails

    Hi all,
    I'm new here - please let me know if something is wrong with my post.
    I get an error when I open this pdf. (The text and fonts are violently nullified
    because the original pdf is confidential - but the error message is the same.)
    It's a simple kind of account sheet:
    Page 1:
    1499226 + 300000 - 276144 = 1523082,
    1523082 - 0 = 1523082,
    Page 2:
    1574326 + 300000 - 351244 = 1523082.
    The three numbers should be always the same.
    I can open and edit (i.e. input numbers to) it with any apps on my PC.
    (I mean Chrome and FoxIt. Adobe Reader is too strict to allow me to edit it.
    But I can edit the original PDF with Adobe Reader on my PC.)
    I can open it with Adobe Reader for Android.
    But I can not edit it correctly with Adobe Reader for Android:
    When I replace the "300000" with say "300001", I get an error
    "The value entered does not match the format of the field [ Text39 ]"
    and the calculated values are incorrect.
    (The three numbers don't match.)
    Could you tell me whether the pdf is to blame or not?
    If it's a bug in Adobe Reader for Android, I'll wait for a fix.
    If it's a bug in the pdf, I'll ask the author to fix it.
    Thanks in advance,
    Tamo
    2014/10/2 by tamo: More precise detail

    Welcome to Apple Discussions Burkett
    It may be that that object is a master object. I hope I can remember this since I'm not at my Mac right now (using a Dell PC at work ). Go to Format > Advanced > Make Master Objects Selectable. This post I made in another thread recently(with a picture) might help even more than my memory.

  • Loading external .swf with external images

    I have created a basic website and wish to load an external
    .swf file into it. The .swf loads fine but the images that are to
    load within that particular .swf do not. The images are external
    and load using this action script.
    btn1.onRelease = function (){
    loadMovie ("IMG_2812.jpg", _root.photo.empty)
    They load fine using just the .swf file but when the .swf is
    loaded within another document it doesnt load the imgs.

    add
    this._lockroot = true;
    to frame 1 of the main timeline of your external swf.
    retest.

  • Loading a swf with sound... now I can't stop the sound.

    I have an mp3 player that works standalone. When I load it
    into another
    movie I do it like so...
    musicHolder.sound_holder.removeMovieClip();
    musicHolder.createEmptyMovieClip("sound_holder", 29);
    musicHolder.sound_holder.loadMovie("radio/mp3player.swf",
    "GET");
    This works great, and the player loads and plays and all is
    great and
    wonderful. But now I want to close the player. If I do a
    removeMovieClip
    like this:
    musicHolder.sould_holder.removeMovieClip();
    Then the viual of the MC goes away, but not the sound. Is
    this because the
    sound is somehow loading into the _root timeline of the main
    movie loading
    the mp3player.swf?
    Please, a little help.
    acb

    this is inelegant but should work,
    musicHolder.sould_holder.removeMovieClip();
    stopAllSounds();

  • Is this a bug or a feature with audio regions?

    ok so I have an audio part in a project then copy/paste in a later part of the arrangement and after that change the size of the new copied part with the mouse(dragging from the end of it)it changes and messes up the original version as well. I just recently switched to Logic from using Cubase so is this some feature of having the regions linked together somehow or is it just working wrong?

    I found the part that talks about how copy/paste is supposed to work, and it turns out that the manual describes how people want it to work instead of how the app actually works. It says that copy/paste makes a copy (a new region) and the two can be edited independently. Copy/paste is NOT supposed to create a clone.
    Unfortunately, the app doesn't work the way the manual describes. Here's the relevant part from the manual:
    "To copy a region (method 2):
    1 Select the region, then choose Edit > Copy (or use the Copy key command,
    default: Command-C).
    This copies the selected region to the Clipboard.
    2 Set the desired playhead position by clicking on the Bar ruler.
    3 Choose Edit > Paste (Command-V) to paste the contents of the Clipboard into the
    Arrange. The paste will occur on the selected track at the playhead position.
    If several regions are selected, their relative time and track positions are retained. "
    "*Copied regions are actually true, independent replicas of original regions. Changes*
    *made to a parent region will not affect child copies.*
    If you want this type of behavior—where changes to the parent region affect child
    regions—make use of the Loop function (see “Looping Regions” on page 329), or
    create cloned or alias regions (see “Repeating Regions” on page 324).
    *When you copy an audio region, a new region is automatically created in the Audio Bin.*
    *The new region will retain the name of the original, with a sequential number added.*
    As an example, kickingloop.1 will be the name of a region copy, if the original region is
    called kickingloop. A second copy will be named kickingloop.2, a third kickingloop.3,
    and so on."
    Looks like either the manual or the app is wrong. Hopefully apple will actually read the bug reports and fix the app.

  • Memory leak: critical (blocker) bug with unloading SWF with Vector. T

    Here's the original bugreport https://bugbase.adobe.com/index.cfm?event=bug&id=3071138
    dated december 2011 (add actually appeared even earlier). Despaired of getting any Adobe's team attention I even submitted it again today (as of new releases of FP 11.3 and AIR 3.3 betas).
    Chris Campbell, seems like u're active on this forums. Can you give any feedback?

    This bug has definitely been around a while.  The good news is that it's currently slated "Open / To Fix" for our AIR 3.3 release which is currently up on labs.adobe.com  (our internal number is 3072792).  We've been able to reproduce the problem and our development team is actively investigating.
    The best way to make sure this gets continued focus is to recommend to everyone you know who is affected by this bug to take a minute and cast their vote on the public bug.
    Bug 3071138 - Cannot unload (Loader.unloadAndStop) SWF with Vector.<T>

  • Loading external swf fonts created with fontswf, loaded with a Loader, compatible with iOS

    Let me immediately start out by saying that I do in fact have a current working solution for using embedded fonts, generated by fontswf and working in an AIR ActionScript mobile application, and also currently working fine with iOS.
    My current app needs CFF fonts, so I currently use the fontswf tool to pre-generate the .swfs using:
    fontswf -4 -a [SomeAlias] -o [SomeFont.swf] [SomeFont.ttf]
    and then I am currently embedding them in my app source code .as for compilation using:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    I then have no problem registering them using Font.registerFont(SomeFontClass) and everything works fine.
    However, I would prefer to take the use of these swf fonts one step further and load them dynamically using a Loader so that I do not have to take the hit of having multiple CFF font swfs embedded in the main compiled SWF and so that I could even load an unknown future set of fonts without having to supply them as part of the app build.
    Now I have seen and read many blogs and tutorials where people have exported font swf from Flash Builder where you add an explicit 'Class' name or even made standalone .as static files compiled into standalone swfs only including the two lines:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    so that you also have a 'Class' involved. Then people use some form of appropriate applicationDomain.getDefinition("className") as Class
    to pull out the class for the font registration.
    My question is, how does one perform the same font loading and registration of fonts using a Loader only loading the .swfs produced directly from fontswf?
    It seems only a DefineFont4 is tagged in the swf, there doesn't seem to be a 'Class' per se to call on.
    More importantly, iOS apps cannot load external swfs with code in them, so my understanding is any extra wrapped swf that would contain a custom Class technique would fail the iOS requirement of only having one main SWF with any ActionScript compiled code.
    Is there an alternative to the 'Class' technique by grabbing the DefineFont4 tagged resource from the swf and instantiating a proper working Font class from that? One that would still be compatible with the restrictions placed on AIR mobile apps running on iOS?

    Ironically, just after posting this, Adobe released AIR 3.5 beta onto labs, and added multiple SWF support for iOS.
    While this new support makes it easier to manage your content across multiple SWFs and technically allows you to use the class based separate .swfs for each font if desired, the system still requires that all these SWFs be present at compile time when making the final app .ipa for iOS.
    So this still doesn't solve trying to load fonts after the app is already built. For example, as part of a downloaded in-app purchase mechanism.

Maybe you are looking for

  • What to do next with my defective iMac problem?

    I've had numerous 27" iMac replacements and now it seems as if I'm SOL. I've had to have quite a few iMac replacements for my 27" for a bad airport card, non functional bluetooth, cosmetic damage (imac had giant scratches on the front of it) and bad

  • External Hard Drive (USB3.0) only works through USB2.0 hub

    For quite a while now some of my external hard drives have not worked when directly plugged into my Macbook Pro (Mid 2012 running 10.8.5). They work perfectly when plugged into a USB hub and then into the macbook but not directly to the mac. Standard

  • Problem with Adobe Send Email functionality

    I have come across an issue in Adobe Reader 9 where if a PDF doucment loads with an IE frame, and you click the 'Send Email' button, the subject line is blank. Example URL: http://sc.openoffice.org/excelfileformat.pdf On clicking the Send Email butto

  • Corrupt Video On External Drive

    Hi When importing video from my Cam Corder to the main drive on my iMac the video imports perfectly every time.  But when I import to my external drive there is sometimes fractions of the clips that look corrupted.  Its just for maybe half a second o

  • Finding the XML file when importing ENH4 from SAP DVD

    Hello, We are installing the ENH4 from the SAP DVD 51033594, but in the DVD there is no xml file. How can I get one? Our Solution Manager is not yet properly configured as the installation is new. Thanks and best regards, Ana