External loader headache

hi all so far i have this loader which loads all content upto the main menu and then loads in an explanation for the games which will follow
basically i do not want to remove the wholesite child as it is rather big and i do not want the user to have to re-download after quitting a game
so here is the preloader *****************************
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
var myMovieClip:MovieClip = new toggleButton();
var content_mc:MovieClip = new MovieClip();
myMovieClip.x = 780.0;
myMovieClip.y =30.0;
addChild(content_mc);
addChild(myMovieClip);
var loadedSWF:Loader
var progressPercent:Number;
function startLoad(SWFName:String):void {
    loadedSWF = new Loader();
loadedSWF.contentLoaderInfo.addEventListener(Event.COMPLETE, gameLoaded);
loadedSWF.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
    loadedSWF.load(new URLRequest(SWFName+".swf"));  
//track progress
function onProgressHandler(loadingProgress:ProgressEvent){
var percent:Number = loadingProgress.bytesLoaded/loadingProgress.bytesTotal;
progressPercent = Math.round((percent*100));
preload_mc.gotoAndStop(progressPercent);
preload_mc.myloadtext_txt.text=(progressPercent + " %")
  preload_mc.myloadbar_mc.scaleX = percent;
  preload_mc.mc_mask.height=(progressPercent * 3);
preload_mc.ofBytes_txt.text = loadingProgress.bytesLoaded + " bytes";
preload_mc.totalbytes_txt.text = loadingProgress.bytesTotal + " total bytes";
function gameLoaded(e:Event):void{
removeChild(preload_mc);
content_mc.addChild(loadedSWF);
loadedSWF.contentLoaderInfo.removeEventListener(Event.COMPLETE, gameLoaded);
loadedSWF.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler);
function nextSWF(whichSWFName, removeSWF){
    if(whichSWFName == "startPages"){
content_mc.removeChild(removeSWF.parent);
   addChild(preload_mc);
  startLoad("wholesite");
  if(whichSWFName == "wholesite"){
  addChild(preload_mc);
  startLoad("explan0");
  if(whichSWFName == "explan0"){
       content_mc.removeChild(removeSWF.parent);
    addChild(preload_mc);
  startLoad("gameone");
startLoad("startPages");
each of these loaders are accessible by using a command from a button such as
(parent.parent.parent.parent.parent as MovieClip).nextSWF("wholesite", this.parent.parent);
this will tell the loader that wholesite is finished with and load the next one
so here is the headache
I get to the explan0 page, I have a button which should exit the program and return the main menu
   function exitclick(event:MouseEvent):void {
   exitdirect="exitclicked";
   e_mc.menubar_full_mc.menu_items_mc.menu_exit_mc.gotoAndPlay("exit_clicked");
ok so the question is how can i tell the loader to run a function in "wholesite" called tweenstart() ??
when the explan0 is removed as a child
many thanks for any info
Fonzio

Don't know what's up, then. If you have the MIDI input set to the same controller in your channel strip inspectors for both the software instrument and the external instrument, they should both respond accordingly. You could try creating a new, fresh Concert, and just add a single software instrument and external instrument and try, just in case something is corrupt or fubar.
To be safe, you could make sure your external controller is set up correctly in audio/midi setup.
Also, you could try the same basic config in Logic and see if all works correctly....

Similar Messages

  • Enable External Load Balancing error

    Hello,
    I'm trying to create a DirectAccess farm with 2 external Load balancers (Step 3.1.1 http://technet.microsoft.com/en-us/library/jj134166.aspx)
    The first server is configured (Behind a Edge with 2 NICs) and working but when trying to enable External Load Balancing, I immediately receive this error when applying the settings:
    Initializing operations before applying configuration
     Backing up GPOs...
    Updating cluster settings
     Retrieving server GPO details...
     Opening the server GPO...
     Error: The configuration data for this product is corrupt. Contact your support personnel.
    Finishing operations after applying configuration
     Information: Attempting to roll back the configuration...
    The DirectAccess dashboard shows that all services are fine, the DC is available and no errors are logged in the Event Viewer.
    I can't find any explanation about a possible corrupted configuration.

    Ok... Found the problem... You can't mix Internet IP and LAN IP to create the VIP...

  • Dynamic Text in Externally Loaded swf

    hi. i have a dynamic text field in an externally loaded swf. Its a digital clock so i want the numbers to update in the dynamic text field.
    this is not my exact code but it is very similar. i show below that i add the loader.swf, and once its loading is complete, i can work on its movieclips and add event listeners to its buttons, etc. but i cannot change the dynamic text field (its "classic text" set to "dynamic text"). after running this, the text just stays empty as it is in the external swf).
    here is the sample code:
    var loader:Loader = new Loader();
    loader.load(new URLRequest("loader.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
    function loaded(event:Event):void{
         addChild(loader);
         var loader_mc:MovieClip = (loader.content as MovieClip)
         loader_mc.myMovieClip.gotoAndStop(2);//***this works
         loader_mc.myButton_btn.addEventListener(MouseEvent.CLICK, clickMe);//***this works
         loader_mc.myText_txt.text = "12";//***this doesn't work******
    please help. thanks!

    Did you embed the font in the textfield--it needs to be done in the loaded swf when you create it? One other thing to check is that the color for the textfield is not the same as the background it sits on.

  • Using the DateField in an Externally loaded SWF

    Hello,
    I have been having major trouble trying to get a basic PHP
    contact form to work within an externally loaded SWF file inside of
    a parent SWF. When I test the movie on its own it seems to work
    fine (example: I'm able to select a date from the DateField
    component). However, when I open up the parent SWF file and call
    the external SWF file with the form the DateField is basically
    unusable (example: when you click on it nothing happens, no
    calendar pops up to select a date).
    I have no ActionScript on it yet, simply because I figure I
    need it to work before I tell it what to do with the PHP file. The
    instance name on the DateField is "theDate". Any help is very much
    appreciated. Thank you.
    Also, I have just successfully used the contact form on the
    web. But, the only user interface components I am able to edit are
    the input text boxes, not the DateField or the ComboBox I have in
    it as well. This is very odd, I was not aware that anything special
    had to be done using these UI components within an external file.
    Elijah

    Hello 2m,
    Maybe if you were to see it, it may help you out a bit. If
    you
    click
    here for the external file you will see that the components are
    working. However, if you
    click
    here for the parent file and then click on "Meetings" on the
    top menu you will see that they do not work at all. However, if
    someone were to hit the "send" button, the PHP code would actually
    interact with the form. Let me know if that helps at all. Thanks
    again for replying.
    Elijah

  • UAG External Load Balancing and ISATAP

    Hi Experts,
    I am deploying a UAG Array to be used for Direct Access. The Array will consist of two servers and use an F5 External Load Balancer. In addition and in similarity
    to 90% of the other corporate intranets out there, the internal network is IPv4 with no IPv6 transition technologies deployed. The article
    http://blogs.technet.com/b/edgeaccessblog/archive/2010/05/17/configuring-an-external-load-balanced-uag-directaccess-array-for-an-ipv4-only-network.aspx
    isgreat but to my mind has no information to support ‘Manage Out’ and throws up a number of questions: (Note that I want to enable ‘Manage Out’ capability and as far as I am aware that is achieved by using ISATAP)
    The article describes that you have to generate and configure your own IPv6 address for the internal interface when using an external load balancer. Does anyone know why? Why not let UAG assign
    the addresses as per the default?
    UAG by default configures itself as an ISATAP router when there is no IPv6 infrastructure deployed on the internal network
    to facilitate ‘manage out’. This still applies when using Windows NLB. Why does this no longer apply when using an external load balancer? I.e. Why does UAG no longer configure itself as a ISATAP router?
    In relation to question 2; you therefore need to move your ISATAP router to a different device (http://technet.microsoft.com/en-us/library/ee690463.aspx),
    in doing so how do you configure the ISATAP environment to traverse the UAG servers without some sort of load balancing on the internal interfaces? I’m assuming that you can only tell the ISATAP router to use the one default gateway i.e. either one UAG server
    or the other. This means that you would have all your outbound internally initiated traffic going via one server only – not very good for performance or fault tolerance.
    In relation to question 3; I thought therefore that NLB could be used on the internal interface to solve the above problem, except that I have read that you can’t mix and match external load
    balancing and NLB even though they are on separate networks due to bidirectional affinity. What does this actually mean and why does this not occur when load balancing is mixed in this manor?
    Therefore when you wish to use external load balancers, do you:
    A) Except the fact that you can’t use UAG as a ISATAP router and you do indeed need two devices
    and deploy it as described here (http://technet.microsoft.com/en-us/library/ee690463.aspx)
    or
    B) Except the fact that that you can’t use UAG as a ISATAP router and any internal outbound
    traffic travels via the one UAG server only.
    Apologies for the long post, but I wanted to make sure that I get my thoughts down concisely so that it may help others who come up with the same questions
    J
    Thanks for your time everyone
    Gary

    I am also facing the same issue.  I have UAG1 and UAG2, which are in an array, and externally load balanced.  I've configured an external ISATAP router according to: 
    http://www.windowsnetworking.com/articles_tutorials/Configuring-ISATAP-Router-Windows-Server-2008-R2-Part2.html.  However, as mentioned by others, the ISATAP router has to have either UAG1 or UAG2 as the next hop for IP-HTTPS traffic.  As
    a result, communication between the DirectAccess client and management devices will only work if the client is tunneling through the same UAG server that the ISATAP router has as the next hop for the IP-HTTPS prefix.  From what I can tell, my configuration
    is supported, but I can't figure out how to have the ISATAP router determine which UAG server a client is tunneling through.  I thought about having two separate IP-HTTPS prefixes for each UAG server, but this would get overwritten when activating
    the DirectAccess configuration.  Maybe some type of internal load balancing?

  • External Load Balancing OAM11g Servers

    With OAM 11g, DB 11.2.0.1, RHEL5.6, and WLS 10.3.5... we have clustered the managed servers and all that displays, starts, stops as expected -- hosts are H1 and H2. We also have an external load balancer (haproxy). By "external", I mean that the host (PRHost) where the protected resource (PR) resides is outside the LB and all of the OAM infrastructure is inside the LB. We actually have 2 layers of LB because we are also trying to create a disaster recovery site, but for now we'll concentrate on the just the webgate and the LB.
    We have installed WLS 10.3.5, OHS 11.1.1.2, and have deployed a PR on the PRHost. We then installed the 11g webgate on PRHost and instantiated the webgate within the OAM Server on H1 and moved the artifacts to the PRHost.
    The question is fairly simple -- at least from my perspective -- the webgate gets its connection information from the ObAccessClient.xml artifact created when the webgate was added to the OAM Server. The only connection the webgate understands is the listing of the primary/secondary OAM Servers within that artifact.
    QUESTION:+ When we access the protected resource, how will it know to go through the external LB if the only connection information it has is the OAM Server? We realize that there is LB information within the OAM Server setup, but this means that in order to determine where the LB is, we need to first access the OAM Server setup. We require the PR to first go through the LB to find an available OAM server, but there appears to be nothing on the PR webgate to inform it how to find the LB.

    Luis,
    you need the command 'portmap disable' available in 5.01 and 5.03
    gilles.

  • Externally loaded FLV

    In my SWF fie, I have an externally loaded FLV file.
    I now want to add another FLV that will load and play
    automatically when the first one is finished.
    I actually want the SWF to jump to a new scene when the first
    movie is done.
    How can I do that/ what the actionscript?
    Steven

    Hey Steven,
    I am not very sure but just giving a shot answering it...
    You can use FLVPlayback.complete event to detect the
    comepletion of first flv and set the path of other flv on complete.
    Something like this:
    import mx.video.*;
    my_FLVPlybk.contentPath = "
    http://www.helpexamples.com/flash/video/clouds.flv";
    var listenerObject:Object = new Object();
    // listen for complete event; play new FLV
    listenerObject.complete = function(eventObject:Object):Void {
    if (my_FLVPlybk.contentPath == "
    http://www.helpexamples.com/flash/video/clouds.flv")
    my_FLVPlybk.play("
    http://www.helpexamples.com/flash/video/water.flv");
    my_FLVPlybk.addEventListener("complete", listenerObject);
    Hope that works...

  • External loading

    Hi guys.  Just have a couple of questions about external loading.
    Firstly, in order to reduce the file size of my swf, I want to place all the video and image content on a server and just loading it in using as.  Is this done using a standard URLRequest or do I need the NetConnection thing?
    Secondly, say I aim to have a preloader, which loads all content of the swf before the users enters the website (The swf will be a website...I aim for no loading whatsoever when the user enters the site).  Will the preloader load all the content which relies on the above method (URLRequest or NetConnection), or will this only happen when the user navigates to a page which holds the video or image to be loaded from the server?  
    Any advise appreciated as always,
    cheers

    you can load swfs and bitmaps using the loader class.
    and, if you have a preloader for your main swf that will not preload swfs and bitmaps loaded using the loader class unless you explicitly preload those assets.

  • Controll the ROOT timeline from externally loaded movie clip?

    does anyone know how to controll the root timeline from an
    externally loaded movie clip?
    I have loaded a movie clip, which has buttons on it that I
    would like to controll the main original website timeline with.
    something like this.parent.parent?
    thanks a lot
    harky

    feedmeapples <[email protected]> wrote:
    > does anyone know how to controll the root timeline from
    an externally
    > loaded movie clip?
    >
    > I have loaded a movie clip, which has buttons on it that
    I would like
    > to controll the main original website timeline with.
    >
    > something like this.parent.parent?
    _root.doStuff;
    Freundliche Grüße,
    Franz Marksteiner

  • Drag and Drop for Externally Loaded Videos

    Good day to all. Thanks for viewing. My problem is that im trying to click and drag videos externally loaded onto the flash stage. Apparently normal drag-drop methods won't make it work Anyway to work around this error? Thanks! Here's what i've came up with so far.
    var videoConnection:NetConnection = new NetConnection();
    videoConnection.connect(null);
    var videoStream:NetStream = new NetStream(videoConnection);
    videoStream.play("video.flv");
    var video:Video = new Video();
    video.attachNetStream(videoStream);
    addChild(video);
    video.addEventListener(MouseEvent.MOUSE_DOWN, dragMovie);
    video.addEventListener(MouseEvent.MOUSE_UP, dropMovie);
    function dragMovie(event:MouseEvent):void
      video.startDrag();
    function dropMovie(event:MouseEvent):void
      video.stopDrag();

    var mySprite:Sprite = new Sprite();
    mySprite.addChild(video);
    addChild(mySprite);
    Then add listeners that you added to video -  to mySprite.

  • Portal Drive not working with external load balancer

    Hi,
    We have a portal cluster and we are using external Load balancer from
    Juniper for load balancing the portal cluster. When given the direct
    portal URL (Central instance URL or Dialog instance URL), Portal Drive
    is able to connect to portal and shows the KM documents properly. But
    when given the Load balancer URL, it gives error saying "Can
    not connect to host using WebDAV protocol". Load balancer URL works
    fine from the browser without any problems. Any help is highly appreciated.
    Helpful points will be rewarded.
    Regards,
    Chandra

    Hi Steve,
    For Portal Drive, Windows integrated authentication, client certificates,basic authentication and Kerberos is supported.
    (in the default delivery of com.sap.km.cm.docs iview the authentication Scheme is set to basicauthentication - switching that to form based authenticationis not being supportedbywebdav clients).
    ALso now Integrated Windows Authentication (NTLM) has been made available with latest patch.
    Also read through SAP NOTE 1084683 for further clarifications.
    Regards,
    Shailesh

  • Listen for a variable in externally-loaded interactive swf

    Hi,
    I'd like to set a variable inside an externally-loaded swf created in Flash Professional that is playing inside a Flex 4 application.  The swf will "signal" the end of an interaction (using a s:SWFLoader).  Once the variable is set (by arriving at a particular frame inside the externally-loaded swf, I'd like my Flex 4 application to "know" and take action to unload the swf and then "navigate" to another state with a new Flex-based interraction.
    Perhaps a step-based illustration will be more clear:
    1.  Clicking a textfield inside a Flex 4 application loads a custom component that uses an <s:SWFLoader> to load an external SWF that includes buttons to navigate through frames in a "slideshow" fashion.
    2.  Once the end of the "slideshow" is reached, a variable is instantiated by
                   var swfEND:String = "swfDne";
    3.  I'd like my Flex 4 calling application to know when this event occurs, then I'd like the sef to unload and Flex to goto another state.
    Any help, particularly on how to detect events in external swfs from Flex will be greatly appreciated.
    Thanks,
    Doug

    wanaryd,
    > In my main timeline on frames this variable is changed
    > (color = "red";) When the main timeline changes to a
    > different location a new color is set. How do I make the
    > movie clip listen for the color variable to change?
    When the timeline changes to a different location, something
    in that new
    location changes the value of your color variable -- so why
    not just update
    the code in that location (or those locations) and have them
    perform the
    functionality that depends on the variable's value?
    In any case, you should be able to use the Object.watch()
    method.
    Instead of creating a simple variable, create an instance of
    the Object
    class, then use the Object.watch() method to keep an eye on
    things.
    http://my.opera.com/darylducharme/blog/2007/02/13/the-object-watch-method
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Embeded Fonts and Externally Loaded Text?

    Just curious, I am designing a site with two embeded fonts. I am also using many externally loaded textboxes styled by a CSS. When I use the inline HTML in the .txt file, can I specify the embeded fonts for the text boxes or will they just use default browser fonts?
    Thanks in advance,
    Jeff

    I think what I need to do is place an instance of a text box on each page, so when you navigate away from the page the existing text box will leave. This works, but I can't get the CSS to do the formatting. Here is the code I have, any suggestions?
    var fileTxt:String;
    var myTextLoader:URLLoader = new URLLoader();
    var cssLoader:URLLoader = new URLLoader();
    myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
    myTextLoader.load(new URLRequest("text/tgc.txt"));
    function onLoaded(e:Event):void{
        fileTxt=myTextLoader.data;
        callCss();
    function callCss():void{
        var cssRequest:URLRequest=new URLRequest("styles.css");
        cssLoader.addEventListener(Event.COMPLETE, onCss);
        cssLoader.load(cssRequest);
    function onCss(e:Event):void{
        var css:StyleSheet = new StyleSheet();
        css.parseCSS(cssLoader.data);
        tgc_txt.styleSheet=css;
        tgc_txt.wordWrap=true;
        tgc_txt.htmlText=fileTxt;
    Like I said, it loads the text fine and eliminates the embeded HTML tags in the .txt file. It does not change color, size or weight as I have in the CSS.

  • Please Help - Get an external loaded file to dissapear

    How do I position a .swf or .jpg I load through a
    movieClipLoader Instance? Als, how do I get the loaded movie to
    dissapear once I have moved on on my timeline, and how do I load
    different .swfs on different positions on my timeline? This is the
    code I have so far.
    Also: How do I size an external loaded .jpg or .swf?
    var holder_mc = this.createEmptyMovieClip("holder_mc",
    this.getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myListener.onLoadProgress = function(target:MovieClip,
    bytesLoaded:Number, bytesTotal:Number) {
    /* add some preloading things here
    EX:*/
    totalPercent = Math.round(bytesLoaded/bytesTotal*100);
    my_txt.text = totalPercent + "%";
    myListener.onLoadComplete = function(target:MovieClip){
    my_txt._visible = false;
    myListener.onLoadInit = function(target:MovieClip) {
    trace("initted!");
    removeListener(myListener);
    mcLoader.loadClip("pathtoSWF.swf", holder_mc);

    Thank you. Found the answers for the x&y question and the
    size of .jpgs question. Is it possible to help me with this two?
    How do I get the loaded movie to dissapear once I have moved on on
    my timeline, and how do I load different .swfs on different
    positions on my timeline? I am sure question one will answer
    question two. Thank you so much, do appreciate it!

  • How can I make my external loaded .SWF file smoothly disappear after 15 seconds?

    Hi,
    How can I make my external loaded .SWF file smoothly disappear after 15 seconds? The following is the code to load an external .SWF file:
    var K:Loader=new Loader();
    addChild(K);
    K.load(new URLRequest("clock.swf"));
    K.x = 165;
    K.y = 247;
    K.contentLoaderInfo.addEventListener(Event.INIT, growLoader);
    function growLoader(evt:Event):void {
         K.width = 130;
         K.height = 130;
    I want to make clock.swf file disappear from the page after 15 seconds using some smooth disappear effect.
    Please help.
    Thanks.

    Something even better:
    http://www.greensock.com/
    Check out TimelineMax I LOVE it...
    The guy that made this (and gives it away for free!) is a saint.

Maybe you are looking for