Controlling one embedded swf with another

I have a flash website where I am using the loadMovie()
function to load multiple swfs, buttons, etc. into my index.swf
file (so it is easier to update one component than the whole
movie).
I have a series of buttons (home, about, services, etc.) that
in are in a file called "buttons.swf" and are loading into
index.swf. I also have another button called "envelope.swf", which
brings up a screen for a "Tell a Friend about this Page" box. I
would like to have the "buttons.swf" files disabled when when the
"envelope.swf" button is clicked, but I'm not too sure how to go
about doing it BECAUSE it is called through loadMovie.
Can this be done? I know about using enabled=false/true, but
how can I use that when referring to an embedded swf?
Thanks!

That's a very wise method of developing your website.
My group uses something like this:
var myComponent:MovieClip =
createEmptyMovieClip("myComponent", getNextHighestDepth());
this.loadClip(src, this.myComponent);
Then when you need to access a function or value in your
component, you just use standard dot notation:
this.myComponent.myFunction(values);
this.myComponent.button1,_width=220;
You can even embed components inside other components.

Similar Messages

  • Controling a loaded swf with another loaded swf

    I have a blank stage with only AS that loads an swf
    addChildAt(0) and a second one addChildAt(1). This works. When the
    user interacts with (1) it calls another addChild (not indexed) and
    possibly that one loads another, depending on the choices made by
    the user. How can I get any of these to control that very first
    child that was loaded at (0)? I have run out of ideas.
    Some of the code:
    (on the main swf, nothing on the stage, only code that loads
    the next two)
    addChildAt(pHolder, 0);
    pLoader.load(pURLReq);
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    pLoaded);
    and for the second:
    addChildAt(mHolder, 1);
    mLoader.load(mURLReq);
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    mLoaded);
    On the child of childAt(1), I have:
    function replaceSWF(e:MouseEvent):void
    pLoader = new Loader();
    pLoader.load(new URLRequest("p.swf"));
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    placeNewClip);
    function placeNewClip(e:Event):void
    removeChildAt(0);
    addChildAt(e.target.content, 0);
    If I use this exact same code from that very first swf, the
    one that loads the first two external swfs, it works, but once I
    put it on one of hte other loadeds and sub loaded swfs, I can't get
    it to work. In the current state (0) it just makes everything on
    the stage disappear, so I figured then using the index of (1) would
    do it, but that or any other number results in absoluly nothing.
    Help! I am really out of ideas here.
    (the stacking looks like this) ---
    sub second loaded SWF <==== needs to tell first loaded SWF
    to unload then load a new swf at same index
    second loaded SWF <==== loads the next one above
    first loaded SWF <=== needs to be removed and another swf
    loaded at the same index
    mainSWF (loads two others) <=== code placed here works for
    first loaded SWF

    Kglad,
    I tried your code and ran into some problems with stopping
    the mc's, as the embedded mc's within the loaded swf need to stop
    as well. I found the attached code to stop the mc's, but now am
    having trouble with the sound objects.
    Here's the issue, I used this:
    this.soundPosition = currentMovie.loop1.position/1000;
    this.currentMovie.loop1.stop();
    ... for the sound object stop commands and listed a new one
    for each loop I was using. On the play button I started them back
    up again. This all works, but when I start them up again they all
    play, not just the one that is currently paused. Do you mind giving
    me some guidance with the for (obj in mc) loop? My loop experience
    is nil. What I want to do is have the code cycle through all of the
    loops to see which one is playing, then store that information in a
    variable, then pause and play the variable. Does that sound right?
    Thanks again for the help!
    -Sandy

  • Replace one itunes account with another

    I have the itunes application downloaded on my laptop but i recently made another itunes account and i want the new one to be on the Itunes application. So i uninstalled the application thinking that if i downloaded it again it would ask me for an account. Except all it did was restore the old account. I am wondering if anyone knows how to replace one itunes account with another. If you know anything that can be useful comment.

    Store > Sign Out
    Store > Sign In
    All purchases remain tied to the account used to buy them, but you can authorize iTunes to multiple accounts and put protected content from up to five on your devices. Generally best to stick to one account if possible. More so once you get to iOS devices as managing app updates over multiple devices is a chore.
    tt2

  • Replace one preset effect with another

    Is it possible to replace one preset effect with another withouth having to undo a prior preset effect? 
    When I used Aperture, holding down the Option key would allow me to replace one preset with another.

    Store > Sign Out
    Store > Sign In
    All purchases remain tied to the account used to buy them, but you can authorize iTunes to multiple accounts and put protected content from up to five on your devices. Generally best to stick to one account if possible. More so once you get to iOS devices as managing app updates over multiple devices is a chore.
    tt2

  • I had two files named graphics and I replaced one graphics file with another which was the wrong one.  Can I undo my replacement?  I move the wrong one, which was on my desktop into another one and that is when it as me if I wanted to replace the file.

    I accidently replaced a file with another.  Can I undo my action? 
    I had two files named graphics.  One was on my desktop and another was within another file called solitarie.  I move the one on my desktop (wrong file) into the solitarie file and was asked if I wanted to replace the graphics file in the solitarie folder (the correct one).  I said yes accidently and then remembered that I had made a mistake.  If I use undo, it only move the wrong file back to the desktop.  Is there an undo of replace?

    Sorry, but's that's why you get the warning. "Replace" means just that - the new file over-writes the old one. There is no undo.

  • How to Regester one Shared Service with Another ??

    Hi All,
    I am working on Hyperion System 9.3.1. I am getting problem when I want to access Essbase through Planning.
    Here is the scenario:
    I have Hyperion Essbase installed in Computer 1 with separate Shared Services; I have Planning installed in Computer 2 with another Shares Services.
    All things were working fine as I have created same users in both the shared services and was using native user of Essbase.
    Now I have changed the native user to Externalize user in Essbase. Since then I am not able to access Essbase through my Planning application. The user privilege differs in both the Shared Services as Computer 1 has only Essbase and Computer 2 has Planning.
    The error message I am getting in planning while connection is “Unable to obtain a connection to Hyperion Essbase”. In the essbase.log file I am getting “Login fails due to invalid login credentials” message.
    I think the problem here is between Shared Services only. As both are in different system and the user privileges are also different.
    Kindly suggest how to sink my Essbase between these two shared services.
    Regards,
    Navneet

    Just to clarify,
    You have Planning and Essbase on one machine and you have shared services installed twice on different machines?
    I'm not sure if this architecture will work, you might have to separate Planning and Essbase to there own servers and create a new Essbase server specifically for Planning applications. Planning utilizes Essbase for its OLAP data store and Essbase registers with Shared Services directly.
    Brian Chow

  • Possible to make embedded swf (in another swf) fill browser?

    I have an .swf which is set at 100x100 percent and fills the
    browser window. I have an embedded .swf within this .swf, and I
    would like to be able to have the embedded .swf fill the browser
    window and remain fluid (for different screen resolutions). This
    has to be done from the embedded .swf.
    I thought if I could retrieve the stage details of the parent
    .swf from within the embedded .swf, then I could use these to
    resize the embedded .swf - but I haven't been able to do this.
    I'm plum out of ideas. Can anybody give me any pointers?
    Many thanks.

    I may have my terminology mixed up. I have a pre-compiled
    .swf that allows embedding of .swf's from a seperate .xml file via
    a LocalConnection API.

  • Controlling one swf with another

    Ok here's what I'm trying to do.  I have speant quite sometime on it but can't seem to find a good resource for the solution.
    I have a site I am working on which has a Flash intro.  The other pages of the site hold a menu that's created in Flash.  For some reason my client wants the ability to go back and view the intro again, which is easily accomplished with navigateToURL.  HOWEVER the intro is broken into two distinct parts and I need to target the second part, which would require something along the lines of gotoAndPlay(500); or something to that effect.
    What I am having problems with is how do I target a specific frame in a completely different movie, the intro, using a button from the Flash menu within the site.  I'll try to explain it a bit easier.  The top button on staticMenu.swf, which is placed throughout the site (aboutus.aspx, portfolio.aspx, etc...) needs to target frame 500 of mainIntro.swf which is embedded in default.aspx.
    Any help would be greatly appreciated.  It make keep me from beating my head off the wall in the future... =)

    you can pass the frame to play in a query string, use javascript to parse the javascript and use the externalinterface class to evaluate the query string in flash.  if it's there, goto frame 500 (assuming frame 500 is loaded - ie, you'll need a preloader), otherwise don't got frame 500.

  • Recent graduated Control-Systems (embedded) enginneer, with experience in France/lebanon/Switzerland Looking for a Job With Labview

    I am currently recently graduated from the University of Technology in Belfort-Montbeliard (France).
     Master’s grade of “Electrical and control systems engineering”.
    I am currently looking for a job in automation, control systems and electronic domain (I prefere LabView Developpement)
    Salim DARWICHE
    1 rue antonin artaud
    31320 castanet tolosan
    Tel: 0033.6.85485107
    Email : [email protected]
    Nationalities :
    - French
    - Lebanese
    Date and place of birth:
    April 18, 1986
    Toulouse,
    France
    Education
    2009
    Master in Electrical and Control Systems Engineering
    Option Embedded
    systems
    University of technology of Belfort-Montbliard france
    2006 University
    Diploma in Industrial and Maintenance Engineering
    DUT Degree Equivalent to 3 years of
    technical studies
    Institute of technology of Saida
    Lebanon
    Experience
    February
    July 2009 Galley-Technologies (Neuchatel-Switzerland)
    Mission:
    Development of
    Labview Modules for Pharmaceutics and Robotics
    industries
    Realization(s):
    Communication and data-Analyse Software using
    TCP/IP:
    - Development of a software (Labview Programming) that would permit data
    transfer between many pharmaceutical ovens, in order to analyse all production cycle, and test
    the conformity of the final products.
    5 Axis robot simulation software:
    Concept and development of simulation tool for a robot working cycle
    September 2007
    February 2008 Valeo VSS (Paris France)
    Mission:
    Qualification and management of
    automobile electronic components
    Qualification of specific electronic components
    Making sure that all electronics components will be qualified on time before the
    Start-of-Project
    - Discussion between me, Valeo supplier and Valeo Project Manager in order
    to grant Valeo quality standard Specifications or to approve supplier deviations.
    Management of electronic qualification documents on Valeo ePLM system.
    - Participating to
    daily quality reviews meetings and brainstorming in order to apply a PDCA (plan Do Check
    Act)
    Management of Valeo DSA products under IMDS Base
    - Management and
    declaration of Valeo Division Systems Access products under IMDS base (international Material
    data systems)
    - Creating MDS sheets then sending them to Automobile
    Constructors.
    February June 2006 United-Group Machinery
    (Beirut-Lebanon)
    Mission:
    Renovating a bag-filling
    machine
    Realization(s):
    Mechanical system
    - Drawing all parts of
    the machine (3D), assembly and motion using Autodesk Inventor.
    - Unmount, replacing bad
    parts then assembly of the machine.
    - Integrating of a weigher machine to the top of the
    bag-filling machine.
    Control system
    -Removing old control system and
    integrating a PLC and a control panel
    -Programming the PLC (Delta type) with Ladder
    diagram.
    Knowledge
    Languages
    French
    and Arabic: Native languages.
    English: fluent, TOEIC 890/990 Test of English for
    International Communication.
    Spanish: Intermediate.
    Automation
    - Labview,
    Matlab Simulink
    -Programming DSP Controller TMS320LF2407.
    -Programming in languages:
    assembler, C.
    - PLC Programming (Crouzet, Delta, tlmcanique, Moller) -Ladder, List,
    Grafcet-
    -Controlled systems: Continuous aspect
    Electronics
    -Programming in
    VHDL.
    -Programming of PIC 16F87X.
    -Simulation (Simplorer, Circuit maker, Electronic
    Workbench, Proteus, Kicad).
    Electrical
    - Machines D.C. current, synchronous,
    asynchronous, electrical supply networks.
    Various
    - CAD: AutoCAD, Autodesk
    Inventor, Mastercam, Programming of machines with numerical control CNC (languages Num, Fanuc,
    Fagor).
    -CAM: Ms-Project (Gantt, Pert, Kanban) 
    Message Edité par salimo le 11-04-2009 04:35 PM
    ~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~
    **The Best Way To Predict**The**Future Is To Invent It**
    Attachments:
    CV_Salim_Darwiche_S_12_10_09.doc ‏77 KB
    CV_SalimDARWICHE_EN_S.doc ‏229 KB

    Message Edité par salimo le 11-04-2009 04:36 PM
    ~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~
    **The Best Way To Predict**The**Future Is To Invent It**

  • Preload main swf with another swf

    Hey everyone,
    I have two swf files, one is a preloader and the second is
    the main file. I want to preload the main file using my preload
    swf. It works, however the main swf starts to play after about 11%
    of it is preloaded, how can i stop this? I want to preload the
    entire main swf and then have it play. Here is the code i'm using
    in my preloader swf. Or if anyone can tell me another way, anything
    that will work at this point! I'm fairly new to this so any help is
    much appreciated. I need this asap so anyone that could help,
    please do! Thanks in advance!!

    insert a blank frame before your current 1st frame in your
    main swf and attach a stop() to that frame.
    in your preloader use:

  • How do I merge one user ID with another on my mac

    I set up my Mac prior to migrating from my PC and this created one log-in for me. When I migrated info from my PC, another log in was created. How do I merge the two, so all information is in one place? Thank you!

    Open the Users folder on the internal drive and drag one account's home folder to the other's desktop.
    (92088)

  • How do I combine part of one iPhoto library with another one?

    Somehow back in January I ended up with three iPhoto libraries.  Since then all my photos have been imported to a library that is filled with garbage, Faces thumbnails, duplicate pictures, etc.  From this "garbage" library I want to move what has been imported since January and move it to the clean one I somehow lost track of back then.  Then I'll have one good contiguous library and can get rid off the "garbage" one once and for all. 
    I want to get this done before I upgrade to Lion and iPhoto 2011.
    I've wasted a lot of time trying to figure this out on my own.  Please help!

    iPhoto doesn't have a library manager built in.  Take a look at Fat Cat Software's iPhoto Library Manager.

  • How to Attach One adobe form with another adobe form

    Hi Experts,
    I saw the similar post but my issue is even further big thant that where the solution is provided.
    I Have @ 40 output forms where 35 forms share same part of data in a table format.
    Untill today I have done all the forms with this table data (I say this as a replication), now its that the business requirements are changed the presentation (design) of data and the content. now I need to change all the 35 forms.
    Just wondering is there a possibility to put the specific data in one single form where it takes only one Import Parameter and generates this table. I then have this as an include in all the 35 forms when i preview it should just display both of them as a single form.
    Can somebody help me with this....?
    Thanks & Regards,
    Sai

    Hi Otto,
    I will try the approach you blogged in and will close this post with points awarded.
    Cheers,
    Sai

  • How did I replace all footage from one imovie project with another

    I have three projects in my project library A, B and C. While editing B I somehow accidentally copied all my clips from project B into project A, erased all project A footage while the title remained the same. I want my project A footage back and can't find it. Time machine wasn't set up at the time (I thought it was automatically already going from the day I purchased it). Undo functions only go back once. Three people at Apple have no answer, saying that you can't transfer contents from one project library piece to another while still in the project library part of the screen. I'm sick if it's lost because it took forever to edit, but I want to figure out what I did so I don't accidentally do it again. If I didn't transfer from project to project, how did a copy of B get into my A file and erase its contents?
    Project A seems gone, as the orange lines in the event library clips indicating which parts have been used are also gone.

    Choose Go to Folder from the Finder's Go menu, provide /Users/ as the path, drag one account's home folder to the other's desktop, and move the items inside it to the desired locations.
    (109743)

  • Embedded swf with a flash of a white box

    Does anyone know how to get rid of the box that flashes for a split second before the embedded autoplay swf on two of my websites: http://roanokeartists.com and http://psychhealthroanoke.com ?

    Hi, I haven't implemented this myself yet but came across it in Apple's support documentation, complete page here http://support.apple.com/kb/ht5068
    This bit specifically:
    About opening the HTML widget
    Depending on how complicated your HTML Dashboard widget is, your readers may experience a flash during HTML initialization when they open the widget in iBooks. To avoid this flash, modify your Dashboard widget so it tells iBooks when to switch from displaying the Default.png file to displaying the running HTML widget.
    Make these three modifications to add this optional feature:
    Add a IBNotifiesOnReady item set to true in the Dashboard widget's info.plist file, so iBooks knows this Dashboard widget will tell it when to switch to displaying the running HTML widget:
    <key>IBNotifiesOnReady</key>
    <true/>
    Set your Dashboard widget to load the Apple javascript library:
    <script type="text/javascript" src="AppleClasses/AppleWidget.js"> </script>
    Set your Dashboard widget to let iBooks know when the HTML initialization begins, and iBooks can switch from showing the Default.png file to displaying the running HTML widget by calling (in javascript):
    widget.notifyContentIsReady()
    Important: If you choose to modify your Dashboard widget to avoid the flash, be sure to do all three of the above steps. You must compete all of the steps for this to function properly.
    I hope it fixes your problem!

Maybe you are looking for