10 Replies Latest reply on Jul 17, 2007 2:01 PM by iamwaggle

    Customize toolbar

    Brian2k1
      After some searching I've learned how to turn off the tool bar, components of the toolbar, and even the logo. I have a few questions.

      First is it possible to replace the MM logo with my clients logo so it will serve as the copyright for the content inside the flash paper document? So far I've been able to turn it off. The logo takes up considerable real estate on the toolbar.

      Second can the document and a custom flashpaper interface be in a single SWF or will it always require two?

      Finally does anyone know the the API path to changing the branding logo and url. The code i've seen and tried to change the URL does not work. Plus it isn't much use if you can't change the logo as well.
        • 1. Re: Customize toolbar
          Sav
          I need to remove certain buttons from flashpaper toolbar. Can you tell me how you did it pls. I cant find any help anywhere on the web or help files.
          • 2. Re: Customize toolbar
            TurboTad
            quote:

            Originally posted by: Brian2k1
            After some searching I've learned how to turn off the tool bar, components of the toolbar, and even the logo. I have a few questions.


            How did you do this? I've been searching as well, and haven't come up with this. Trying everything right now to just find a simple & reliable way to take PDFs into a Flash Movie (i.e. convert PDF to SWF) and FlashPaper looks like the way if I can simply get rid of the extra baggage.
            • 3. Re: Customize toolbar
              Joe700
              Hey Brian,

              Can you tell me how you turned off the toolbar?? I am desperate to produce clean swfs!!

              cheers

              Joe
              • 4. Re: Customize toolbar
                Brian2k1 Level 1
                It's been quite a while. I don't remember specifically. I know I found the answer on another forum and found that by searching google.com.

                I'll try to find the project file I was working on today and if I find it and can explain I will reply. I was hoping Adobe would participate in this forum but I guess they do not want people adapting and using their products.
                • 5. Re: Customize toolbar
                  TurboTad Level 1
                  That would be fantastic -- as this is the only format that seems like it's going to work for converting PDF's to SWF. I'm having no luck with pdf2swf right now, and that's the only other one I've found.
                  • 6. Customize toolbar
                    Brian2k1 Level 1
                    To use the following code simply create a new Flash Document and dump this into the action panel. For this to work you must has first created a Flash Paper document which this code will load.

                    function loadFlashPaper(
                    path_s, // path of SWF to load
                    dest_mc, // MC which we should replace with the SWF
                    width_i, // new size of the dest MC
                    height_i, // new size of the dest MC
                    loaded_o) // optional: object to be notified that loading is complete
                    {
                    var intervalID = 0;
                    var loadFunc = function()
                    {
                    dest_mc._visible = false;
                    var fp = dest_mc.getIFlashPaper();

                    if (!fp)
                    return;

                    if (fp.setSize(width_i, height_i) == false)
                    return;

                    dest_mc._visible = true;
                    clearInterval(intervalID);
                    _level0.dest_mc.toolbar_mc._alpha = 0; //hides toolbar completely
                    // _level0.dest_mc.document_mc.bg_mc._alpha = 0; //scroll bar
                    _level0.dest_mc.toolbar_mc.brandClip_mc._visible = 1; //Macromedia Branding - violate current EULA to hide

                    loaded_o.onLoaded(fp);
                    }
                    intervalID = setInterval(loadFunc, 100);
                    dest_mc.loadMovie(path_s);
                    }
                    _root.createEmptyMovieClip("dest_mc",0);
                    foo = {};
                    foo.onLoaded = function(fp){
                    trace(fp);
                    }

                    loadFlashPaper("WhartonCentury.swf",dest_mc,462, 604,foo);
                    • 7. Re: Customize toolbar
                      TurboTad Level 1
                      Hm. Perhaps there's something that I'm doing wrong, but on that example what I end up achieving is (a) yes, the toolbar at the top is now hidden (i.e. alpha = 0), but it is still there. All of the elements to the toolbar are still there, and one can actually still click on them and type in them too -- they're just Alpha 0 so they're hidden, and a white box where the toolbar was still remains at the top.

                      Is this the only method they've exposed on this, or is there a function to just turn the toolbar off completely?
                      • 8. Re: Customize toolbar
                        Brian2k1 Level 1
                        Here are some links where you can find more information. Good luck.

                        Google Search

                        Official Adobe Flash Paper API
                        Hiding Toolbar
                        Flash Paper API Object Dump
                        • 9. Re: Customize toolbar
                          mauriceford@usa.net
                          Your note on hiding the tool bar was excellent. Good work.

                          I need the print button of the flash paper to be visible.

                          Please reply to:

                          mauriceford@usa.net
                          • 10. Re: Customize toolbar
                            iamwaggle
                            You could try this...

                            function loadFlashPaper(
                            path_s, // path of SWF to load
                            dest_mc, // MC which we should replace with the SWF
                            width_i, // new size of the dest MC
                            height_i, // new size of the dest MC
                            loaded_o) // optional: object to be notified that loading is complete
                            {
                            var intervalID = 0;
                            var loadFunc = function()
                            {
                            dest_mc._visible = false;
                            var fp = dest_mc.getIFlashPaper();

                            if (!fp)
                            return;

                            if (fp.setSize(width_i, height_i) == false)
                            return;

                            dest_mc._visible = true;
                            dest_mc._y = -30;
                            clearInterval(intervalID);
                            //_level0.dest_mc.toolbar_mc._alpha = 0;
                            _level0.dest_mc.toolbar_mc._visible = 0; //hides toolbar completely
                            // _level0.dest_mc.document_mc.bg_mc._alpha = 0; //scroll bar
                            _level0.dest_mc.toolbar_mc.brandClip_mc._visible = 1; //Macromedia Branding - violate current EULA to hide

                            loaded_o.onLoaded(fp);
                            }
                            intervalID = setInterval(loadFunc, 100);
                            dest_mc.loadMovie(path_s);
                            }
                            _root.createEmptyMovieClip("dest_mc",0);
                            foo = {};
                            foo.onLoaded = function(fp){
                            trace(fp);
                            }

                            loadFlashPaper("testcase.swf",dest_mc,550, 630,foo);