Opening a .swf in a separate window

Can anyone tell me the correct syntax to use when trying to
have an .swf open from a button in the main swf? The button already
has some animation and rollover features and I just wnated to add
that on the mouse release (or down) I want to launch the other swf.
Here's the script but I'm getting this error:
**Error** Symbol=button 2, layer=Layer 3, frame=1:Line 8: '{'
expected
loadMovie(DynaPurge.swf);
Total ActionScript Errors: 1 Reported Errors: 1
Here's the script on the button, the first part has always
worked, it's the launching of the swf that's driving me nuts.
on (rollOver) {
gotoAndPlay(2);
on (rollOut) {
gotoAndPlay(6);
on (press)
loadMovie(DynaPurge.swf);
}

Datredigital wrote:
> Can anyone tell me the correct syntax to use when trying
to have an .swf open
> from a button in the main swf? The button already has
some animation and
> rollover features and I just wnated to add that on the
mouse release (or down)
> I want to launch the other swf. Here's the script but
I'm getting this error:
>
> **Error** Symbol=button 2, layer=Layer 3, frame=1:Line
8: '{' expected
> loadMovie(DynaPurge.swf);
>
> Total ActionScript Errors: 1 Reported Errors: 1
>
> Here's the script on the button, the first part has
always worked, it's the
> launching of the swf that's driving me nuts.
>
> on (rollOver) {
> gotoAndPlay(2);
> }
> on (rollOut) {
> gotoAndPlay(6);
> }
> on (press)
> loadMovie(DynaPurge.swf);
> }
LoadMovie action require second parameter. If you load
content in target movie clip, it needs the
clip name. LoadMovieNum require level number as second
parameter.
Your action is missing the target name and the file itself
needs to be in quotes "", otherwise
it become an expression.
It should be either one of these:
loadMovie("fileName.swf", "MC_holder");
loadMovieNum("fileName.swf", 1);
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • I want to open a folder in a separate window by clicking on it.  For some reason when I click on a folder it just replaces the one I was just in.  I want them both to be open at the same time without having to go through several steps.

    I want to open a folder in a separate window by clicking on it.  For some reason when I click on a folder it just replaces the one I was just in.  I want them both to be open at the same time without having to go through several steps. Old apple operating systems made it easy to have several folders open at one time. 

    Eric, thanks that works but seems like an extra added step also to do it that way.  I've got to move and organize a ton of files and I'm looking for a easy way to get this done.  I could also open the folder into a separate tab and then drag the tab out so it becomes an open window but thats a lot of fussing around also with extra steps.  Not sure why these newer operating system seems more confusing and less user friendly than what they used to.  In the past I could just click on any folder and it would open in a separate window making it really easy to copy or move files from one place to the other just by simply dragging them from one window to the other.  Seems like I'm going through several extra steps now to do a simple task. 

  • The latest version of iTunes does not allow me to open a playlist in a separate window.  I need this feature.  Is there another way?  You used to be able to double click a playlist and have it appear in a new window.

    The latest version of iTunes does not allow me to open a playlist in a separate window.  I need this feature.  Is there another way?  You used to be able to double click a playlist and have it appear in a new window.

    Others have commented on this too.  It seems to be one of the 'improvements' of the newer version you are supposed to embrace with joy as an exciting new development.  You can send feedback to Apple but realize you may be perceived as standing in the path of  progress.
    http://www.apple.com/feedback/itunesapp.html

  • How can i Open mail attachments in a separate Window

    Who knows how I can open attachments from mails like PDF and so on in a new window so that I just see he attachment not the email text and the attachment?
    Mercy

    if you're using the iPad's mail application just tap on the attachment and it should open up in a new window with the attachment shown full screen. if you're using a web site to view you're email it's up to the particular site though if you do a long press you may get an option to open the file in a separate window
    Really hope that helps
    Chibi

  • How to open a swf in a new window

    I have a button in one swf that I'd like to open another swf
    in a new window. What's the easiest way to accomplish this task?

    Try to read this article
    http://74.125.39.104/search?q=cache:f8Iq_w8jem0J:kb.adobe.com/selfservice/viewContent.do%3 FexternalId%3Dtn_14192+flash+popup+window&hl=ru&ct=clnk&cd=1&gl=ua&client=firefox-a
    How is represented the list of mp3 files in your player? I
    have a similar task.. Do you use DataGrid?

  • How to open an swf in its own window outside flash using button

    how do I open an swf in its own window outside the flash using button?

    Hi,
    Try this code:
    import mx.containers.Window;
    var my_button:mx.controls.Button;
    var buttonListener:Object = new Object();
    buttonListener.click = function(evt_obj:Object) {
    var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Sample Image", contentPath:"uganda_animation_Scene 1.swf"});
    my_win.setSize(320, 240);
    my_button.addEventListener("click", buttonListener);
    You must drag the window default component and place in to the library.
    Saransoft

  • How to open a .SWF in the same window (similar to online photo galleries)?

    I have a .swf I want my users to be able to open, but without
    opening a new window.
    I'm sure you all have seen this effect. In a photo gallery,
    the user clicks a thumbnail, the screen darkens, a white box
    resizes to the size of the larger image and the full-size image
    loads...all without opening a new window. I'd like to do the same
    with a .swf. Does anyone know how this is done or could you point
    me to a good tutorial? Thanks.

    Are you wanting to open your .swf from an HTML page:
    http://weblogs.asp.net/jeff/archive/2006/10/25/Modal_2D00_style-pops-in-Javascript-and-CSS .aspx

  • Opening store or playlist in separate window removed. Why Apple?

    iTunes 11, Apple removed the ability to oen the Store or Playlists in a separate window by double clicking. INSANE!
    Apple now makes work so much harder in this version of iTunes.
    I tag all my over 15 thousand songs. I get a lot of music that I import that needs track info. I used to oen the store in a seaprate window, Read the info as I typed into into the track in tanother window. Not anymore. Apple now takes me OUT of the playlist window to the store, and either I write the info down or take a screenshot then go back to the track to be worked on. Then I run a script for getting the lyrics, which why Apple doesn't work that deal out with labels/publishers is another open question.
    I work in iTunes hours a day, Apple now increased this time by more hours.
    iTunes 11 makes life harder not easier for me anyway.
    As a side not - after installing iTunes 11, I figured best to run a sync of my iPhone, set up to do over wifi. Started the sync left room to make coffee came back to computer and iTunes was in the process of installing ALL my apps on the iPhone! WHY Apple?
    SO I cancelled the sync, then had to go and click remove of about 100 apps it already installed.
    iTunes 11 was not ready for release IMO.
    That's ny rant. If anyone knows a script that may open seaprate window for store or playlist please let me know.

    solved

  • Opening second application in a separate window

    Hi
    I have 2 applications in the same DC. On the click of the link present on the first application iview, the second application opens up. I have done it using exit plugs.
    But the problem i am facing is the second application alos opens up in the same window, and i want i to open in a separate window.
    is there any way in which it can be acheived?
    Thanks & regards,
    Anupreet

    Hi ravi
    In my second application, there is a table, carrying some data. It is actually Link to Action. On the click of any of the data, the corresponding value is passed to the first application.
    So ihave created one action, in which i am passing the value to the first application, using exit plug(as of now).
    I am using WDURLGenerator for this.
    The code snippet is as follows:
    String deployableObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
                      Map urlParameters = new HashMap();
                      //SENDING THE VALUE TO BE SENT BACK TO FIRST APPLICATION
                      urlParameters.put("Url",code);
    WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart( deployableObjectName, "FirstApp", WDDeployableObjectPartType.APPLICATION);
                        //GET TARGET URL BASED ON DEPLOYABLE OBJECT PART AND URL PARAMETERS
                      String urlToTargetApp =WDURLGenerator.getApplicationURL(deployableObjectPart,urlParameters);
    and then using exit plug and passing "urlToTargetApp" in that exit plug.
    Hence the value passed is displayed in the first application.
    Thanks & regards,
    Anupreet

  • Open CR11 reports in a separate window

    Post Author: GraceMia
    CA Forum: Other
    We have a CR8-vb6 application. We migrated CR to CR11. In CR8, all the CR reports are opened in separate windows when we set CrystalReport1.Action = 1. Whatu2019s the equivalent method in CR11 to open reports in separate windows? Any input is appreciated!
    Grace

    Post Author: GraceMia
    CA Forum: Other
    I plan to export the reports to rpt files behind the scene so user won't know that there's an extra step involved. 
    But the following code gives me error -2147206463 without description:
    Private Sub CRViewer1_ExportButtonClicked(UseDefault As Boolean)
    UseDefault = False
    With Report    .ExportOptions.FormatType = crEFTCrystalReport    .ExportOptions.DestinationType = crEDTApplication        .Export (False)End WithEnd Sub
    What did I do wrong?
    Grace

  • How to I get firefox to open my email on a separate window or tab maximised

    ''duplicate of - https://support.mozilla.com/en-US/questions/898304''
    I want my email to open maximised in a new window or new tab so only the new open email window / tab is visible over the screen area (maximised).
    Edit: Can Anyone tell me how I can keep track of my questions?
    I spent a good bit of time locating it, thanks.

    Middle-click or {Ctrl + click} a link to have it open in a new tab.
    Or, right-click the link and select '''Open Link in a New Window''' (or New Tab).
    Window size isn't going to change when opening a link, if you want it Maximized, that is a separate click if the original window isn't already Maximized.
    Full Screen is window by window, and is toggled by '''F11'''.

  • How to open other swf at the same window \ click to dissolve?

    Hey guys,
    I'm creating a simple flash feature with only three buttons, but I need your help:
    First button - click and it opens our inventory flash flip book. the problem is, the flip book is already in flash, and I have no idea how to make it so when i'm clicking the button, it opens the flip book in the same window.
    Second button - when you click it, it dissolves to a new window where you can see our contact information + 'back' button. how do I create this dissolve on demand and back?
    I got the third button ok.
    please help me with that,
    thank you!

    AS3 or AS2
    Escencially you can create a container with a tween alpha animation controled by the second button. To load the swf you can externally load the file swf as an image
    var myLoader : Loader = new Loader ( ) ;
      myLoader . contentLoaderInfo . addEventListener ( ProgressEvent . PROGRESS , onProgressStatus ) ;
      myLoader . contentLoaderInfo . addEventListener ( Event . COMPLETE , onLoaderReady ) ;
      var fileRequest : URLRequest = new URLRequest ( "myImage.jpg" ) ;
      myLoader . load ( fileRequest ) ;
      public function onProgressStatus ( e : ProgressEvent ) {
      // this is where progress will be monitored
      trace ( e . bytesLoaded , e . bytesTotal ) ;
      public function onLoaderReady ( e : Event ) {
      // the image is now loaded, so let's add it to the display tree!
      addChild ( myLoader ) ;

  • I want to open private browser in a separate window without shutting the old inprivate window, how?

    I have no more details

    Hello nona1234, you can not do that with your 13.0 firefox version, firefox from 20 version and above have the option to open private browsing mode per window.
    see the change : http://www.mozilla.org/en-US/firefox/20.0/releasenotes/
    see : [https://support.mozilla.org/en-US/kb/update-firefox-latest-version Update Firefox to the latest version]
    thank you

  • Opening Bookmark Collections in a separate window- possible?

    Hi,
    I have not been able to find this elusive command, which another celebrated Mac browser has... press option together with the Bookmark button on the toolbar and voila! you get another window exclusively holding your bookmarks.
    Is this available in Safari?
    N5

    No you cannot open the bookmarks page in a new window or tab. One work-around is to press Command-T for a new tab or Command-N for a new window first and then open the bookmarks page.
    If you always want to have your bookmarks available, you can set your bookmarks as your home page so that they will always appear in the first tab when you open Safari. Command-Double Clicking on any bookmark will open that bookmark in a new tab, leaving all your bookmarks still visible in your first tab.

  • How can I get Flash cs5 to open a separate window

    Hi all,
    I have a project that has buttons, which I would like to open external SWF within a separate window. I would open them up within the project file, but the dimensions are to big (1024x768) and I don't know how to scale the SWF for the area of (400x300 something).
    Need your help. Many thanks,
    HDsuperglide

    Would you mind reposting this question over on the Flash Professional forums?  This forum is primarily for end users, the Pro forums will get you in touch with a wider developer audience.
    Thanks,
    Chris

Maybe you are looking for

  • Wrong Conversion of Amount in Words in Purchase Order print out

    Hi, Please help me with the problem in printing of Purchase Order, there is an error in amount in words. For example the total amount in numbers is 93,311.30 however the amount in words will be nine million three hundred  thirty-one thousand one hund

  • How to post  data to  external  Server URL

    Hi all, I would like to send purchase order  to Vendors Site, given server URL.   our purchase orders are available in  cXML format.  can you please suggest some solutions.  how to configure the HTTP/SOAP adapter at the receiver side. So that XI can

  • Multiple records in query..

    Hi, select * from service_request sr, service_request_det srd,service_user su where sr.srid = srd.srid and srd.empid = su.empid service_user --> this table has record of same employeeid multiple times srd --> this table have employee id multiple time

  • SMS UCS-2 support in western europe phones?

    any reason why a phone that supports english, french, italian should not be able to forward an SMS in UCS-2 format with some accents that are not supported in 7-bit or 8-bit SMS Text format? Any reason why conversion from 16 bit to 7 bit format is si

  • Why are the words so small and I can't maximise the window?

    Ever since  downloaded Adobe Creative Cloud, the words in the Adobe window are always very very small. I can't maximize the window or zoom in. It's ver diffcult to read the small letters.