Custom Button in Director MX 2004

I need a 3 state button with my custom bitmaps, but I can't
get it done ib Director MX.
Is there ready non-Flash solution?
Thanx
3Dimka ;)

Thanks so much, Deryck
This looks like a decent workaround. I'll give it a try,
however I'm still confused how to handle individual onMouseUp
events. Should it be a 2nd behavior or should each button have it's
onw onMouseUp behavior script with similar code?:
on mouseup me
--same code for all buttons
nametochange=sprite(me.spritenum).member.name.word[1]
sprite(me.spritenum).member=member(nametochange & "
normal")
-- do something special
end
Thanks!
3Dimka ;)
quote:
Originally posted by:
frashjiveturkey
if you name your custom graphics in a similar way you can
write a behavior that will sort things out for you.
ie. the name of a set of buttons in the cast could be.
"mybutton normal" "mybutton over" and "mybutton down".
the behavior can take the first word from the member of the
sprite it's applied to and add the rest accordingly. So the
behavior would be as follows.
on mouseenter me
nametochange=sprite(me.spritenum).member.name.word[1]
sprite(me.spritenum).member=member(nametochange & "
over")
end
on mouseleave me
nametochange=sprite(me.spritenum).member.name.word[1]
sprite(me.spritenum).member=member(nametochange & "
normal")
end
on mouseup me
nametochange=sprite(me.spritenum).member.name.word[1]
sprite(me.spritenum).member=member(nametochange & "
normal")
end
on mouseupoutside me
nametochange=sprite(me.spritenum).member.name.word[1]
sprite(me.spritenum).member=member(nametochange & "
normal")
end
on mousedown me
nametochange=sprite(me.spritenum).member.name.word[1]
sprite(me.spritenum).member=member(nametochange & "
down")
end
The variable 'nametochange' picks the first word from the
member of whichever sprite it's attached to then depending on the
mouse event, will switch the member around. This should be flexible
enough as long as the naming structure of the buttons is consistant
ie. one word then a space then "over", "down" or "normal".
The other alternative is to make your buttons in flash as
individual swf's and import them into the cast. Then apply only the
actual button's action in director ie. "go frame 50" or whatever.
Hope this helps.
Deryck
http://thecooker.net

Similar Messages

  • Flash MX 2004 and Zoomify3.0 custom buttons

    Hi all,
    I am using Flash MX 2004 and Zoomify3.0.
    Anyone know how or where i can find tutorials on how to
    change the zoomify standardtoolbar into custom buttons in flash mx
    buttons? Zoomify website makes it sound easy but they dont tell you
    how.
    Thank you.
    steve

    Error: Unable to Activate | Macromedia products

  • Director mx 2004 won't display Flash 8 swf files & other Flash media

    I have created a Flash 8 Project which has audio, video (which are converted to swf files fom flvs), flashpaper.  This application is driven by XML.
    However  this application works fine outside director, but when I import the main swf file into director mx 2004 and RUN it, director won't display the videos (but I can hear the audio from the videos), Director wont show graphic images(eg menu icon movie buttons, and flash buttons). Also I can launch external files (eg text file) from flash, but again it won't work via director.
    ANY SUGGESTIONS PLEASE

    ANY SUGGESTIONS PLEASE
    I suggest there's no need to shout.
    Try linking the Director cast member to the external swf file instead of fully importing it. You also should have the 10.1.1 update in place - this is particularly important.

  • Submit PDF via email custom button

    I followed the instructions in LiveCycle guide but it is not working completely.  I set up a custom button and followed the instructions for Submitting a pdf via email.  When I click on the submit button, it pulls the pdf into an email  but has left off the email address and the subject. 
    The format I used was mailto:[email protected]?subject=blah blah blah.

    Thank you.  I finally got it to work!
    Sarah T. Love
    Grants & Contracts Director
    California Pacific Medical Center Research Institute
    475 Brannan Street, Suite 220
    San Francisco, CA   94107
    415-601-2555 cell phone
    415-600-1702 phone
    415-600-1681 fax
    Website:  http://www.cpmc.org/professionals/research/grants/index.html

  • Buttons in Director

    Hi, I'm running Director MX 2004 on Mac OS X and I'm having
    trouble with the simplest Lingo task possible! I can create a
    rectangle and attach a Lingo script to it as follows:
    on mouseup me
    beep
    end
    This, as I'd expect, plays a beep when I click on it and
    release the mouse button. However, when I attach the same script to
    a button, it doesn't play the beep when I click on it. What have I
    done wrong?

    You've probably used a #flashComponent button, in which case
    you need to
    open the Property Inspector with the button member selected
    in your cast
    library and look at the Flash Component tab. Down the bottom
    is a
    property named #eventPassMode - set it to #passAlways

  • Is there a marker limit in Director MX 2004?

    I'm using Director MX 2004, and I have a very large project with lots of markers. Markers have quite long names too. Now I'm having some weird behavior when inputting new markers and naming them... I have tried many times to add new markers, but for some reason as soon as I move a newly added marker the name of the marker goes empty, and the name is added to the previous marker. For example, if I have a marker called "Markername 1" and I add a new marker with a name "Markername 2" and then move the marker with "Markername 2", it loses its name and the first marker is called "Markername 1Markername 2"... is there some limits in markers or what could cause this weird behavior?

    Chunick wrote:
    Director is so much more powerful than laying stuff out on the timeline over and over, project after project. I would challenge you to explore Lingo a bit more and learn what possibilities it opens up to make your projects of 3000-4000 labels much easier. We, as humans are natural pattern seekers, and that's where programming can help the most. If we can see the pattern - the repetition - then there's usually code that we can write that gets rid of the manual layout of something of that scale that you describe so that you'd just have to create a few markers and have the code dynamically generate the layout from the data/assets.
    So, have fun with Director and explore... to steal from Mark, "Keep on Learnin'".
    WOW. This sort of reply is a perfect example of why so many long-time Director users like myself rarely post, but instead just roll our eyes and walk away. The hubris in this last comment is amazing.
    Let's review the thread. Someone posts that they are having problems adding new markers. You and both Mark responded. FWIW, I also would recommend the list solution that substitutes the actual name for a more systematic labeling method, so that's a great and helpful idea. But your first post, that noboby has ever experienced this over the last nine years, is incorrect. I've complained about the "marker bug" on numerous occasions over the years, probably dating back to MX, though I guess everyone just ignored the comment. So I chime in on this thread that I have, in fact, numerous large movies that exhibit the erratic label issues.Then comes your amazing reply to my comment about the unpredictable bug, which could be summarized as "My vision for Director involves templates, and anyone who deviates from my vision must be a moron who is completely ignorant of the complexity of Director."
    LOL
    So if you get your wish, will the stage of D12 would be locked down at 10 frames for the rest of us? Just because you can't step outside of the box you've put yourself in and EVER see the need for a movie with more than a handful of frames, does that imply that every other serious Director user has to limit themsleves with those same constraints?
    I don't disagree with you that the power of Director is in creating an underlying architecture that allows sophisticated interactions to be used over and over with minimal fuss at the individual screen level. I haven't written a "go to" command in years! Why do you assume that I spend all my time "laying stuff on the timeline"? What is amazing is that you make these sweeping generalizations about every other user, based only on your initial programming biases, even when you have no idea of the complexity of my project or its intended use.
    Like you, the bulk of my plumbing when setting up this large number of screens involves submitting (and cleaning up) large, complex data arrays (AKA - lists of lists). I have over 30,000 lines of Lingo for these input lists alone, which reference the 150,000 lines of lingo for my generic interactions. And of course this all ties in to a huge local DB, where I have over 500,000 fields, and the user generates another 10,000 new entries in the DB during their 100+ hours spent in the application.
    But what does this "plumbing" have to do with markers? My vision for reusable code is to handle the hard stuff out of sight, and allow me to quickly create unique screen markers that have a "hand crafted" feel to every screen. I do this not because templates are beyond my conceptual grasp, but rather because I have rejected the idea of templates, for my projects, as creative "laziness". Easy to implement, but boring, tedious, and visually unappealing, Sure, templates may work for many other applications, especially those where the user experience is not so important. But in my case, where each projects involves about 40,000 hours of work gathering unique materials and constructing them into an interactive, it flies in the face of the very nature of the project itself. My users will spend 2-3 hours per week in my application, for an entire year. Why should I bore them more than necessary, just because I want to save 200 hours of layout on a 40,000 hour project? Each of my projects, over their lifetime, will have over 5 million hours of user time spent inside them. I'm currrently working on one that will have 10 times that amount. Since many labels will have users spending over 10,000 hours looking / interacting with it, my question is not "how can I save 5 minutes of layout/programming time per screen', but rather "is this screen visually, technically, and pedagogically worth thousands of user hours?"
    So I use markers, in combination with my code, to reject the template mold, allowing me to quickly lay a few simple elements on each screen and create a customized, hand crafted look and feel to the entire experience. It is a very different approach than yours, and I'm glad you are happy with your view of the interactive world. But as for me, I use Director precisely because itt is possible to mix a powerful scripting environment, that reaches deep into the OS, with the ability to quickly customize each screen/label and provide an appealing visual experience for the user.
    While you think I should "explore Lingo a bit more and learn what possibilities it opens up", I'd suggest you learn to put aside your predetermined solutions to problems that you have not even encountered yet. Who knows where new creative ideas will take you...

  • FLV in SWF in Director MX 2004 Issue

    I did a search, but couldn't find a response to this issue.
    I have SWF running in a sprite in Director MX 2004. The SWF
    includes an FLVPlayer component with a "SteelExternalPlayMute.swf"
    skin and links to an external FLV. (Flash files are version 8. All
    resources are in the same folder.) The visibility of the FLV Player
    is set to "false" in SWF and I have a button in the SWF to set the
    visible to "true" and play the FLV. This all works correctly in the
    SWF and when I "PLAY" the Director movie in production, but the FLV
    won't appear and "PLAY" in the Director Published EXE, but WILL do
    so if I pull the ""SteelExternalPlayMute.swf" out of the folder.
    Something in the Flash component skin isn't working in the
    Director EXE because the Actionscript to play the FLV does work
    when the skin is removed from the folder. Even the visibility
    script works fine and the video plays.
    Any ideas on how to fix this issue? Does anyone have
    experience with this issue? Is it simply an incorrect SWF import
    setting or resource?
    Thanks.

    Hi,
    You said swfs are Flash 8. Did you also set them to
    Actionscript 2? If it's
    Actionscript 3, that may be the problem. You may be
    interested in looking at the
    Flash Video templates I have at:
    http://www.deansdirectortutorials.com/FlashVideo/
    regards
    Dean
    Director Next Roadmap Survey
    http://www.deansdirectortutorials.com/survey/DirectorRoadmap/
    Director Lecturer / Consultant / Director Enthusiast
    http://www.deansdirectortutorials.com/
    http://www.multimediacreative.com.au
    email: [email protected]

  • Add on custom button to ALV toolbar in std tcode ME51N, ME52N and ME53N.

    Hi All,
    I have the requirement to add on the custom button to ALV toolbar in ITEM OVERVIEW for standard transaction ME51N, ME52N and ME53N. Does anyone know what enhancement point or user exit i should apply and how i can add on the custom button?
    Thanks.

    There are no user exits or badi's for COOIS. You may have to make copy of the PPIO_ENTRY to ZPPIO_ENTRY including all the varians without changing their names like copy SAP&COOIS to SAP&COOIS. Create a T-Code ZCOOIS and replace COOIS in variant SAP&COOIS to ZCOOIS not in the name of the variant but in the field "Check Authorization for".
    The PF-Status is found in the include LCOISOUTPUTF16 which is located in the function group COISOUTPUT you may have to copy that too. Finally you need to copy SAPLCOISOUTPUT with its GUI status GENERAL and add your custom button there.

  • Custom button  on ALV report for Tcode FL10G ?

    Hi All,
    I want to add custom button in the AVL report for FL10G transaction.  And then need to implement logic for that button (calling BAPI to create shipment for the selected records).
    For VL10G alv program GUI Status - STANDARD001  I think I can add button in this gui by using access key.
    But how to implement logic for this custom button?  Where I can put the code for this button logic?
    Please let me know if any one has any ideas on this issue.
    I appreciate your help and time on this.
    Thanks.
    M

    Hi Murali,
    The standard program it will not allow to copy the GUI Status. Because source and target program should not same.
    It will definitely debug will work. Yo can create the GUI Status through SE41. In SE41 Just give Program name :SAPLV50R_VIEW click the button status. here you should not give any gui status. just blindy say create the then it will popup screen appears in the screen. Here you can mention your Z GUI Status. It is not required to create all the menus manually instead of the there is button which is located in the screen next to blue i button. here you can click and select the standard interface. You can get all the menus as similar to standard. Like that you should create Menu Bar, Application Toolbar and Function Keys  Menus. Then you can add your custom button in the Application tool bar button.
    When you execute the Transaction VL10G and check your cusom menu button will appears. Once you click custom button only exit will trigger. Find the below code for your reference.
    CODE
            loop at ct_postab assigning <fs>
                    where selkz = 'X'.
    *To Fill the BAPI  Header Parameters
                  str_ordhdr-ship_cond = w_sval-value.
    *To Fill the BAPI  HeaderX Parameters
                  str_ordhdrx-updateflag = 'U'.
                  str_ordhdrx-ship_cond = 'X'.
                  call function 'BAPI_SALESORDER_CHANGE'
                    exporting
                      salesdocument    = <fs>-vbelv
                      order_header_in  = str_ordhdr
                      order_header_inx = str_ordhdrx
                    tables
                      return           = str_return.
                endloop.
                read table str_return into w_return index 1.
                if sy-subrc eq 0.
                  if not w_return-type = 'S'.
                    message w_return-message type 'E'.
                    leave to current transaction.
                  endif.
                endif.
    *Do the BAPI Commit
                call function 'BAPI_TRANSACTION_COMMIT'
                  exporting
                    wait = 'X'.
              endif.
            endif.
          endif.
    Let me know if you have anything to discuss on the same.

  • How can I create a custom button for opening a form?

    I have a parent form having child forms. In my main form I want to create custom buttons for opening child forms. I want to use master-detail form but there are more than one child forms, and in master-detail form I can only create one detail form. So I will create a form based on a table and in that form I will call the child forms by custom buttons. Can I do that?
    Thanx,
    Gulsah.

    This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, create a button. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
    //this is the variable you want to pass from one form to the other
    get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
    //this is so you can open the "child" form
    window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
    In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
    htp.p('<script language="JavaScript1.3">
    < !--
    function getField(form,fieldName)
    var objName = "";
    var tmp = "";
    var dAction = "";
    var sel_idx = 0;
    var cnt = 0;
    var instance = 0;
    var slicedName;
    var fillData = new Array();
    for (var i = 0; i < form.length; i++)
    slicedName = form.elements.name.split(".");
    tmp = slicedName[2];
    instance = parseInt(slicedName[3],10);
    if (!tmp)
    continue;
    objName = tmp;
    if (objName == fieldName)
    return form.elements[i].value;
    //-->
    </script>');
    I hope this helps.
    null

  • How can I open a URL from a Custom Button in a second help window?

    I have a custom button, which currently opens a URL in a web
    browser, using a redirect page. How can I change this so that it
    opens in a second help window instead? If I understand some of the
    posts I've read, it is possible by linking the button to a related
    topics function but I've no idea how this is done.
    As usual, your help is most appreciated. Thanks a lot.

    Hi, ecoulyn,
    You need to make a topic file like the one below the target
    of the Jump button.
    The onLoad function on the Body start-tag causes the Related
    Topics command to fire when the topic file is loaded in the topic
    pane. When specifying the file name of the topic to display in the
    secondary window, you must always prepend it with the name of your
    .chm file, followed by "::/". Otherwise, an error message appears
    when the Jump button is clicked.
    Pete

  • How to create a custom Button in a SNP planning book

    Hi Experts,
    I created my own Planning Book and Dataview in SNP with 3 Key Figures: KF1, KF2, KF3. Now I want to create one my own button with Macro so that when I press that button, the Macro will run to calculate: KF3 = KF1 + KF2.
    I know that I can drag this Macro to one of default events like: Default, Level Change, Start. But actually, I want to create my own button so that I can handle the event as I want.
    My question are:
    1. How to create a custom button on the toolbar of SNP Planning book and writing macro for the button?
    2. Please give me any document, material teaching about writing macro and relating to my above scenario.
    Thanks very much!
    Duyennx
    Edited by: xuanduyen on Sep 6, 2011 9:20 AM

    Hi,
    Access the transaction "/n/sapapo/advm". In the list select your planning book/ data view and click 'Start Macro Builder' button.
    In the Macro builder screen, drag and drop your macro from Macro depot to the work area.
    Right click on your macro name and select 'properties'. In the pop up, next to the Assigned Push button field, there is a button 'Choose'. Click that. It will display all the available icons. In standard system, it displays more than 1000 icon. Choose any one icon which is suitable for your macro function. Close the pop up and save the macro. This will assign a push button to your macro.
    In the Planning book tool bar, you can see the selected icon in the header tool bar. Just by clicking that icon, you can execute the macro interactively.
    And I don't know whether we can include/design our own icon. But there are already 1000+ standard icons to choose.
    Regards,
    Manimaran M.

  • How to add a custom button in WD screen to call a workflow in siebel?

    Hi All,
    We have a requirement to have a custom button at the summary screen(after the rule execution) "Create Opportunity", on clicking on it a new opportunity record should be created in Siebel. As we know the "Save" link calls "PolicyAutomationSaveSession" inbound web service method and saves the information in session table and we can modify the PreSession and PostSession workflows. But we are not sure how it calls the service method and where is the mapping defined.
    Can you please help me on how to add a custom button and how to invoke a workflow in siebel side to implement this requirement?
    Also is there any document which can help me to add a custom button in screen and to add the code behind the button?
    Thanks in advance!!
    Regards,
    Subhradeep

    Subhradeep,
    Closing a Web Determinations window is essentially the same as closing any HTML window. It involves javascript, which you would have to add to the Web Determinations templates.
    Essentially the javascript command to close a window is {{window.close}} or {{top.close}}
    For timing, you might be able to use the setTimeout function of Javascript (see: http://www.w3schools.com/jsref/met_win_settimeout.asp)
    At the risk of exposing exactly how bad my javascript skills are, I have attached a super-simple html fragment, a page that closes itself after 3 seconds. It may help you get started in the right direction. In general closing a window is a fairly dubious activity and is often not permitted by certain browsers. This html page at least works in Internet Explorer.
    <html>
         <head>
         <script language="JavaScript">
              setTimeout(closeMe, 3000);
              function closeMe() {
                   alert("This window will close");
                   top.close();
         </script>
         </head>
         <body><B>This window will close in three seconds</B></body>
    </html>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Add a custom button on notification page and open a oaf page after button

    Hi All,
    My Requirement is add a custom button on notification page and after button click with take some parameter from notification page like supplier_id and org_id then open a new oaf page and show supplier credit and debit balance but problem is that button is only enable to a ap invoices notification not for other type of notification.
    how to take approach/action i don't know.
    it is possible through OAF personalization/customization or it is part of work flow customization.
    Navigation path - payable->worklist->open notification and Type of notification also there
    Type should be matched with AP_Invoices type notification then custom button enable.
    Please Let me know is it possible or not. If possible how to achieve this. ...................................it's argent...plz help me
    Edited by: 815572 on Nov 25, 2010 1:15 AM

    Hi Irk,
    My notification came in given below format (in table) but my custom button only enable for Contract Approval Type not for others..........i hv attach a button on notification page (subject-Contract 21969-R17......)
    From Type Subject Sent
    Taylor, Phillip Contract Approval Contract 21969 - R17-AUG-07 06:19:27 has been approved by Taylor, Phillip 22-Aug-2007
    Taylor, Phillip OKS Contract Process Contract 21975 - R17-AUG-07 06:22:18 for AT&T Universal Card (52,500.00 USD) has been published online 19-Aug-2007
    Taylor, Phillip OKS Contract Process Contract 21969 - R17-AUG-07 06:19:27 for AT&T Universal Card (15,000.00 USD) has been published online 19-Aug-2007
    If I just put a button SHOW BALANCE just like notification button APPROVE, REJECT, REASSIGN but this button shows all types of notification and my req. is this button show only for Contract Approval type notification. how to handled this issuesss ?
    if extend the co of notification page then how to handle TYPE value from worklist page ....please write proper code if u hv any idea...........
    Thanks,

  • Add Alt Attribute Info to a Custom Button

    I have created an alternative to editing the
    “whtbar.js” file to give an image alt attribute
    information. We have a custom button in our help file that needed
    alt information, but we had already incorporated the text into the
    button’s image and did not want to add the text label. We
    also did not like the visual border treatment that adding a text
    label did to the button.
    I wrote this JavaScript function that will not only
    accomplish this, but it will also capture the functionality that
    RoboHelp creates for the OnClick event handler and duplicates it in
    an OnKeyPress event handler for that same button. I have
    successfully tested this script in both IE (IE 6.0) and Mozilla
    (Firefox 1.5), and it appears to work fine.

    The OP probably tried to attach it to their post, but it was stripped by the forum software. Hopefully they can show a screenshot image (using the camera icon in the web interface) to display the coding.

Maybe you are looking for

  • Superdrive There but Not Working at All

    My superdrive appears as normal in the system profiler. It will accept and eject disks. However, there is no sign of life in the drive. No temporary spinning or other sign of activity, just silence. I've tried a variety of CDs and DVDs. I tried updat

  • How Can I Simulate Double-Clicking A File To Open It In The Default App Without Installing Default App?

    I have an app written with Visual Studio 2013. The app has code for opening a file using the standard OpenFileDialog and also has code (AutoOpenFile()) for opening a file when a user double-clicks on a file that is handled by the app. I have not yet

  • Connection TimeOut in Websphere App Server.

    Hi, I am using JSF with JNDI and WebSphere to get query details. We have set the Connection Pooling Timeout in JNDI DataSource settings in WebSphere to 60 minutes. I have attached the Exception Stack Trace for your verification. This is a very seriou

  • Job status of Business Rules not reflecting correctly in Hyperion Planning

    Hi, In our Planning Web Application version 11.1.2.1 (Classic application), we have issue with the Business Rules not changing the job status from Processing to Complete. Essentially giving an indication to users that the job is taking longer than ex

  • Making a transparent image

    Hi Everyone, I created a text in Photoshop cs and am trying to superimpose that over a video in FCE 4, how can I make the text background transparent so I don't have to mess with key adjustments in FCE 4? Thank you