Adding another swf file to the air application

I have developed adobe air application. Before the application is launched, I want to play a .swf file with sound
as introductory and then launch my air application.
How to integrate the .swf file with my application?
If some one can share how to do this in Adobe Air it will be of great help to me.
Thanks in advance

I am not aware if you can run various swf's from Air in any particular sequence, but it is pretty irrelevant as you can have a shell.swf that loads the sound from an external or attach it if embedded in the library, play it and onSoudComplete step to the next function. I can't see you need to load 2 swf's as it sounds like you just need an intro page, listen to the sound and move into the application, perhaps with an option for the user to skip the intro. If you are using AS3 I can't comment further - in AS2 it's simple and little coding.
var sf1a:Sound = new Sound(this);
sf1a.attachSound("snf1");
stop();
stopAllSounds();
sf1b.onSoundComplete = function(success:Boolean) {
if (sfp ==0 and sf >= 3) {
  gotoAndPlay("frame23");
} else {
  sfp=0;
  gotoAndStop("frame3");
sf1b.start();

Similar Messages

  • To open a Excel and Doc file inside the AIR application

    How to open a Excel and Doc file inside the AIR application.  I have opened the PDF file inside the AIR application.  But i got stuck in opening the Exce and Doc file.  Please help me in this issue.

    AIR does not support this inherently. However, you could write code to parse these file formats. For example, the following is an ActionScript 3.0 library for reading and writing Excel files:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1375018

  • Call a external SWF by press the button within another SWF file but the second SWF file play Externely

    Hello Guyz.
    i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2

    try this
    http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123

  • Loading and modifying a SWF file within an AIR application

    I bet you get this question a lot, but I was wondering, if possible, anyone knows how to edit and save the changes to a SWF file loaded inside an AIR application?
    Thanks in advance!

    I'm sorry, but I happen to digress greatly with Michael's approach. I started using AIR  just yesterday ( 3 hours or so ), and I firmly believe in reinventing the wheel as a strong method of learning. Just to be clear, I do this on my own free time, so I have no need to worry about COGs, after all, I'm just learning. Otherwise, though it's a strong and great response if I were to build a somewhat bigger application, it's way too much more than the original scope of the application. It's like using a bazooka to kill ants . Regarding the scope of the application, it should support loading / writing of SWFs, and editing of XMLs for certain pre-defined entities. As I stated already, I am certain that I'd be able to do this in a very short span of time with another approach (more xmls, embedding assets directly to the SWF that loads the edited swf, etc.) It's more of a challenge to myself than anything else . I'm really grateful for all your help, so if you want, I can keep you up to date on how I deal with the issue.

  • Importing another swf file into the flash-homepage (swf is a gallery)

    hi there!
    have a problem that i cant resolve myself ..
    i downloaded a free of use gallery from juliuswebdesign.com (this gallery) and i'm trying to load it in my flash site ..
    now, the gallery works if i open it directly (i open the swf file)
    BUT
    when i try to load the external swf file into my site
    loadMovie("image_gallery.swf", box);
    then the movie loads .. the gallery is displayed the message "loading xml file" displays and then when the xml is loaded the message "loading image 1/7" displays and only the first image loads.
    once the first image is loaded it will not be displayed (it remains outside of my swf file .. i can see it when i resize the window) and no other images will be loaded.
    if i open the gallery.sfw file again everything works fine .. the problem is only if i try to load the gallery.swf in another swf ..
    something must be wrong ..
    i tryed to opern the gallery.fla file and copt everything directly in my site and the problem remains the same .. only 1 image loaded and not displayed in the gallery ..
    i'ts like something in my site "blocks" the gallery beeing loaded..
    any suggestions?

    to the gallery's fla add the following and retest:
    this._lockroot = true;

  • Adding a SWF file into a Coacoa application in Xcode.

    Hello all,
    I'm not the most experienced Mac developer, and I have a question. I want to input a SWF file into my application. Whenever I just add it in by dragging and dropping, it looks fine while building it however it doesn't show up in testing. It just shows a white screen.
    My second question is about auto loading a web page while making a browser in Xcode. If I have made a browser in Xcode, how do I make it to where when you open the application it automatically loads the specified web page you want. Would this be done by AppleScript? If so, how?
    Thanks, I hope I explained the questions clearly.

    Alex4000 wrote:
    I'm not the most experienced Mac developer, and I have a question. I want to input a SWF file into my application. Whenever I just add it in by dragging and dropping, it looks fine while building it however it doesn't show up in testing. It just shows a white screen.
    It sounds like you need to make sure it gets copied to your application's resources folder (and make sure it gets loaded from there, too). Look into a copy files build phase, where your SWF file would get copied to your app's resources directory.
    My second question is about auto loading a web page while making a browser in Xcode. If I have made a browser in Xcode, how do I make it to where when you open the application it automatically loads the specified web page you want. Would this be done by AppleScript? If so, how?
    You can do that directly in your app with a WebKit call. Look at "loadRequest:" in the documentation for the details.
    charlie

  • How to open and show a word, excel, ppt file in Adobe AIR application?

    Dear All,
    I have a requirement to open a MS- word/ Excel file in the AIR application.
    On click of a brows button a file reference box opens...on any file
    selection...it should open in the application itself...
    so plz let me know the solutions u have...

    Here is your basic issue: setting a classpath (and presumably compiling and executing a program) is one of the most basic, fundamental concepts in Java. I would advise you to follow JVerd and Annie's links and get started on a tutorial. Try writing a simple HelloWorld application before delving into POI. When you are more comfortable writing and compiling programs, and post a specific question, it will be much easier to help you.
    - Saish

  • How to call method in another swf file

    Hi. I am at the moment making a website in Flash 8. The
    website consists of a main file with the buttons and then
    additional files for each page. Each of the buttons uses code
    similar to this:
    content.loadMovie("home page.swf");
    where content is the movieclip I am using to load the swf
    file into. In the main file I have a search box where a user can
    type some search terms. I have written some code that will search
    through the text field(s) on the page and highlight any words that
    appear matching the search terms. The only problem is that I cannot
    get to the text fields on the other files. So what I want to be
    able to do is attach some code to the search button that will call
    a method in another swf file using the parameters that I the user
    has specified in the search box. How would I go about doing this?
    Any help is much appreciated
    JM Young

    Place functions in the external swf. Then you can call them
    through the container clip
    content.yourFunction(args);
    Realize however, you cannot call code in an external swf
    until the frames with the functions are loaded. Timing would be an
    issue if the user can beat the loading clock or if you have code
    that is executed automatically after you start the load.
    So if timing becomes an issue, use MovieClipLoader and the
    onLoadInit method.

  • Linking SWF file in another SWF file

    Hi All,
       I need to open  a SWF file by clicking a a button in another SWF file(both SWF files are in the same folder). Can I use URL button(in Xcelsius 2008) for getting this done?

    It is possible to use the URL button to open another SWF file.  The SWF file would need to be hosted with an http address.

  • Help - "Acrobat is being used by another application and cannot open PDF files until the other application is closed."

    Hello,
    I searched this site and google for this error terminology and come up dry.  I support a user who has been for years using Acrobat 5 (yes, I know...) to read files in a client DB program, as well as other PDF files on their PC.  In the last week or so, they have started gatting this error "Acrobat is being used by another application and cannot open PDF files until the other application is closed." any time they attempt to open a PDF file attached to an email (via Outlook).
    It is my understanding that they cannot upgrade to a newer version of Acrobat because of limitations of their client software, but had not previously had any issues viewing PDF notes from the DB, and PDF attachments in their email.
    I have tried uninstalling and re-installing, as well as tried using Adobe Reader 7 & 9 in conjunction with Acrobat to try to get around this issue, but have not been successful.
    Any ideas?
    Thanks,
    Jesse

    I don't have an answer to your technical problem. The product I assume is Acrobat that you are talking about (based on the post title), Adobe is the company name. This is a good place to ask questions on Acrobat if folks can figure out what you are talking about. They will ask for the product version number (like AA9.3.3), operating system, and other applications if appropriate. Also, just what you are doing that generates the message.
    As for Adobe, you are not likely to get an answer from them here in the user forum. You will be lucky if you can get an answer if you can contact them and not be on hold for more than an hour (sorry, this is why a lot of folks end up in the forum).
    So, to help others try to answer your question, what are the products and versions involved? What OS? What are you doing when the message comes up.

  • Opening SWF Files in the Application window

    Hello Everyone,
    We have a problem in opening .swf files in our application.
    We had quick time movies(.mov) which we used to open and
    play inside the application window, using QuickTime Framework APIs
    in the code.
    Presently we had converted these quicktime movies(.mov) into
    .swf files and we are unable to open the same using Quick Time
    Framework in MacOSX.
    Can you please suggest me as how should I proceed, i.e which
    framework should I use in the code to open and play .swf files in
    the application window?
    It will be better, if you can send me a small sample code to
    use in my application for MacOSX.
    Awaiting for your kind reply,
    Thanking you,
    With Best regards,
    Anil.

    Hi Vaibhav,
    I need to display the serarch results in the same window.
    I have followed the steps mentioned by you in the thread
    <i> Search Results in the Same Window..as we have in SDN</i>
    Even after making changes to 2 PAR files mentioned in the above thread, on click
    of Search button nothing happens.
    It will be great if you can send me your modified PAR files, to identify where i am
    going wrong. My mail id is [email protected]
    Thanking you,
    Vikas

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

  • Encrypt/Decrypt pdf files in adobe air applications

    Hi Friends
    I want to encrypt and decrypt pdf files in adobe air application. I tried it many ways but am not getting it right method.
    Please help me this situation.

    AFAIK, Adobe Acrobat has features to add security to pdf file, but as for decrypt pdf files, you need to give the password. For example, Adobe Acrobat 9 standard.  Decrypting pdf seems not the issue of acrobat. You can find proper version of Acrobat to encrypt your file, whereas decrypt pdf document, you need to turn to a pdf password removing program to achieve that.

  • Can you play/view swf files on adobe air for android?

    Hi, yes; I'm new here, as well as to Adobe Air, and I'm still trying to learn the ropes around here, and I apologize in advance if this has already been asked, or I have placed this question in the wrong forum.
    The thing is, I was wondering if it was possible to play my SWF files via adobe air for android; and if so, how? Thanks in advance either way.

    Can you please give directions where can i clear that cash.
    Anyway i don`t think its the case, because this is first time i hooked phone to internet, and first time i launched Android app store.
    Edit:
    I went to https://market.android.com and there is Adobe air app. But when i try to download it says that my device doesn't support it (Samsung Galaxy GT-I5500) By default it comes with android 2.1 and doesn't support Adobe air, but i upgraded firmware to 2.2.
    Maybe that is the reason it doesn't show me Adobe AIR in app store - based on my phone, not my Android version ?

  • Log to file from installed air application

    I have an application I've developed using flex builder,
    which uses the flex logging library. When I run it from the
    debugger in flex builder I get useful log information in the
    flashlog.txt file. Eventually my application is turned into an air
    file which is installed on the target machine. Is there any way to
    get that log output when I run the air application? Some output
    appears in the flashlog.txt, but not the same output as I see when
    running it with the flex builder.

    Has no one tried to do this before? Seems like a really
    simple thing to be able to do, to help with debugging release
    issues...

Maybe you are looking for

  • Exports from Depot

    Dear All, I have a query regarding Exports. Is it possible to do Exports from RG23D registered Depot and Non registered Depot. If it is possible can you tell me the process to follow in SAP and documentation required. Thanks & Regards, Kartheek.

  • Cant get external Monitor to run under Mountain Lion with Dr. Bott Mini Display port Adapter and Mac book Pro Retina!

    Hey there, somehow I cant get my Zalman Trimon Monitor to run on my new Mac book pro (2012, Retina). I tried hooking it up with the Dr. Bott Mini Display port Adapter see here  ( http://www.google.de/products/catalog?client=safari&rls=en&oe=UTF-8&red

  • Trying to upgrade to iOS 4.1 - getting "err = 1403"

    Hi! I've tried FIVE times to download iOS 4.1 but without luck. iTunes downloads the whole file and then pops up with a red "!" "The software for iPhone was corrupted during download" - there's an (err = 1403) that appears in the download box too. I

  • Converting code from AS 2.0 to 3.0

    Hey guys, I'm doing my dissertation, using Flash to build a website.  I found this amazingly helpful book that has given me step by step instructions on what to do.  It advised me to open an AS 3.0 file to do all my developing in & that has worked fi

  • Web Enabled SAP environments

    I would be interested to know why people have chosen to use PHP in a SAP environment. I started using PHP with SAP because the clients I worked for did not have a SAP environment with any web functionality. Therefore without PHP it would be quite dif