Changing a dynamically loaded MC

I have a TargeMC that i load another .swf file into. is it possible to have a button inside the loaded .swf that changes TargetMC swf file.
sence it is dynamically loaded i dont know how to referance it from the loaded movie inside.

No i need to have the the .swf file replace itself with another not move the time line. and as far as i know its all AS3...
this code is on a button in the main document:
this.addEventListener(MouseEvent.CLICK, servClick);
function servClick(e:MouseEvent):void
this.gotoAndStop("down");
root.TargetMC.removeChildAt(1);
var myLoader:Loader = new Loader();
root.TargetMC.addChild(myLoader);
var url:URLRequest = new URLRequest("ServicesTemplate.swf");
myLoader.load(url);
I have 3 more buttons with in the .swf that it loads
just wondering if i could use those 3 to allso replace the "TargetMC" that there already loaded in to.

Similar Messages

  • Compensate for file path changes in dynamically loaded HTML?

    I'm using DWCS3 to work on a site which has the HTML inside a "Content" folder. The site's programmer uses AJAX to load the HTML into ASPX files which are in the root folder. So, although the HTML files are in the Content folder, all of their relative paths (links, images, etc.) must be set as if they are in the root folder.
    My question is this: In design-time, is there any way that I can get Dreamweaver to treat the files in the Content folder as if they were in the root folder?
    Thanks.

    Thanks for answering, Murray.
    That's what I'm doing now, but it makes some of the features in Dreamweaver unusable. For example, in the Link Checker each of the root relative links in these documents shows up as a broken link, and the items to which they're linking appear as orphans. I know this can be managed with another workaround (moving the files into the root in design time, and then moving them back into the Content folder before publishing).
    I was just wondering if there was a setting (or script, plug-in, etc.) in which I could tell Dreamweaver to treat these files as if they were in the root.

  • Dynamic load of images in to established Timeline effect

    Is it possible to dynamicly load images in to an already
    established timeline effect?
    Steps I've done.
    Stuffed a JPG in to the library by draging and dropping it in
    to the SWFs library.
    Dropped the JPG on to the main stage
    Right clicked the image then going down to Timeline effects
    and choosing an effect.
    Completing any changes in effects dialogue box and then
    clicking OK.
    Play the movie, and pat myself on the back that it worked.
    So then, how can I get Actionscript to load an image
    dynamically in to that same Timeline effect and have it do the
    effect to that instead of the one found in the library?
    I'm using Flash MX Professional 2004.

    hii
    Can u mention the error message getting while the status become RED??
    As what I understand, this may be the issue of invalid characteristics inPSA Data Records or also there may be records that does not support the lower case or upper case data.
    So just check the data in PSA Level
    Thanks
    Neha

  • Spry Tabbed panels + Progressive Enhancement and Dynamic Loading of Content With Spry

    Is there any way to combine tabbed panels together with "Progressive Enhancement and Dynamic Loading of Content With Spry"?
    Visit: http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.ht ml#updatecontent
    And click on the "Using Spry.Utils.updateContent()"
    The 3rd example shows how to use a fade transition whenever the content changes.
    I already have tabbed panels. My menu contains buttons (on tabs) and my Content div contains the panels.
    Tabs code;
    <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab">
                   <table class="Button"  >
                        <tr>
                        <td style="padding-right:0px" title ="Home">
                        <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
                        </td>
                        </tr>
                   </table>
              </li>
    etc
    etc
    etc
    and the panel code:
    <div class="TabbedPanelsContent" id="Home">
         CONTENT
    </div>
    I hoped i can use the example code from the link into my tabbed panels.
    I thought this code:
    onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;"
    could be added to the tab code like this:
    <a href="javascript:TabbedPanels1.showPanel(1);" onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
    But the content doesnt fade...
    I know i need to change the header etc.
    The following is from the link:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Aquo Events</title>
    <script src="../../../includes/SpryEffects.js" type="text/javascript"></script>
    <script src="../../../includes/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function FadeAndUpdateContent(ele, url)
    try {
         Spry.Effect.DoFade(ele,{ duration: 500, from: 100, to: 0, finish: function() {
              Spry.Utils.updateContent(ele, url, function() {
                        Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
    }catch(e){ alert(e); }
    -->
    </script>
    <style type="text/css">
    /* IE HACK to prevent bad rendering when fading. */
    #event { background-color: white; }
    </style>
    </head>
    So i changed my header etc, put the SpryEffects.js and SpryData.js into position and nothing changed...
    Is there a way to keep my tabbed panel (or change as less as possible) and let
    A. The fade work
    B. The loading work.
    The problem now is that it loads all pages instead of only the home. Therefore i wanted this Progressive Enhancement.
    And the fading part is just because its nice...

    It doesnt show in the post but off course i changed this link;
    "data/AquoThonFrag.html"
    into;
    "javascript:TabbedPanels1.showPanel(1);"
    I must say i dont know if this even works...

  • Dynamic loading of a class at runtime with known inheritance

    Hi,
    I am trying to dynamically load a class during runtime where I know that the class implements a particular interface 'AInterface'. Also, this class may be linked to other classes in the same package as that class, with their implementations/extensions given in their particular definitions.
    The class is found by using a JFileChooser to select the class that implements 'AInterface', and loaded up.
    Because the name of the class can be practically anything, my current approach only works for certain classes under the package 'Foo' with classname 'Bar'. Some names have been changed to keep it abstract.
    private AInterface loadAInterface(URL url) throws Exception {
         URL[] urls = { url };
         // Create a new class loader with the directory
         URLClassLoader cl = new URLClassLoader(urls);
         // Load in the class
         Class<?> cls = cl.loadClass("Foo.Bar");
         return (AInterface) cls.newInstance();
    }As you can see, all that is being returned is the interface of the class so that the interface methods can be accessed. My problem is that I don't know what the class or package is called, I just know that the class implements AInterface. Also note that with this approach, the class itself isn't selected in the JFileChooser, rather the folder containing Foo/Bar.class is.

    ejp wrote:
    The class is found by using a JFileChooser to select the class that implements 'AInterface', and loaded up.
    Also note that with this approach, the class itself isn't selected in the JFileChooser, rather the folder containing Foo/Bar.class is.These two statements are mutually contradictory...My apologies, I worded that wrong. My current approach (the one given in the code) selects the root package folder. However, what I want to be able to do, is to simply select a single class file. The current code just makes some assumptions so that I can at least see results in the program.
    As you said, if the root of the package hierarchy is known, then this could be achieved. The problem is that the user either selects the package root or the AInterface class, but not both.
    Is there a way to get package details from a .class file to be used in the actual loading of the class?

  • How to style dynamically loading text?

    Hi,
    I am dynamically loading a .txt file into CS3 using
    ActionScript 3.0. I want to style the text using CSS/HTML. The only
    thing I can get to function using CSS/HTML is the "a tag", I can't
    seem to get bold, colour, font, etc working. Should i be using CSS
    or should I be doing this styling from ActionScript in the swf
    files? I have checked the help files but I could get their tags to
    work.
    Any suggestions very welcome.
    Thanks.

    you will have more control over all of this if you feed in an
    xml file rather than a txt file. you can stipulate your class
    attributes within the xml then
    if you want to style the dynamic content using just your txt
    file and the controls within the fla you could embed the typeface
    glyphs you want to use within your output swf file and colour them
    / change weight etc within the fla
    hope that is of some use
    ;-)

  • Dynamic loading in Java

    I was asked following in the interview-
    What things are dynamically loaded in Java?
    How can we change this behaviour so as to load things statically?
    Can anybody clarify this for me or give some reference URLs etc?
    Thanks in advance.

    I was asked following in the interview-
    What things are dynamically loaded in Java?
    How can we change this behaviour so as to load things
    statically?
    Can anybody clarify this for me or give some reference
    URLs etc?
    Sounds like an absurdly general question to me.
    For example shared libraries are loaded dynamically. And there is no way to do it statically unless one modifies the jvm.
    Or using Class.forName() loads a class dynamically. Statically one could create a null reference which would be a 'static' load. Of course that is a rather tentative definition because java is still going to load it when the method is reached rather than on start up.
    Or one could say that the core jvm is statically loaded, for example the system class loader, since it is implemented in C (but of course it actually exists in a shared library so it is loaded dynamically as well by the OS.) All other classes are loaded dynamically and again it requires changing the JVM to alter the behavior.

  • How to dynamically load images into Flash

    I have a movie clip on the stage that I want to dynamically
    load images into (that constantly change), how would I go about
    doing this? Thanks.

    Use the Loader class to load in images.
    Then use addChild to add the Loader class into your MovieClip
    on the stage.
    As far as &amp;quot;constantly change&amp;quot; what
    do you mean by that? You could use setInterval, ther enterFrame
    event, or any other means to trigger a new image to be loaded into
    the Loader instance.
    Finally, you can use the Tween class to create some nice
    effects for the images (fade it, blur in, photo blend, masks,
    etc)

  • Dynamically loaded .swf missing it's mark

    I have had a website that has been up and successfully running for about a year now. Admittedly, it's a little buggy here and there, however - I have not had too many issues with it to date.
    Recently, however, I updated the main / root .swf slightly - just changed some copy, and added a slide or two throughout. When visiting the site, this main .swf dynamically loads any content .swfs required - the html, and these .swfs were not touched.
    Upon uploading the new main .swf only - everything works fun, until it loads one of the content .swfs - this always loads in the top left of the browser, rather than the center top of the browser.
    Does anyone have an idea what could be causing this - it just seems odd as I touched no code at all.
    Thanks in advance!

    Nope - the main .fla / .swf is in the correct position. The html calls it to be top / centered.
    When "that" file dynamically loads an additional .swf - they are all going up and left - off center from the site entirely. Seems odd, I've checked the placement as3 - everything seems to be in order. Any ideas? Could this just be a small bug somewhere changing something enough to do this?

  • Dynamically Loading VI using DLL

    Hi all,
    In Labview, I have made a GUI and a library for interfacing to a device. I have compiled this to an .exe and it all work well.
    I haved compiled these exposed VIs into a DLL using LV2012 and written a small C++ program that is linked to my DLL. The problem I am having is that when I run my "begin" function (it calls some dynamically loaded VIs), I get Error 7 Path not found. Now, I imagine that this is something to do with either me not including the dynamic VIs when I compile the DLL (which I am sure I have done) or, the paths somehow being changed. When I load my VI, I use a relative path constant e.g. "UserCommands\Device1\Device1CommandFactory.vi" that gets converted to an absolute path.
    What do I need to do in order to get the DLL to load the VI properly?
    Thanks in advance

    I'm not trying to load a front panel VI dynamically. I load a "server" vi that interfaces with the device. I also dynamically load my device class. I do this because, the DLL should be able to interface with 2 different devices.
    I've added the error source as an output of my begin vi and I can see that the error occurs when trying to load my device class. It's in german sorry
    Get LV Class Default Value.vi<APPEND>
    <b>Vollstõndige Aufrufkette:</b>
         Get LV Class Default Value.vi
         myDevice_Interface.lvlib:LoadDeviceFromAbsolutePath.vi
         myDevice_Interface.lvlib:LoadDevice.vi
         myDevice_Interface.lvlib:begin.vi
         myDevice_Interface.lvlib:begin.vi.ProxyCaller
    <b>Klasse wurde versucht, hier zu laden:</b>
    C:\Users\myname\Desktop\myDevice_Interface_DLL_Example\myDeviceInterface.dll\myDevice Interface\Devices\myDevice1\myDevice1.lvclass
    I have included the class in the source data tab when I compile the DLL. I do specify the path to find the class as Devices\myDevice1\myDevice1.lvclass. Where should it be looking?

  • How to manage variables in dynamically loaded sequence

    Variables in dynamically loaded sequence files are not managed properly.
    Steps to reproduce:
    1. Unpack attached zip file
    2. Launch TestStand Sequence Editor
    3. Add directory of unpacked files to Search Directories list (Configure>>Search Directories...)
    4. Set Station Model to unpacked "UpdatedSequentialModel.seq" (Configure>>Station Options...; Model tab in TestStand Sequence Editor)
    5. Load unpacked "A.seq" sequence file  (File>>Open Sequence File.. in TestStand Sequence Editor)
    6. Check "Execute>>Break on First Step"
    7. Run "Test UUTs"
    8. When execution breaks, note the following:
    a) "Locals.SomeVar" contain "The value, which stored in the file" instead of "New value"
    b) Although actual running sequence file is "B.seq", the tab title is: "Test UUTs - A.seq"
    Try also:
    1. To examine "RunState.ProcessModelClient.Data.Seq["MainSequence"].Locals.SomeVar" variable, when breakpoint is set at <End Group> of PreUUT of Station Model "UpdatedSequentialModel.seq".
    2. Open unpacked "B.seq" sequence file in TestStand Sequence Editor and repeat all the checks
    Additional info:
    1. I use TestStand 4.0.0.326
    2. Attached Process Model file "UpdatedSequentialModel.seq" is original "SequentialModel.seq" with only one step "UpdateClientSequence" added in PreUUT.
    3. The source of mentioned above new added step is attached as well.
    thanks.misha
    Attachments:
    UpdateClientSequence1.zip ‏135 KB

    Kristen,
    "Why I architect "My application" this way?"
    "My application" is intended to serve significant amount of test stations and products. Each product is represented by its own test sequence file.
    "My application" and client sequence files are independent products. Client sequence files are responsible for products testing, while "My application" is responsible for common tasks.
    Process Model is most pertinent place to perform common tasks (common for all test stations and for all products).
    Providing supplemental sequence file just to perform SequenceCall, is completely unnatural.
    Moreover, if using SequenceCall, I see no way to update local variables of new launched sequence file, before it starts to execute (step 5 of "Message 3 of 4").
    Thus, the solution, which you propose, cannot satisfy our factory requirements.
    Back to my questions.
    1. Is something wrong with the way, which I implement the task?
    2. Is it possible to implement my task using NI TestStand?
    3. Is my problem caused by incorrect usage of "edit copy" and "runtime copy" of the variable? TestStandReferenceManual says:
    "Built-in properties of steps and sequences are flagged to be shared at run time. For these shared properties, TestStand does not create a unique run-time copy, but instead references the edit-time copy. Any changes to the run-time reference of these built-in properties edits the original Step or Sequence object in the sequence file."
    The variable, which we discussing is not Built-in property.
    4. If previous correct, how differentiate between "edit copy" and "runtime copy" of the variable?
    thanks.misha
    Message Edited by mishaw on 06-05-2008 07:17 AM

  • Configuring dynamically loaded VI's search directory for both 64 and 32bit

    Background:
    I have an application that has been developed, built in LV2012 32bit.  It needs to run on a 32bit and 64bit machine (Win7, I understand the application itself will only ever be 32bit, but it needs to run in both environments).  The application dynamically loads a bunch of VI's which are raw vi's on disk (think just copy directory of files over from developer machine to the target machine that already has a exe running -- and just a copy, not a build of any sort).  All of these dyanamically loaded vi's at some point reference vi.lib, so I have a few things I need to do to the application to get it to work
    a) within the .ini file for the running exe viSearchPath=......C:\Program Files (x86)\National Instruments\LabVIEW 2012\<<bunch of directories>>\*
    b) within the VI object cache directory, I have a lvDistPath.txt file that includes C:\Program Files (x86)\National Instruments\LabVIEW 2012
    This works just fine for when I deploy these files and run the application on a 64bit version of Win7.  However, when I try to run the application on a 32bit version of Win7, it breaks -- LabVIEW is installed in C:\Program Files\.... (no (x86)).
    I am stuck with the dynamic loading architecture we have, and I can't start making changes to my code because it's not my code that is specifying where to find the files -- it's LabVIEW's internal searching algorithm.
    What can I do (short of managing two separate .ini & .txt configuration files, one set each for x86 and 64bit and managing two separate installers) to get around this problem?

    It sounds like you really don't have a problem with a 32 bit app vs. a 64 bit app.  It sounds like a problem with file paths being different on a 32 bit app on 32 bit windows vs. a 32 bit app on 64 bit windows.
    Two things you could do.
    1.  (Not sure this would work.)  Put 2 paths in the search directory, one for c:\program files path for 32 bit windows, and one for c:\program files (x86) for 64 bit windows.  One or the other will exist.  I don't know if something will hangup if it searches the other path that doesn't exist.
    2.  Since you are dynamically loading the VI's, you should specify the path when you are dynamically loading them rather than having LV search for them.  There is a function called Get System Info in the File I/O >> File Constants palette that will return the path to the Program Files folder for you environment so that you can build on that to get to your dynamic VI path.

  • Can the genre of a song or album in my itunes library be changed?  While loading to the itunes library, or after the song or album has been loaded?

    Can the genre of a song or album in my itunes library be changed?  While loading to the itunes library, or after the song or album has been loaded?

    Kay -
    Glad it helped.  Enjoy the music!
    Ed

  • Anyway to have JDeveloper dynamically load BC4J components in memory?

    We are dealing with a large BC4J based application that contains large amount of application modules. So far, 300 application modules and total 4000 BC4J objects have been created. The size of the application still keeps growing daily... may up to twenty times than what we are having right now.
    While the application size growing, some unusual problem comes out. The biggest problem is that it makes JDeveloper very sluggish. It takes 15 minutes to just open JDeveloper and may need a few minutes to open the application module editor. (FYI: in our team, most developers have 1G memory and 1.8G CPU or up.) This is probably still OK for right now, but it will become a big problem later when the project size grows.
    When we analysis the project structure, we know that most of time, developer does not need to load all the application modules. For example, we have a core package that contains about 30 application modules. This core package needs to be shared and should be loaded. But, the other nine packages contain about 30 application modules each do not need to be loaded into memory at the same time in most cases. Since BC4J is XML based, we could not find a way to just partially load those application modules, especially when there’s cross references between them.
    When we check the project.jpr file, looks like all BC4J objects are referenced there. We have 40K lines in our project.jpr file now. When open JDeveloper, we believe JDeveloper will try to load all referenced BC4J XML content into memory. This consumes 500M memory and makes the overall performance very sluggish. The situation may become even worse when the project size keeps growing. For example, we cannot have 5000M (5G) memory in a development machine for 3000 application modules.
    We do know that by checking out the "ScanSource Paths to Determins Project Contents" in the Input Paths of Project Settings, we can short the JDeveloper’s open time, but this will not give BC4J relationship information and some other useful information… Not a practical solution.
    So, any idea to make JDeveloper dynamically loaded BC4J based on need?
    We’ve tried a few ways. One is to partition the application into different project and import the core one into the other projects. Only open the project in workspace when need. But this is not officially documented by Oracle and we are not sure whether it is possible/correct or not. Another thought is to remove the NOT-CURRENTLY-USED package from the project. But JDeveloper only support file level remove.
    Any help on this dilemma will be highly appreciated.
    Thanks,
    Charles

    The package is the unit of loading in the IDE for ADF business components.
    To edit components, they must belong to the project.
    To refer to components in a read-only way, they can be imported. This allows other editable or read-only components to refer to them without allowing the imported components to be edited.
    Both editable and imported components need to be loaded in memory to use them, so you can save memory at design time by creating projects that leave out as many packages as possible.
    Is there a way we can get your existing project in house to study its design time performance?

  • Change the SWF loading text for a single presentation

    This question was posted in response to the following article: http://help.adobe.com/en_US/Presenter/7.0/WS8815BC0A-5D22-4f29-87B9-D9047B5B57E4.html

    Hi,
      I have Adobe Presenter 7.0.5, in which with recently updating to 7.0.7 version.
    When I tried the fix of this "Change the SWF loading text for a single presentation" workaround fix, I passed to have the error:ReferenceError: Error #1069: Property ADOBE_PRESENTER not found on Pool_P75.Resource.UIText
    But before this error comes, I see that the loading text is changes from the original 2Adobe Presenter" to the one defined by me on the UIText, as the fix said.
    And what's happen is that the scrren with the loading text is not being changed by the learning first slide....
    Is there any workaround to correct that error?
    Many thanks in advance for any feedback from the adobe support team or from any other colleagues that are using Adobe Presenter (;-)).

Maybe you are looking for