Access blobs in private container

Hi,
How can we access blobs in the container using account name and key if the container is marked as private.
If the container is public we can directly download the blob from the url.
Is there any such way to download blobs from private container using url.
Regards,
Kishan.

Hi Kishan,
You could consider using Shared Access Signatures to access BLOBs in Private containers.
You could refer the following links for details on how to create and use SAS (Shared Access Signatures) with BLOB storage:
http://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-shared-access-signature-part-2/
https://msdn.microsoft.com/en-us/library/azure/jj721951.aspx
Regards,
Malar.

Similar Messages

  • Accessing blobs in private container without Shared Access Secret key

    Is there any way to access blobs in private blob container without Shared Access Secret key ? i mean any User / Role based security or domain level security i.e only our domain should be able to access blobs in private container etc.
    Actually i don't want to append SAS key after each blob url to access it, i want my container to be private and also i want to access each blob in that container without SAS key
    any way currently available or planned in future release ?

    Hi Yazeem,
    > That main page loads sucessfully but the js, css, xml files which this page accesses are unable to load because SAS key is not appended to their URL automatically.
    If the main page is served by a http handler and the js, css, xml files are linked using relative address, these files will also be served by the http handler too. For example, if the http handler serves a page in address
    http://xxx.cloudapp.net/blobproxy/index.html and the page links to a script file using tag
    <script src="myscript.js"></script>, actually the browser will use address
    http://xxx.cloudapp.net/blobproxy/myscript.js to access the script file. So the solution is to create a http handler to serve all requests to address
    http://xxx.cloudapp.netb/blobproxy/*.
    For test purpose, I made this sample. Please add a class file BlobProxy.cs to your web role project:
    using System;
    using System.Web;
    using Microsoft.WindowsAzure.StorageClient;
    using Microsoft.WindowsAzure;
    namespace WebApplication2
    public class BlobProxy : IHttpHandler
    // Please replace this with your blob container name.
    const string blobContainerName = "files";
    public bool IsReusable
    get { return false; }
    public void ProcessRequest(HttpContext context)
    // Get the file name.
    string fileName = context.Request.Path.Replace("/blobproxy/", string.Empty);
    // Get the blob from blob storage.
    var storageAccount = CloudStorageAccount.DevelopmentStorageAccount;
    var blobStorage = storageAccount.CreateCloudBlobClient();
    string blobAddress = blobContainerName + "/" + fileName;
    CloudBlob blob = blobStorage.GetBlobReference(blobAddress);
    // Read blob content to response.
    context.Response.Clear();
    try
    blob.FetchAttributes();
    context.Response.ContentType = blob.Properties.ContentType;
    blob.DownloadToStream(context.Response.OutputStream);
    catch (Exception ex)
    context.Response.Write(ex.ToString());
    context.Response.End();
    Then please add this http handler to web.config file:
    <configuration>
    <system.webServer>
    <handlers>
    <add name="BlobProxy" verb="*" path="/blobproxy/*" type="WebApplication2.BlobProxy"/>
    </handlers>
    </system.webServer>
    </configuration>
    Before running the project, please replace blobContainerName with your own blob container that contains both html and related files. Then start debugging the Azure service project and then you can use the following address to access the page:
    http://127.0.0.1:[port number]/blobproxy/[page name]
    I above sample does not work for you, please let me know.
    Thanks.
    Wengchao Zeng
    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact
    [email protected].
    Microsoft One Code Framework

  • List of Blobs in Storage Container

    Hi,
    I am aware I can get a Enumeration Page which provides the list of Blobs in a container in an XML Format.
    The issue is, I can't parse this into HTML with javascript. Ideally I want a file.html or file.php which will list the entire contents of the storage container and give a hyperlink to the resource. Much like a webservers index page.
    Problem is when I use Javascript and do an xmlhttp.open Get command to https://myaccount.blob.core.windows.net/mycontainer?restype=container&comp=list It does not work because I get the following No
    'Access-Control-Allow-Origin' header is present on the requested resource.
    Thus it seems I can not parse the information in this manner.
    Is there any way of achieving this at all.

    Web browsers use a security restriction called "same origin policy" that prevents a web page from calling APIs in a different domain. You must set up
    CORS on your Azure Storage account so web browsers will recognize it as authorized access. For more information, see the following MSDN page:
    http://msdn.microsoft.com/en-us/library/azure/dn535601.aspx
    and the following blog post: http://blogs.msdn.com/b/windowsazurestorage/archive/2014/02/03/windows-azure-storage-introducing-cors.aspx.

  • Using .jpg images in a MS Access BLOB OLE field

    Post Author: bsorensen
    CA Forum: General
    This is condensed from page 124 of the CR v8.5 User's Guide:
    "BLOB (Binary Large Object) fieldsIn general, Crystal Reports allows you to access BLOB fields containing: JPEG, TIFF, or PNG images. In addition, if your data resides in a Microsoft Access database, then Crystal Reports enables you to report on BLOB fields containing OLE 1 and 2 objects and metafiles."
    I have a report that prints one page for each record. I want to include an image that is unique to each record. The above says I should be able to use .jpg's; however, when I do, each page displays only the path to the image and not the image itself.
    I defined an OLE object field in my Access 03 database, performed an insert object and pointed the path to each file. I use CR v8.5 Standard.
    When I change the images to bitmap (.bmp files), it does display the images; however, the resolution is inferior to .jpg.
    Any Ideas?

    You can try ps.setDate, which takes an instance of java.sql.date.
    or ps.setTimestamp to include the time.
    Edited by: fgb on 06-Feb-2010 13:00

  • Quering on blob fields that contain XML

    Hi All,
    I need to query on blob fields that contain XML data. So I wanna say give me XML docs where ELEMENT[@ATTRIBUTE='VALUE']. So, I need to be able to query on attributes. Is there any way to do that?
    Thanks.

    Thanks for the attempt, but tried what you suggested and it will only pull records where the Asterisk is the ONLY character in that data field.
    Maybe I wasn't clear enough.
    I have in access of 200,000 records in KNA1, out of which some of them have one or more * values in the some of the fileds, eg: Comany ABC At XXXX road Workshop  is stored in the Name 1 field, I want all records like this where * is one of the characters in that field.
    May have to download the entire lot and use Excel to filter.

  • Unable to reinstall SCVMM 2012 R2 during database migration - access denied to VMMDKM container

    I'm trying to migrate my SCVMM 2012 R2 DB to a new SQL 2012 server. As per TechNet article http://technet.microsoft.com/en-us/library/dn469626.aspx,
    I uninstalled VMM, which went without a problem. During the reinstall, setup fails with "Unable to create or access the Active Directory container CN=VMMDKM,CN=System,DC=feroscare,DC=local. Access is denied. Specify the distinguished name
    for the container and verify that you have GenericRead|CreateChild|WriteProperty rights on the container." - as is shown in the setup log below.
    I'm trying to use the same account as the service account and to connect to the database. I'm logged into the VMM server as that user account (and running setup as that account). I have verified that the account has full control over the VMMDKM container
    and all descendant objects. I've also added these permissions for the VMM server's computer account, although I'm not sure that's necessary.
    VMM server is running Win 2012 R2, SQL server is 2012 running on Win 2012 R2. Domain controller is running 2008 R2 with AD at the 2003 functional level.
    Please can anyone please advise what to do next to troubleshoot this?
    What seem to be the relevant lines from the VMM setup log:
    "12:33:04:Error:SetupDKM method threw. See inner exceptions, Exception Type: System.DirectoryServices.DirectoryServicesCOMException, Exception Message: A constraint violation occurred.
    12:33:04:StackTrace:   at System.DirectoryServices.DirectoryEntry.CommitChanges()
       at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.AddAccessRule(IdentityReference identityReference, ActiveDirectoryRights rights)
       at Microsoft.VirtualManager.Setup.DKMHelper.SetupDKM(String containerName, String topContainerName)
    12:33:04:VMMPostinstallProcessor threw an exception: Threw Exception.Type: Microsoft.VirtualManager.Setup.Exceptions.BackEndErrorException, Exception.Message: Unable to create or access the Active Directory container CN=VMMDKM,CN=System,DC=feroscare,DC=local.
    Access is denied.
    Specify the distinguished name for the container and verify that you have GenericRead|CreateChild|WriteProperty rights on the container.
    12:33:04:StackTrace:   at Microsoft.VirtualManager.Setup.DKMHelper.SetupDKM(String containerName, String topContainerName)
       at Microsoft.VirtualManager.Setup.DKMHelper.SetDKM(Boolean isDKMEnabled)
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
    12:33:04:InnerException.Type: System.DirectoryServices.DirectoryServicesCOMException, InnerException.Message: A constraint violation occurred.
    12:33:04:InnerException.StackTrace:   at System.DirectoryServices.DirectoryEntry.CommitChanges()
       at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.AddAccessRule(IdentityReference identityReference, ActiveDirectoryRights rights)
       at Microsoft.VirtualManager.Setup.DKMHelper.SetupDKM(String containerName, String topContainerName)
    12:33:04:ProcessInstalls: Running the PostProcessDelegate returned false.
    12:33:04:ProcessInstalls: Running the PostProcessDelegate for PangaeaServer failed.... This is a fatal item.  Setting rollback.
    12:33:04:SetProgressScreen: FinishMinorStep.
    12:33:04:ProcessInstalls: Rollback is set and we are not doing an uninstall so we will stop processing installs"
    Thanks in advance!

    Hi new_guise,
    Please refer to following link regarding "Reinstalling VMM with a Retained Database" :
    http://technet.microsoft.com/en-us/library/cc764334.aspx
    Also please refer to following article regarding that error message :
    http://support.microsoft.com/kb/2721457
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • List blobs in a container based on time condition

    Hi, Azure team,
    Is possible to provide an api only return the list of blobs in a container in some Time Window (e.g, one hour, one day, etc.) from current timestamp. I found some related links to this topic, [I cannot post link here, please search keywords "Filtering
    and deleting blobs in a container based on date and extension?" if you are interested in the link I found :)]
    And find something in [I cannot post link here, please search keywords "List Blobs (REST API)" if you are interested in the link I found:)]while none of them discussed about how to get blobs in a container in some time window.
    From the perspective of implementation, I assume there is some index for the blobs in the container, the index is probably based on hash, is there a plan to add another index based on the order (tree structure based index) to support this kind of query?
    Best,
    Aden

    Hi,
    I suggest you create a ticket to submit this issue to azure expert, I think you will be get professional advice, below is channel.
    #http://azure.microsoft.com/en-us/support/options/
    Hope this helps
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • You do not have permissions to access a database that contains data required for this form to function correctly.

    I have dropdown on infopath form , and it receives data from sql server table ,  it works fine when i am running in preview mode , but when i am publishing form to sharepoint server and loading that form
    i am getting this
    You do not have permissions to access a database that contains data required for this form to function correctly.
    Can you please help?
    Thanks,

    try this one, if not yet
    Convert the data connection to UDC (store it in a Data Connection Library within the same site collection as the form library).  See if this works without any other changes, but if not, then...
    Manually edit your UDC file in Notepad (or your preferred editor) so that the authentication line is not commented out and so that it references the name of the SSO target app you created. 
    For Type, use NTLM.
    Ensure the user has rights to access the database
    Also ensure the connection file has been approved - A sharepoint admin can access a non approved Ucdx file. Go to the connection library and approve the file
    Also check this post having the similar issue:
    http://social.technet.microsoft.com/Forums/en-US/3196bafd-4bc3-40ab-ac2b-d149d1c3e0fa/sharepoint-2010-error-you-do-not-have-permissions-to-access-a-database?forum=sharepointdevelopmentprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Code for using thin client over connection pool to access blob and clob

    Hi,
    Currently I am running WL5.1SP12 with oracle thin client 8.1.7 to access blob
    and clob data. As the performance for concurrent users is very bad, I like to
    use the thin client over a connection pool to access the blob and clob instead.
    My question is whether this is possible and if so does anyone have a sample code?
    Thanks.
    This is urgent as the site has to roll out in 2 weeks..
    Rgd,
    Jason

    See http://e-docs.bea.com/wls/docs61/jdbc/thirdparty.html#1043705.
    "Jason" <[email protected]> wrote in message news:3eba851f$[email protected]..
    >
    Hi Stephen,
    Thanks for the reply. Can I confirm that what you are saying is that in release
    6.1 I am able to access blob/clob data via thin client over connection pool?
    Rgd.
    Jason
    "Stephen Felts" <[email protected]> wrote:
    Blob/clob support through the connection pool came in with release 6.1.
    "Jason" <[email protected]> wrote in message news:[email protected]..
    Hi,
    Currently I am running WL5.1SP12 with oracle thin client 8.1.7 to accessblob
    and clob data. As the performance for concurrent users is very bad,I like to
    use the thin client over a connection pool to access the blob and clobinstead.
    My question is whether this is possible and if so does anyone havea sample code?
    Thanks.
    This is urgent as the site has to roll out in 2 weeks..
    Rgd,
    Jason

  • Access blob storage files by specific domain. (Prevent hotlinking in Azure Blob Storage)

    Hi,
    My application deployed on azure, and I managed all my file to blob storage.
    When i created container with public permission then it accessible for all anonymous users. When i hit URL of file (blob) from different browser, then i will get that file.
    In Our application we have some important file and images that we don't want to expose. When we render HTML page then in <img> tag we define src="{blob file url}" when i mention this then public file are accessible, but same URL i copied
    and hit to anther browser then still it is visible. My requirement is my application domain only able to access that public file in blob storage.
    Amazon S3 which provide bucket policy where we define that for specific domain only file will accessible. see http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
    Restricting Access to a Specific HTTP Referrer

    hi Prasad,
    Thanks for your post back.
    All of SAS and CORS could work, but not comprehensive.
    For your requirement, " My requirement is my application domain only able to access that public file in blob storage.", If you want to stop the other domain site access your blob, you may need set the CORS for your blob. When
    the origin domain of the request is checked against the domains listed for the
    AllowedOrigins element. If the origin domain is included in the list, or all domains are allowed with the wildcard character '*', then rules evaluation proceeds. If the origin domain is not included, then the request fails. So other domain didn't access
    your resource. You also try the Gaurav's blog:
    http://gauravmantri.com/2013/12/01/windows-azure-storage-and-cors-lets-have-some-fun/
    If you access CROS resource, you also need use SAS authenticated.
    However SAS means that you can grant a client limited permissions to your blobs, queues, or tables for a specified period of time and with a specified set of permissions, without having to share your account access keys. The SAS is a URI that encompasses
    in its query parameters all of the information necessary for authenticated access to a storage resource (http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/
    ).  So if your SAS URI is available and not expired ,this URI could be used to other domain site. I think you can try to test it.
    If I misunderstood, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Access super class private variables

    class A
    private int i,j;
    A()
    i=j=20;
    public void show()
    System.out.println(i+" "+j);
    class B extends A
    int k;
    B()
    super();
    k=20;
    public static void main(String args[])
    B b=new B();
    b.show();
    In the above program, when a instance of class A is created, the memory is allocated for 2 private integer variables(i and j in this case) 8 byte of memory gets allocated and the referance is returned to the object.
    ex:
    A a=new A();
    a contains the address of memory allocated for 2 integer variables.
    In this code there is another class called B which contains only one variable of it's own.when a object is creted for class B only 4 byte of memory is allocated and the reference is returned.
    ex:
    B b=new B();
    b contains address of 4 byte of memory allocated.
    my doubt is when the B's constructor is called,it inturn calls super(),
    where the variables are intialized. variable (i,j) does not exist in memory and how are they getting initialized.are they created at runtime and getting initialized.Though B has no explicit control over these variables it can able to access their values.How is that possible??

    Can you please stop creating multiple threads with the same question. There is already a discussion in your other thread. Please don't waste our time.
    http://forum.java.sun.com/thread.jspa?messageID=4063146#4063146
    Kaj

  • Error in Accessing AQ Anydata queue containing LCRs from JMS

    Hello,
    I tried to access Anydata queue containing LCRs (captured by oracle stream capture process) configured in Oracle 10g 10.2.0.3.0 from JMS.
    I am getting following error:
    oracle.jms.AQjmsException: JMS-225: Invalid JDBC driver - OCI driver must be used for this operation
    SQL Code that I used configure in Oracle Streams
    BEGIN
    DBMS_STREAMS_ADM.SET_UP_QUEUE(
    queue_table => 'strmadmin.streams_queue_table',
    queue_name => 'strmadmin.streams_queue');
    END;
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'strmadmin.emp',
    streams_type => 'capture',
    streams_name => 'capture_emp',
    queue_name => 'strmadmin.streams_queue',
    include_dml => true,
    include_ddl => false,
    inclusion_rule => true);
    END;
    And few more SQL, which ensured few records in streams_queue_table.
    Java Code
    qc_fact = AQjmsFactory.getTopicConnectionFactory(host_, database_, port_, "thin");
    q_conn = qc_fact.createTopicConnection(user_, password_);
    q_conn.start();
    q_sess = q_conn.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    Topic queue = ((AQjmsSession)q_sess).getTopic(_user, queue_);
    TopicReceiver receiver = ((AQjmsSession)q_sess).createTopicReceiver(queue, "EXPLICIT_DQ", null);
    Map map = ((AQjmsSession)q_sess).getTypeMap();
    // Register mapping for XMLType in the TypeMap - required for LCRs
    map.put("SYS.XMLTYPE", Class.forName("oracle.xdb.XMLTypeFactory"));
    //wait for a message to show up in the queue
    ObjectMessage message = (ObjectMessage)receiver.receive();
    I used aqapi13.jar as I couldnt find aqapli14.jar in my Oracle DB.
    Can some one pls suggest me what should I do to access AnyData AQ containing LCRs.
    Can some one send me aqapi14.jar to [email protected] , so that I can test with this jar.
    Thanks
    siva

    Hello,
    You need to use the OCI driver as the error indicates.
    The thin driver does not have support for the ANYDATA type in 10.2 only the OCI driver does. in 11.1 onwards the thin driver supports the ANYDATA type. So an option may be to use the jar files from an 11g install.
    Thanks
    Peter

  • Problem with special chars in BLOB datatype using contains keyword

    Facing problem, when part searching with special chars in BLOB datatype. It is considering the non alpha-numeric chars as a separtor in a provided string
    EX:
    SELECT *
    FROM RESUME_TEST P,grst_candidate d
    WHERE d.candidate_id = p.candidate_id
    AND CONTAINS(P.CAND_RESUME,'%VB.NET%',1) > 0
    Strings: , VB.NET , PL/SQL AS/400 , C etc..
    Followed the below approaches
    1) created a table:
    Syntax: create table resume_Test(cand_id number(10),cand_resume blob);
    2) inserted the values into this table upto 60,000
    3) created a context index
    3.1 created preferences
    Syntax:
    BEGIN
    ctx_ddl.create_preference('try_lexer3','BASIC_LEXER');
    ctx_ddl.set_attribute('try_lexer3','printjoins','-_~!@#$%^&*(){}[],=?\;|><.+');
    END;
    3.2 created context index
    Syntax:
    CREATE INDEX CANDRESUME_CTX_IDX ON resume_test (cand_resume)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('LEXER try_lexer3 memory 500M');
    4) while executing this index, it is taking much time approx 6 hrs(plz explain why it is taking time)
    5) Problems:
    5.1 when searching with string(VB.NET , PL/SQL AS/400 , C etc..) it is considering the special char as a separator
    5.2 used escape char (\) also, but no effect
    5.3 when searching with single char, it is giving error (ORA-29902,ORA-20000,DRG-51030)
    5.4 getting the above error with wild card chars (& ,_, (),{},[])
    So, please explain the clear scenarios, why am getting this error , and how to get the proper results.

    Have you tried adding the / char to the printjoin characters?
    Indexing can take a lot of time, depending on the amount of data and your machine's power. You could try to parallelize the index creation and / or assign more memory
    CREATE INDEX CANDRESUME_CTX_IDX ON resume_test (cand_resume)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('LEXER try_lexer3 memory 2000M') PARALLEL 8;

  • Accessing protected and private data of a class

    Hi friends,
    I have writen a sample code in oops abap but iam facing some problem.
    CLASS MAIN DEFINITION.
        public SECTION.
          DATA : VAR1(10) TYPE C VALUE 'NEW VALUE'.
          METHODS : PUBLIC.
      ENDCLASS.
      CLASS MAIN IMPLEMENTATION.
         METHOD : PUBLIC.
           WRITE : /5 VAR1.
              VAR1 = 'CHANGED'.
           WRITE : /5 VAR1.
         ENDMETHOD.
      ENDCLASS.
    START-OF-SELECTION.
        DATA :
               O_MAIN TYPE REF TO MAIN.
               CREATE OBJECT O_MAIN.
               CALL METHOD O_MAIN->PUBLIC.
    now its working fine as public methods can be access by all the people where as protected methods can be access by class and subclass so i can inherit the properties of above class and access the protected data.
    where as to access private data , private data can be access by class itself...
    so now how do i access the private data within the class...ie : how do i get the above output when i use a private section instead of public..
                CLASS MAIN DEFINITION.
        private SECTION.
          DATA : VAR1(10) TYPE C VALUE 'NEW VALUE'.
          METHODS : Private.
      ENDCLASS.
      CLASS MAIN IMPLEMENTATION.
         METHOD : Private.
           WRITE : /5 VAR1.
              VAR1 = 'CHANGED'.
           WRITE : /5 VAR1.
         ENDMETHOD.
      ENDCLASS.
    START-OF-SELECTION.
        DATA :
               O_MAIN TYPE REF TO MAIN.
               CREATE OBJECT O_MAIN.
               CALL METHOD O_MAIN->Private.
    iam getting a error saying you cannot access the private section...
    now private section can be accessed within the class but nt by others...
    to access the private section within the class how should i correct it...
    Regards
    kumar

    HAI,
    Private attributes or methods can be accessed directly by the Object but within the Scope of the Class, but not outside.
    Look at this:
    CLASS MAIN DEFINITION.
    public  SECTION.
    METHODS : Public.
    private SECTION.
    DATA : VAR1(10) TYPE C VALUE 'NEW VALUE'.
    METHODS : Private.
    ENDCLASS. " END of CLASS DEFINITION
    CLASS MAIN IMPLEMENTATION.
    METHOD : Public.
    CALL METHOD Private.
    ENDMETHOD.
    METHOD : Private.
    WRITE : /5 VAR1.
    VAR1 = 'CHANGED'.
    WRITE : /5 VAR1.
    ENDMETHOD.
    ENDCLASS. " END of CLASS IMPLEMENTATION
    START-OF-SELECTION.
    DATA:  O_MAIN TYPE REF TO MAIN.
    CREATE OBJECT O_MAIN.
    CALL METHOD O_MAIN->Public.
    PS: If there is any better alternative solution please share it .
    Best Regards,
    rama

  • Accessing a class private variable in the main timeline

    Greetings,
    noob question.
    Here's my main class:
    package
         import flash.external.ExternalInterface;
         public class main
             public function main()
             public function check_DVBViewer()
                 ExternalInterface.call("check_DVBViewer","test");
                 ExternalInterface.addCallback("AutoIT",AutoIT);
             private function AutoIT(my_msg:String)
                     // here we get the callback string
    in the timeline I have a dynamic text box named my_textbox:
    var my_test:main = new main();
    my_test.check_DVBViewer();
    my_textbox.text = ???????
    Basically the class waits for the callback variable (my_msg).
    The problem is: I need to set the dynamic textbox text to my_msg variable.
    How can I access it?
    I know I can access a public var in the timeline with functioname.variable but I can't define a public var inside a function, right?
    Thank you very much for your time.

    dispatch an event when the string is ready:
    package
         import flash.external.ExternalInterface;
         public class main
    private var msg:String;
             public function main()
             public function check_DVBViewer()
                 ExternalInterface.call("check_DVBViewer","test");
                 ExternalInterface.addCallback("AutoIT",AutoIT);
             private function AutoIT(my_msg:String)
                     // here we get the callback string
    msg=my_msg;
    dispatchEvent(new Event("stringready"));
    public function get msgF():String{
    return msg;
    in the timeline I have a dynamic text box named my_textbox:
    var my_test:main = new main();
    my_test.addEventListener("stringready",f);
    my_test.check_DVBViewer();
    function f(e:Event):void{
    my_textbox.text = my_test.msgF;

Maybe you are looking for

  • How to download Siri WITHOUT jailbreaking

    i watched a youtube video on how to get siri. It seems to just be downloading an app. but i just wanted to make sure it's not jailbreaking so i don't void any waranties. the video is:http://www.youtube.com/watch?v=HQ3qAuE6igU. Does this actually work

  • Question about DVDs very simple to an expert

    um i have a black macbook its sixth months old and i coould never figure out is their anyway say i put a dvd in can i burn it to the comp so i can watch it on the computer without having the disc in is there anyway this can be accomplished

  • Some FI Questions

    Hello SAP Gurus: I have a couple of questions that I came across. Could you please point to where I can get some information on these? How do you perform cash reconciliation? How do you do post processing of Cash Applications? (or what exactly do we

  • Google Calendar can only be read out but not modify

    hello,   i could set up my Google Calendar account in my playbook abd sync it. eveything is there. but... i can not add or modify appoitements.   is it a limitation? i wish to have full access to my calendar on my android phone and on my playbook.  

  • Best way to work on timerange from FCP X project in motion?

    Suppose there is a region within my FCP X that I want to add some touches (that may rely on the footage and sound i.e. tracking etc) in Motion. As I cannot export a region from FCP X, just the whole time line, for long projects this seems quite ineff