Browseforopen works only in Test Movie

Greetings,
I'm here to ask some basic help.
I have this code embedded in a Adobe Air 2 .fla :
import flash.filesystem.File;
import flash.events.MouseEvent;
import flash.events.Event;
var fileChooser:File = File.userDirectory;
function doSelect(e:Event):void
     trace (e.target.nativePath);
     var pic:Loader = new Loader();
     pic.load(new URLRequest(e.target.nativePath));
     addChild(pic);
      pic.y+=40;
fileChooser.browseForOpen("Open");
fileChooser.addEventListener(Event.SELECT, doSelect);
When I test the Movie (ctrl-enter style ^^) I can see the browse window showing up but, when I publish swf and exe version the browseforopen simply doesn't work without any error.
Is that something simple and noobish that I miss?
Thanks a lot in advance

The example in the documentation was outside any event, called like mine:
import flash.filesystem.*;
import flash.events.Event;
import flash.net.FileFilter;
var fileToOpen:File = new File();
var txtFilter:FileFilter = new FileFilter("Text", "*.as;*.css;*.html;*.txt;*.xml");
try
    fileToOpen.browseForOpen("Open", [txtFilter]);
    fileToOpen.addEventListener(Event.SELECT, fileSelected);
catch (error:Error)
    trace("Failed:", error.message);
function fileSelected(event:Event):void
    var stream:FileStream = new FileStream();
    stream.open(event.target, FileMode.READ);
    var fileData:String = stream.readUTFBytes(stream.bytesAvailable);
    trace(fileData);
I've tried anyway with button and in the test movie everything works fine, but in the app even the button won't showing up.
I've also try to do the same with a button inside the flash builder.. crtl f11 run all the funcionality. The generated app won't open the browse window.

Similar Messages

  • Flash play works, but not test movie

    Admittedly, I am still very new to Flash and have worked
    through some of the tutorials. I created some animated text using
    the size and rotate feature as well as the alpha to lighted it up.
    I have 4 different layers with different text on each layer that
    comes in at different frames. When I "play" the frames it works
    great, but when I choose "Test Movie" it shows 2 frames of my work
    around 25 and 26. What am I missing and/or should I have created
    this another way?
    Thank you
    witoca

    What version does it show as installed if you go to http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html#main_Find_the_Flash_ Player_version_installed_on_your_machine ?

  • Step post action works only in 'Test UUts' mode

    Hi,
    My main sequence file has a list of  steps, all sequence type.  I specify a post action on each one to jump to end if the seq fails and if a flag is set:
    FileGlobals.StopOnFail == True && RunState.SequenceFailed == True 
    I found out that it only works if I run my test in 'Test UUTs' mode.  If I select 'Run Selected tests using Single Pass', then, it igonre this.
    Is this how it supposed to be?
    How can i fix it?
    Thanks
    Rafi
    TS4.1
    Solved!
    Go to Solution.

    Rafi2003 wrote:
    [...]Why do you need a previous step?[...]
    Rafi,
    you are correct that you do not need a previous step; it is sufficient if the step itself fails and sets the RunState.SequenceFailed flag.
    On my machine, this test also works as expected so i asume that either your step itself does not set the RunState.SequenceFailed flag or you have another issue in your Run Selected Steps using Single Pass execution....
    Norbert 
    [EDIT] Added small example sequence 
    Message Edited by Norbert B on 05-13-2009 06:26 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    PostAction.seq ‏5 KB

  • Browser Works with Flash test movie btns but not in Dreamweaver

    What changes need to be made?
    The Broswer brings up this SE when testing flash btns in DW?
    SecurityError: Error #2028: Local-with-filesystem SWF file file:///C:/inetpub/wwwroot/Pizzapal.co.uk/topFramebtns1.swf cannot access Internet URL http://mark-pc/Pizzapal.co.uk/index.html.
    at global/flash.net::navigateToURL()
    at topFramebtns1_fla::MainTimeline/btn1Click()
    Thank you for reading
    Sabby76

    Give my self a star, the flash player manager needed to be asigned to acept the absolute path to my little virtual website.
    Problem solved, the underlying one is ongoing...
    Sabby76 `

  • Test movie won't work anymore!!

    When I test movie on all my .fla files, the script "seems"
    not to work (many things missing, problems with my arrays...) BUT
    if I run the SWF produced...it works like a charm??!!
    What should it be please?
    I've re-install everything on a new system without any
    success
    If I use the debugger it stalls immediately...
    ...but remeber the SWF is perfect, it's only while previewing
    (testing movie ) inside of flash
    Thnaks very much!

    Jayme65 wrote:
    > When I test movie on all my .fla files, the script
    "seems" not to work (many
    > things missing, problems with my arrays...) BUT if I run
    the SWF produced...it
    > works like a charm??!!
    >
    > What should it be please?
    > I've re-install everything on a new system without any
    success
    >
    > Thnaks very much!
    The internal player and browser player are two totally
    separate applications.
    The one in browser get updated frequently while your
    authoring player won't.
    Often the case when macromedia/adobe left unfixed bugs in the
    user IDE
    fixing them later with the browser players. This would do the
    very thing you
    describe. SOme stuff works or won't work while authoring but
    will or will not
    in browser.
    Perhaps that's the case in here.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Flash 8: Change "Test Movie" Working Directory

    I just posted this with Google Groups but it doesn't appear
    to be showing up on the adobe forums, I apologize for those that
    see this twice.
    How do I change the working directory that flash uses when I
    do Test Movie (ctrl-enter)?
    Directory Layout:
    project/
    ..index.html
    ..source/
    ....some.fla
    ..images/
    ....some.png
    ..flash/
    ....some.swf
    project/index.html embeds project/flash/some.swf.
    project/flash/ some.swf loads project/images/some.png. I want to be
    able to use Flash 8's Test Movie feature but when I do it looks for
    the image at project/flash/images/some.png which doesn't exist. How
    can I tell Flash to pretend it's running in project/ instead of
    project/flash/?

    The project is too large and has too many people working on
    it to move files around between author-time and run-time. We are
    just starting the project now so there are only a few SWFs and
    images but the final project will likely have hundreds of SWF files
    and even more images. Because of this, it is unrealistic for us to
    just drop all the SWF files in the top level of the project (where
    index.html will reside) as that directory would be too disorganized
    to work with.
    Note: In this project SWFs dynamicly load other SWFs at
    runtime based on a relative path to the project root directory
    (where index.html is).

  • Streaming radio works in Test Movie but won't work in browser

    Hi all,
    I've built a simple radio interface that has only Play, Stop and volume adjuster controls.
    Play button starts an online stream:
    play_btn.onRelease = function () {
         stream= new Sound();
         stream.loadSound("http://radio.xyz.org:9050", true);
         stream.start(0, 50);
    When I test movie inside the Flash Pro, i see that it is fully functional.
    Running the swf on the local with Flash Player works perfect also.
    But after uploading to server, I can hear no sound at all.
    I've set "allowScriptAccess" to "always", but it didn't help: ( http://www.erkanbeyaz.com/radyo )
    Briefly, the local swf works but the remote one doesn't. And I'm sure this is not a path issue.
    I  guess this is a flash (and/or browser) security issue and could be  overcome by setting the appropriate parameters within the Publish  Settings.
    But how?
    Any help would greatly be appreciated.
    Best.

    Hi Atul,
    I have checked my bindings but the only values the method needs, is the releasecode (which is filled) and the object BUS2012 (which is also filled). The method gives back the exception 1006  responsibility_fail. I have checked the FM BAPI_PO_RELEASE and I even have made sure that the containerelement UseExceptions is marked with X (should be done by the program itself).
    What I also see when I generate my testworkflow is the message Indicator "Results Parameter" missing in BOR method RELEASE, but I cannot find out what I need to do to make sure I have this Results Parameter.
    Hope you can help me further!
    Best regards,
    Monique

  • Buttons not working in test movie

    Hi
    i am having a problem with some buttons. I am new to flash so maybe it's something elementary i am doing wrong. I created a simple scene and have two buttons. "The fear" and "back'. I want the fear button to begin playing movie at frame 2 so i typed on(release){ gotoAndPlay(2);}  on three lines obviously. Same with back button except stop at frame 1. buttons work perfectly when i enable test buttons but when i test movie they don't work properly
    any help would be greatly appreciated

    If you remove the code from the buttons do they react properly to a mouse over interaction?
    What is the code that is in place?

  • CS4 Flash Test Movie won't work!

    I have been working on my final project for class all week. Suddenly tonight once I have finally worked through so many bugs in transfering things into the thing, I can't get the "Test Movie" option to work to view anything. I even tried to view just the scene. It keeps making these flashes and then basically stays where it's at. Anyone have any ideas? I'm frustrated and lost!
    Thanks.

    No error messages are coming up anywhere! That is why I don't understand why nothing is working.

  • Buttons work in Flash not in test Movie

    The buttons are simple roll-overs that goto a labeled page in
    the timeline. Simple. I've done hundreds. Have no clue why this is
    happening. They work when "enable simple buttons" is activate but
    when I "Test Movie" the roll-overs don't work and neither does the
    action script that sends it to a certain "page". Here is the code.
    Any ideas would be appreciated. Thanks

    Hi dbthumb
    first. Is this code on the actual button? or is it placed on
    a frame?
    second. you mentioned that your roll over does not work. but
    the code you provided doesnt check for roll over...it checks for
    release.
    third. Are your frame labels correctly named? it can happen
    quite often that a simple spelling mistake can be the cause of
    annoying headaches.
    Let me know how it goes, and we'll go from there.

  • HT1860 my apple tv (1st gen) has worked fine for a year/ All of a sudden it has stopped displaying any movies or tv. It only displays my movies or my tv that has been previously down loaded. however it appears connected wirelessly with good strenght. Any

    my apple tv (1st gen) has worked fine for a year/ All of a sudden it has stopped displaying any movies or tv. It only displays my movies or my tv that has been previously down loaded. however it appears connected wirelessly with good signal strength. Have tired swithing off both router and apple TV. Any ideas?

    This is a known, ans ongoing issue. Rest assured you're not the only one affected. There are several threads here already discussing this, I suggest searhing them out if you want more details, and possible work-arounds for locally hosted content.

  • Test Movie works, but...

    I am able to Test Movie in Flash, but I am not able to
    Preview HTML; i just the background color of the Scene in the
    browser. Code is attached.

    try to open your .SWF with your browser, check if that works.
    right click the SWF ---> Open With ---> Browser
    your Flash Player might need updating, or has been
    uninstalled.
    the HTML looks right, and all files are in the same
    directory, I cant why else it would not display.

  • Bah! Publishing or "test movie" do not work on new machine

    Bah! Publishing or "test movie" do not work on new machine. I
    repaired all permissions, saved as different file names, and I
    still get a "Be sure destination file is not locked..." This even
    happens on Adobe's sample files! Fresh install (CS 4), fresh
    operating system, new iMac. Thank you for your help, guys and
    gals.

    Nevermind, I got it. I had to change the publishing directory
    to a different one.

  • Help!! Flash CS3 and CS4 "Test Movie" very slow on OS X

    This is a problem that, having read many forums, affects a
    very large amount of people, though Adobe doesn't care at all. It
    only affects OS X users. I know that it has been addressed many
    times in different forums, but I never actually stumbled across
    anyone having found a solution.
    When I use Flash CS3, and I make any animation, even the
    simplest tween, and I preview it with Test Movie, the result I get
    is an extremely slow playback. Something like half the FPS it
    should be.
    However, when I export the SWF and preview it in the external
    Flash Player or in a browser, it's just fine and fast.
    Another interesting thing is that in CS3, when I open the
    Help panel, the problem with Test Movie only happens like 20% of
    the time. In that case, it only gets solved if I restart or Log Out
    at least. I have no idea why the Help panel being open solves the
    problem, this only shows that this is probably a little graphic
    user interface bug, or something similar, that could be solved very
    very easily.
    In Flash CS4, there is no Help panel, so there is no solution
    to the problem.
    It would be nice to be able to press Cmd + Enter to see the
    movie, and not have to do File > Export > bla bla bla, open
    Finder, Find the SWF, double click it, wait for the browser to
    open... etc...
    I have a brand new 2.5 GHz MacBook Pro, and Test Movie runs
    faster on my 900MHz Pentium III PC!! Funny...
    Here are some links I found about this problem:
    http://bugs.adobe.com/jira/browse/FP-878
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb407896
    http://www.kirupa.com/forum/archive/index.php/t-258991.html
    This is quite ridiculous, and on Adobe's Support page, the
    solution is "Do not use Test Movie."
    And the funny thing is that they didn't even bother to fix
    this in CS4...
    So basically if something doesn't work, Adobe's solution is
    "Don't use it."
    I guess they're right!
    Please, tell me if anyone has or does not have this problem
    or knows anything about it!
    Thanks,
    Mate

    This is a problem that, having read many forums, affects a
    very large amount of people, though Adobe doesn't care at all. It
    only affects OS X users. I know that it has been addressed many
    times in different forums, but I never actually stumbled across
    anyone having found a solution.
    When I use Flash CS3, and I make any animation, even the
    simplest tween, and I preview it with Test Movie, the result I get
    is an extremely slow playback. Something like half the FPS it
    should be.
    However, when I export the SWF and preview it in the external
    Flash Player or in a browser, it's just fine and fast.
    Another interesting thing is that in CS3, when I open the
    Help panel, the problem with Test Movie only happens like 20% of
    the time. In that case, it only gets solved if I restart or Log Out
    at least. I have no idea why the Help panel being open solves the
    problem, this only shows that this is probably a little graphic
    user interface bug, or something similar, that could be solved very
    very easily.
    In Flash CS4, there is no Help panel, so there is no solution
    to the problem.
    It would be nice to be able to press Cmd + Enter to see the
    movie, and not have to do File > Export > bla bla bla, open
    Finder, Find the SWF, double click it, wait for the browser to
    open... etc...
    I have a brand new 2.5 GHz MacBook Pro, and Test Movie runs
    faster on my 900MHz Pentium III PC!! Funny...
    Here are some links I found about this problem:
    http://bugs.adobe.com/jira/browse/FP-878
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb407896
    http://www.kirupa.com/forum/archive/index.php/t-258991.html
    This is quite ridiculous, and on Adobe's Support page, the
    solution is "Do not use Test Movie."
    And the funny thing is that they didn't even bother to fix
    this in CS4...
    So basically if something doesn't work, Adobe's solution is
    "Don't use it."
    I guess they're right!
    Please, tell me if anyone has or does not have this problem
    or knows anything about it!
    Thanks,
    Mate

  • Flash CC Won't Run Test Movie

    Sometimes when I run test movie or debug movie, the Export SWF Movie dialog displays but then the running movie never displays. After many seconds, a Debug Session Failed dialog displays and “Socket closed” displays in the output window. I can try to run test movie multiple times with no success but each time a SimController process is created and no Simulator window displays. This is on Mac OS 10.8.5 with Flash CC publishing an AIR for iOS 3.8 movie.
    It might be occurring sometimes after a script has been changed in Flashbuilder and is open in Flash CC. I try to run Test Movie in Flash CC and it gives me the changed script/save dialog, I save, and then test the move. However, this works most of the time, but at least a couple times it may have occurred and led to the above error.
    It occurs with multiple different AIR 3.8 movies. It occurs with other AIR movies such as AIR Desktop, but AS3 movies run.
    The only way to fix is to restart the OS. Restarting Flash CC doesn’t help. Killing all the SimController processes doesn’t help.
    The only log message I see at the error time is:
    Jan 19 06:02:16 Davids-iMac.local coreservicesd[41]: FindBestLSSession(), no match for inSessionID 0x186a0 auditTokenInfo( uid=205 euid=205 auSessionID=100000 create=false

    I'm on a 2012 desktop with OS X 10.8.4 using a bluetooth keyboard. Cmd + ~ works with all other Adobe programs I have installed including Flash CS5.5.

Maybe you are looking for

  • How can I play music I purchased with another apple id

    My AppleID has always been my email address.  I had to change it about a year ago and now I can't access anything I purchased from the iTunes store with that ID.  How do I get my music I paid for?

  • Every time I click on the Categories tab or Top 25 tab in the app store, it says 'too many http redirects'

    Every time I open the app store on my iPod touch, it says 'too many http redirects' whenever I click on the Categories and Top 25 tabs. I tried force quitting the app store, that didn't work. I tried closing all windows in Safari and force quitting s

  • Link 1.2.0 says "can't communicate with device"

    Hi guys, my z10 running the official version of 10.2.1.537 can't connect to my blackberry link anymore.  I update the link and since then, hasn't been working.  I uninstalled it and re-installed but still nothing.  I get the message on it saying "can

  • External KM Repository and Microsoft 2007 extensions compatibility issues

    Hi, We are currently having issues when trying to open Microsoft Office 2007 documents through an external KM repository (connected to a Windows share drive).  The new extensions are not recognized, and so the user is only allowed to save the documen

  • Error while reversing flatfile

    Hi, I have changed the demo essbase file according to my requirement as follows. parentName     alias     memberName     dataStorage     twoPassCalc     consolidation     uda     formula Product     Specialty Drinks     Energy Drink     S          +