Flash 6 application upgrade AS1 - AS2 loaded asset gotcha

Basically we are upgrading a large flash site from a flash 6
AS1 model, to a Flash 7 AS2 model.
This has gone well with one exception - the site has a
resource of nearly 2500 flash assets that are loaded in by the main
application. Within these assets are function calls without scope
for example -
someFunction();
Which in Flash 6 AS1 would be caught by the funciton defined
as _global.someFunction();
We have automated though JSFL the conversion of these
function calls prefix them to give them scope - however
re-publishing these assets then causes other problems with font
mappings, etc... So this means a manual run trough is still
required.
We have also tried to patch the loaded movies by attaching
functions to the movie and assigning them to the correct ones in
our main application - but this too fails - for instance using a
patch such as -
loadedMovie.someFunction = function(){
_global.someReplacementFunction();
typeof(loadedMovie.someFunction) retruns "function"
however a call such as
someFunction();
on the seccond frame of the loaded movie fails to trigger the
call and is in-effective. Could this be because the loading movie
is AS2 and is not sensitive to the loaded assets script model?
If anyone out there has any ideas of a work around this type
of issue then please post - as manually processing 2500 assets is
not something we will relish...

Basically we are upgrading a large flash site from a flash 6
AS1 model, to a Flash 7 AS2 model.
This has gone well with one exception - the site has a
resource of nearly 2500 flash assets that are loaded in by the main
application. Within these assets are function calls without scope
for example -
someFunction();
Which in Flash 6 AS1 would be caught by the funciton defined
as _global.someFunction();
We have automated though JSFL the conversion of these
function calls prefix them to give them scope - however
re-publishing these assets then causes other problems with font
mappings, etc... So this means a manual run trough is still
required.
We have also tried to patch the loaded movies by attaching
functions to the movie and assigning them to the correct ones in
our main application - but this too fails - for instance using a
patch such as -
loadedMovie.someFunction = function(){
_global.someReplacementFunction();
typeof(loadedMovie.someFunction) retruns "function"
however a call such as
someFunction();
on the seccond frame of the loaded movie fails to trigger the
call and is in-effective. Could this be because the loading movie
is AS2 and is not sensitive to the loaded assets script model?
If anyone out there has any ideas of a work around this type
of issue then please post - as manually processing 2500 assets is
not something we will relish...

Similar Messages

  • Flash Player upgrade won't load

    I tried to upgrade Flash Player on Windows 7 Pro. 50% through download get message to close Explorer. Explorer is not open. Tried as "run" "save and run" saved as a download and ran separately. Java enabled in security and trusted sites.

    uninstall your flash player, http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
    then manually download and install,
    Flash Player for ActiveX  (Internet Explorer): http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player_ax.exe
    Flash Player Plug-in (All other browsers):  http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player.exe
    Flash Player (Mac OS X):   http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_flash_playe r_11_osx.dmg

  • Resizing the flash application dynamically...

    Is it possible to change the size of the flash application so
    it takes up more or less space? Mainly in the realm of making it
    taller vs. shorter vertically, and thus the size of the webpage
    that holds that flash application will also change. Generally, the
    page that contains it will be of less size than the app itself and
    thus the size of the page will depend on the app. Can one resize an
    app and how so?

    My research on the web leads me to believe it's not possible
    to resize the flash application once it's loaded on the user's
    browser. I found one page with a cheat that requires a ton of code
    and counts as a kludge. There must be some other way though.

  • Built-in iSight produces heavy load (Tiger) using flash applications

    On my MacBook the built-in iSight produces a heavy processor load when the camera is used in a flash application and the skype viedo beta.
    The load is about 120% in Firefox, Safari and Skype, when the application connects to the iSight camera. In other applications (iChat, photoBooth) I don't have that problem. Under Windows, the same application in the same Browser (Firefox) works just fine with round about 11% processor load.
    Does anyone else has this problem (maybe in other applications) ??
    Mac Book 2Ghz 2Gb 100GB Mac OS X (10.4.7) BootCamp 1.1

    I like the idea to put a camera in the computer.
    I have not seriously used a macintosh since 1992, when I was in 2nd grade. Ever since I tinkered on my dad's mac now and then when he was not looking. But, I need to know where in the settings do I go to enable the built-in iSight camera to work on the web or any flash application
    MacBook Pro   Mac OS X (10.4.10)  
    MacBook Pro   Mac OS X (10.4.10)  
    MacBook Pro   Mac OS X (10.4.10)  
    MacBook Pro   Mac OS X (10.4.10)  

  • Help w/speed of Flash application - Use load vars, flash remoting or other....

    I'm looking for a little help with a dynamic Flash
    application I am building with ColdFusion integrated. I need the
    Flash to load and interact with a SQL Server database as quickly as
    possible as the user interacts with the Flash application. I have
    done research and thought that Flash Remoting was the way to go
    especially when using ColdFusion with Flash, but I am experiencing
    a lot of lag time when a user tries to load more data.
    So I'm looking for some advice on what is the fastest/best
    way to pass data back and forth between Flash and ColdFusion.
    Currently I am using Flash Remoting via ColdFusion web services
    (first time using this), but again with the lag time I am receiving
    I am thinking maybe my old way of using LoadVars would be faster? I
    am also open to any other means to pass data from ColdFusion/SQL
    database to Flash that exist. I am just looking for the quickest
    way for my customers to interact with the Flash piece.
    Thanks for all your help!

    Also would like to note that internet explorer does not have this problem, I would prefer to figure out why this is happening and resolve it as I hate IE.

  • AS1/AS2 to AS3 onClipEvent(load),onClipEvent(enterFrame)

    onClipEvent (load) {
         total = _root.getBytesTotal();
    onClipEvent (enterFrame) {
         loaded = _root.getBytesLoaded();
         percent = int(loaded/total*100);
         text = percent+"%";
         gotoAndStop(percent);
         if (loaded == total) {
              _root.gotoAndPlay(2);
    Dear all,
    I found a sample code that is writen in AS1/AS2 to see if the load is finished, If finish loading, it will go to the next frame. How do I convent this into AS3? This is my first time looking at AS1/AS2 code, especially onClipEvent (load), _root.getBytesTotal(), onClipEvent (enterFrame), _root.getBytesLoaded(),_root.gotoAndPlay(2).
    Can someone help me out with this?
    Thanks,
    -Zainuu

    Hi, Thanks for the reply
    stop();
    this.addEventListener(Event.ENTER_FRAME, loading);
    function loading(e:Event):void{
        var total:Number = this.stage.loaderInfo.bytesTotal;
        var loaded:Number = this.stage.loaderInfo.bytesLoaded;
         trace(total);
         trace(loaded);
        if (total == loaded){
            play();
            mc_Loader.visible=false;
            this.removeEventListener(Event.ENTER_FRAME, loading);
    I tried to trace the total bytes and loaded bytes, it returns me
    total = 405668
    loaded = 405668
    Is there a way to show the loaded bytes starting from 1 till 405668? I'm trying to find out if it is really loading the thing. Otherwise is there any other ways to slow down the loading for a bit because it only shows my loading bar for 0.5secs, not really sure if its really loading it...

  • Flash player 10.1 crash when loading assets

    My existing site crashes when trying to load assets under flash player 10.1. The site is built on PureMVC and uses BulkLoader to load assets from Amazon S3.  I'm trying to debug but nothing has worked so far except removing the loading code completely. Anyone else have similar problems?

    This is my loading code:
    for each ( var assetInfo:AssetInfo in _assetsArray )
    if ( assetInfo.slateURL != "" ) // NOT ALL AIs have slates (e.g. custom)
      var li:LoadingItem = _loader.add(assetInfo.slateURL, { id: assetInfo.name, context: context, priority:priority  } );
      // li.addEventListener( Event.COMPLETE, li_complete ); // LISTEN PER ITEM
      priority--;
    Commenting out li.addEventListener makes it quit crashing. Still investigating.

  • Many Flash applications broken on our sites after install of 10.3.181.14

    It appears that we now have problems with numerous applications that load external SWFs. Common thread seems to be paused playback at frame 1 and a lack of ability to control these loaded assets programatically. I am looking for feedback from others (similar stories, fixes, links).
    Frustrated.
    Michael

    Some additional information.
    I also have browsers crashing, but am using 10.3.181.18
    Browsers that crash include safari, IE9 and chrome
    My graphics card is a PowerColor HD4350 ATI card, driver 8.850.0.0, dated 4/19/2011, which worked fine with the prior version of flash.

  • Embed a Flash Application into a Flex Application

    Hello everybody,
    I'd like to know if there is a way to embed a Flash
    Application into a Flex Application. My goal is to wrap Flash apps
    in Flex Modules, and I don't know how to do it.
    I know it is possible to embed swf by using @Embed and an
    mx:Image tag, or to use flash content by creating a flash swc
    component. However these two solutions don't allow to call the
    methods of the Flash app.
    On the other hand, it is possible to load a swf file via the
    Loader Class, and then call the methods via loader.content. But
    with this solution I can't embed the swf in my flex application and
    I have to load it at runtime.
    Any ideas ?

    Look into SWFLoader.
    Be aware though, you can not directly access AS2/FP8/Flash8
    swf's from within an AS2/FP9 app. Local connection is used in this
    case.
    There are dataType and timing issues with SWFLoader. Here is
    a complete example:
    http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=690
    Tracy

  • Firefox has trouble with all flash applications

    My favorite forum website recently dropped support for IE. This specific reason, is the ONLY reason I stopped using IE. Firefox has a much closer resemblance to IE than chrome, and this is the ONLY reason I chose it over chrome.
    Everything works fine, except every and all flash applications.
    Youtube, animated ads, games... everything causes huge cpu load spikes and lags like crazy (I'm sure it would cause a crash on a basic computer). I have a very high end rig, the problem is not my hardware, or internet speed (100mbs). It is entirely fire fox.
    All flash apps work FINE on IE/chrome, I tested them. Please offer support, thank you.

    Crashes or other problems with certain multimedia content in Firefox (such as Youtube videos and Flash animations or games) can often be resolved by performing the steps in these Knowledge Base articles:
    * [[Flash Plugin - Keep it up to date and troubleshoot problems]]
    * [[Flash 11.3 crashes]]
    * [[Flash 11.3 doesn't load video in Firefox]]
    On Windows Vista and above, you can disable Flash protected mode by following the instructions on these pages:
    * http://forums.adobe.com/thread/1018071#TemporaryWorkaround
    * http://kb.mozillazine.org/Flash#Disabling_Protected_Mode_in_Flash_11.3
    (See [http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html this Adobe blog post] for technical details about Flash protected mode.)
    For recent updates for Adobe Shockwave Flash, please update your version to 14.
    Please refer to the security updates [http://helpx.adobe.com/security/products/flash-player/apsb14-18.html and Adobe Security Bulletin] for more information.
    <!--Please also note that html5 may need to be enabled to view some videos on youtube [https://www.youtube.com/html5]-->
    <!--[version 13]Please refer to these security issues [http://helpx.adobe.com/security/products/flash-player/apsb14-13.html and Adoble Blog post] for more information on the security update. -->
    Please tell us if this helped!

  • A required application library failed to load and the product cannot continue

    Seems like I go through this problem time and again with Photoshop + Acrobat CS2 and still have yet to resolve a way of fixing it short of completely wiping my drive and re-installing Windows (XP Pro) The error is "application library failed to load and the product cannot continue"
    If there is anyone out there that has figured out a way to fix this issue please fill me in.
    This time I went as far as a complete and though removal of all Adobe products from the system and the registry and then completely reinstalled the product.
    I have forgone purchasing CS3 because of this issue as I am 99% sure that it has still not been resolved.
    Basically Photoshop and Acrobat are useless at this point and I am using an old version of Picture Publisher and Macromedia Fireworks to complete my work. This I assume is good advertising for Adobe :)
    Anyone have any ideas????
    See this post in the forum "could not complete your request because of a program error", PDF format, cs2, xp" as this is an ongoing Adobe issue that they have completely blown off!
    I am working on
    Adobe Photoshop Version: 9.0.2 (9.0.2x296)
    Operating System: Windows XP
    Version: 5.1 Service Pack 2
    System architecture: Intel CPU Family:15, Model:2, Stepping:9 with MMX, SSE Integer, SSE FP, SSE2, HyperThreading
    Physical processor count: 1
    Processor speed: 2798 MHz
    Built-in memory: 2559 MB
    Free memory: 1812 MB
    Memory available to Photoshop: 1758 MB
    Memory used by Photoshop: 55 %
    Image cache levels: 6
    Serial number: XXXXXXXXXXXXXXXXXX (I have a legal copy)
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS2\
    Temporary file path: C:\DOCUME~1\JIMSHE~1\LOCALS~1\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
    Startup, 128.0G, 65.5G free
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS2\Plug-Ins\
    Additional Plug-ins folder: not set
    Installed plug-ins:
    ADM 3.10x21
    ASDStrm 1.03x2
    Accented Edges 9.0
    Angled Strokes 9.0
    Average 9.0 (9.0x196)
    BMP 9.0 (9.0x196)
    Bas Relief 9.0
    Camera Raw 3.7
    Chalk & Charcoal 9.0
    Charcoal 9.0
    Chrome 9.0
    Cineon 9.0 (9.0x196)
    Clouds 9.0 (9.0x196)
    Color Halftone 9.0 (9.0x196)
    Colored Pencil 9.0
    CompuServe GIF 9.0 (9.0x196)
    Conditional Mode Change 9.0 (9.0x196)
    Contact Sheet II 9.0 (9.0x196)
    Conté Crayon 9.0
    Craquelure 9.0
    Crop and Straighten Photos 9.0 (9.0x196)
    Crop and Straighten Photos Filter 9.0 (9.0x196)
    Crosshatch 9.0
    Crystallize 9.0 (9.0x196)
    Cutout 9.0
    Dark Strokes 9.0
    De-Interlace 9.0 (9.0x196)
    Difference Clouds 9.0 (9.0x196)
    Diffuse Glow 9.0
    Displace 9.0 (9.0x196)
    Dry Brush 9.0
    Embed Watermark 1.70.19
    Export Transparent Image 9.0 (9.0x196)
    Extract 9.0 (9.0x196)
    Extrude 9.0 (9.0x196)
    FastCore Routines 9.0 (9.0x196)
    Fibers 9.0 (9.0x196)
    Film Grain 9.0
    Filmstrip 9.0 (9.0x196)
    Filter Gallery 9.0
    Fit Image 9.0 (9.0x196)
    Fresco 9.0
    Generic EPS 9.0
    Glass 9.0
    Glowing Edges 9.0
    Grain 9.0
    Graphic Pen 9.0
    HDRMergeAlign 9.0x001
    HDRMergeUI 9.0x001
    Halftone Pattern 9.0
    Ink Outlines 9.0
    Lens Blur 9.0
    Lens Correction 9.0
    Lens Flare 9.0 (9.0x196)
    Lighting Effects 9.0 (9.0x196)
    Liquify 9.0
    MMXCore Routines 9.0.1 (9.0.1x289)
    Merge to HDR 1.0x001
    Mezzotint 9.0 (9.0x196)
    Mosaic Tiles 9.0
    Multiprocessor Support 9.0 (9.0x196)
    NTSC Colors 9.0 (9.0x196)
    Neon Glow 9.0
    Note Paper 9.0
    Ocean Ripple 9.0
    OpenEXR 9.0 (9.0x196)
    PCX 9.0 (9.0x196)
    PNG 9.0 (9.0x196)
    PNG Icons 1.22x1
    Paint Daubs 9.0
    Palette Knife 9.0
    Patchwork 9.0
    Paths to Illustrator 9.0 (9.0x196)
    Pattern Maker 9.0 (9.0x196)
    Photo CD 9.0 (9.0x196)
    Photocopy 9.0
    Photomerge 9.0 (9.0x196)
    PhotomergeCylmap 9.0 (9.0x196)
    PhotomergeRender 9.0 (9.0x196)
    PhotomergeUI 9.0 (9.0x196)
    Picture Package 9.0 (9.0x196)
    Picture

    John,
    foud your message very helpfull. I experience the same problem when strating a CS2 program (Photoshop, Indesign,...) over a terminal server connection.
    It's weird because starting more than one instance is possible (despite what's written in the article ) as long as the users have administrative rights. I've encountererd this problem because my daughter of 11 wants to use Photoshop now. I have a terminal server set up so the kids may experiment with their own desktops whithout the risk to screw it up and because I can access all my programs from wherever I want.
    But as I found out now I must buy volume licensing instead of retail (even if it's for just one instance...)
    Want to know if possible how "difficult" it was to change your retail to a volume licensed version? Did you have to pay the full amount again? Hope an upgrade exist from Creative Suite CS2 - retail to Creative suite CS3 - volume licensed for the same price as from retail to retail... Or am I hoping to much?
    Kind regards and thanks for your info,
    Patrick

  • Using ADI to load Assets

    Hi
    Can anyone please send me some kind of a documentation on how to load Assets through ADI (something called FA-ADI). Atleast guide me to find them if they are somewhere in the net.
    Thanks
    Regards
    bharat

    If you have access to Oracle's Metalink you can search on Oracle Applications Desktop Integrator User's Guide.
    The User's Guide will help you get started.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Bharat Bhaaradwaj ([email protected]):
    Hi
    Can anyone please send me some kind of a documentation on how to load Assets through ADI (something called FA-ADI). Atleast guide me to find them if they are somewhere in the net.
    Thanks
    Regards
    bharat<HR></BLOCKQUOTE>
    null

  • Transforming a flash application to flex mobile application

    Hello everybody, I have been tried of transfom this flash application
    http://blog.flexexamples.com/2007/08/02/finding-a-pixels-color-value-using-the-bitmap-clas ses-and-getpixel/
    to flex mobile application, but I have many errors with the components. Also when I try to load image, on the flash builder the image, we can see the image loaded but when I try run on virtual device, the image can´t views.
    I ask help...Thanks

    try searching for Java NT service string on google and u will come out with many solutions.....
    hope this is the best answer... i can give u.....

  • Can't install Flash Player upgrade

    Can't install Flash Player upgrade on Windows 7 system. Get it downloaded and get message "an exception Runtime error has occured in script".  Message says "new instance of MS Script Editor".  Try to debug and get message "can not create application folder"
    What do I do?

    Hello,
    I've seen another report of the installer throwing a script error, however, I've been unable to reproduce.   Can you please do the following to provide a log file for further troubleshooting:
    Download the installer from get.adobe.com/flashplayer and save it to the desktop
    Launch the command prompt, click the Start orb and in the search field, type: cmd.exe
    When the command prompt utility launches, drag the installer from the desktop onto the command prompt window hit space key and type /debug
    It should look similar to (the actual file name may differ): C:\Users\labuser\Desktop\install_flashplayer14x32_mssd_aaa_aih.exe /debug
    Note there IS a space between the file name and the / and there is NO space between / and debug
    If there are spaces in the directory path, the command needs to be encapsulated in quotes, for example: "C:\Documents and Settings\labuser\Desktop\install_flashplayer14x32_mssd_aaa_aih.exe" /debug
    Click Enter to proceed
    A file named host.develop.log will be saved to the same location the installer was saved toYou may notice the the online installer file is missing. This is because it deletes itself once executed, so it will no longer be saved locally.
    Post the contents of the host.develop.log file here in your response, or share the file following the How to share a document instructions.
    Thank you in advance.
    Maria

  • Loading assets from different libraries

    Hello,
    I currently have a "container SWF player" that loads SWFs externally and plays them.  The sound file for the SWF is in the library of the container SWF player, because the player is using the duration of the sound file to determine how long the scrubber bar goes.
    The problem is, it sort of defeats the purpose of having a container SWF player if I have to create a different container SWF player file for each external SWF because there's a different sound for each external SWF.
    Is there a way to pull the sound file from the library of the externally loaded SWF into the container SWF player?  So that depending on what external SWF is playing, it will pull the associated MP3 file from that SWF's library?
    If this needs more explanation just let me know, I'm not sure if I got this across right..thanks in advance!

    You can access application domain of the loaded swfs and utilize the objects from it.
    Read this:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html#ap plicationDomain
    And this:
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000327.html

Maybe you are looking for