Link File Using Code in Flash Builder

Is there any way  to link to a file on a local drive rather than a url by using action script in Flash builder? For example is there a type of "file request" instead of "url request"  command I can use?
Thanks,
SN

Hello Susan;
I don't know if this helps, but I was having code hint issues also, here is the link to the discussion.
http://forums.adobe.com/thread/553610?tstart=0
John

Similar Messages

  • How use flex sdk 3.5 Action Script-3 code in flash builder 4.5............???

    hiiiiiiiiiiiiiiiiii
    can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....

    Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
    In flex3 we are making a component ex: <mx:canvas> and changeing that component to
    <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
    </cairngorm:ServiceLocator>
    if any one used 4.5 with cairngorm let me know
    thanks

  • Using flex4.1, Flash Builder giving error "flash.filesystem::StorageVolume could not be found."

    Hi there,
              I'm trying to copy some files to Storage Card on a AIR application. Is this possible with the latest version of the AIR SDK (2.0)?
              I am developing in Flash Builder. I have downloaded the lastest flex sdk(4.1)  and used it.
              Flash Builder then recognises the StorageVolume and StorageVolumeInfo classes. However when I then run the app the debugger throws an error on the following line:
    LINE:
    var volumes:Vector.<StorageVolume> = StorageVolumeInfo.storageVolumeInfo.getStorageVolumes();
    Note: I have imported both classes as well.

    I'v read the article
    http://forums.adobe.com/message/2984004#2984004,
    and checked my application.xml, The content of the first two lines is:
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.0">
    Error message from flash builder debug:
    typecheck Player/getLocalVideo()
      outer-scope = [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ mx.core::FlexSprite$ mx.core::UIComponent$ spark.components.supportClasses::SkinnableComponent$ spark.components.supportClasses::SkinnableContainerBase$ spark.components::SkinnableContainer$ spark.components::Application$ spark.components::WindowedApplication$ Player$]
                           [Player[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {} ()
      0:debugfile "D:\My Documents\Adobe Flash Builder 4\LiveVideoClient\OnSiteEnforceLawPublish\src;;Player.mxml"
                           [Player[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {} ()
      2:debugline 20
                           [Player[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {} ()
      4:getlocal0
                           [Player[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {} (Player[O])
      5:pushscope
                           [Player[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {Player[O]} ()
      6:pushnull
                           [Player[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {Player[O]} (null[O])
      7:coerce_s
                           [Player[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {Player[O]} (String?[S])
      8:setlocal 5
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] *[A] *[A] *[A] *[A] *[A]] {Player[O]} ()
      10:pushnull
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] *[A] *[A] *[A] *[A] *[A]] {Player[O]} (null[O])
      11:coerce mx.collections::ArrayCollection
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] *[A] *[A] *[A] *[A] *[A]] {Player[O]} (mx.collections::ArrayCollection?[O])
      13:setlocal 6
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] *[A] *[A] *[A] *[A]] {Player[O]} ()
      15:pushnull
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] *[A] *[A] *[A] *[A]] {Player[O]} (null[O])
      16:coerce flash.filesystem::File
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] *[A] *[A] *[A] *[A]] {Player[O]} (flash.filesystem::File?[O])
      18:setlocal 7
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] *[A] *[A] *[A]] {Player[O]} ()
      20:pushnull
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] *[A] *[A] *[A]] {Player[O]} (null[O])
      21:coerce_s
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] *[A] *[A] *[A]] {Player[O]} (String?[S])
      22:setlocal 8
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] *[A] *[A]] {Player[O]} ()
      24:pushnull
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] *[A] *[A]] {Player[O]} (null[O])
      25:coerce_s
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] *[A] *[A]] {Player[O]} (String?[S])
      26:setlocal 9
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      28:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      33:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      38:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      43:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      48:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      53:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      58:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      63:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      68:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      73:debug
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      78:debugline 23
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} ()
      80:findpropstrict flash.filesystem::StorageVolumeInfo
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} (Object[A])
      82:getproperty flash.filesystem::StorageVolumeInfo
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} (*[A])
      84:getproperty storageVolumeInfo
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} (*[A])
      86:callproperty getStorageVolumes 0
                           [Player[O] *[A] *[A] *[A] *[A] String?[S] mx.collections::ArrayCollection?[O] flash.filesystem::File?[O] String?[S] String?[S] *[A]] {Player[O]} (*[A])
      89:coerce __AS3__.vec::Vector
    VerifyError: Error #1014: Class flash.filesystem::StorageVolume could not be found.
    at Player/___Player_WindowedApplication1_windowComplete()[D:\My Documents\Adobe Flash Builder 4\LiveVideoClient\OnSiteEnforceLawPublish\src\Player.mxml:4]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core \UIComponent.as:12528]
    at spark.components::WindowedApplication/enterFrameHandler()[E:\dev\4.x\frameworks\projects\ airspark\src\spark\components\WindowedApplication.as:2355]

  • Using papervision in flash builder and getting TypeError: Error #1009: when using object.pitch(5)

    When i use papervision in flash builder and i am doing a test, when i render a sphere using papervision with the following code it renders me the sphere.
    When i add a line sphere.pitch(2);      ||
    sphere.yaw(2);
    sphere.roll(2);
    i get the following error,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at PvTest/onRenderTick()[D:\Android 3D\PvTest\src\PvTest.as:39]
    Can anyone help me figure out the error
    For additional Info, these are the imports i am doing:
    import org.papervision3d.objects.primitives.Sphere;
    import org.papervision3d.view.BasicView;

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • How to embed html code in flash builder 4 ?

    How to embed html code in flash builder 4 ?

    Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
    In flex3 we are making a component ex: <mx:canvas> and changeing that component to
    <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
    </cairngorm:ServiceLocator>
    if any one used 4.5 with cairngorm let me know
    thanks

  • File System issues in Flash Builder 4.7

    We recently upgraded from Flash Builder 4.0 (and in one case, Flash Builder 4.5) to Flash Builder 4.7. We are using Team Foundation Server for collaboration. We've been having a number of issues, mostly with our file system:
    After downloading a library from TFS, this library will sometimes disappear after downloading another library from TFS.
    Also, after removing an association to a library, that library may disappear.
    When adding additional libraries to source paths, we often find that the library is not acknowledged (errors when trying to use a member of that package)
    After fixing some compiler errors reported in the source code, the Problems window does not always reflect this.
    The compiler error icons in the left column do not always match the line of code it is next to.
    Any experience or resolutions for these issues would be much appreciated.

    Hi Blake,
    In another page (http://forums.adobe.com/thread/1056583), Adobe states that it will be possible to download 4.6 in alternative to 4.7, to still have the Design View. However, I have not seen such possibility yet.
    I will not say that "real programmers don't use design mode". They do, if it works fine.
    However, the Design View was not very useful for mobile projects, if you wanted to create an interface which, at run time, adapts to different screen estates.
    It was very good to draw an initial mock-up, but only the simulator (and the device) can say how the app really looks like (if you want to know more, please have a look here: http://aliencoding.com/2013/02/22/adobe-flash-builder-4-7-has-no-design-view-is-it-blasphe my-no-but-the-software-contains-some-other-blasphemous-aspects/).
    If you develop for desktop, then I agree the Design View lack is a real drag. I think Adobe should at least lower the price of the program, now that it's been scaled down for (I think) copyright issues (the Design mode relies on Flash professional components that was not donated to Apache).
    I love this platform because it really saved my butt in cases of real fast devployment, BUT NOW it lacks support for Windows 8 that PhoneGap has...
    Can we say... it is a legacy framework by now? 

  • Is there a limit to the amount of SWCS I can use in my Flash Builder app?

    I have 3 swc folders in my flash builder project that includes about 40 swcs total. Each swc is a simple flash animation with a size of about 500 kb each. When I include and complile about 20 of them in my project, things work fine.
    When I try to include all my swcs, the app compiles, but when i make changes in my code and save those changes, each time the compile becomes slower and eventually my flash builder freezes at about 52%, gives me a "java heap error" message, and then crashes. After restarting FB, when I take out most of the swcs from the build, FB acts normal again. Attached is a screen shot of my error.
    Is there a limit in size or amount of swcs that I can use in my FB application?

    There are no limits. But there is a known memory leak (which is being fixed for a later release).
    Would it be possible to attach a sample SWC so that we can confirm whether this is a known leak or not? I'll take care of filing this in bugs.adobe.com.
    Meanwhile, in your Flash Builder installation directory, you can edit FlashBuilder.ini to bump up max heap size by editing:
    -Xmx512m
    to
    -Xmx800m

  • How to connect my app interface with the code in flash builder?

    I'm a beginner and learning my way around actionscript,mxml and flash builder.So this may seem foolish but please bear with me,I'm creating a very simple ios app using flash builder,I have created a simple app interface (A background and a custom navigation bar)using photoshop for my app,now the question is how do i import it into flash builder so that i can connect it with the code i have written? or is there another simpler way to create a app interface using other products like fireworks or catalyst?
    In short, I want to know how is an app interface created(wt software) and how is it connected with its code using flash builder.Any help would be greatly appreciated, and tutorials would be swell
    Thanks!

    Can you use stage.width or stage.stageWidth?

  • Using TransformGestureEvents in Flash Builder

    Hi all,
    I  am trying to use the TransformGestureEvents to allow interaction inside  of a FLARE based application. I want to create a data visualisation app  with touch interaction.
    I have Flash Player 10.1, which  is needed for these classes, as i have already used them in a Flash CS5  test project, and i worked great!  But when i try to import the  transform gesture events, an error appears saying:
    1172: Defination flash.events:TransformGestureEvents could not be found.
    Has anyone got any idea how i can use TransformGestureEvents inside of Flash Builder?
    Any advice, is deeply appreciated!
    Thanks in advance

    Thanks for your reply!
    I am using flex 4.0 SDK and flash player 10.1.
    Since then i have tried to use the adobe air 2.5 SDK because I read somewhere that it included Touch events. I have tried to overlay the AIR SDK into my Flex 4.0 SDK folder and it doesn't seem to have worked. I am using a mac and the documentation out there to do this , isn't exactly straight forward and ive followed the instructions, but no success. Im really surprised that Adobe have not released a flex SDk with Touch events include, i mean it seem dumb not too!?!?
    Maybe if i gave you more of an insight into what i want to achieve, this could help.
    I want to use flash builder to create a search for a series of media API's (e.g Spotify/Last.FM or YouTube) the user would search for what they want and the results would be displayed in a Radial Tree Layout using the FLARE library to construct the visualisaton and I wanted to use Gestures to enable the user to navigate around the results, (ZOOMING, SELECTING, etc). I have thought about using OpenFrameworks to do this, but I would prefer to use FLASH.
    I am creating this project for my Final Degree!
    Any advice on this, would be great.

  • Using SSL in flash builder 4 data service with PHP

    I am converting a program I wrote with Flex 3 into Flash builder 4, and I wanted to try to use the built-in data services instead of using the httpservice as I was doing before. The one thing I cannot figure out is how to make it use a secure connection (https) when connecting to that data service. I have looked everywhere I can think of and cannot find where I can set this. Anyone know where and how to set this? The server I am connecting to only allows secure connections, so doing it any other way is not an option.
    Thanks.

    Having the same problem with a Java REST service using HTTPS requests, Adobe Air appears to ask to verify the certificate with every single request on windows ???  and on mac after accepting the certificate  we do not get a result?

  • How to use tlfx in Flash builder 4.

    Hi,
    How can i compile the tlfxproject and include it in flash builder 4?
    I need the table and bullet features, to create an advanced editor.
    I already have the source for tlfx, but don't know how to proceede.
    Thanks.
    Allan

    Hi
    Currently i haven't found any documentation describing how to compile and use this tlfx.
    I went through the change log to see what was added, and it looked quite good.
    I have tried to compile it, but my experience with fb4 is very limited. I have only worked with it for a couple of months.
    I would like a description of how to compile and use this tlfx liblrary in a flex application, so that i can have table supprt as well as support for bullets and numbering.
    TIA
    Allan

  • How to use Alcon in Flash Builder 4.5

    I am using Alcon as memory and performance profilers.
    I searched around the Internet, only found articles that talk about how to use it in Flash:
    Debug.monitor(stage, 1000);
    But what is the counterpart to this statement in Flex environment? What should I pass to monitor method?
    Thanks.

    Hi
    Currently i haven't found any documentation describing how to compile and use this tlfx.
    I went through the change log to see what was added, and it looked quite good.
    I have tried to compile it, but my experience with fb4 is very limited. I have only worked with it for a couple of months.
    I would like a description of how to compile and use this tlfx liblrary in a flex application, so that i can have table supprt as well as support for bullets and numbering.
    TIA
    Allan

  • Possible to create a static library (.a) file for Xcode with Flash Builder?

    Is it possible to write code in AIR that can be compiled to static library (.a) to be used in an iPad app?

    Hey paulhart83,
    My guess is therabbitwindfall's answer was correct but where you able to find a solution to your question? If so, please do share. I need to embed my app within another app and the only way is through a static library. I'd rather not have to re-develop my app in Xcode in order to generate the .a file.
    Thanks.
    Novian

  • How to import a picture into a Psd file using codes?

    I'm trying to import a picture into a psd file as a new layer, but i can't find the method of photoshop object in visual studio 2010 object browser. Is it possible to do this job using vb.net codes?
    Any suggestion will be gratuated!

    I beleive Michael L Hale stated that he used the ScriptListener to generate code for PhotoShop "menu File>Place".  Many things can not be done through in Photoshop Scripting through the Adobe's normal scripting methods Adobe provided for scripting.  However Adobe also supplied  the ScriptListener.8li plugin which when installed is a bit like the actions palette's action recorded without controls.  Everthing that can be recorded in Photoshop is written to two files on your desktop in script code one in Javascript the other VBS.  The Script code use an Action Manager Method so thing not posible with normal scripting methods can be use in scripts.  The only way to start and stop recording these two script files it to install ScriptListener.8li before you start Photoshop and to uninstall it after you exit Photoshop. Awarkward but better then nothing there is no logic just step, step, step like actions and the code is not all that readable.  However you can take that code and modify it to use vars to turn steps into javascript functions and whatever VBS uses.
    For example Place
    REM =======================================================
    DIM objApp
    SET objApp = CreateObject("Photoshop.Application")
    REM Use dialog mode 3 for show no dialogs
    DIM dialogMode
    dialogMode = 3
    DIM idPlc
    idPlc = objApp.CharIDToTypeID( "Plc " )
        DIM desc3
        SET desc3 = CreateObject( "Photoshop.ActionDescriptor" )
        DIM idnull
        idnull = objApp.CharIDToTypeID( "null" )
        Call desc3.PutPath( idnull, "D:\\Temp\\Portrait\\dsc6234.psd" )
        DIM idFTcs
        idFTcs = objApp.CharIDToTypeID( "FTcs" )
        DIM idQCSt
        idQCSt = objApp.CharIDToTypeID( "QCSt" )
        DIM idQcsa
        idQcsa = objApp.CharIDToTypeID( "Qcsa" )
        Call desc3.PutEnumerated( idFTcs, idQCSt, idQcsa )
        DIM idOfst
        idOfst = objApp.CharIDToTypeID( "Ofst" )
            DIM desc4
            SET desc4 = CreateObject( "Photoshop.ActionDescriptor" )
            DIM idHrzn
            idHrzn = objApp.CharIDToTypeID( "Hrzn" )
            DIM idRlt
            idRlt = objApp.CharIDToTypeID( "#Rlt" )
            Call desc4.PutUnitDouble( idHrzn, idRlt, 0.000000 )
            DIM idVrtc
            idVrtc = objApp.CharIDToTypeID( "Vrtc" )
            DIM idRlt
            idRlt = objApp.CharIDToTypeID( "#Rlt" )
            Call desc4.PutUnitDouble( idVrtc, idRlt, 0.000000 )
        DIM idOfst
        idOfst = objApp.CharIDToTypeID( "Ofst" )
        Call desc3.PutObject( idOfst, idOfst, desc4 )
    Call objApp.ExecuteAction( idPlc, desc3, dialogMode )

  • Using Haxe with Flash Builder

    Has anyone tried this?

    You probably created a Flex project - the ActionScript Compiler section will only be there for ActionScript projects. If you want to enable Telemetry for a Flex project, or for an existing swf (without recompiling), see here:
    http://renaun.com/blog/2012/12/enable-advanced-telemetry-on-flex-or-old-swfs-with-swf-scou nt-enabler/

Maybe you are looking for

  • Unable to create database due to ORA-12560, TNS protocol adapter error

    Hello, I'm trying to create an 8.1.7.0 database on a W2k server, but it is failing because as soon as svrmgrl is launched, I get an ORA-12560, TNS: protocol adapter error: D:\oracle\db_creation_scripts>D:\oracle\ora81\bin\svrmgrl @D:\oracle\db_creati

  • B2B ebMS certificate expiry fix failing in MLR 8

    Hi Gurus, As mentioned in the metalink note 803466.1, that the ebms certificate expiry fix is given in MLR 8. I have applied MLR 8 and trying to send a signed message. I have followed the instructions given in the note. Steps followed were 1) Make a

  • Connect 2 Macs w/ Firewire. Not Target disk mode.

    I have a PowerBook and an early 09 iMac 24". I used to connected them via firewire to transfer files. Suddenly... the iMac won't recognize the PowerBook... but the Powerbook will recognize the iMac. Actually, the iMac does recognize the PB, but only

  • Javascript error for detailed navigation tree : 't' is undefined

    Hi everybody, I have a problem on my anonymous role. When i click on the link page of a km navigation IView in the detailed navigation tree, the IView open itself but the navigation tree disappear and i have a Javascript error : Error :  't' is undef

  • 2x16 GB RAM instead of 4x8 RAM?

    I am planning to buy the new MacPro. I mainly do after effects and cinema 4d. I am confsued wheather to buy a 6 core or an 8 core CPU. Is it worth spending additional $1500 for 8 core? On the other note, in regrards to the future upgrades currently i