Swf communicating with Swf

alright, I am loading in content from one overall swf that is
the player interface. the content has areas where the user will
input data. There will be many spots where the user will input data
in many different (external swfs) sections of content. I need the
player interface to be able to keep track of all of this
information so that later I can reference all this data at once. is
this possible?
Thanks a lot,
Dan Frazee

it's possible, but the flash player isn't going to keep track
of anything. you'll need to write code to track whatever you want
tracked.

Similar Messages

  • Loaded SWF communicating with Main Timeline

    Let's say I load an external SWF to my main timeline. In that
    loaded SWF, I'd like to have a button that when clicked, removes a
    Movie Clip from the main timeline.
    How do I do that? Should be simple, right?

    Sorry I misunderstood your question, but here is the code.
    The second part is original swf altering a movie clip in the
    external (mov2.swf), just making an mc 50% transparent....
    circle_btn.addEventListener(MouseEvent.CLICK, printButton);
    function printButton(myevent:MouseEvent){
    var portLoader:Loader=new Loader();
    var printThumbRequest:URLRequest=new URLRequest("mov2.swf");
    portLoader.load(printThumbRequest);
    stage.addChild(portLoader);
    portLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loaded);
    function loaded(event:Event) {
    circle2_btn.addEventListener(MouseEvent.CLICK,
    talkToExternal);
    function talkToExternal(myevent:MouseEvent){
    event.target.content.green_mc.alpha=.5;
    }

  • Communication with external swf?

    hi
    im loading in intro2swf with the following
    btn_cont2_mc.visible = false;
    addChildAt(intro_container_mc, 0);
    intro_container_mc.x=-400;
    intro_container_mc.y=-300;
    stop();
    introvisit();
    function introvisit ():void{
    if (introlevel == 2){
    lvlLoader2 = new Loader();                     // create a new instance of the Loader class
    url2 = new URLRequest("intro2.swf");
    lvlLoader2.load(url2); // load the SWF file
    intro_container_mc.addChild(lvlLoader2); 
    now the swf loads correctly and in the correct place however i have a btn on the stage that i wish to hide and at a certain point in my loaded swf i want to unhide the button using an enter frame event
    intro_container_mc.addEventListener(Event.ENTER_FRAME, added0);
    function added0(event:Event):void {
    if (intro_container_mc.currentFrame == 1){
    btn_cont2_mc.visible = true;
    MovieClip(this.parent).e_mc.cap_talk_txt.text="Stormy";
    I need to do it this way so that I can change the text at various points in the story of the swf i can change the text
    but whenever i try it, the button will not show or the text change, having problems communicating with swf, i have tried
    intro_container_mc.addEventListener(Event.ENTER_FRAME, added0);
    intro_container_mc.lvlLoader2.addEventListener(Event.ENTER_FRAME, added0);
    intro_container_mc.lvlLoader2.storm_mc.addEventListener(Event.ENTER_FRAME, added0);
    all of which have no effect, the animation inside the swf is kept in a movieclip called storm_mc
    hope you guys can help me fix this
    thanks
    fonzio

    hi kglad and thanks for putting my mind at rest as well as keeping me sane
    currently trying to remove the children added at this point (or the loaded swf)
    but im running into problems, its giving me a lot of displayobject errors when i try to remove child
    after the animation has finished and the user clicks the button this should happen
    function removelistd():void{
    removeChild(loader)
    btn_cont2_mc.buttonMode=false;
    btn_cont2_mc.removeEventListener(MouseEvent.CLICK, continuey);
    btn_cont2_mc.removeEventListener(MouseEvent.MOUSE_OUT, conty2Out);
    btn_cont2_mc.removeEventListener(MouseEvent.MOUSE_OVER, conty2Over);
    swf2Main_mc.storm_mc.removeEventListener(Event.ENTER_FRAME, added0);
    loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
    wondering if it is the loader that i should be putting above
    have tried swf2Main_mc and loader in all sorts of ways however keep getting this
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at MethodInfo-360()
    at MethodInfo-357()
    just need help cleaning up and then its done
    thanks in advance
    fonzio

  • Replace one swf movie with another

    I have a flash movie on my web page and I have made some of
    the text inside the movie into buttons. The movie only takes up a
    portion of the page. I would like to replace the movie with another
    movie when somebody clicks the button.
    I'm sorry if this is a really basic question but I have spent
    ages trying to find out how to do it and I keep getting an error
    when I try to search this forum.
    Thanks for your help.

    Thanks for your help so far. I seem to be having more and
    more trouble though!
    I have a swf file (sunnyserv.swf) that contains a pre-loader
    and then opens another swf file (downturn.swf). The downturn.swf
    contains the buttons that I want to listen to, and swap out the
    movies.
    If I open sunnyserv.fla in flash and test the movie, it loads
    downturn.swf, listens to the mouse click and runs the
    communication.swf movie (although it doesn't clear all of the
    children from downturn.swf).
    However, if I export all three movies and open my web page
    nothing happens! If I change the xhtml to load downturn.swf that
    works ok. Any idea why it would work in test movie but not when
    loaded into an xhtml page?
    Also, can you see a reason why all of the children are not
    being removed in the commClickHandler function?
    Code below:
    sunnyserv.swf (container)
    var l:Loader = new Loader();
    l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
    loop);
    l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
    l.load(new URLRequest("downturn.swf"));
    function loop(e:ProgressEvent):void
    var perc:Number = e.bytesLoaded / e.bytesTotal;
    percent.text = Math.ceil(perc*100).toString();
    function done(e:Event):void
    addChild(l);
    removeChildAt(0);
    percent = null;
    downturn.swf
    import flash.events.MouseEvent;
    import flash.events.EventDispatcher;
    import flash.display.MovieClip;
    var l:Loader = new Loader();
    // add listeners for each button
    btn_communication.addEventListener(MouseEvent.CLICK,
    commClickHandler);
    function commClickHandler(event:MouseEvent):void {
    for(var i:int = 0; i < numChildren; i++){
    removeChildAt(i);
    l.load(new URLRequest("communication.swf"));
    addChild(l);
    stop();
    Hope somebody can help!

  • Can CDHtmlDialog play swf file with audio component?

    Hello, I'm using CDHtmlDialog in our application to play swf that shows user how to do a workflow. It works fine if swf does NOT have audio; if the swf has audio component, then it does not play.
    Can CDHtmlDialog play swf with audio?
    If not, any suggestion on how to implement playing swf file with audio?
    Many thanks in davance.

    Hi PingHu,
    How do you play the swf file in a html. I tried play a swf file with audio in my CDHtmlDialog class. I just use this:
    Html code Play the SWF file.
    <!DOCTYPE html>
    <html>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <body>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="100">
    <param name="movie" value="filename.swf">
    <param name="wmode" value="transparent">
    <embed src="D:\html directory\swf filename.swf" width="400" height="500" type="application/x-shockwave-flash" />
    </object>
    </body>
    </html>
    Then my sample is able to play a SWF file with audio. Hope this helps some.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Actionscript / swf integration with Adobe Presenter

    I need to do some Actionscript / swf integration with Adobe Presenter content.
    Is there any way to access information about current slide nr., total number of slides and "end of presentation" information from swf(Actionscript 3.0) inserted into Adobe Presenter?
    I am using Adobe Presenter 8 with Adobe Connect 8.

    First, the best place is probably the Presenter forum, which somewhat curiously is under the Connect umbrella:
    http://forums.adobe.com/community/connectpro/connectpro_presenter
    Out of curiousity, why are you using AICC? Because the content is on a different domain?
    To the point, it's great to have a logging or debugging tool for these sort of things to view the communication between the LMS and the lesson. Perhaps the lesson is sending the 'completed' status but also sending some other value that the LMS is using to change the status back to incomplete?
    My first suggestion would be to try the lesson in a tool like TestTrack...but I don't think that handles AICC. Does the Saba LMS have any kind of debugger or logging tool you can use? You really need to see if the lesson is sending the status back to the LMS as you suspect it should. If it IS, then the issue lies with the LMS and how it's interpreting that result. If it's NOT, then you can then perhaps figure out what to adjust in the lesson.
    In general, just play with the settings. If it's set to Complete/Incomplete and has a Mastery Score, try NOT setting the Mastery Score... And other such combinations.
    I hope the folks in the Connect/Presenter forum can provide more insight.
    Erik

  • How to generate SWF file with dynamic data but no live connection

    Hello,
    We got a requirement where we have to email out SWF file either in PPT or outlook generated from BOBJ universe. When the file reaches the customer who would be outside our network with no access to our servers or data should be able to view the swf file with data. So the goal is to generate these files automatically and should not prompt for BOBJ login or wouldn't have ability to query the database but need to report data pertaining to the customer.
    Any help in this regards is greatly appreciated.
    Thanks
    Manohar

    Hi Manohar,
    You can use QAAWS(query as a web services) and build your queries on universe.
    You get an option of hardcoding the user id and password in the data connection for QAAWS which will not asks the users for login credentials.
    This will hepl the user to veiw the latest data from the database and the user wont be asked for login too.
    Thanks,
    Amit.

  • White border problem when zooming with SWF in PDF

    Hi Everyone,
    I have posted my original querry in the Indesign forum:
    http://forums.adobe.com/message/5176893#5176893
    I'm having problems with zooming whedn trying to create a PDF with SWF inserted.. at certain levels of zoom I get a white border on the left and right of the document which squashes the content into the middle and makes it a little pixelated.  I also get a thin white border on the right when zooming out.  Does anyone have any ideas where I might be going wrong?
    Thanks,
    Em

    Not wishing to be rude, but that workflow is not supposed to be used that way.
    InDesign's ability to export SWFs is intended for showing the file in a Web page, and Acrobat's ability to embed SWFs is only intended for small annotations placed within the pages of a conventional PDF file. By placing the entire Layout as a SWF you are in effect playing the entire thing as a movie in Flash Player - all the advantages of the PDF format are completely lost, there is no vector-rendering of any content or text, and users will find it very hard to understand what's going on (the navigation buttons in Acrobat or Reader will not work, text is not searchable or accessible, multiple pages cannot be printed, etc.).
    It's not entirely trivial to do this 'correctly', as at the moment we don't have full support in the PDF standard for all the interactive features that InDesign can apply to page objects - that's why they are grouped into PDF and non-PDF in the various selection menus in InDesign. Rather than saving as a SWF you should be using Export to Interactive PDF, and ensuring that the various interactive items and media are all selected on the export dialog.
    Basic stuff such as links and video will export just fine that way, and the PDF will preserve everything else in the Layout as native text or graphics so it'll look fine, navigate properly and be searchable. Animations and buttons will not work as expected, so you may have to revise their behavior if PDF is your intended output destination.

  • Working with SWF files...

    We're working on an editor to post letter's to a blog, and we're trying to implement something that will automate the process of adding SWF's to the code. Basically what we're looking for is some way to read the width and the height of the swf while inserting it into the code. We have some Javascript that has been grabbing it, but it doesn't always grab the correct height and width.
    function InsertFlash(sFlashFile,id)
    var obj = document.getElementById(id);
    var w = obj.getAttribute('width');
    var iWidth=ReturnWidth(id);
    var iHeight = ReturnHeight(id);
    alert(iWidth + " " + iHeight);
    function ReturnWidth(movie)
         var movieObj = getFlashObj(movie);
         return movieObj.TGetProperty("/", 8);
    function ReturnHeight(movie)
         var movieObj = getFlashObj(movie);
         return movieObj.TGetProperty("/", 9);
    function getFlashObj(movie)
         try
              if (window.document[movie])
                   return window.document[movie];
              if (navigator.appName.indexOf("Microsoft Internet")==-1)
                   if (document.embeds && document.embeds[movie])
                        return document.embeds[movie];
              else
                                   return document.getElementById(movie);
         catch (e)
              //alert(e.description);
    Something to note would be that our SWF's are built from flash files in which the programmer for flash has found canned content and then placed what we need inside of it. But we do have one video that has controls, and basically a screen at the beginning that you press in order for it to play. When it's at this screen, we have the normal dimensions of 400x550, but once you hit play and the movie with the movie controls show up, it varies around the 2200x356 mark, the latter generally staying the same, but the 2200 will bounce around 2000 and 2300 pixels (all in pixels), so that's where we're beginning to get clustermucked. There's a swf file (which holds the correct measurements) a flv file, and another swf file with the controls.
    If anyone has run into this before or has a better solution, (using asp classic, no vb), that would be superb!! All we want is the silly dimensions... Hah!

    Connect is an AS2 applicaton, and therefore, AS3 SWFs will not work (or not work properly).
    If you want to correctly build an application to work in a Connect pod you need to follow the rules in the Collaboration builder, SDK documentation. This has not changed since Connect 6, thus the older version refference.

  • I applied a template to a page with SWFs and now that page does not play the SWFs. Why?

    I applied a template to a page with SWFs and now that page does not play the SWFs (just a blank area where the SWF should be). When I detach the template it will play the flash file. This site will eventually be updated via Adobe Contribute. And I just discovered that when applying a template to a page that uses HTML datasets (Master/Detail),it no longer reads the Master/detail regions and displays a blank. Any thoughts?
    [Moved to Dreamweaver forum by moderator]

    Firstly, you shouldn't really 'apply' a template to a page, you should create a child page by going to FILE>NEW>Page from Template.  Too many things can happen when applying a template the way you are doing it. eg:; editable and non-editable regions not matching up and being asked where to place these regions and in all likelihood, you end up with 2 or more of the same region.
    When a swf file is inserted into a page, a corresponding Scripts folder is written automatically is stored in the root of the site - it is also linked to in the head of the document. What I believe is happening is that when you apply a template to the page, the Template has no idea that there is a swf file on the page and is not aware of the correct link to the Scripts folder.  If you do a test and add the swf file to the template page itself, I bet that the links to the swf and the scripts folder are correct - because DW knows the correct path to the script file.   Hence the reason the page probably works when you detach it from a template.

  • Xcelsius Parent/Child SWF Loader with BICS Connections

    We have several Xcelsius Dashboards that use BICS connections to retrieve data from BW queries that we'd like to combine into one Parent/Child tabbed dashboard. I can't seem to find solid information on if this is possible using a SWF Loader component due to the BICS requirement of being published through BW Portal and not InfoView. Does anyone have any ideas (short of combining them into one huge dashboard due to the volume of data)? Thanks!

    Hi Chris,
    I have been working with SWF loader on the SAP portal using the BICS connection type. It was not supported last time I asked about a year ago. However, it can work if you specify the URL in the SWF loader in this way:
    http://sapwebdisp.vestas.net:8103/bicsremotebex?SWF=XXX&TIMESTMP=1318867468000
    XXX is the name you publish your child dashboard under. Data can be exchanged between the parent and child dashboard by using the custom component "Data sharer" from Inovista which can be downloaded for free:
    http://www.inovista.com
    Besides the fact that this setup is unsupported there are some limitations so from my point of view it should only be applied under the following conditions:
    1. It is not possible to build eveything into a single dashboard.
    2. A solution having several independent dashboards does not make sense.
    An alternative might be the setup described in note 1526291. The way I understand it, it binds the dashboards together in a similar way as on a BO server with flash variables.
    Regards,
    Michael

  • Export a pdf to a swf file with navigation buttons???

    I have CS4 and I've tried to export a couple indesign files using the swf export feature, but it the navigation of the file is very weak and not very intuitive, and when you zoom in to any of the text the text goes fuzzy.
    I would like to just convert a PDF to SWF file with navigation buttons, page controls, zoom in/out, single or two page view options, so that my end user can view it with the free flash player, but I don't have time to build the file in Flash and I don't want to use an online service that comes with a per month or per publication fee.
    Any suggestions??

    I've looked at that, but most of the pdf's that I need to convert are more than 10 pages.  I want a program I can download, install and use without a per use cost, or per publication cost.
    I'm looking more for a plug-in for either Acrobat, or Indesign or stand alone program that would convert them without adding copyrights, or ads to the file.

  • How can I associat ".swf" files with flashlite 2.1

    How can I associate ".swf" files with flashlite 2.1? When I
    install flash lite 2.0,it can do ---- click .swf files system can
    autoly use flashlite to play.But now I install flashlite 2.1,it
    lost this ability return as "unknow files formate".
    Now,how can I reassociate ".swf" with flashlite 2.1?
    first: I must use flashlite 2.1.
    second:I must click .swf file directly.
    I know another way to open :open the player and then find the
    .swf,and open it. But ,unfortunately,I can not use this way to
    open.Now I will be looking for another way.

    unfortunately, the 2.1 developer edition you have installed
    has not overwritten the original version integrated into the
    symbian OS by the manufacturer. This means that the only way to
    open the 2.1 files is to open the 2.1 player from your apps menuu,
    and click on the swf file. You will only get direct access if the
    updated player is in a firmware update for you handset.
    Matt
    http://www.outside-media.co.uk/blog

  • FLV with SWF trigger

    Hi there,
    i have read a few forums on how to do this but none seem to work for me.
    I have created a SWF file with a button which is action scripted to load a FLV video.  However i am still not sure that i am filepathing the inserted FLV file correctly.
    I have set the absolute file path including http://www.etc..com however the movie does not load
    is the _root correct?
    should this be cleared?
    any other thoughts/ideas
    Thanks

    That would be correct were you loading a SWF file.
    An FLV is a different type of file, and requires the use of the Video classes, or the FLVPlayback component to play it.
    If you place an FLVPlayback component on the stage, and set its contentPath property to the absolute path when you click the button, it will load and play your video.

  • How to place a Flash swf file with a movie FLV file embedded in DW

         My hair is getting shorter by the hour or maybe missing.  I have created a SWF file with Flash 8 that has an embedded FLV file that was created from a MP4 file.   The SWF file works perfectly in FLASH including my Flash nav buttons, and the movie with soundtrack and the buttons for control of volume and start stop.  Now I am ready to place it on the web using DW to make the html page.  What happens when I test the page on FireFox or IE is the background loads, the buttons load but do not work properly anymore but worse than that:  The slide show and the control buttons do not even show up. 
         I am also having trouble defining my site locally.  I select new site and tell it where every thing is but no luck. All in the same directory, right now I have a image directory but I have not used them on the page as the only image is a jpg and flv file and they are embedded in the swf file.
         I know this is 2 different programs but the Flash files need to be placed in a HTML file to be uploaded, and I have to text them first.
    HELP
    Randy

    from the Premiere Pro Help section about importing SWF files:
    " Interactive content and scripted animation are not retained. Animation defined by keyframes in the main, top-level movie is retained."

Maybe you are looking for

  • Rendering a dynamic image(blob) in a BI Publisher Report via an RTF templat

    Been working on this for a while and now at a dead end hoping the experts can direct me to try something new. There is lots in the forums on blobs and displaying in reports and from it all I have gleaned that I need to encode the blob in Base64 and t

  • Where to put this 14GB of sound FX? For ease of access with iMovie?

    I have 14GB of foley sound bit's and various other sound FX. It's currently on my desktop in a folder, where should Its final destination be? iTunes media folder? So it can be accessed via iTunes. Or Garage Band folder? Your recommendation will be gr

  • Network G3 8.6 with Snow Leopard

    I am trying to network my G3 running 8.6 operating system, blue box, with my brand new iMac running Snow Leopard. Stumped the on-line apple help - they couldn't figure out how to help me so threw me to you all. Goin' crazy. Did all the stuff I was su

  • My album wont play

    i bought an album, and i was playing the music with no problem. then two days ago i tried to play and it wont. it wont even let me redownload it. *** is going on, it wont work on my iphone 4 or itunes on my computer.

  • IPod will not sync with my iTunes

    Hopefully someone can help me with this. I just synced my iPod classic 80GB to my iTunes and it only gets to about the 80th song when the iPod stops syncing with iTunes but iTunes is still syncing with the iPod. I then get a message saying that The d