How can i load a swf AND connect to a network location?

I'm working on a fairly large framework application that
consists of a large number of seperate files (swfs, stylesheets,
xml etc etc) all being loaded in and then connecting to a remote
server.
My problem is that when i compile all my library swfs with
-use-network=false all is well - until i try a
NetConnection.connect() call, when i get told i can't connect to an
internet url from a local-with-filesystem swf.
Ok, so i created a .cfg file and placed it in the
FlashPlayerTrust directory, indicating that i'm giving permission
for everything in my 'deploy' directory to be trusted - which
should allow it to do anything it like (load files AND connect to
the network). But after doing that i no longer get any sandbox but
my NetStatusEvent is never fired! I receive neither a success or
failure message from the NetConnection... it just sits there and
nothing happens...
Can anyone point me in the right direction, there seems to be
precious little information about situations like this, just a lot
of people asking similar questions...
Thanks
T

like i said in the original post the framework is a series of
libraries, they're loaded at runtime depending on what's required.
if i have the netconnection in a single swf it'll work in the
standalone player or in IE or FF.... it'll work if i launch it
locally and connect to a remote server, or when i put it on the
server and access it through a browser.
it's when it goes into one of the libraries that it fails -
so a base swf loads a configuration file which tells it which
libraries it'll need, one of those libraries contains the
netconnection code - and the NetStatusEvent of the NetConnection is
never fired - so i neither succeed nor fail in my connection
attempt
T

Similar Messages

  • How can I know which clients are connected to my network through express and which are connected through extreme?

    I have an airport express extending, through wireless, a network provided by an airport extreme. How can I know which clients are connected to my network through express and which are connected through extreme?
    Here you can see both routers:
    I would expect to some clients connected to the express, other than the extreme. And that's all I see: only the airport extreme appears as client of the airport express.
    Below, one can see the summary of the config for both routers.
    Would somebody explain it?
    Thanks,
    Marcelo
    Message was edited by: Marcelão

    please disregard this answer.
    Message was edited by: Marcelão

  • New to Mac, how can I use isight webcam and connect ot my MS messenger buds

    Ok about to buy an iMac, never used one always had PCs
    however all my buddys use MS messenger, I know there is a version of this for Mac now but dont think it supports the iSight camera. Also I dont think the included app iChat allows you to connect to MSM people does it?
    SO how can I connect to my MSM buddys and use the iSight camera for video talking? is thee a way?
    Does the iSight workk in Win XP via boot camp in MSM on Win XP?
    cheers

    also see http://discussions.apple.com/thread.jspa?messageID=5087786&#5087786
    Any new iNtel Mac (not only MacBook Pro) can use the three choices mentioned there.
    Jim

  • How can I load a picture and use it in ActiveX in run time ??

    I am using an ActiveX object which needs a property "picture" as input.
    I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time.
    In VB, I can do:
    dim pic As Picture
    pic = loadpicture("c:\test.bmp")
    control_1.picture = pic
    (("control_1" is the ActiveX object, and picture is the property))
    How can I do the same with labview?
    Is there any example that sets the picture property of an ActiveX in run time?

    sealiker wrote:
    I am using an ActiveX object which needs a property "picture" as input. I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time. In VB, I can do:   dim pic As Picture pic = loadpicture("c:\test.bmp") control_1.picture = pic (("control_1" is the ActiveX object, and picture is the property))   How can I do the same with labview? Is there any example that sets the picture property of an ActiveX in run time?
    As
    far as I understand from the MSDN site, it seems that the Picture
    datatype is a specific VB only datatype. Most probably it is a handle
    (uInt32) value as far as other programs including LabVIEW are
    concerned, but there is no way that LabVIEW could deal with this
    datatype directly.
    If you can convert this datatype with some VB fucntions into a HBITMAP
    or HDIB then you could call some Win32 API functions to extract the
    relevant bitmap data from this common Win32 datatype and get somewhere
    from there. OR it maybe that VB itself has other functions to extract
    the bitmap data, color palette and other attributes of the Picture
    datatype. Don't expect LabVIEW to be able to deal with the Picture
    datatype directly though, this is really a proprietary VB thing.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I see what equipment is connected to my network?

    I use a Time Capsule for my home network. Is there a way for me to see each device that is connected to my network at any given time?
    There has been an unknown device continue to show up in finder under "shared".... I've reset my network password a couple times and the device continues to show up. (Its identified as "npica53cf")
    Thank you

    Its identified as "npica53cf"
    I think HP has used default network printer hostnames in the format: npi + last 6 digits of the device's MAC address (e.g. "ca53cf").

  • How do i load a swf and take snapshots of that loaded swf?

    hey guys, so i have a multitude of swf's that i need to load into my application, and after loading them i need to take image snapshots of those swf's, to create a slides list.
    i know i can do somehting like this:
    var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(source);
    but the problem is, how do i know if the swf has loaded all the data within it???
    thanks in advance!

    OK.
    Here is the starting point:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Script>
    <![CDATA[
    import mx.controls.SWFLoader;
    private var swfLdr:SWFLoader;
    private function startSWF():void
    swfLdr = new SWFLoader();
    swfLdr.horizontalCenter = 0;
    swfLdr.verticalCenter = 0;
    swfLdr.source = "youFile.swf";
    addElement(swfLdr);
    ]]>
    </fx:Script>
    <s:Button x="50" y="50" label="start" click="startSWF()" />
    </s:Application>
    If this code gives you an error, you want to check that the swf address is correct and the swf itself is not corrupted.
    From that point,  you start build your custom functionality - one step at a time!
    Sorry, HTH,
    FTQuest

  • How can I get airport to automatically connect to a network again?

    Dear helpful ones,
    I connect to the internet and a printer via a wireless router. Previously airport automatically logged in to my network. Recently, I had to reset my router and modem. Since then, airport doesn't automatically log in. I need to manually select my network from the airport menu to join after every time the computer sleeps or is shut down. The password is still in the keychain. I didn't think any of my computer setting had changed or needed to...
    If anyone can offer a suggestion as to how to get airport to once again automatically log in to my wireless network, this would be most appreciated.
    Yours, Jeremy

    There's quite a common problem with OS X and getting it to auto-connect, although there are fairly obvious simple ways to solve it they didn't always work, the procedure below is long winded but does have a fairly high success rate.
    1. Move "System Preferences.app" to "Applications\"
    2. Delete all preferred networks in Network Preferences
    3. Delete all Airport password in Keychain Access
    4. Restart
    5. Choose network from drop-down menu and enter password
    6. Restart

  • How can I set my date and time to ebay network time server?

    In the system preferences I would like to set the date and time to ebay UK time?
    I thought a quick google would be bring up the server and I can't find it.
    At the bottom of every ebay page there is a link to official ebay time
    But its not a live feed of time to get it to the second.
    I want it to be accurate so that I can use applescript to snipe bargins.
    Many Thanks
    Matt

    Just trying to go along the free route. I found Garage Buy   This doesn't work to well but lets you create an applescript and enters the auction into ical. Then you can set ical to run the script once it gets closer to the time.
    Ical only lets you set a time of a minute before the date. So you have to edit the script to add a Delay 59 to have it run 1 second before. From a few refreshes of the time page it looks like ebay time is a second behind, that could be easily be due to time to load the page. anyway i'll opt for a delay of 57secs and give that a try.

  • HOW can I make a .SWF default load after its first load?

    When you have the SAME parent API on every page of an (X)HTML website, can a .SWF tell itself to load from a default position when a website user navigates to different HTML pages?
    Here's my parent API as it stands:
    http://www.playingthepoet.com/
    HOW can you tell the .SWF to load from a default position once the .SWF has loaded a first time? AND from any page of the website, not just the Home page? This is an advanced .SWF networking issue. And I'm not sure if the best solution is a Javascript of if there's a direct AS3 programming solution.
    The blurs and fade-ins are a bunch of timer variables and timer event methods timer event listeners. I want that intro ONLY ONCE. And NOT every time a user changes HTML pages. Please help, and MANY thanks for your time!!
    NT

    Hi ,
    You can set a variable say "count" on stage composition ready -
    sym.setVariable("count" , 0);
    On stage click , you keep checking the value of this variable -
    if(sym.getVariable("count") == 5)
      sym.$("Symbol_2").show();
    //Here "Symbol_2" is the next button that you want to appear on screen(which is initially invisible) when the symbol_1 is clicked say 5 times.
    Now, on click of a button , you keep updating the variable count -
    var countnew = sym.getVariable("count");
    countnew = countnew+1;
    sym.setVariable("count" , countnew);
    Attaching the sample for reference.
    Thanks and Regards,
    Sudeshna Sarkar

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • How can i use this sript and loade another movie?

    Hi there, i used the following script to load a movie from the server;
    var request:URLRequest = new URLRequest("url string");
    var loader:Loader = new Loader()
    loader.load(request);
    addChild(loader);
    How can i use this sript and loade another movie? Can someone help me please?
    [edited by moderator]

    Sir, I changed it from:
    var request:URLRequest = new URLRequest("http://agusandelsur.gov.ph/downloads/pdrrmo/agusan_del_sur/StaJosefa/Movies/Dir.swf");
    var loader:Loader = new Loader()
    loader.load(request);
    addChild(loader);
    to
    var request:URLRequest = new URLRequest("http://agusandelsur.gov.ph/downloads/pdrrmo/agusan_del_sur/StaJosefa/Movies/Warning.swf");
    var loader:Loader = new Loader()
    loader.load(request);
    addChild(loader);
    When i expord the movie i get the following error.....
    Scene 1, Layer 'Layer 3', Frame 1, Line 6    1151: A conflict exists with definition request in namespace internal.

  • How can I get a swf file to load...

    Not sure if this is the place to ask this but I have a swf file embeded in a web page design.
    Now here’s the issue, the client wants to add more photos to it making it even larger.
    I would prefer not to make it larger but create 2 or 3 swf files that would randomly load when the webpage is refreshed or reloaded.
    Is there a way to code a random swf loading in HTML?
    Would I use javascript? I googled and found nothing on the subject.
    Thank you

    If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
    to the for loop if you know how to get a page-loaded request into JavaScript.
    But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities.  In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage.  You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
    -markerline
    P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside.  You can then use CSS to control placement of the SWF object if it is in a div tag.

  • How can I load awd viewer in my swf?

    How can I load awd viewer in my swf? (awd is away builder's file extension)
    I found awd viewer example file in away builder website.
    http://awaytools.com/awaybuilder/tutorial-01/AwayBuilderTutorial01_SampleFiles.zip
    it's works well.
    but it's not working when I'm loading it to my parent swf.
    my parent swf file's code is just this.
    private function init(e:Event = null):void
    loadSWF("AWDViewer.swf");
    private function loadSWF(url:String):void
    var urlRequest:URLRequest = new URLRequest(url); loader = new Loader(); loader.load(urlRequest); addChild(loader);
    how can i solve this problem? plz help me.
    below is zip file of my swf
    https://www.dropbox.com/s/vz2c268ubzfg37k/Flash3DViewer.zip?dl=0

    LD_LIBRARY_PATH doesn't always work well on linux. Try copying the library to /usr/lib and then refreshing the cache by issuing "ldconfig -v" and verify that your library has been catalogued. If your library needs to be located in another path, you may have to edit "/etc/ld.so.conf" prior to running ldconfig.

  • How can I sync the calendar and contacts from my icloud account to the new icloud account we set for him.  I have already set up the Family connections.

    How can I sync the calendar and contacts from my icloud account to the new icloud account we set for my husband on his iPad and iPhone 5S?  I have already set up the Family connections but they are not syncing.
    Thanks.
    Jenny

    Oops my bad...I see that during my troubleshooting I inadvertently left Ringtones unchecked in iTunes.

  • How can I convert my music, and CDs to MP3, for use in my vehicle's AM/FM/ Stereo? I have a 16 GB SDHC Card, that I would like to load up with some of my music.

    How can I convert my music, and CDs to MP3, for use in my vehicle's AM/FM/ Stereo? I have a 16 GB SDHC Card, that I would like to load up with some of my music.
    Thanks for any help you can furnish.
    Ed

    Well, this question really belongs in the iTunes forum, which is where you will get fast answers.
    Just go to iTunes Preferences.  Click on the General icon.  Set When you insert a CD to Ask to Import CD.  Click on Import Settings.  Set Import to MP3 decoder.  Make sure you're using Good Quality.
    This should deal with your CD's.
    With your current music, as long as it does not have DRM restrictions (older iTunes Music did), select the song, right click on the song (or group of songs), pull down to Create MP3 version. 

Maybe you are looking for