How can I call in swf file to movie clip?

Hi all ...
This is my first post for advise, although fairly conversant
with flash and as2.
I am developing a new full screen background style website
and have menu buttons contained within a movie clip (nav_c1) ...
this re-aligns to the top centre of a page when user scales the
browser window.
I then have the content area (centre_content) movie clip ...
this realigns to the centre of the page when a user scales the
browser window.
I have scripted the menu buttons to goto a labelled frame in
the main timeline but I need, when at the labelled frame, to be
able to call/load in an external swf file to play 'inside' the
centre_content movie clip?
for example:
If I click my news button the flash file moves to the frame
label news on the main timeline. This then shows a duplicate of the
moive clip 'centre_content' which is called 'centre_news'. I need
to be able to call/load an external news.swf, containing all the
animated news info, to sit and play 'within' the movie clip
'centre_news' ... so that it is effectively contained 'within' the
movie clip file but loaded in place from an external swf file.
Can anyone help please?
I can post a rough working example online if need be.
Many thanks
A puzzled Adrian
ps: I don't think I am needing to load the swf to a level 1
area as I have tried this and instead of the swf file being loaded
and contained within my movie clip file/area it instead seems to
sit fixed on the main timeline (ie: not contained within the movie
clip area).

Thanks Sketchsta for you code. This looks like we're on the
right lines as I see what the code is trying to do.
Unfortunately though I can't seem to get this to work?
I created a new file to get rid of other scripting that was
going on and have placed a movie clip called centre_content onto
the main timeline in frame 1 ... then I have applied your script to
an actions frame above the movie clip also on frame 1. I change the
path_to_file line with my swf name (callin.swf) which is a 1 frame
flash file with some text on it ...
... but it doesn't bring in the callin.swf file ... it just
shows the centre_content clip.
Am i doing anything wrong?
I also tried putting the script onto the first frame inside
the centre_content movie clip but this doesn't appear to work
either.
Regarding the pre-loader ... can I simply build this into the
swf file that is being called in to the movie clip?
Thanks in advance for your support, it is much appreciated.
Adrian

Similar Messages

  • How can I import a .swf file in Adobe Flash CS4?

    Hi,
    How can I import a .swf file in Adobe Flash CS4?
    Thanks.

    you can use file/import but that would be a mistake.
    you should "load" your swf, not import it.
    if you want to load it and need help, are you using as2 or as3?

  • How can we call a class file of one package for class file of another

    How can we call a class file of one package from class file of another package and both packages exist in a same folder

    How can we call a class file of one package from
    class file of another package and both packages exist
    in a same folder
    Luckily they don't so it's really not a problem after all.

  • How can I convert a.swf file to a .avi file?

    How can I convert a.swf file to a .avi file?

    I already checked out about 30 of these links using the same Google search words. I'm on a Mac platform, and most of them have Windows-friendly downloads/apps. Some have Mac-friendly apps, none of which have worked so far.

  • How can i call forpro prg file from java

    Hai friends,
    I have a doubt,clear it.
    how can i call forpro prg file from java file
    by,
    N.Vijay

    Thanks to your reply,
    I have some print statements in my foxpro program file.
    Then i like to invoke that foxpro file from my java file
    This want i want..,
    by,
    N.Vijay

  • How can i call a DLL file from labview?

    Iam using a sensoray 2601 module.It is given as DLL file(S2600.DLL).How can i call this function from LabVIEW?
    Please Mark the solution as accepted if your problem is solved and donate kudoes

    As far as I can tell problems might occur with the call library function node if the the DLL from visual basic is actually an ActiveX dll if that is the case it seems calling the dll by using the Invoke node is the way to go.
    Have a look at this 
    /sletten

  • How can we call a jar files(seperate projects jars) to each link of the tre

    how can we call a jar OR WAR files(seperate projects jars OR War) to each link of the tree.

    i want have home page that have this menu
    ========================
    -- Sale
    --- Customer
    --- Reader
    -- Energy
    --- Calc
    -- Service
    --- Chnage Name
    --- Change Code
    =======================
    For example
    --- Change Name
    ---- Page Reister
    ---- Page Confirm
    ---- Page Anoc
    ---- Page Save
    ======================
    i want user to access to every page From Each Case(Change Name) .
    i create for change name one project in my fushion web app and for other case
    How to I Can Call Page register From change name in Menu of The home page ????
    Edited by: user13151366 on Feb 4, 2013 4:44 AM

  • How can i open pc .swf files

    How do I open PC .swf files?   Dialogue message:The document “Chapter7_review.swf” could not be opened. AppleScript Editor cannot open files in the “AppleScript Editor Document” format."

    It's normally adobe flash format.
    If you don't want to install flash (Lion does not install it) use the 'google chrome' browser which has it's own flash player.
    I use Lion > Safari > with No Flash installed and just use the develop menu option to open the page in chrome if necessary..

  • How can I get my swf files playing on browser?

    Hello,
    I've been designing my first website and have used dreamweaver, which is very new to me. I've followed a very good beginners guide to making websites and all was well. However, it had nothing about uploading swf files. So I did some research, and found that the easiest way was to insert them into a div box using the media section and choosing swf. again all was well, I can preview it in chrome etc.. and all works fine.
    I've come to uploading my site and I've used filezilla, uploaded all the files but I can't see the swf playing on the website. I've looked into it and I just can't find the answer. I've tried uploading them directly into the root folder as well but that doesn't work.
    Can somebody please help me!!
    here are the links:
    www.creativecanvassing.co.uk = the swf should be positioned between the orange logo and the "national direct marketing company' text. There is also the section in picture which has the same problem
    not too sure how to attach the copy of the file that shows its all working
    Thanks

    Hello,
    are you really sure that you have uploaded this page with contents? I've got this, when calling this link: http://www.creativecanvassing.co.uk/pictures.html:
    Your swf file is running in my IE8 like a charm in all your other pages.
    Hans-Günter

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

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

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

  • How can i make my swf files download proof

    how can prevent saving flash content from my website
    is there a way i can prevent people from using flash catching
    software to save flash from my website and also finding the path to
    the swf file in the source of the html

    damatrixhasu wrote:
    > how can prevent saving flash content from my website
    > is there a way i can prevent people from using flash
    catching software to save
    > flash from my website and also finding the path to the
    swf file in the source
    > of the html
    there is no way, in order to view it - is has to be cached.
    Once cached, it can be dig out w/o any problem.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How Can I protect my swf files from decompiling / saving

    I have navigated through the internet for a long time now but
    could not find the solution to my problem which is "how to protect
    my swf file from decompiling/saving"?
    I know that it CAN BE DONE and here is an example of a file
    on the internet that cannot be saved or decompiled using any
    software that I have come across (ie:SOTHINK decompiler, saveflash)
    http://www.3dinternet.com/video.swf
    Any help? any hints ?
    Thanks
    Hagop

    Hagop,
    > I have navigated through the internet for a long time
    now but
    > could not find the solution to my problem which is "how
    to
    > protect my swf file from decompiling/saving"?
    There is no way to protect your SWF from decompiling. Any
    commercial
    software on the market can be decompiled -- including the
    Flash authoring
    tool and Photoshop, for example -- which is why softare
    generally ships with
    an end user license agreement (EULA) that expects you to
    agree not to
    decompile or reverse engineer your purchase.
    Most Flash content (other than RTMP requests for video, for
    example) are
    HTTP requests, which by nature means the content is
    downloaded to your hard
    drive, just like HTML documents, CSS files, JPGs, and GIFs.
    Your browser
    requests the files, downloads them to your hard drive, then
    displays them
    from your local copy.
    > I know that it CAN BE DONE and here is an example of a
    > file on the internet that cannot be saved or decompiled
    using
    > any software that I have come across
    What you've seen, then, is merely the result of software
    that uses
    unknown (to you or to your sofware) encryption/obfuscation
    algorithms. Keep
    trying, and you'll eventually nail it.
    At best, you can use obfuscators to temporarily deter a
    certain segment
    of the decompiling-inclined population.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How can I encrypted my SWF file

    Hi
    I will create  some SWFs and will want it to be played on WINCE device platform, but i need the SWF be encrypted and only played on my device. How can we do?

    All rather vague so I'll just guess:
    1. Restore from your back up
    or
    2. Use a file recovery application like File Salvage - you can download a free trial and it will scan the disk for you and tell you with might be recoverable. Actual recovery will require that you purchase the app. There may be many files with the same or similar names. Always recover the largest file size.
    There are other such apps. Search on Macupdate or the App Store

  • How can I download a .swf file?

    Hi everyone!
    I'm trying to make an Objective-C application (using Apples Cocoa framework) to download .swf files off the internet.
    All the my program requires ia the URL address of the .swf file, (http://media.y8.com/games/content/Bowser_Ball.swf, for an instance). And then you're supposed to click the "Start download" button to start downloading the .swf file. But how could I actually download the file, and save it to a file on the users disc?
    What would you suggest? - Please post a snippet or a link for reference .

    Ahh thanks, I got it downloading the .swf files now, and I can play them without any problems what so ever!
    My only concern now is the user interface!
    I have this message box in which it is supposed to print "Downloading and saving SWF file.." and then start the animation of a NSProgressIndicator and then print "Downloaded and saved!" and stop the animation of the NSProgressIndicator once the files is downloaded & saved.
    But it's like it's downloading and saving first, and then starting and stopping the animation etc, etc.. so I never actually get to see the animation & text updates? - How can this be changed? - Here's a link to my Controller.m class:
    http://pastebin.com/YKHVPr3H .

  • How can I play many swf files back to back in AS3

    I have many swf files
    fileA.swf , fileB.swf, fileC.swf
    I want to play them from a MainFile.swf  back to back, fileA.swf , then fileB.swf then fileC.swf ...then to remove them and have the MainFile.swf only.
    How is this done in AS3.
    can anyone send me the code needed to do this. i don't know AS3 very well. I know how to do this in AS2 , i used to put code loadmovie in each files last frame that loaded the next file to a mc object in the mainfile.
    I would apprciate to have all the code appear only in the main file without haveing to code each seperate swf file.

    You should work out how to do it with just one file first in AS3.  The approach to doing many sequencially would be similar to what you did in AS2... the simplest way being to add a command at the end of each swf to trigger the main file to remove it and add the next swf.  I don't know of any way to detect the end of an swf... it has to tell you it's done.
    In AS3 you use the Loader class to load swf and image files.  You use the addChild family of methods to place things on the stage, and you use the removeChild family to get them out of the picture.

Maybe you are looking for

  • Upgrade from 10.2 to Tiger 10.4.11

    I don't want to upgrade to Leopard. I want Tiger 10.4.11 to run on my PowerBook G4 17inch (running on 10.2)... (This computer is not on line.) Is Tiger 10.4.11 still on the market to purchase? Can I take my PB G4 into an Apple store and have Tiger 10

  • M "mute" button blinking

    Hi everyone, I am new in this community. I have a problem in my Logic Pro 9 project. The M button (mute) is blinking and sample sounds intermittently. I have not solo track, I tried to take any channel strip and solo it, then Option-click its solo bu

  • Synchronous JDBC structure

    Hi all, I have a scenario involving SOAP and JDBC with synchronous calls. I have created the source structures with request and response and have no doubt about it. The doubt is on the target side (JDBC), Have a structure as, Name, EmpID and location

  • Mega 865 Pro All in Wonder AGP card question

    Helllo, I own Mega 865 Pro, and iam looking to install AGP card that has all the features of video editing instead of buying two cards like Pinnacle and graphic card, so i have been searching and i found All in Wonder series, which has TV tuner as we

  • Cracking Loudspeaker? Can someone test this for me

    I've noticed something that might be abnormal about the speakers on my iPhone 4S. Could someone test this for me please? Go to ringtones, and play the 'bell tower' ringtone making sure your ringer volume is all the way up. Listen closly to the speake