Creating parent swf

My website, ctmgroupinc.com contains seperate swf's for each
page in the site. I want to creat a "Parent" page that just
contains the "shell". The shell would be the outside border and
graphics . So when you click to go to another page you don't have
to reload the border and graphics and only need to load the
contents that changes. How do I keep the "shell" up and just load
the content within the shell?
http://www.ctmgroupinc.com

Good evening Jackcee,
You can use levels to do this. In your parent fla,go into the
actions panel and paste...
loadMovie("home.swf",30);
....I would assume that you would like your home page to load
instantly. The number "30" is a level number that you create. It
can be 5, 10, 50, 60, or whatever. I recommend not using "0"
because this is the level of the stage. I do recommend picking
something with a few unused levels below it, in case you want to go
back and add some animated background graphics or the like.
Then go into the swf that contains your navigation, or do
this in your parent fla if that is where the nav is located.....
flaname.buttoninstance.onRelease = function() {
loadMovie("home.swf",30);
.....do this for each button instance using the corresponding
swf name and the same level number. The next swf loaded will take
place of the existing swf of the same level number.
I hope this is of help!
Jennifer M Quigley

Similar Messages

  • Open swf in new window from parent swf

    I'm making a gallery for some flash banners that I had
    created in AS3. When I click on a "launch" button, I wanted the
    flash banner swf to open in a new window separate from the parent
    swf (the gallery). I also wanted the parent swf to remain open.
    Is this possible and what would the code look like for
    something like this?

    ok, I should've also mentioned this, the flash gallery I'm
    making is not for the web, it's more for just opening in a flash
    player. So I don't really want it to open in a new browser window,
    but rather a new swf window, if there is such a thing.

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • Any way to disable quiz click boxes from a parent SWF?

    We've got a parent SWF that serves as a navigational shell, allowing users to move between different Captivate slides which are essentially embedded SWFs. Some of these SWFs are Captivate hot spot quizzes. We've run into a fairly significant issue - when a Captivate slide has a click box, it sets up an event listener for that box. Unfortunately, when a user moves off of that SWF, the event listener is still in place (note: we're not actually unloading the SWF, we're simply hiding it and showing the next SWF). Once a user clicks into the new SWF, the following exception gets thrown:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at captivate.veela_as3::rdClickHandler/CheckSpriteClick()
    at captivate.veela_as3::rdClickHandler/CheckAllClicksDown()
    at captivate.veela_as3::rdClickHandler/onMousePress()
    We've narrowed this down to the click boxes and the event listeners associated with them. I need to know if there's some way that our parent SWF can call into the Captivate quiz SWF in order to disable those click boxes once the user moves off of the SWF. I know that we can disable them from within the quiz itself using an advanced action, but I'm just not sure if the same can be done from an external SWF (ideally, we would just call an advanced action from the parent SWF - I have no idea if this is possible).
    Any help would be much appreciated.
    - Terence

    First question, why are you simply hiding and not unloading them?
    If you can hide, I am assuming through a visible false or alpha = 0; then it seems like you would have the ability to relocate them as well, and since the loaded swf is housing its own buttons and hit areas they would move with their parent...
    So a cheap fix if you can access the objects would be to move them out of view, like to
    .x = -5000
    .y = -5000
    That might work...and might be the easiest way to "Re-add them to the stage without losing info, I am assuming the hide and not unload is for keeping score or something?
    You could then move them back to 0,0 if you needed them again...
    might help you

  • How to create the SWF file which was included surrogate pairs.

    I would like to make sure how to create the SWF file which are included surrogate pairs.
    The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
    Ex, I set the '  '(UTF-16 is '20B9F') to 'Unicoderange'.
    However, I cannot add the surrogate pairs.
    The error of outside the scope of Unicode occurred when I compiled the AS file.
    The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
    Then, I read the following pages.
    These pages are written that unicode-range supported surrogate pairs.
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
    http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
    So please let me know how to create the SWF file which are included surrogate pairs.
    Environment
    - Flex3.5a
    - TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
    Thanks,
    Takeshi Ishihara.

    I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..

  • Parent swf call function in Child swf not working

    Hi all,
    I'm having a problem with this and I just can't figure it out
    :( (I've been trying different things and staring at it for hours
    and I'm losing my mind...)
    So I have a Parent swf that loads a Child swf (this goes
    without any problems), but I want the Parent to call a function in
    the child, now this is where it goes wrong...
    The function the Parent has to call is named "lookupcar" and
    needs to give the value "wagen" with it. The problem I think is
    that the Parent wants to call the function but it still needs to
    load (correct me if I'm wrong). Is there a way to check if the
    Child swf is loaded completely before trying to call the function?
    Could you give me an example of this please? Or any other
    suggestions on what goes wrong?
    Code in the Parent
    root.inhoud.createEmptyMovieClip("thetext", "thetext",
    this.getNextHighestDepth());
    root.inhoud.thetext.loadMovie("uitrusting-wagenpark.swf");
    root.inhoud.thetext.lookupcar(wagen);
    Code in the Child
    (the function lookupcar)
    _global.lookupcar = function(carnr:String){
    trace("LOOKUPCAR, with car nr: " + carnr);
    Thanks in advance for all the help.

    Perfect....just to make sure i m taking care of it in a nice practical way....here is how i learned to access a file located in Child (researching other posts)
    is this the way you recommend it?
    (LoaderName.content as MovieClip).functionName(new Event("whatever"))
    and in Child File we have
    function functionName(e:Event)
    i have seen other ways of calling a function in Child Swf , like using EmbedSWF and etc. wanna make sure which one is a better practice. Thanks

  • Problem creating parent child relatioship in derby database

    hi.i m trying to develop a code that can access two tables using derby database.The data in the tables should go from the JTable of GUI which i have prepared.To read both table's properties i m using two different instances of java.util.Properties.using InputStream i m reading the properties and then i try to create the tables.The parent table is created but the child table is never created.Also i m able to insert as well as fetch the data from parent table but the child table,as not created throws Derby's error messages.
    I need help in this matter.
    Could anybody give suggestions?

    The problem in creating a child table is that i m using two different .property files for two tables,one for parent and one for child table.I perform all the steps similar to those i performed to create parent table.But i dont know,somehow it creates only parent table and all the time when i run the code the error message for the child table comes that the table does not exist.

  • How to create Parent Child relationship of Assets

    Hi All
    can any one provide the solution for the below mention requirment.
    Problem Description: How to create Parent Child relationship of Assets in below case.
    1. If asset Category of Child assets are different but both parent & child assets are already capitalized.
    2. If asset Category of Child assets are same but both parent & child assets are already capitalized.
    3. If asset Category of Child assets are same for new assets.

    Hi All
    can any one provide the solution for the below mention requirment.
    Problem Description: How to create Parent Child relationship of Assets in below case.
    1. If asset Category of Child assets are different but both parent & child assets are already capitalized.
    2. If asset Category of Child assets are same but both parent & child assets are already capitalized.
    3. If asset Category of Child assets are same for new assets.

  • Having stopped audio with a swf inside a sidelet can someone create a swf that will resume the audio

    Ok, rick is going to post the fla of this file and I will
    post the swf. Basically this is all about having a slide that has
    audio running all the way through and enabling the user to roll
    over a sidelet and have the video and audio stop playback.
    At present, the max you can achieve is, to stop video. The
    audio keeps going and of course everything gets out of
    sync. Rick has create a swf that you input into a sidelet (
    after having imported your image or video ) which stops the audio.
    Fantasitc. Unfortunatly he was not successful in creating a swf
    that will resume the audio.
    So there is the mission. To create something that will resume
    the audio, be it a swf inside the sidelet or something else.

    Hi there paul. Am I right in thinking that your code will
    mute the audio. In my situation this would cause problems becasue
    you would roll over the sidelet - the audio would go silent and
    when you rolled off, or resumed the audio, it would have been
    playing so again the video and audio will be out of sync.
    Rick - rather than another swf which would activate the audio
    and video when you roll off the sidelet ( while that is the perfect
    solution ) what about looking at a button the user can press to
    resume things, maybe Im wrong but that sounds a little easier.
    ( however for all those reading this that is not really the
    solution I am looking for, what Im looking for is the above
    solution where you can just roll off and on and so on )

  • Loading an external swf into my parent swf?

    Does anyone know how I can load an external .swf file into my
    parent file? I have tried to use loader actionscript but think I am
    using the incorrect script or putting it in the wrong place? If
    anyone can tell me the script and where to/how to use it that would
    be amazing? Thanks

    thanks GWD!
    I am using the unloadMovieNum(); command, i have loaded the
    child into level 5 of my parent swf. the parent has multiple scenes
    this one with a layer with a stop(); action and another layer with
    the loadMovieNum("portfolioone.swf", 5); script. it loads the child
    perfectly. The child has a number of pictures in it and a back
    button at the end. I have been adding the
    on (release) {
    unloadMovieNum(5);
    script to the button which unloads the child but stops
    because of the stop action in the first frame of the particular
    scene within the parent. I want to be able to add a script to this
    button which will take me back to a labeled frame in a particular
    scene of the parent, I tried the this.removeMovieClip(); but
    doesn't seem to be working for me, Thanks for the reply, hope you
    can help me further??

  • AS3 pass variables-values from loaded external swf to parent swf

    Hi,
    I am working on an eLearning project that uses a main SWF (SWF1) and a second SWF (SWF2) with 2 quizzes in it. Published to AIR for Desktop and Android, SWF1 and SWF2 are packaged together in the AIR desktop or AIR APK exports.
    I can use a loader in SWF1 to call and run SWF2. What I am having difficulty with, need some help, is how to get the 2 scores from the 2 quizzes in SWF2 and load these values (each is a Number) back into SWF1. Once back in SWF1, they will be written to String and then displayed in a text box using textbox.text.
    While I've searched online and found examples for sending variables from parent to child SWF's, so far not able to find an understandable/useable AS3 script example for getting variables from child to parent SWF.
    Any help appreciated.
    Best Wishes,

    Hi,
    Still stuck. Can't get SWF2 to go back to SWF1 frame 2.
    SWF1, based on Kiran's AS file with the class AppEvent (class is not called in SWF1 until frame 2, and is called in SWF2 frame 9) loads SWF2 using:
    //SWF1, frame 2
    stop();
    import flash.display.Loader;
    expB100.addEventListener(MouseEvent.CLICK, L1, false, 0, true);
    function L1(e:MouseEvent):void {
    loaderL1.load(new URLRequest("Hotspot13.swf"));
    loaderL1.contentLoaderInfo.addEventListener(Event.COMPLETE, onChildLoaded);
    addChild(loaderL1);
    expB100.visible = false;
    function onChildLoaded(evt:Event)
        var child:DisplayObject = evt.target.content as DisplayObject;
        child.addEventListener(AppEvent.CHILD_DATA, getChildData);
        addChild(child);
    function getChildData(evt:AppEvent):void
        trace(evt.data.var1,evt.data.var2);
        tTest.text = String(evt.data.var1);
        tTest2.text = String(evt.data.var2);
    I wonder if there is some confusion between MovieClip and DisplayObject when SWF2 tries to return to SWF1 frame 2, using MovieClip(parent.parent).gotoAndStop(2); and gets an error?:
    Error #1034: Type Coercion failed: cannot convert flash.display::Stage@2f1ef71 to flash.display.MovieClip.
        at Hotspot13_fla::MainTimeline/onClick()[Hotspot13_fla.MainTimeline::frame9:124]
    Hotspot13 is SWF2; SWF2 frame 9 uses the following to try to return to SWF1 frame 2, causing the above error:
    function onClick(event:MouseEvent):void
        trace(this,this.parent,this.parent.parent);
        dispatchEvent(new AppEvent(AppEvent.CHILD_DATA,{var1:score1,var2:rbselectedT},true)); 
        MovieClip(parent.parent).gotoAndStop(2);   
    Or maybe the AppEvent.as file is imported in frame 1 when it should be imported in another later frame like SWF1 frame 2 where it is first used?
    Best Wishes,

  • Creating "compiled" swf?

    Aloha!
    It's been many, many moons since I've worked with Flash ( Flash 5, Circa 2001 eek! ) and I'm trying to get to grips with the new version. Apologies for anything that might seem "obvious" to full-time flash developers, I’ve never used the Creative Cloud version before and a lot has changed!
    Background:
    I have a PHP-based system that produces adverts for work - generating a custom XML file for the FLA/SWF to use, putting the images into the advert and creating the resource folders.
    This runs from a CSV, so that multiple product adverts can be generated quickly and easily without having to go through and modify each advert manually in Flash (previously a massively labour-intensive task for a team of people). The output of all the advert folder generation and file creation etc. at present is then zipped up and provided to the team to download onto their computer.
    Prelude to issue:
    In my younger days I would have passed output through a command-line processor on my linux servers to compile into one instance - The advert platform does not allow resource files to be uploaded with it, only a single SWF.  At the moment, the SWF requires the resource files in the images and xml folders
    What I’ve tried:
    I’ve built the PHP system that generates all the folders, resource files and copies in the template swf. This then displays fine in the browser.
    Folder structure:
    AdvertFolder
    |__ advert.swf
    |__images
    |    |__ image1.png
    |    |__ image2.png
    |__xml
         |_ banner.xml
    I’ve had a look online at some of the CC resources and they suggest that a lot of things now happen with the flash javascript interface - from what I’ve seen and some of the example code it appears that this deals a lot with generating content inside the flash instance based on actions etc. That’s not really what I’m after at this point.
    My question:
    Is there a command-line utility / series of switches to pull the SWF into a "compiled version" or does the latest version of flash require these resource files?
    Again, I’ve got no background in the latest version of the system and when I used to do manipulation like this things were vastly different!
    If it means that I have to run the scripting on the folders to generate the files once the team have downloaded it from the server that’s fine - I’m just not sure of how to pull this together at the moment.
    I looked at the possibility of looping through all the folders generated to "compile" the SWF - I've not seen anything to give a definitive answer as to if this is possilbe as yet.
    Thanks for your help and advice…

    When I read posts like this where you have issues getting a unique solution to work, I always want to go back to the solution. 
    You have to create seperate swfs because you're using unique images?
    Did you include Air in your options?  Servers are the last place you should use the cpu.  Air gives you software access to the computer.  You can download files from anywhere, use files from the computer, process them using the computer's cpu (no cost, no time concerns), save the generated files to the computer and/or upload them to wherever.  Air can inspect the files created too.
    Adobe Edge tools are for work creating html, css rwd, html5 animations.

  • Creating customised swf files using CF?

    Hi all.
    This is a bit of an integration question.
    Marketing create wonderful swf brochures using InDesign to
    let them have those cool page turning features. They embed urls
    into the document to invite the reader to "click to make a
    booking".
    Fine so far.
    What they have asked me is if there is any way we can
    dynamically build these brochures so that:
    a) clients can build their own and/or
    b) the urls can have some dynamic content
    For the latter, they want sales consultants to be able to
    generate a brochure and send it out and all URLs in that brochure
    will include the consultant ID (for clickback tracking and other
    stuff)
    I could do this easily enough using a PDF and CFDOCUMENT but
    they want the final format to be SWF and to have all those
    page-turner extras.
    Is this even possible at the current state of Adobe
    integration?
    Regards
    Neal

    I think you are trying to explain how to load two swf's one with action
    script and loading an other swf file which should be non action script.If
    you read my requirement carefully.I have all the same type of swf's and
    these swf are automatically created as a form of output for xcelsius dash
    board software.Iam capable of creating individialu ipa files from these swf
    files.So when I try to combine the same kind of swf files the first error
    its giving is the file name which I have used in the xml.in the main file
    name for the swf file its not considering the two swf file name in the
    initial window.so the adt package in the command line is not understanding
    the file name from the xml and the command prompt and giving error this swf
    file does not exist.So please consider how to combine two swf files with AS3
    into one ipa file.These swf files are not editable,Let me know if you find
    any idea to achieve this

  • How to create parent and chile process in java

    i'm beginning in java, and i want to ask something, please help me...
    1. i want to ask how to create parent and child process in java???
    example :
    if have one window and explore menu, when i click the explore menu.
    new window come out.
    how if i close the parent window the child window will close too...
    2. what is the method from runtime class to get available memory and Active Threads count

    ONE way to do what you wanted is this.
    class Parent{
    Child c = new Child
    allChildren.add(c);
    //if close
    iterate through list
    (Child)allChildren.get(index).close();
    ArrayList allChildren;
    class Child{
    public void close(){ }
    i dont know if you can get the thread count. but you can
    get the current thread by using System.
    Memory: Runtime.freeMemory() .maxMemory() .totalMemory()
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    Careful though you have to do a calculation to get the
    actual memory because those 3 methods refer to freeMemory
    of the CURRENT heap not the total memory.
    i think its: total - (max - free)

  • How to create Parent and Children is a tree table / trigger sequence number

    How to create Parent and Children is a tree table when the primary key of the parent is generated via a trigger and a sequence number in the database?
    My problem is when I create a parent and then right away a children. The parent still not have a primary key until the transaction get to the database. I get a error when trying the create the children, cannot insert null in the foreign key field of the children.
    Please help.
    Stephane

    You should have the parent key be marked as a DBSequence type.
    Then you should have the association between the master and detail defined as composite association to make sure that the posting order to the database is correct.
    http://download.oracle.com/docs/cd/E24382_01/web.1112/e16182/bcentities.htm#BABFECDJ

Maybe you are looking for

  • How can I fix this graphics problem on my Macbook Pro?

    Whilst playing numerous games on my Macbook Pro, I have noticed the same problem. This causes the game to be almost unplayable and usually happens after playing the game for a while. I have had this happen on many games such as Portal 2, World of War

  • Open a document in same window

    Hi We have a requirement to open a document in same window(lower part) when a link or button is clicked. Is there any sample explaining how to do that?

  • MV Refresh differences between 9i and 10g

    In 9i, the MV seems to be empty during complete refresh (Oracle does a truncate on the MV). I have done some tests on 10g and that does not occur (it seems that Oracle does a Delete). Does any one know this for sure? Thanks

  • Getting error when removing Oracle Home

    Hi, I'm in the process of removing un used oracle home, while executing the detachHome.sh script am getting the below error. Oracle version : 10.2.0.3 Os : Linux -2.6.9-42.ELsmp Error: xxxx+ASM2@xxxora05 /home/oracle > /oracle/product/10.2.0.3oct07/o

  • Error in Production Backflush

    Hi Experts, I am trying to create a backflush for reporting point 2 from SCM for a planned order. Reporting Point 1 has already been confirmed. But, while creating production backflush entry from APO (when I click on Goods Movements), I am getting an