ExternalInterface with multiple swfs on page

I need to have several swfs on one html page, all using
ExternalInterface to communicate with js.
Some of the swfs might be exactly the same swf, but I need to
know which one on the page was calling the javascript function.
Is there any easy way to do it?
The thing I come up with is to give every swf an id in the
pages onload function (Like in the attached code).
But maybe there is an easier way. Can I get the id of the
object tag in the html dom from flash directly?

Make a button for each videos and with every button go to Button and Form panel
1- Action:apply video action.
2- Video: select video to play.
3- Option: select Play for this vedio.
4. Add another Action: Video.
5- Video: select video to stop
3- Option: select Stop for this vedio.
For the other videos repeat these steps

Similar Messages

  • Creating IPA file with Multiple SWF files using ADT

    Iam successfully able to create ipa files using the ADT package but my next requirement is to create an IPA file with multiple swf files.I think it might be easy if your SWF files are regular the tough part is my swf file has lot of action script in it so the only option is to through the command prompt and using the ADT package of Adobe AIR.So now i have 10 SWF files like this and iam creating ipa file for each swf seperatly but now I want to put all of the swf files into one ipa file.Please let me know if i was not clear in my description

    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 save a pdf with multiple slides per page

    I have multiple pdf files that I would like to combine but for some of those files, there were originally from powerpoint. For those files, I would like to change the pdf so that there are multiple slides per page. I don't have a copy of the original powerpoints. I am trying to find an easy way to do this because I have at least a hundred pdfs to do. Thank you!

    You could print a PDF to the Adobe PDF printer, and select multiple Pages per Sheet on the Layout tab of the printer Properties dialog. Printing a PDF to PDF is generally frowned upon, but once it a while it comes in handy. It could have some unwelcome side effects though like wiping out your carefully crafted accessibility tags, bookmarks, and some document properties.

  • Problem with multiple .swf in the same page

    Hi everybody,
    I got a small animation written in actionscript 2.0. I need
    to load it several times in a webpage (about 20 instances), but
    seems to be too many work and the web browser freezes.
    Anyway, it's a relatively simple script (not complex
    arithmetics per cycle, although two or three color gradient
    refreshing), so I think the problem could be the fact of having so
    many instances running at the same time...
    Is there any way to fix this problem without reducing the
    quality of the animation?
    Thanks a lot!

    Sorry Kglad, I didn't mean to be rude. With "No coding
    errors" I meant the animation itself runs with no errors. I'm sure
    you could run the 20 instances with no freezing (that's why I put
    the post :) ) But I'm affraid it is an animation for a client, so I
    cannot distribute the code.
    Perhaps I didnt explain the situation clearly enough (in part
    because of my poor english...).-
    - By 20 instances I mean 20 separated embedded objects in the
    html
    - The animation is relatively simple. A turned on candle, in
    each cycle I calculate the next position of the flame (that
    oscilates from left to right). The flame is composed by 4
    concentric gradients. There is NO loops, only an 'onEnterFrame'
    function refreshing the flame each time.
    - It's true that I got plenty variables at the _root level.
    If that could be the problem, how can I workaround it?
    - It is my first time trying to embed so many objects at the
    same time too. No idea if the problem could be the way I embed the
    object from the html :(
    - The only thing I can guess is that when a cycle of one of
    the object is running, the other 19 objects must wait their turn.
    That would explain why the more instances I run, the worst results
    I get. In that case, I wonder if there's a way to run them in a
    kind of asynchronous mode, just guessing...
    Any other comment would be appreciated. Anyway, thanks a lot
    everybody for your colaboration.

  • Is there a way to print presenter notes with multiple slides per page?

    I know you used to be able to do this with earlier versions by selecting options in the print dialog box, but I'm now using Keynote 6.1 on Mavericks, and I can only figure out how to do one or the other, not both. There will probably be over 100 students printing these out, so I'd really, really like to save paper by putting multiple slides on a page, but I want them to have both the slide and the notes. 
    Thanks in advance! 

    Print Handouts and select presenter notes option, the maximum is 5 slides per page

  • How to navigate with multiple swfs

    I have a master swf, and then a header swf inside that that
    contains my main menu. I then have about 3 other swfs that load in
    with the content. Is there a way that I can tell the buttons inside
    the header portion to go to a specific frame label inside one of
    the other swfs? If so, what would that look like?
    Right now, for instance, the header would load the home page
    like this:
    myMCL.loadClip("home.swf", 5);
    But I don't just want it to go to the home.swf. I want it to
    go to the "contact" frame label inside the home.swf. How can I
    achieve this?
    Thank you so much!!

    ok. I feel like that should do it. BUT, am I supposed to be
    entering in an info, or is that the exact code I should use?
    becuase I'm not really sure what is going on.
    I dont see "contact" anywhere in any of that code, which
    makes me think I should put it in somewhere. But I don't know where
    to put it.
    Thanks for being patient with me
    Josh

  • Create a PDF with multiple images per page

    So this seems really simple, but i cannot figure it out... i am creating a PDF from 30 JPGs and rather than having an image on each page in the PDF I would like to set it up so that there are 6 images per page... any thoughts .. thanks in advance
    cheers
    matt

    Once you have the PDF with a single image per page, print it out to a new PDF with 6 pages per page.
    Either that, or use an authoring application like Word or InDesign.

  • I.E./Active X problem loading movie with multiple .swf

    I have a webpage that loads .swf's into a main "container"
    swf, and I've found a fix for the I.E./Active X (this is a good
    bookmark:
    http://www.kirupa.com/developer/flash8/flash_fix.htm
    ). But the container seems to get stuck on the preloader now? Any
    ideas?
    PROBLEM PAGE HERE
    WORKING PAGE HERE

    FRAME 1:
    System.useCodepage = true;
    main="";
    pageNum=1;
    if (_framesloaded > 50){
    //if (_framesloaded == _totalframes){
    gotoAndStop (8);
    } else {
    gotoAndPlay(1);
    FRAME 7:
    gotoAndPlay(1);
    FRAME 8:
    if (whichFrame == "return"){
    gotoAndStop (20);
    less6.gotoAndStop(2);
    } else {
    gotoAndStop("splash");
    FRAME 20:
    if (_framesloaded == _totalframes){
    gotoAndStop ("p14");
    } else {
    gotoAndPlay(10);
    }

  • Problems with multiples swf

    HI ALL,
    I am writing a script to communicate between flash and Visual
    Basic.
    My main problem is that my swf is composed of two swf : Clip1
    which contains clip 2.
    and when I want to get a variable of clip 2 (getVariable
    function) : i get a communication error
    Code in clip 1 to load clip2 : loadMovieNum ("/clip2.swf",
    1);
    Inside clip 2 I define a variable abc that I want to access.
    Abc is declared in clip 2 at _level0
    Does any one have an idea on how to access level from the
    first swf clip 1 ?
    Thank you .

    Thanks. Some error reporting would be nice too in the event
    that it times out. I think I've fixed it on my side though. My code
    was checking right away after getting the load event from air.swf.
    I changed it so that it starts a timer after getting the load and
    checks every 5 seconds until it finds my AIR app. This seems to
    work since if it doesn't work the first time it works the second.

  • Multiple SWF's in one player

    I'm trying to build a page with multiple swfs on one page in DWCS3. What I would like is to be able to  click on thumbnails and have the thumbnails bring up the swf in the main player. I have been able to code for wmvs -- but they don't work in mozilla.
    Can anyone point me to some code or a tutorial? Is this more of a flash issue and do I have to learn major AS? I have been out of flash since 8.
    Thanks.

    Hi
    Believe it or not this is quite simple (well maybe not so simple ), all you have to do is create an xml playlist and ... (sorry! just having one of my funny days), seriously here are the links to the tutorials, if you get stuck, let me know as I have done this for both types of server a number of times.
    For streaming server - http://www.adobe.com/devnet/flash/articles/video_player_print.html .
    For progressive (normal use) - http://www.adobe.com/devnet/flash/articles/video_playlist.html
    PZ

  • Multiple .SWFs in one HTML page

    Hi all,
    I'm trying to post multiple .swf objects into one html page.  The first .swf object plays fine, but the second one does not load.  I've searched all over for the answer, but I do not know what to do (plus, I'm a Flash noob).  My page is http://users.wpi.edu/~cdaley_jw/animation.html, so please feel free to check out my code.
    Dreamweaver tells me that swfobject.registerObject does not exist, or something like that, but I see this code being used elsewhere.  I have swfobject.js in my main folder, too.  I haven't the slightest clue what I'm missing.
    Thank you very much,
    Chris

    I'd suggest you get the second .swf working BY ITSELF on a separate, new, blank page before worrying about how to get two working on one page. Your problem may have nothing at all to do with the fact that there are two .swfs on the page.
    Looking in the cach after downloading your page,
    http://users.wpi.edu/~cdaley_jw/Daley_Christopher_Walk_Cycle.swf
    is downloading... but it's only the player, not the .flv file that it's looking to load and play.
    http://users.wpi.edu/~cdaley_jw/Daley_Christopher_Walk_Cycle.flv
    does exist on the server at the address above but is not being called by the video player... the .swf. So the problem may be that the url to the .flv is wrong in the .swf or is missing completely.
    You'll have to fix that first and then worry about 2 swf on one page. So step back, get that second .swf working on a page all by itself, then move on.
    Best wishes,
    Adninjastrator

  • Print to pdf often doesn't work with multiple pages?

    When I try to print to pdf, it often doesn't work right.
    I can select, for example, multiple Excel worksheets to print. It looks fine with 4 pages in Preview, but when I select save as .pdf, it only prints 2 of the 4 pages, and it prints those in 2 separate documents rather than a single .pdf document with multiple pages.
    Is there a way to do this? Is this an Apple error or Microsoft error? Since it looks fine in Preview, my guess it is an Apple error?
    Mark

    It sounds like this is the problem with the way Apple handles multiple orientations in a pdf document. You can use Acrobat to print the files - it handles multiple orientations correctly. There was a previous thread on this:
    http://discussions.apple.com/message.jspa?messageID=1983431#1983431

  • How Do I Launch Safari with Multiple Tabs Open to Specific Pages?

    I'd like a Windows shortcut that opens Safari with multiple tabs open to specific pages. With other browsers (Firefox, IE, Chrome, etc.), this is easily done by composing a command line that lists all desired URLs. However, Safari doesn't seem to use the same command line syntax as other browsers. Furthermore, I can't find Safari's command line syntax documented anywhere. From the comments I've seen while researching this question, I suspect this is a neglected area of Safari development, and that Safari simply can't be configured to open multiple pages. However, I'd like to make sure. Can it?
    -TC

    It strikes me that it should be possible to do that (or something similar) by building a safari extension, TC. Both Sessions and SafariRestore are able to launch multiple tabs from a previous session, so it seems like you should be able to create an extension that launches multiple tabs open to specific sites when Safari is launched.

  • How do I create a single PDF file with multiple pages?

    Hi, I occasionally need merge several jpg images into a single pdf file with multiple pages (one Jpg per page). I have tried doing this on Preview, and by selecting all the pages I want to include in my document and trying to save to Pdf through the "Print" function, but every time it only saves the first page.
    Can anyone tell me if there is a way to save multple-page pdf files without having to purchase a specific program (i to this too infrequently to justify the cost)?
    Thanks very much,

    This works for me...
    Open first image in Preview View > Sidebar. Drag the other images into Sidebar, then select all.
    From File menu > print selected images. Choose PDF > Save as PDF
    -mj

  • How can you develop photo galleries with multiple pages using the web module?

    Going through the web module I can see there are many options for developing a web page with a single collection of photos.  How can you develop a web site with multiple pages containing different categories of photos using the Lightroom web module?

    This thread will give you several ideas.
    Re: How do you embed a gallery into an existing website?

Maybe you are looking for