Flash professional + action script to check existing file

Hello Guru:
I am using Flash professional with action script 3.
Please recommended me how to check if existing file in drive c: exist or not.
Thanks in advance.

use:
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,errorF );
loader.load(new URLRequest("file://c:/CaptivateLog.txt"));
function errorF(e:IOErrorEvent):void{
trace(IOErrorEvent.IO_ERROR);
trace("file not found");
// catch error
p.s.  please mark helpful/correct responses, if there are any.

Similar Messages

  • Flash Professional Action Script help?

    I am try to create a website where people can view an online bible and search for within it for certain passages using a search box, but I don't know how to begin to make that happen, in flash professional. Please help.

    Whatever approach you take will depend heavily on the document(s) you have for the bible element of the design.  You somehow need to be able to seek within it and determine where matched elements can be found and how to extract the information you intend to present.
    I don't think your issue currently lies with how to do this in Flash as much as first coming up with a gameplan that identifies the players and how you can interact with and within them.

  • Flash Professional CC crashes when saving, corrupting files

    My company upgraded from flash CS5 to Flash Professional CC just recently, and i was hoping for a more stable experience, as Crashes when saving from Flash CS5 happened allmost daily. Seem i was wrong, occasionally when saving Flash CC crashes, and ends up breaking my work files... I ususally manage hundreds of files during a week, so having a stable enviroment is quite important for me. Any suggestions? Other than getting rid of Flash, though this is fast moving up the list...

    Yes, I allways have the most recent version.
    Guess i just have to work locally again, as i was forced to when using Flash CS5. Its frustrating, as some of the files (non-flash) i produce is  edited by other colleagues on the server. And i need to sync those files back  to my computer, to keep everything up to date... Not to mention i have  to sync the files i produce to two different servers. A project consist of at least 40-80 flash files and each of them accompanied by several files... xml, images, sound, and so on...

  • How to center gif on streching banner (Adobe Flash Pro, Action script 2.0)?

    Hello,
    I try to center my gif image on streching banner.
    What i make:
    1. Click F8 on image layer and transform into symbol ("img1"). Registration is centered.
    2. Add a name for this copy in properties ("img2")
    3. On the layer "Action Script" i got a code:
    Stage.scaleMode = "noScale";
    Stage.align = "LT";
    var obResize:Object = new Object();
    Stage.addListener(obResize);
    obResize.onResize = function() {Resize()};
    function Resize(){
        back._width=Stage.width;
        img2._x=Stage.width/2;
    Resize();
    Gif image is not centered. When i use static image, for ex. JPG, that's ok.
    Please, help me if you know how to solve this problem.
    Thank you!

    how is your banner stretching?   is that javascript?

  • Developing ios/android game using flash and action script

    I'm completely new to this, I have done a bit of research about using flash to create ios/android apps, but one thing really confuses me is,
    should I create my game in flash lite or in air? I know swf format will not be supported, so i will leave that one out...
    If using air format you need to install the air application in your iphone or andriod devices before the game can be played?
    Is it possible not to use air for apps development using flash?
    Since it is somehow non-user friendly as users were prompt to download and extra application before any game can be played...
    thanks for the help in advance...

    You want to use AIR not FlashLite - for iOS the end user doesn't need to install the AIR runtime, on Android they will however. But it's painless...
    You don't need AIR for apps in Flash, but you do need to publish using AIR if going to iOS or Android.
    Be sure to get AIR 2.7 and copy it over 2.6 - CS 5.5 installs with 2.6 which runs much slower on iOS, than does 2.7

  • Exists some book of the Reilly in Portuguese? I look action script 2.0

    Exists some book of the Reilly in Portuguese? I look action script 2.0
    Existe algum livro da Reilly em português ? procuro o action script 2.0
    http://translate.google.com.br/translate?hl=pt-BR&sl=en&u=http://oreilly.com/catalog/97805 96006525&ei=hyn0S9ymC4GRuAe59ODbDQ&sa=X&oi=translate&ct=result&resnum=1&ved=0CBsQ7gEwAA&pr ev=/search%3Fq%3DO%2527Reilly%2Baction%2Bscript%2B2.0%26hl%3Dpt-BR

    Opa!
    O ' Reilly em Português para AS 2.0 não conheço.
    Não sei se ajuda, mas para AS 3.0 tem uma apostila bem completa da Adobe, vide link abaixo.
    http://help.adobe.co...programming.pdf

  • Bug in Flash Professional CC when launching debug launcher xml file handle not released

    There appears to be a bug in either Adobe Flash Professional CC, or ADL when launching debug launcher for an AIR application Flash Professional CC automatically generates or updates the XML app descriptor file. The bug is that Flash Professional is not immedately releasing the file handle to the app descriptor XML file.
    This bug was introduced in Flash Professional CC (Windows). It did not occur in CS5.5 or CS5.
    The question is whether this is a bug related to the ADL, or if this bug is related specifically to Flash Professional CC (Windows).
    Either way, where and how do I appropriately report this bug?

    Hi Dharmendra,
    Thank you for the solution. It is not what I expected, but it might look like a solution that "could" be applied.
    There is still one problem with this approach. If I still use a movie with radial gradient within the bitmap, the same exact problem could occur again.
    I was trying to understand if I did something wrong in my code, or it was a bug in the Flash software. I still find weird that I get different results by drawing a movie clip at different positions on a bitmap object. How can the drawing position change if the movie clip is drawn or not drawn? Why does it make mathematical patterns? I guess it has something to do with the precision numbers.
    Meanwhile, I did a few extra tests. I tried a new approach with Blur and Glow effects. That is not exactly what I want, but it seems to create a transparent gradient. I might consider this approach if the basic radial gradient does not work. I also created a gradient transparency circle bitmap in Photoshop that I imported into my movie clip. It worked. So, at the moment I have two solutions that seem to be working.
    I would appreciate if you could investigate the original problem. It looks like there is a problem in the rendering of Flash. Workarounds are fine sometimes, but I do not expect to developer programs on workarounds.

  • [FLASH] Cambiar velocidad desde action script

    Hola Amigos foreros.
    Necesito saber si es posible cambiar la velocidad del
    reproductos flash
    utilizando action Script, es decir, por ejemplo la velocidad
    por defecto es
    12 fps y necesito que al llegar a un determinado fotograma,
    la velocidad se
    cambie a 30 fps. No se si me explico.
    Desde ya gracias de antemano a quien pueda hecharme una
    mano.}
    Gui¥e

    http://www.cristalab.com/tutoriales/174/flash-que-se-ajusta-a-la-ventana-con-diagramacion- liquida-+--stage
    Salu2
    `8¬}
    Juan Muro
    "javier" <[email protected]> escribió en el
    mensaje
    news:efddhu$848$[email protected]..
    > Quiero hacer una aplicación que se adapte al
    tamaño de la pantalla y no
    > reescalando la pelicula sino posicionando los elementos
    de acuerdo a la
    > nueva situación. El problema que me encuentro es
    con el tamaño del
    > flash...
    > Hay alguna manera de cambiar desde action script el
    tamaño del escenacrio
    > flash?
    >
    > Gracias.
    >
    >

  • Receive Action Script Error #2130

    My system is running Windows 8 and IE10. I have continuing problems installing and using Flash Player. I have read and reread the online procedures, checks, and solutions without much luck. Most recently after several failed attempts I was able to download the latest version of Flash Player for Windows 8 with Internet Explorer. My email account is with Outlook, which defaults to MSN.com when I sign out. When the MSN.com homepage appears I shortly receive an error message that says there is an Action Script Error #2130 and a list of affected files, including flash. I am unable to perform any other functions while this message is displayed. The message block gives me two options: Dismiss or Continue. The error message clears when I click either option, and the MSN.com homepage seems to operate normally. However, there are other issues with MSN.com which I have addressed to their support. Basically, if I click on a news headline in order to read the full article, the screen that appears is mis-formatted and unreadable. Ihave a screen capture of the error message noted above. I have tried the solutions suggested in Adobe Support, but they did not resolve the underlying issues. Please help, /hugh
    I noticed a related RE: discussion on the side of my question. When I went there I followed staff instructions to another person with similar problems. When I checked my installed version, I saw that it was the latest version for my system, but also saw debug at the bottom of the page. I then proceeded to uninstall Flash Player as staff instructions said to do. After I received the message that uninstall was successful, I again checked my installled version. It was the same as before including that it was the debug version. I repeated this action several times with the same result. Don't understand what this new problem is or how to proceed from this point.

    Thanks Pat - Sorry if I have been terse. This is not a good time for me as my Old Man [not my Father] is in failing health and requires a lot of care. Didn't need the added burden of two known problems in my computer system which no one seems to know the answer to. At least part of the problem with my email/MSN.com went away. At present I do not get an ActionScript Error #2130 when I sign out of my Outlook email account, which defaults to MSN.com. The other problem with MSN.com is still present, but so far I have not received any support from their techies, just several boilerplate messages.
    However, you are helping with my problem with Flash Player. I discovered it when trying to find the cause for the ActionScript error. I went to Adobe Support Center and began with the several guide sheets I found there. When I did the steps to find the installed] version, which by the way are contained on several different sheets, I found the version of FP installed was not the latest version. I am aware that as I have Windows 8 and IE10 changes should come down from Microsoft, so I was surprised. I tried Update Windows but there were no updates available other than an optional update to install Bing Desktop which I have installed several times, but it remains on the list as an optional update that has not been installed. As I have thought and said many times since I upgraded to Windows 8, it should have been more thoroughly debugged before they rushed it to the retail market. But that too is not an Adobe problem.
    I tried all the procedures and checks on all of the Adobe FP guide sheets I found on their support center website several times before to my surprise when I redid the steps to find the currently installed version the lastest version of FP: FP 11.7.700.169 was shown as the installed version. This was over a week ago and after I found Guide Sheet: Adobe Flash Player Support Center/Downloads at: http://www.adobe.com/support/flashplayer/downloads.html. In addition to providing a path to download the latest version of FP, it provides a list of critical updates and downloads to correct known problems in Flash Player. I downloaded every update I found that seemed to apply to my system. 
    I then checked to see if the Flash Player Action Script error message was now cleared. To my dismay it was not. Ever since I have been trying to correct that problem. It was not until after I posted this question here and you started to respond and discovered that although the latest version of FP is now installed - it is the DEBUG version, which you have told me I must uninstall and then install the standard version. That is where I learned that even though I am able to download the Adobe Flash Player Uninstaller and run it and get a message that the uninstall was successful, when I check using the Find Version procedure, I am told the latest version of FP is still installed and it is the DEBUG version.
    I have tried reinstalling the latest version, but this procedure does not work either. When I click to download Flash Player all I get is a blank Adobe box on the screen. It asks me to select a region. I select the US, There is a DOWNLOAD tab at the top which I also select. Then nothing happens. This tell me something is not working properly with this procedure.
    So I am stuck at a point where Adobe Find Version procedures tells me the latest DEBUG version of Flash Player for my system, FP11.7.700.169, is installed in my system and working properly,but I am told I must uninstall the DEBUG version and install the standard version of FP. However, the Adobe Flash Player Uninstaller does not work on my system and the Adobe Flash Player Installer does not work on my system.
    On the other hand as far as I have been able to determine Flash player is working properly as I am able to view videos on various websites, including MSN.com. And after deleting several Flash Player files I searched and found, the FP ActionScript Error #2130 has apparently stopping showing up when I am defaulted to MSN.com when I sign out of OUTlook email. I am so confused, irritated, and frustrated. I agree someone from Adobe Support should take a look at what I am reporting and determine if I have an Adobe Flash Player problem, and if so, FIX IT!
    Thanks again for taking the lead Pat, /hugh

  • Scroll panel action script problem

    Hi, I have the following action script:
    and its giving me the following errors:
    Location: Scene 1, Layer 'action', Frame 1, Line 11
    Description: 1120: Access of undefined prperty _xmouse,
    Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse
    <b.yMin || _ymouse>b.yMax) {
    Location: Scene 1, Layer 'action', Frame 1, Line 11
    Description: 1120: Access of undefined prperty _xmouse,
    Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse
    <b.yMin || _ymouse>b.yMax) {
    Location: Scene 1, Layer 'action', Frame 1, Line 11
    Description: 1120: Access of undefined prperty _ymouse,
    Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse
    <b.yMin || _ymouse>b.yMax) {
    Location: Scene 1, Layer 'action', Frame 1, Line 11
    Description: 1120: Access of undefined prperty _ymouse,
    Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse
    <b.yMin || _ymouse>b.yMax) {
    Location: Scene 1, Layer 'action', Frame 1, Line 24
    Description: 1120: Access of undefined prperty _xmouse,
    Source: var xdist = _xmouse - 185;
    Location: Scene 1, Layer 'action', Frame 1, Line 8
    Description: 1120: Access of undefined prperty _root,
    Source: var b = stroke.getBounds(_root);
    Location: Scene 1, Layer 'action', Frame 1, Line 11
    Description: 1120: Access of undefined prperty _ymouse,
    Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse
    <b.yMin || _ymouse>b.yMax) {
    HERE IS MY ACTION SCRIPT
    HERE IS MY FILE
    flash5.fla
    I used the following tutorial
    http://www.gotoandlearn.com/
    Scrolling Thumbnail Panel.
    Please help as to what I should do to fix it please.

    I can't be certain, because I don't have Flash CS3 on my
    computer, but it reads as though your publish settings are set to
    the wrong version of Actionscript. The code you have attached is
    Actionscript 2, and those errors sound like something that would be
    spit out if you are trying to publish to Actionscript 3. Check your
    publish settings, and change to AS2. If you are already on AS2,
    reply, and will look into further.
    Hope this helps.

  • PHP Upload script for ZIP/SIT files

    Hi,
    I'm trying to locate a decent script that would allow clients
    to upload files to a Web site that I am working on. I found a basic
    one that works at www.w3schools.com/PHP/php_file_upload.asp.
    However, it lack the capabilities to upload zip and sit files.
    Could I modify the existing script that I just mentioned?
    Unfortunately, I am not very PHP saavy. I have been Googling for
    such a script but have not found one yet. I hope some one could
    recommend a decent script. Thanks.

    .oO(Mark A. Boyd)
    >Carlton Chin posted in macromedia.dreamweaver.appdev:
    >
    >> I'm trying to locate a decent script that would
    allow clients to
    >> upload files to a Web site that I am working on. I
    found a basic
    >> one that works at
    www.w3schools.com/PHP/php_file_upload.asp.
    >> However, it lack the capabilities to upload zip and
    sit files.
    >> Could I modify the existing script that I just
    mentioned?
    >
    >The ticket is where the script is checking
    $_FILES["file"]["type"].
    >See
    http://www.w3schools.com/media/media_mimeref.asp
    >
    >If you only want to allow zip/sit, try changing this:
    >
    ><?php
    >if ((($_FILES["file"]["type"] == "image/gif")
    >|| ($_FILES["file"]["type"] == "image/jpeg")
    >|| ($_FILES["file"]["type"] == "image/pjpeg"))
    >&& ($_FILES["file"]["size"] < 20000))
    Be careful. These informations can be faked or might not be
    available at
    all. I can easily upload a PHP script as "image/jpeg". If the
    file ends
    up in a public directory within the document root, I can
    execute it and
    then have a look at the entire server ...
    Relying on the content type or file extension is a huge
    security hole!
    I'm quite surprised that W3Schools publishes such an insecure
    script.
    To make sure that an uploaded file is really of the type you
    expect, you
    must look at its content! For images you can use
    getimagesize(), which
    will also return the type if it's a valid image. For other
    types you
    have to use other libs or external tools. On a *nix machine
    you could
    execute the shell command 'file' for example, which
    recognizes quite a
    lot of different file types.
    Micha

  • Can FC put action script in a 'code behind'.

    Once of the practices I do in FB3 is to move all my action script into 'code behind' files instead of having all the code in the mxml files.  Does FC have the option to do that (as part of the gen process) and if not, does anyone else who 'codes' instead of 'designs' feel that is a benefit?  I know I'd prefer it to be in a 'separate' as3 file.  Also, if I DO move the code into code behinds (I've not tried it yet), does FC have any issues reading the code behind?  I'll be trying that on a 'simple' project to be sure but figured I'd ask just in case anyone else wants to know...

    The two references cited helped answer questions about Adobe's overall philosophy and approach that came up as I worked a simple example down the design/development stack of tools from Illustrator (AI) to Catalyst (FC) to Flash Builder 4 (FB).
    Other questions that arose were:
    Each application (AI, FC, FB) contains tools for design with some degree of overlap.
    Will FC eventually include from AI (or Photoshop, InDesign, etc.) and the FB design view all functionality needed for interactive storyboarding and skin generation?
    Is it the intent for FC to become the designer's tool and FB the developer's tool, at least for application design?
    The diagram in the Gumbo skinning spec shows that base components and their subclasses are typically implemented in AS and skins in MXML and recommends this as the preferred design pattern. Yet when I converted one of my groups (essentially a form) to a customized component, and exported the project into FB, I noticed that FC had generated a single mxml file (CustomComponent1 ...) and not a pair of files (an X.as file for the base component and an X.mxml file for the skins).
    For several reasons, wouldn't you want to generate separate files as depicted in the Gumbo diagram as a starting point for code customization?
    How does one develop custom components in FB (or using AI+FC+FB) and package them as a library so that they can be dropped into FC and used in the way that the current set of 5 components (button, hscrollbar, vscrollbar, text input and data list) are used?
    How will I integrate my hand-coded dynamic components for data visualization alongside more generic and static app components on an RIA page?
    How would I use AI+FC to design liquid layouts where children at each level often utilize constraints (i.e. top, bottom, left, right) between parent and child?
    For agile methodologies, how will refactoring the interaction or software design work in this new world where interaction designers are trying to maintain full control over appearance and interactive behavior?
    Finally, I would like to know what tools and steps Ely used to develop the component shown in the video. It would be instructive to turn that into a tutorial that we could walk through, step by step, in slow motion
    While I understand the arguments for separation of design and development as a workflow methodology, those of us with development and HCI/visualization backgrounds building research prototypes would like to see integration of the design and development tools (from the perspective of the workflow, not the architecture and code).
    As Jordan said, the direction you are heading is inspiring. Keep up the good work.

  • Problem with action script to button

    Hello all.
    I'm having a problem with my adobe flash CS3 action script. My button cant link to the other URL. I tried to put an action script but i fail. anyone can help me? here the attachment for my flash document.

    HELLO,
                  just check       navigateToURL()

  • Action Script execution

    Hi All,
    I have come across situation, here are the details
    User creates an action script but he/she is not aware of signature of the properties like "Derived overridable", Inherited and Default values, user creates an action script based on input file.
    but here bottle neck moment is while executing action script, it has to skip rows in action script which has value equal to Derived value, Inherited value or default value.
    Your advice is highly appreciable
    Regards,
    Phani.

    Sainath,
    Referring admin guide as mentioned by Craig is good option.
    Let me give you few steps that I did in one of my projects.
    Open command prompt and navigate to the path "C:\Oracle\Middleware\EPMSystem11R1\products\DataRelationshipManagement\client\batch-client".. here you can see many see other utilities as well.
    drm-batch-client-credentials.exe is the one used to encrypt the userid and password.
    open this in command prompt and then choose the application to which you want to encrypt the password.
    then remove userid and password from batch script then run it... it does what you want

  • Flash Professional installer fails to initialize

    Hi,
    I downloaded Flash Professional CS6 and after extracting the files and opening the setup.exe file I'm getting a massage (screenshot)
    Windows 7 ulitimate
    service pack 1
    Processor: Intel core i3-2120 cpu 3.30ghz
    RAM: 8.00 gb
    system type: 64 bit
    Graphics: AMD Radeon HD 6570
    Thank you all

    Hi vikoad,
    Please try:
    http://helpx.adobe.com/x-productkb/global/installation-launch-log-errors-creative.html
    Error "Installer Failed to Initialize" | Install desktop application | Windows
    Thanks,
    Atul Saini

Maybe you are looking for