Effects on exisiting events?

I have the following code that I would like to add effects to. I hve been trying to use the examples in the "examples" folder in the spry zip file but I can't seem to get it to work. I have three links that control sliding panels.
CODE for links and JS:
function countryClick(event) {
    var australiaContent = new Spry.Widget.HTMLPanel("countryArea", {evalScripts: true});
    var spryObs = {onPostUpdate: function(){Spry.Data.initRegions("countryArea")}};
    australiaContent.addObserver(spryObs);
    australiaContent.loadContent('country/australia/australia.html');
Spry.Utils.addEventListener("countryGallery", "click", countryClick, false);
I would like to add a fade out/in effect but amnot sure how or where to augment the above code.
I know I will probably need to integrate the effect in the above function as I have tried to write a separate function which makes the above function not work.
Thanx!!

So you did check out this example:? http://labs.adobe.com/technologies/spry/samples/htmlpanel/html_panel_two.html
var hp4 = new Spry.Widget.HTMLPanel("effects");
//The Photoshop link runs this function. It is a simple version of an observer, but the content link is hardcoded.
function runIt(){
   var obs = {onPostUpdate: function(){openIt.start();}};
   hp4.addObserver(obs);
   hp4.loadContent("frag-0.html");
//The Illustrator link runs this function. The new content URL is passed into the function. This is more flexible.
function tryIt(theURL){
   var effectObs = {onPostEffect:function(){hp4.loadContent(theURL);}};
   var obs = {onPostUpdate:function(){openIt.start();}};
   closeIt2.start();
   closeIt2.addObserver(effectObs);
   hp4.addObserver(obs);
var closeIt = new Spry.Effect.Blind("effects",{from:'100%',to:'0%',duration:500,finish:runIt});
var closeIt2 = new Spry.Effect.Blind("effects",{from:'100%',to:'0%',duration:500});
var openIt  = new Spry.Effect.Blind("effects",{from:'0%',to:'100%',duration:500});

Similar Messages

  • Playing Sound Effects with System events

    I remember that years ago, it was possible to play sound effects with system events (start up, shutdown, insert/eject disks etc.) and am wondering if it's possible to do the same under Tiger and, if so, how.
    Thanks & regards,
    Cliff
    Brighton, UK

    9 had a slew of sound effects. OS X is not so forth coming but in one of the System Preferences, maybe Accounts or General (I'm at work on a PC and can't check) there is an option to turn on what few sounds are offered.

  • Jquery UI effect for onload event

    I'm trying to create a fade in effect on a rollover image using the jquery appear/fade effect.  It works successfully with the default "onClick" event, but I'd like the rollover image to appear (fade in) gradually over time as the browser window opens/loads.  How can I achieve this? This link is to a very generic sample I've created to test the behaviour.  I'm using DW CS6.  Thanks.

    Rather than using the depricated Spry framework, use jQuery.
    Albeit being a slightly different purpose, have a look at what Nancy is suggesting http://alt-web.com/DEMOS/fading-logo-redirect.shtml for an idea.

  • Glow effect on touch event on spark button flex mobile 4.5

    hi,
    i want to create a glow effect not on all the spark button when i touch it but only on the touch area.
    can it be done on mobile? how?

    anyone? glow effect when touching a button?

  • Can I use classes and methods for a maintenance view events?

    Hello experts,
    Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!

    Hi viraylab,
    1. The architecture provided by maintenance view
       for using EVENTS and our own code inside it -
       It is provided using FORM/PERFORM
       concept only.
    2. At this stage,we cannot use classes.
    3. However, inside the FORM routine,
       we can write what ever we want.
       We can aswell use any abap code, including
       classes and methods.
      (But this classes and methods won't have any
       effect on the EVENT provided by maintenance view)
    regards,
    amit m.

  • Events and Projects freeze in the browser window

    Hardware:  Mac OS X Version 10.6.8
    2.53 Processor  4GB Ram
    Re:  IMovie 09 Version 8.06 (821)
    I recently copied my entire I Movie library to my external 1T harddrive and have 250 GB of free space left on my MacHD.  Once I completed the copy, I erased my library from my hard drive.  Everything worked fine until...
    The images suddenly froze in the edit broswer/window...across all of my events and projects.  The audio works fine but all I get is still images.  I tried:
    Updating to Version 9.02 & 9.04 ( it won't let me )
    Rebooting
    Splitting Frames
    Using exisiting events to create new projects
    Also tried some other ideas but nothing has worked.  Shortly beofre this happened, I noticed the audio in many clips started to come through despite using the ducking feature.  I figured out how to fix that ( which took many hours of trial and error ). If anyone can give me some pointers to fix this somehow, I'd appreciate it...GREATLY.
    Thanks!   

    A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum.
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the MozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Opening a popup window with fade effect

    Hi,
    I have a scenario where I want to open a pop up title window with some nice effect.
    Can you please suggest how do I achieve it?
    I have a repeater that repeats set of Text UI comps and I want to show a pop up window on MouseOver or MouseClick of each of these Text UI comps.
    Please help.
    Thank you,
    Amey

    if you want to open an title Window with a smooth fade effect there are more than one possible ways.
    1. Declare Fade Effect
         <s:Fade id="windowFade" target="{_titleWindow}" alphaFrom="0.0" alphaTo="1.0" />
    2. Execute the fade effect on openening
         2.1 start the effect after the PopUpManager.addPopUp
         PopUpManager.addPopUp(_titleWindow, this);
         windowFade.play();
         2.2 start the effect on added-Event
         protected function titlewindow1_addedHandler(event:Event):void
              windowFade.play();
    3. Make sure the effect is stopped before you start the animation with windowFade.stop()

  • Another JTable/buttons in cells query - event forwarding

    Hi Everyone.
    Apologies in advance for yet another thread on this subject. I realise this has been discussed a number of times but I can't find what seems like a definitive solution.
    I understand what the fundamental issue is with putting JComponents in table cells - i.e. that the cells are rendered essentially as static visual entities, that they're not "components" as such and will not receive events.
    I'd like to implement JButtons in table cells so that they behave as "normally" as possible - i.e. handle their own roll-over appearance, handle their own pressed appearance, and fire action events when pressed, with as little manual intervention in these mechanisms (e.g. in mouse listener code) as possible. I'm trying to do this by forwarding mouse events from the table to the button, but this doesn't seem to work as I'd hoped and I have various questions...
    (Background: I have implemented JButton objects in the data model, and the getTableCellRendererComponent() method returns *(JButton)value*.)
    My first question concerns the interception of mouse events. The usual technique would be to add a mouse listener and/or mouse motion listener to the table, and implement mouseClicked(), mousePressed() etc. However, can I override the table's processMouseEvent() and processMouseMotionEvent() methods instead, and from here forward events to buttons where appropriate, or process normally with super.processMouseEvent()? My motivation for doing this would be specifically not to invoke the super methods where events were forwarded to buttons - effectively consuming the event. Is this correct technique?
    My second question concerns attempts to reproduce button roll-over appearances. The JTable is of course considered a single entity as far as mouse events are concerned, and MOUSE_ENTERED and MOUSE_EXITED events aren't generated as the pointer moves from cell to cell. Merely forwarding mouse events to buttons - which will mostly be MOUSE_MOVED events - seems to be insufficient and presumably the roll-over appearance change relies upon ENTERED and EXITED events occurring at the proper times.
    I mimicked this behaviour in my override of processMouseMotionEvent() by calculating the value (i.e. JButton reference) of the cell under the mouse pointer, and if it wasn't the same as for the previous event, manually creating a MOUSE_ENTERED event and forwarding it to the new button. This seemed to work - the rollovers were happening (provided a table repaint() was performed), but it seemed to work without needing to explicitly sending a MOUSE_EXITED to the previous button before sending MOUSE_ENTERED to the new. I'm unclear why this is so - I was half-expecting both buttons to acquire the roll-over state, and they didn't.
    Also, I had assumed that having taken care of this, I should forward MOUSE_MOVED events occurring within the confines of a cell's area to the button verbatim, but this seems to instantly cancel out any roll-over (visually the button would briefly flash a roll-over appearance as the pointer moved into its cell bounds). Why might this be so?
    My last question is about the actual pressing of the button. I had hoped that forwarding MOUSE_CLICKED, MOUSE_PRESSED and MOUSE_RELEASED would cause the button to (a) acquire the button-pressed state, and (b) fire an action event to its action listeners. Neither of these things occur, and I don't understand why not.
    In summary, is interception and forwarding of events like this a viable technique for implementing table cell buttons? The various solutions that a Google trawl throws up all reproduce button-pressing mechanics in varying degrees, some just detecting a click and calling some user function, others manually manipulating the button model in the mouse handler etc. If possible I'd like to avoid this, and leave as much processing as possible to the button's native code.
    Thanks in advance for any suggestions received.
    Regards,
    A.

    try to look on this
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#editrender

  • Best practices to manage large array inside an event loop?

    My program is a multi-event structure, where each event corresponds to a boolean value change by the user. The program begins by reading a .csv file, typically, 50000 rows and 100 columns, of string values. I add some columns, predict the final array size and write to two array controls - input and output. The input array always shows the original data as read from the file. The output array shows the current state of data. The user then presses button that triggers events, in each event I read the output array value, manipulate data, and write back to output array. If an event has to manipulate only the 7th column (for example), then I index that column, manipulate it, and replace that column in the control. I am using 'Value' property node to read and write data to the output array. I NEVER use build array function. I have to update the control at the end of each event to allow the user to see effect of the event.
    Typically, my program runs fast. I can go through all events and even repeat them at a good speed. However, when I read .csv file second time, the program slows down, third time even slower. When I read the file, I predict the final size of input and output array and refresh the controls with new values from the .csv file. What am I doing wrong?
    1. Should I use shift register in my event structure to read and update output array instead of using property node? Or, should I read and write using a Reference to the control?
    2. When I read a control using property node, am I creating a second copy of the data?
    3. I believe each time I read or write a control or indicator, LabVIEW switches to threads. This may be causing some delay but I doubt is the reason for my troubles. Right or wrong?
    4. Is there a way to deallocate all input and output array control memory? Would it help to write a null array before I refill the controls with a new .csv file?
    I can add screenshots of my code. I cannot provide the complete program due to security issues.
    Using LV 8.5 Professional on Windows 7 64-bit.
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Crossulz, I updated my code and replaced all property nodes of the output array indicator with shift register. I see some speed/memory improvements (more about that later).
    1. Sorry about the wrong terminology. My output array is an indicator and not a control. I was using the word since I use this array to control the saved output. I am not sure I understood what you meant by writing right before the event structure. Did you mean having the terminal between the outer while loop (which has the shift register) and the event structure? Wouldn't that have it update the indicator each time the while loop runs? For the lack of a better solution, I created an event to update the indicator using shift register value. See attached screenshot, "Gurdas_3*.jpg"
    2. Okay.
    2a. Wires won't work because control and indicators are being manipulated in different events. Shift registers could work, but that means having many shift register, one for each control or indicator. I've read about Feedback nodes, not sure if they exist in LV 8.5.1. If they do, is that an option?
    4. See attached screenshot "Gurdas_4*.jpg". I intiliaze the shift register with an empty array and then update it with the data when file is read. Is this what you meant? I still have an input data indicator that I am writing to. But this is one time; this indicator is not read or updated anywhere else.
    4a. Notice the 3 branchout data wires just after the file read? Is that creating 3 copies by any chance?
    5. See attached screenshot "Gurdas_5*.jpg". This is from the most computation intensive event that uses current data from the shift register. I am indexing many columns out. Is that creating extra copies of the columns?
    About the improvements from using shift register. LV's memory usage as reported by Task Manager:
    A. Before file read 70 MB
    B. After file read 750 MB (includes writing one time to the input data indicator; if I do not write, memory usage is 450 MB)
    C. After completing all steps done but never writing to output iindicator array 1.1 GB
    D. After completing all steps done and writing to output iindicator array 1.5 GB (this used to be 2 GB previously)
    The file I am reading is 47000 rows and 78 columns. I read the file as string. The ondisk size of the file is less than 20 MB.
    6. Comparing steps A and B above, why does memory use increase so much more than the actual file size being read?
    Thanks for helping me here!
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu
    Attachments:
    Gurdas_03_UpdateOutputArray.JPG ‏41 KB
    Gurdas_04_New-ReadCSV.JPG ‏125 KB
    Gurdas_05_IndexArray.JPG ‏77 KB

  • Removing Keywords effecting earlier projects

    When I move to a new event, I would like to remove all or most of my old keywords used in the prior event and construct new ones but want the old keywords to remain on my earlier event's clips.  Can I remove keywords used in another event when I am working on a new one without effecting the earlier event's clips with the removed keywords?  Or must I keep adding keywords?

    Do you mean the keyword shortcuts in the keyword editor? Changing the shortcuts won't affect any keywords already applied.

  • ColumnChart's itemMouseUp event isn't working properly

    I'm trying to coordinate the itemRollOver, itemRollOut,
    itemMouseDown, and itemMouseUp events on a ColumnChart to change
    the chart data, which then affects a custom item renderer, allowing
    for mouse effects.
    All events on the ColumnChart work fine, except for the
    itemMouseUp. I have:
    <mx:ColumnChart id="cycleHistoryChart" width="100%"
    height="100%" showDataTips="true" dataProvider="{chartData}"
    itemRollOut="trace('out test'); mouseOutHandler(event,
    cycleHistoryChart)"
    itemMouseUp="trace('up test'); mouseUpHandler(event,
    cycleHistoryChart)">
    As you can see, i placed trace statements directly in the
    MXML tag event handler code/attributes. The trace statement works
    for the itemRollOut but not for itemMouseUp. I removed the other
    two listeners temporarily to make sure those mouse movements
    weren't interfering.
    To be clear -- I'm testing itemMouseUp by placing my mouse
    pointer over a column in the column chart, pressing down the left
    mouse button, holding it for as much as 1 second, and then
    releasing it. The trace statement never executes.

    This is a known bug; it has been fixed in the upcoming Flex
    2.0.1 release.
    In the meantime, as a workaround, you can use a regular
    mouseUp event, and call the findDataPoints method to get the list
    of items that would have been attached to the itemMouseUp event.

  • Bubble Event and System Forms

    Hi together,
    I have a problem with using the BubbleEvent in combination with System-Form-Events:
    Target:
    If someone CLICK on the OK-Button in Systemform "134"
    (Business-Partners-Form), I want to stop the Form being closed.
    Concept:
    using the Item-Event "et_ITEM_PRESSED" and set the BubbleEvent-Flag to false.
    Sample-Code:
    If (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) And _
               (pVal.FormMode = SAPbouiCOM.BoFormMode.fm_OK_MODE) And _
               (pVal.FormTypeEx.Equals("134") = True) And _
               (pVal.ItemUID.Equals("1") = True) And _
               (pVal.BeforeAction = True) Then
                Try
                    BubbleEvent = False
                Catch ex As Exception
                    'check Errors
                End Try
            End If
    Problem and Test:
    Nevertheless the form is being closed. The BubbleEvent-Flag has no effect. As I read in other topics, the 2005 Environment only accept the Bubble-Event in BeforeAction.
    Three Events will be fired (Click on OK-Button):
    et_Click | beforeAction = true
    et_Click | beforeAction = false
    et_Item_pressed | beforeAction = true
    I have used the last Event (Item_pressed). Using the et_Click with beforeAction = true has also no effect.
    The events will always be used individually at the test, not combined.
    Maybe someone can resolve this problem...
    Best regards
    Jochen

    Strange. I implemented a very simple add-on with B1DE
    and added this listener:
        public class Button__134__1 : B1Item {
            public Button__134__1() {
                FormType = "134";
                ItemUID = "1";
            [B1Listener(BoEventTypes.et_ITEM_PRESSED, true)]
            public virtual bool OnBeforeItemPressed(ItemEvent pVal) {
                Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                Item item = form.Items.Item("1");
                Button button = ((Button)(item.Specific));
                // ADD YOUR ACTION CODE HERE ...
                return false;
    As you can read this listener set the bubble event to
    false for the button 1 in Form 134. The form cannot be
    closed, the event is handled correctly by the add-on. I am
    using 2005 SP1 but I guess it should be working the same
    for your release too.

  • ONNAVIGATE event of Message Area

    Hi,
    today i´ve got a question concerning the message area UI element. On my view I´ve one oif this. What I want to do now is to react on the ONNAVIGATE event.
    I thought this event is triggered everytime the user clicks a message which is displayed as a link? But unfortunatley the event handler isn´t processed.
    Anybody knows when this event occurs? Could it be that the message ha to be a specific type?
    Many thanks in advance,
    Andy
    Edited by: Andy Dingfelder on Feb 3, 2010 9:31 AM
    In the meantime i´ve found a parameter for the REPORT_ATTRIBUTE_MESSAGE method of the message manager called ENABLE_MESSAGE_NAVIGATION. Setting this value to true seems to have no effect. The event ONNAVIGATE still isn´t triggered.
    Andy

    Could be possible..
    what they were doing in that view is raising a t100 message with method report_attribute_t100_message with parameter  enable_message_navigation = abap_true.
    Then on click of message event onNaviagte will be triggered which has code something like this
      data l_message type if_wd_message_manager=>ty_s_message.
      l_message = wd_this->message_manager->get_message_for_id( message_id ).
    Here they were fetching the details of message which was clicked on, you can write your own logic.

  • ISE 1.2 backup restore questions

    Hi all,
    I have been looking at the backup and restore procedure for ISE deployments and have to say I have found the documentation to be somewhat confusing in general. Whilst I get the gist of it I have found numerous areas that are grey. This question is the first of many but here we go.
    http://www.cisco.com/c/en/us/td/docs/security/ise/1-2/user_guide/ise_user_guide/ise_backup.html#pgfId-1073378
    Based on that link to restore a failed primary admin node I am left wondering about the state of the licensing. In a deployment that has the licensing configured to utilise the UDIs of the primary and secondary node what happens after you have rebuilt the primary from the ground up?
    As far as I am aware when you run up a new node the UDI changes meaning that the license detail is no longer correct - how does this affect the rebuilt node becoming primary again and do you have to rehost the license to reflect the new UDI?

    Another question I have is about the restoration of monitoring data to a primary monitoring node that has temporarily failed. As per documentation it states that a manual backup should be taken from the secondary node and restored to the primary to essentially provide the missing events during the outage. I have a couple of questions about this process:
    1. What happens when the primary monitoring comes back online - does it sync up with the secondary monitoring node effectively overwriting the events the secondary has or does it just continue on its merry way?
    2. To restore data to the primary monitoring node do you need to de-register the primary before restoring the backup taken from the secondary and re-join it to the deployment or do you just restore from the primary admin GUI? As far as I can see this still means that there will be a hole in the data for the period of time it takes to restore from backup.

  • Appointments made yesterday on iPod Touch calendar not syncing to iCal

    I have been using my iPod calendar as the main source for all of my appointments. Periodically, I back that info up by syncing it (via iTunes) with iCal on my Mac Mini. Yesterday (12/29), I entered approximately 100 events into my iPod calendar, and when I synced the iPod with iCal on the Mini today, none of those events were copied onto iCal. I have repeatedly attempted to sync, but to no avail. However, events created on the iPod calendar previous to yesterday effectively synced, and events made today also sync. It would figure that I set all the events for 2010, and those are the ones that don't sync. Now, if I manually re-enter everything in iCal, I am worried that when I next sync with the iPod, the iCal dates would be removed, as it seems syncing doesn't recognize dates that I entered into the iPod calendar on 12/29. So, (1) is there any way that I can get the dates entered on 12/29 into my iPod calendar to automatically be entered on iCal on the Mac Mini? and (2) how do I safeguard my info on the iPod and iCal so that I don't lose anything in any syncing process? (P.S. I don't subscribe to Mobile Me.)

    Having exact problem. iPod touch events not syncing with Mac Mini/iCal. I think I'm having some of the reverse problem. No MobileME account. Just starting grad school and it has caused some severe headaches.

Maybe you are looking for

  • Ipod Classic will no longer connect to car deck's usb

    I updated my ipod in itunes and now my car's usb deck will not recognize the ipod. It had been working for years without a problem. I emailed kenwood and they said apple pushed out an update that is causing compatibility issues with car decks. They s

  • My home button on my ipod touch 4 is stuck

    AGH!!! My ipod touch 4's home button is not responding/ is stuck!! Whats wrong?!?!?!?!?!?!??!?!?

  • Complete novice needs advice

    Hi, Im a guitarist (bit of an old rocker at heart) and would love to get started with GB ie; recording my guitar and voice etc. I have a Imac Power PC (2005) with GB2. Could anyone recommend a decent book to buy in order to get started. I am in my 50

  • Audit of Moving Average Price

    Our auditors are recommending that we identify in a monthly report the differences in a materials moving average prices. I know the information, current and previous moving average price is available in table MBEW, but is there a standard report that

  • Pricing type doubts

    Hi Gurus, I am unsure exactly how is pricing type configured. 1. I know it is set in copy controls but i need to confirm is it also assigned to a pricing procedure. Can i know which setting is this referred to in the pricing procedure? So far, i have