Importing Flash Pro library symbols from Starling class

Very new to Starling. I have succesfully created a project and seen some great performance when scrolling the pages in the online comicbook I'm making.
However, I need to place interactive, invisible hotspots on top of my comicbook pages. Placing these hotspots via code would be quite cumbersome - it would be much better to design these interactive layers in Flash Pro so I can drag/drop their exact placement. The structure I want is:
NORMAL STAGE LAYER -> Interactive hotspots
on top of
STAGE3D LAYER -> Comicbook pages
I'm aware that the hotspot layers won't run on the GPU, only the pages underneath. But I'd like to try it out anyway.
However, once I've created the hotspot layers in Flash Pro and given them linkage names, I can't figure out how to import them onto the comicbook pages. This is obviously because they are flash.display.movieclips and the Starling class that tries to import them expects Starling movieclips.
Is there any workaround for this? Either a way to be able to refer to both types of movieclips from the same class (preferably) - or a way to create two classes that add the pages and the hotspots respectively. Code examples would be great.

Have you perhaps considered using this:
starling.core.Starling  - Native Overlay
Not that I'd do that myself. I know we all want our cake and eat it too but I really think you should work within the framework and re-create the hotspots using Starling sprites and add listeners to them. You can read the original flash hitareas x/y position as well as height and width. If it's just rectangles, that's all you need to know to generate the hit area in Starling. Even if it's not just rectangles you can draw the Flash hitarea object (assuming it's a flash symbol) into a Starling object as you're most likely doing with the comic book pages themselves. You just need to apply listeners.

Similar Messages

  • Flash pro css3 update from f8

    Hi,
    I'd like to install flash pro cs3 pro on my new Windows 8 pc.
    I have a flash8 licence and cd-rom. The F8 installation on the new pc is ok.
    But  how can I download the cs3 update that I bought and for rwhich  I have the licence.
    Thank you.
    Best regards.
    jm
    PS:
    - I didn't see cs3 update from f8 on Adobe download page.
    - I should have the same problem -may be- to get CS3 to CS5 update that I bought too !

    Manually update Creative Suite  6 products
    Go to the Adobe.com Product updates site and choose the update you want to download.
    When the download completes, start the update by double-clicking the Set-up.exe (Windows)
    Prompted to shut down conflicting applications, do the following:
    Windows
    Right-click the taskbar and select Task Manager.
    Select the Processes tab, select a conflicting process, and click End Process.
    Repeat for any additional conflicting processes.
    Check to see if the update downloaded successfully.
    \Users\[username]\Local\AppData\Adobe\AAMUpdater\1.0\
    Sarika

  • Editing a library symbol from ActionScript

    In the authoring environment I can edit a library symbol and
    all on-stage instances based upon it reflect the changes. How can I
    do the same thing in ActionScript? There seems to be no way to
    address a library symbol.

    that's correct, at least with actionscript. you can edit
    library symbols with jsfl.

  • NEED TO KNOW HOW CONVERT GIF FILE TO SYMBOL FROM DOCUMENT CLASS

                                                ROBERT LEAHONG
                                      COMPUTER PROGRAMMER / ASP Web Devloper
    Hello,
            I need to convert a GIF file (PICTURE) to a symbol (Button) From within The Document Class using ActionScript 3.0 .
    Thanks in advance for your help.

    So you imported a .gif into the library and need to get to it from the document class? If that's the case you need to  right-click the image in the library, select properties, select the ActionScript tab and then set it to export for ActionScript. Give it a class name - I'll use myGif for example. You'll see it will have a base class of BitmapData...
    Then in your document class you can just instantiate it like:
    var myImageData:BitmapData = new myGif();
    You can turn it into a useable image that you can place on stage by putting it into a Bitmap object:
    var myImage:Bitmap = new Bitmap(myImageData);
    If you want to make a button out of it, ie make it clickable - stick it into a Sprite:
    var mySprite:Sprite = new Sprite():
    mySprite.addChild(myImage);
    addChild(mySprite);
    mySprite.addEventListener(MouseEvent.CLICK, clicked);
    function clicked(e:MouseEvent):void
         trace("clicked");
    HTH

  • Trying to Import my iTunes Library Retrieved from a Crashed Mac on my New Mac

    Hi all,
    My old mac laptop crashed and I had the contents of it transferred to my new MacBookPro laptop. My itunes folder from the old mac laptop is now on my new laptop's desktop but I can't find a way to import my old itunes library to the new one. Which of the old files do I have to move and where, please? Thanks in advance for your help.
    Al
    My old itunes folder's content reads like this:
    -itunes:
    -album artwork
      cache
       cloud
       download
    -iTunes Library 2011-12-28.itl
    -iTunes Library 2012-07-25.itl
    -iTunes Library Extras.itdb
    -iTunes Library Genius.itdb
    -iTunes Library.itl
    -iTunes Media
    - iTunes Music Library.xml

    Go into iTunes prefs>Advanced - check that the path to your iTunes is correct.
    It should look similar to this - /users/YOUR ACCOUNT/Music/itunes/itunes music - if the path is not correct then select the 'change' option and point the way.
    If you have the ! Next to the tunes then the path is incorrect. This doesn't mean that the files are missing - just iTunes cannot find the way - iTunes is a data base manager and as such can lose track if things are moved in the Finder.
    MJ

  • I purchased adobe flash pro cs5.5 from a distribution center in Utah with "Only for dist. in Asia Pa

    Why does the box have an "Only for distribution in Asia Pacific and Japan" sticker on the side if I purchased it from a distribution center in Utah? Can I still use it? What are the differences?

    Would it be possible for you to post your solution to the problem here?
    I am having the same problem with CS5.5
    Thanks;
    Zach

  • Features Disabled in Flash Pro CC

    I recently purchased Flash Professional to use for animating, after trying it out. During the period where I was using the trial version of the software, I noticed that certain options were not available to use, but I assumed that it was because I was using a trial. After purchase, the features are still disabled. Some of them are extremely important for me to use, like being able to change to a blend mode other then "Normal" or "Add", and being able to use the Hairline stroke width preset for shading.
    I've searched online extensively and have not found an answer. Adobe also doesn't appear to mention these features as being disabled in the trial version, which is even more confusing. Is it me, or them?
    My specs are:
    OSX 10.9.2 (Mavericks)
    2.9 GHz Intel Core i5
    8 GB 1600 MHz DDr3
    As you can see, it doesn't let me use these features. There are other disabled features as well, such as:
    Horizontal and Vertical in Scale
    Miter
    I can only change the top left corner in the "Rectangle Options" on the Rectangle tool.
    Can't import video.
    Among others.
    Any help would be appreciated, thanks!

    Hi,
    You must be using an HTML5 Canvas doctye in Flash Pro where you see these options as disabled. This is because of some limitations in the CreateJS export or browser support for some of these features.
    If you create a regular AS3 doctype(for Flash), it'll have all of these options enabled.
    There are no limitations in terms of features in the trial version and full version of Flash Pro CC, apart from the time limit ofcourse.
    Let me know if you still face any issues.
    -Nipun

  • Importing flash symbols from an external SWF using URLrequest

    Hello.
    I'm trying for several days now to properly import flash symbols into a flex application.
    i can't only @Embed because the swf file that contains the skins will not be available locally so i need to use URLRequest.
    This is what I've got so far.
    1. I created a flash file, lets call it foo.swf that contains several elements in the library and each element has both `Export for ActionScript` and `Export for runtime sharing` on. one of the elements is called 'test' which is a movieclip of an image.
    2. i created a flex project that creates the swf flashSkins.swf that contains the following Wrapper class:
            package
                import flash.display.Sprite;
                    public class Wrapper extends Sprite
                     [Embed(source="foo.swf",symbol="test")]
                        [Bindable]public static var test: Class;
    I tested to make sure that this class properly fetchs symbols from the flash file properly
    using the following code:
        <fx:Script>
            <![CDATA[
                public var wrapper:Wrapper;
            ]]>
        </fx:Script>
            <mx:Image source="{Wrapper.test}"/>
    it loads the image and shows it properly.
    3. I created another swf file that will fetch the flashSkins swf and import the Wrapper class from it. this is where i fail.
            public function loadSkins():void
                    bgLoader = new Loader();
                    var bgURL:URLRequest = new URLRequest('http://files.xpogames.com/flashSkins/flashSkins.swf');
                    bgLoader.contentLoaderInfo.addEventListener(Event.INIT,onLoaded);
                    bgLoader.load(bgURL);
                public function onLoaded(e:Event):void {
                    var clazz:Class = bgLoader.contentLoaderInfo.applicationDomain.getDefinition('Wrapper') as Class;
                    var a:Object = new clazz();
                    theimage.source=a.test;
            ]]>
          </fx:Script>
            <mx:Image id="theimage" />
    I tried using getDefinition with 'wrapper' or 'Wrapper' but on both cases i get an error that the variable is not defined.
    any ideas?

    Did you try using the Event.COMPLETE instead of Event.INIT?

  • BUG - saving with both flash pro CS6 and CC causes library symbol names to change

    Concise problem statement:
    If you save with flash pro CC and then save with CS6, in the library panel, symbol names are changed.
    Specifically, pipes | and trailing spaces ("|Divider", "Divider ") get replaced by escape sequences ("&#124Divider", "Divider&#032" ...) Ampersands & and number signs # also get replaced, such that symbol names grow exponentially if you continue to save with both flash pro CC and CS6 ("Divider&#032", "Divider&#038&#035032", "Divider&#038&#035038&#038&#035035032" ...) This makes it difficult to transition a team from CS6 to CC.
    Sometimes, the original-name symbol remains, and an escaped-name symbol is also created. In this case, the children are removed from the original-name symbol, so it doesn't render anything to the screen; a mysterious, silent failure.
    Steps to reproduce bug:
    1. Create a library symbol named "|", save an xfl with flash pro CC, and close.
    2. Open, save, and close with flash pro CS6.
    3. Open, save, and close with flash pro CC.
    Results:
    A library symbol named "&#124".
    Expected results:
    A library symbol named "|".
    I submitted this bug with the bug form, and also with adobe bugbase (in case it isn't obsolete) - I'm just trying to maximize my chances of getting a fix.  Has anyone else encountered this bug?

    Hi,
    We are aware of this issue and its open for investigation internally. This issue is observed when you have certain special characters in your symbol names and try to open that file in Flash CS6. This happens due to a change in the way symbol naming is handled in Flash CC and in Flash CS 6.
    As a workaround, request you to use only Underscore or Hyphen as special characters while naming symbols or library layers etc.
    We shall update you as soon as this has been fixed.
    Thanks,
    Nipun

  • Flash Pro CS6 - consistent crash - duplicating library symbol

    This is similar to a bug reported for CS5.5, then fixed in the update.
    Every time I duplicate certain library symbols, flash crashes consistently.
    Someone from Adobe can contact me, and I will send source files for test.
    Filippo

    It's the same issue as this one:
    http://forums.adobe.com/message/5793195#5793195
    This has been fixed in Flash CC with the 13.1 update. In case you're working on a previous version, make sure to keep all your font items in the library root (not within any folder) to avoid this crash.
    -Nipun

  • Flash Pro v 11.5 won't load graphics from saved .fla

    I have downloaded the latest flash pro cs5.5 package and installed it on 3 different windows XP machines and I get the same bad result.  This is Flash Pro 11.5.0.325 on  XP SP3.
    I made a small slideshow swf consisting of two jpeg images and nothing else.  No music or other bells or whistles.  Just 2 images converted to symbols, some keyframe/tween definitions with altered alpha channels.  The slideshow runs perfectly and as I expect.
    I save the slideshow as a .fla file.  I need to add some more functionality from this plateau to show that the product can do what we need to the boss.
    When I later load this .fla file,  I don't see my graphics on the stage anymore.  I right-click on the images and click on the option in the dialog to update the images.  I see that the white stage now has the image I expected.  When I close the dialog that lets me update the image flash pro abends and I get the crash dialog from microsoft.
    Why can I make this slideshow and have it run perfectly, save it successfully (so I think) and then it won't load properly or let me work on it after one save?
    I physically called customer support which would not help me.  I must have gotten Nancy Pelosi for support because they wanted to make me buy the package so I could find out what was in it that was causing the problem.  I think my boss would have some sharp instructions for me if I had the company spend close to a grand for something that does not work in the first place.
    I have updated the software when the system  tray tells me to,  I have installed the software multiple times on one of the machines.  No matter,  I get the same result in every case.  I thought the software was a full version for 30 days trial but I am now wondering if it is a lameware version that needs purchasing before it will work completely.
    Can anyone help me?  I searched the forums (and the internet) and could find no mention of this problem.  I find that hard to understand when I get it so consistently.
    TIA

    Hi Max,
    We are currently working on a way to handle these type of images better in Flash. In the mean time, please see below on how to fix these images.
    1. open the JPG in Photoshop.
    2. re-save as a JPG with a different filename.
    3. import the new JPG.
    These steps correct the JPG header bytes and allow Flash to correctly read them from XFL files.
    In your case specifically, after step 2 you should use the bitmap properties dialog in Flash Library panel to reimport the image. After importing you may or may not see a change on stage. Please save the file, close, and reopen the file. The images will appear on stage correctly.
    Thank you for bringing this to our attention and thank you for the quick response.
    Quynh

  • Flash Builder flash pro project doesnt show code hintings for library assets exported for AS ?

    Flash Builder flash pro project doesnt show code hintings for library classes exported for AS ? So is there any way I can fix this ? Only way I could think of is export a swc from the fla... is there a more convenient way to do this ?

    anyone ?

  • Attaching a class to multiple library symbols

    Hello again,
    I'm so grateful for the help I've gotten so far!
    Here's the situation: I wrote a class called ButtonGlow in
    ButtonGlow.as. I made a movieclip with the "Base class:" of
    "flash.display.MovieClip" and the "Class:" of "ButtonGlow". This
    actually works!
    Then I created a 2nd button on the stage. I right-clicked on
    that to enter the linkage information, but it would not let me
    enter "ButtonGlow"
    The error is:
    Please enter a unique class name that is not associated with
    other library symbols
    I thought that was the purpose of making a class
    I can't imagine making all my buttons in AS, because they are
    graphics and I have to see them together. Doing it all in AS is
    like doing it blind.
    I would appreciate any insight from the Wise Ones.

    Hello,
    Can you upload the .fla so that I check?
    Henri
    http://www.kitmap.fr
    http://www.absyx.fr
    "amidreaming" <[email protected]> a
    écrit dans le message de
    news: fplm18$9ah$[email protected]..
    > Hello again,
    >
    > I'm so grateful for the help I've gotten so far!
    >
    > Here's the situation: I wrote a class called ButtonGlow
    in ButtonGlow.as.
    > I
    > made a movieclip with the "Base class:" of
    "flash.display.MovieClip" and
    > the
    > "Class:" of "ButtonGlow". This actually works!
    >
    > Then I created a 2nd button on the stage. I
    right-clicked on that to enter
    > the
    > linkage information, but it would not let me enter
    "ButtonGlow"
    > The
    > error is:
    >
    > Please enter a unique class name that is not associated
    with other
    > library symbols
    >
    > I thought that was the purpose of making a class
    >
    > I can't imagine making all my buttons in AS, because
    they are graphics and
    > I
    > have to see them together. Doing it all in AS is like
    doing it blind.
    >
    > I would appreciate any insight from the Wise Ones.
    >

  • Calling PopUpManager from a class in a library

    I have a class for logins that I have put in a Flex Library
    Project.
    Part of the login is a popup form(mxml) I have created and is
    in the library.
    The problem I have is this line:
    loginPopUp =
    LoginForm(PopUpManager.createPopUp(this,LoginForm,true));
    The error I get is:
    1067: Implicit coercion of a value of type
    dataManagers:LoginManager to an unrelated type
    flash.display:DisplayObject.
    The parent “this” is no good since its parent
    should be the application that called the logon.
    Can I reference the caller from the LoginManager class I
    created to feed to popupmanager as the parent for the popup?
    The code in the app using the llibray that relates to this
    (to save space) is:
    import dataManagers.LoginManager
    public var lm:LoginManager = new LoginManager();
    lm.initServices();
    //LoginManager.as
    package theLoginManager {
    import flash.events.Event;
    import mx.managers.PopUpManager;
    public class LoginManager {
    import LibraryViews.Login.LoginForm;
    public var loginPopUp:LoginForm;
    public function initServices() : void
    Alert.show("Login start");
    appCFC = new RemoteObject("ColdFusion");
    appCFC.source = "CFC.Users.usersGateway";
    appCFC.addEventListener(FaultEvent.FAULT, server_fault);
    appCFC.init.addEventListener(ResultEvent.RESULT,init_result);
    appCFC.getById.addEventListener(ResultEvent.RESULT,getById_result);
    displayLogin()
    private function displayLogin():void{
    loginPopUp =
    LoginForm(PopUpManager.createPopUp(this,LoginForm,true));//THIS IS
    THE PROBLEM LINE
    loginPopUp.addEventListener("loginSuccessful",
    removeLoginPopup);
    //Removes login form
    private function removeLoginPopup(event:Event):void{
    PopUpManager.removePopUp(loginPopUp);
    }//End Class
    }//End Package
    //LoginForm.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Form width="100%" height="100%"
    defaultButton="{loginBTN}">
    <mx:FormItem width="100%" label="Username"
    required="true">
    <mx:TextInput id="email"
    width="175" text="mltv"/>
    </mx:FormItem>
    <mx:FormItem width="100%" label="Password"
    required="true">
    <mx:TextInput id="password"
    displayAsPassword="true"
    width="175" text="nuffer"/>
    </mx:FormItem>
    <mx:VBox width="100%" horizontalAlign="center">
    <mx:Button id="loginBTN" label="Login"
    click="authenticateUser();" fillColors="[#80ff00, #80ff00]"/>
    </mx:VBox>
    </mx:Form>
    </mx:TitleWindow>

    I solved it by passing the parent when I called it from the
    parent project:
    lm.initServices(this);
    and then created a var in the .as file:
    private var theCallingParent:DisplayObject;
    theCallingParent = theParent;
    Then used that variable when I called the popup:
    loginPopUp =
    LoginForm(PopUpManager.createPopUp(theCallingParent,LoginForm,true));
    Sorry to clog up the board.

  • Flash Pro CC to CS6 fla issue - Bad library items and new library items with unicode names

    I've noticed a strange issue when opening fla files in Flash Pro CS6 that have been edited in Flash Pro CC. If there are library items in the fla with names that include symbols such as ">" or ".", unicode named symbols are created and the original symobls are unuseable. There are many symbols that cause the issue and the symbols just have to be a part of the name.
    Steps to reproduce:
    1) Create an fla file in Flash Pro CC.
    2) Add a single movieclip to the library with a symbol name of ">".
    3) Save the file.
    4) Open the file in Flash Pro CS6.
    Results:
    Library contains 2 symbols, one named ">" and one named "&#062".
    Expected:
    There's one library symbol named ">".
    After that double clicking the symbol named ">" will do nothing and instances of the symbol will have all their content removed.
    This issue is breaking a JSFL script I wrote that loops the library items. When the script attempts to access item.layerCount the script errors out. My team is blocked from using Flash Pro CC in combination with Flash Pro CS6 because of this issue. The only good solution I can think of is to all switch to CC at the same time to avoid converting our fla files to CS6 from CC.
    Any info on a fix for this issue would be appreciated.

    The dialog you get when you open the FLA in CS6 is that new features may not be available in CS6 so you should save it to a new file to avoid corruption. There's no "save down" from CC to CS6 (yet). So opening the file in CS6 isn't advisable in the first place.
    That said, library items are supported between them both so to your point, yes, I get the same exact behavior. A single symbol named ">" in CC produces 2 library items in CS6 named ">" and "&#062", and the original item is lost. Although I'm not sure where I'd classify this issue being you shouldn't be opening a newer version file from an older version of the application. I did also try XFL, same issue. If they decide to create a save-down to CS6 and this still exists, I'd consider it a bug.
    As for a fix, I think about the only thing that comes to mind is identify the characters causing issues and run a JSFL in CC to rename the library item temporarily to something you know will work fine. Then once back in CS6, run the JSFL opposite to convert them back to what you want. e.g. "this > that" to "this XYZ that" in CC, then "this XYZ that" to "this > that" in CS6. Shouldn't be too hard to map as long as the replacement is unique.

Maybe you are looking for

  • CustomLoginModule always error "Invalid null input: name"

    Hi All, I'm trying to create a custom LoginModule. I've changed the autorization.xml, created a new login-stack and set the  LoginModuleClassLoaders property. But whatever I do I always get the message "Unknown message (ID = Invalid null input: name)

  • Installing lms 4.2.3 for windows error

    Dear, im trying to install Cisco prime LMS 4.2.3 for Windows 2008 R2 standard x64. however i have received this error message. ----- end of Dependency Handler Log File -----Dependency Handler Errors ERROR: csjre not found ERROR: Component csjre is no

  • Question about Media Player for Mac??

    Hello guys, I'm a new guy for mac. I met a problem, my windows mediaplayer cant use yesterday. When I click the icon, it displayed a error message. When I clicked the send roport button, the mediaplayer will shut down automaticlly. And how to make sa

  • I need to be able to "swap" themes...

    I have two slide decks that have the exact same content but need to be themed differently (different clients, etc). Is there a way for me to "swap" themes so that I only have to update in one place?  When I've attempted this, Keynote seems to not "ma

  • Procedure to grab PDF from fileSystem store into LONGRAW Datatype.

    Hi All, I have found there are ways to store PDF's from file system into BLOB datatype, but not into LONGRAW. In PeopleSoft we have only LONGRAW type. Can any one send some hints to load PDF's from filesystem into Oralce 10g LONGRAW column. Thanks in