Rollover Event help
Howdy all - I need a hand! I have two buttons (that are
actually two pieces of the same button) - What I want is when I
rollover 1 of them, both of them to be affected by the rollover
event (ex. I roll over button 1 I want it's overSkin to display
along with the overSkin for button 2)
Disregard this - this issue was resolved
Similar Messages
-
Rollover Events & Dashboard Sorting
Hey everyone,
I am wondering if anyone has ever tried to accomplish either of the following.
1. Is it possible to create rollover events so that on mouse rollover, additional information could be view? For example, suppose we have a pie graph of revenue, as we rollover each pie piece we would like to see the top ten contributors for that pie piece in a pop up box. Is this possible?
2. I know its easy to specify sort criteria when building a report, but can you do it at runtime? I.e. suppose we have a dashboard, is it possible to allow the user to sort the data being returned on the fly? Or do we need to have multiple reports pre-built which are already sorted based on that criteria?
Thanks!
-JoeJoe,
2nd requirment can be achieved using "Enable Column sorting in dashboards" feature in table view properties. In the results tab, select table view from drop down and Click on table view properties button and in the pop up window, You will find a check box saying "Enable Column Sorting in dashboards", Check that. save the report and check dashboard.
- Madan Thota -
Rollover event not playing movie in buttons/gotoandPlay function not playing frames
This web site has 7 buttons (each button plays a different movie/each movie(.flv) has a stop action at frame 1). The first 3 buttons (button set 1) exist on the timeline from frames 1 to 28. Frame 29 has a blank key frame for the 1st 3 buttons. There is action script for the 3 buttons in frame 1. Next 4 buttons (button set 2) exist on the timeline from frame 30 to 90 as well action script.
The stop actions are at frames 29,50,69,90. Labels are at frames 1,30,51,70. When testing the movie button set 1 functions as expected (the rollover event for each button plays its movie and selecting the button plays the correct frame) . Button set 2 is not working (the rollover event for each button is not playing the movie and selecting the button does not play the frame)
Using cs4, as3
This is my 1st attempt at an interactive project like this and am not sure how to make all the pieces work together. My action script is included below. I would appreciate a breakdown of why the movies are not playing as well as the gotoandPlay function for button set 2 and how can this be fixed. No errors are reported when I test the movie the buttons for button set 2 just do not function.
Thanks in advance.
AS frame1:
import caurina.transitions.*;
import caurina.transitions.properties.*;
DisplayShortcuts.init();
conbut.addEventListener(MouseEvent.ROLL_OVER, conbut_ROLLOVER);
function conbut_ROLLOVER(e:MouseEvent):void
Tweener.addTween(contact_1, {_frame:10, time:0.2, transition:"linear"});
var over:Over = new Over();
over.play();
conbut.addEventListener(MouseEvent.ROLL_OUT, conbut_ROLLOUT);
function conbut_ROLLOUT(e:MouseEvent):void
Tweener.addTween(contact_1, {_frame:0, time:0.5, transition:"linear"});
newxbut.addEventListener(MouseEvent.ROLL_OVER, newxbut_ROLLOVER);
function newxbut_ROLLOVER(e:MouseEvent):void
Tweener.addTween(newsx, {_frame:10, time:0.2, transition:"linear"});
var over:Over = new Over();
over.play();
newxbut.addEventListener(MouseEvent.ROLL_OUT, newxbut_ROLLOUT);
function newxbut_ROLLOUT(e:MouseEvent):void
Tweener.addTween(newsx, {_frame:0, time:0.5, transition:"linear"});
gall.addEventListener(MouseEvent.ROLL_OVER, gall_ROLLOVER);
function gall_ROLLOVER(e:MouseEvent):void
Tweener.addTween(gal, {_frame:10, time:0.2, transition:"linear"});
var over:Over = new Over();
over.play();
gall.addEventListener(MouseEvent.ROLL_OUT, gall_ROLLOUT);
function gall_ROLLOUT(e:MouseEvent):void
Tweener.addTween(gal, {_frame:0, time:0.5, transition:"linear"});
function spineasel_top_mc() {
easel_top_mc.play();
newxbut.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_15);
function fl_ClickToGoToAndPlayFromFrame_15(event:MouseEvent):void
gotoAndPlay("news..");
gall.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_9);
function fl_ClickToGoToAndPlayFromFrame_9(event:MouseEvent):void
gotoAndPlay("gallery..");
conbut.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_10);
function fl_ClickToGoToAndPlayFromFrame_10(event:MouseEvent):void
gotoAndPlay("contact..");
AS frame30:
import caurina.transitions.*;
import caurina.transitions.properties.*;
DisplayShortcuts.init();
inv_gallery_btn.addEventListener(MouseEvent.ROLL_OVER, inv_gallery_btn_ROLLOVER);
function inv_gallery_btn_ROLLOVER(e:MouseEvent):void
Tweener.addTween(gallery1a, {_frame:16, time:0.2, transition:"linear"});
inv_gallery_btn.addEventListener(MouseEvent.ROLL_OUT, inv_gallery_btn_ROLLOUT);
function inv_gallery_btn_ROLLOUT(e:MouseEvent):void
Tweener.addTween(gallery1a, {_frame:0, time:0.5, transition:"linear"});
home_1.addEventListener(MouseEvent.ROLL_OVER, home_1_ROLLOVER);
function home_1_ROLLOVER(e:MouseEvent):void
Tweener.addTween(home, {_frame:16, time:0.2, transition:"linear"});
home_1.addEventListener(MouseEvent.ROLL_OUT, home_1_ROLLOUT);
function home_1_ROLLOUT(e:MouseEvent):void
Tweener.addTween(home, {_frame:0, time:0.5, transition:"linear"});
inv_news_btn.addEventListener(MouseEvent.ROLL_OVER, inv_news_btn_ROLLOVER);
function inv_news_btn_ROLLOVER(e:MouseEvent):void
Tweener.addTween(news_1a, {_frame:16, time:0.2, transition:"linear"});
inv_news_btn.addEventListener(MouseEvent.ROLL_OUT, inv_news_btn_ROLLOUT);
function inv_news_btn_ROLLOUT(e:MouseEvent):void
Tweener.addTween(news_1a, {_frame:0, time:0.5, transition:"linear"});
contact_1a_inv.addEventListener(MouseEvent.ROLL_OVER, contact_1a_inv_ROLLOVER);
function contact_1a_inv_ROLLOVER(e:MouseEvent):void
Tweener.addTween(contact1, {_frame:16, time:0.2, transition:"linear"});
contact_1a_inv.addEventListener(MouseEvent.ROLL_OUT, contact_1a_inv_ROLLOUT);
function contact_1a_inv_ROLLOUT(e:MouseEvent):void
Tweener.addTween(contact1, {_frame:0, time:0.5, transition:"linear"});
inv_news_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_20);
function fl_ClickToGoToAndPlayFromFrame_20(event:MouseEvent):void
gotoAndPlay("news..");
inv_gallery_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_21);
function fl_ClickToGoToAndPlayFromFrame_21(event:MouseEvent):void
gotoAndPlay("gallery..");
contact_1a_inv.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_22);
function fl_ClickToGoToAndPlayFromFrame_22(event:MouseEvent):void
gotoAndPlay("contact..");
home_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_23);
function fl_ClickToGoToAndPlayFromFrame_23(event:MouseEvent):void
gotoAndPlay("home..");Steps tried so far to troubleshoot functionality of buttons in 2nd set:
- Recreated the .flvs for all buttons in 2nd set. Re-imported to flash and swapped with existing video
- Thru event generator generated rollover and rollout code for each button
- Commented out the stop action for each video (stop actions remained active on main timeline on stage)
- Retested movie – video continuously looped on all buttons in 2nd set, GoToAndPlay function still not working
- In addition to the commented out stop actions for each video also commented out stop actions on main timeline for buttons in 2nd set
- Retested movie – Rollover functionality which causes the video to play works; GoToAndPlay function plays the correct frame but continues to play through to end of timeline -
MenuBar mouse rollover event not firing
Is MenuBar in SDK 4.1/4.5 a little flaky to anyone else?
The rollover events fire as they should at first, but if you move the mouse fast enough, it seems to screw up eventually and at that point only the itemRollOut event is firing (no itemRollOver at all, even though the mouse clearly moved over a new menu item!)
Also sometimes I'm able to get the menu item's background-highlight effect to remain, if I move the mouse cursor away fast enough. Is this a crummy or little used component, or what? I'm using Halo only...Expected response on this, but I can add that it seems to happen mostly when a drop down menu has only one item listed. The plan is to add more (obviously) but it's a little odd - I'm wondering if anyone can reproduce the same result with a MenuBar menu that only has one option. Of course it works "at first", you have to play around with it a bit for the events to get out of sync, so it's tough...
-
Simple button rollover effect help needed - please help!
Hi everyone,
I was hoping someone could tell me how was this rollover
effect done - can be seen on the small map on the right:
http://www.refinery29.com/
What I want to do is to be able to have the same effect on
rollover and rollout just reversed (fade in - fade out).
Please help!!
THANKSquote:
Originally posted by:
NedWebs
That naming at both ends is something I consider a fluke in
Flash's design, but only because I don't know why it won't work the
way you probably had it.
There's probably some logical explanation, but I haven't
found it, just the solution for when it happens
It's such a minor little detail. I suspected it would be
something this small, as that's usually the case, but I just
couldn't put my finger on it. Not one of the places I researched
made any reference to that when they said to name the instance of
the button. How stupid.
Anyway, thank you again. I can finally move forward. This was
driving me mad. -
Opening dbs thru button events, help, i`m a newbie..
i have the following fn for opening the db
public static void main(String args[]) throws Exception
new login(new javax.swing.JFrame(), true).show();
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
open();
select();
static void open() throws SQLException
// ODBC data source name
String dsn = "jdbc:odbc:dslogin";
String user = "";
String password = "";
// Connect to the database
con = DriverManager.getConnection(dsn, user, password);
// Shut off autocommit
con.setAutoCommit(false);
static void select() throws SQLException
Statement stmt; // SQL statement object
String query; // SQL select string
ResultSet rs; // SQL query results
boolean more; // "more rows found" switch
query = "select user,password from dblogin";
stmt = con.createStatement();
rs = stmt.executeQuery(query);
// Check to see if any rows were read
more = rs.next();
if (!more) {
System.out.println("No rows found.");
return;
// Loop through the rows retrieved from the query
while (more)
// System.out.println("kkkk");
System.out.println("umm" + rs.getString("user"));
System.out.println("ummmm" + rs.getString("password"));
more = rs.next();
rs.close();
stmt.close();
now my problem is this..while the above open and select fns work fine in void main, i`m trying to open the db upon clicking a button..heres what i tried to do :
cmdsubmit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cmdsubmitActionPerformed(evt);
private void cmdsubmitActionPerformed(java.awt.event.ActionEvent evt) {
open();
seelct();
when i try it i get the error message exceptions must be caught or throw or sumthing like that and i`m new to java so i`ve no idea how to go about doing it..help please..On JDBC:
You only need to register a driver with the DriverManager once, and this is done (by JDBC conform drivers) when the driverclass is loaded. You may want to do this in a static initializer:
import java.sql.*;
class MyClass{
static {
try {
// load driver class, which automatically registers itself
Class.forName("sun.jdbc....");
} catch(Exception ex) { /* handle it, throw error */ }
// later
Connection con = DriverManager.getConnection(...);
}Even better is NOT to hard-code the driver at all. Use
java -Djdbc.drivers=sun.jdbc.odbc.JdbcOdbcDriver;oracle.jdbc.OracleDriver MyClassinstead.
Fritz -
Hi guys.
I have got a movieclip and inside is one shape tween. (instanceName = myMovie)
I have also got a button, (instanceName = myBtn)
when i rollover the button i want the movieclip to play the shapetween. Im using this code:
myBtn.onRollover = function(){
myMovie.play();
All the code, buttons, and movieclip are on the smae layer and the same key frame.
However i keep getting this error:
Description: 1119: Access of possibly undefined property onRollover through a reference with static type flash.display:SimpleButton.
Source: myBtn.onRollover = function(){
What am i doing wrong? Thanks for any help, its much appreciated =)well not sure the logic train on that...unless i see the file....but what i was saying was put a stop action on the timeline of the movie clip.....when i coded in as2 i use to make a top layer named actions and put my actions there......
then in the code that triggers the animation to play.....would go something like
myBtn.onRollover = function(){
myMovie.gotoAndPlay(1);
i havent used as2 in forever ever so i'm kinda losing it......may do a test project and see -
Event help please!!!
Hello
In a game I am currently making I have had some problems with The keyPressed() and keyReleased() methods. If i press spacebar to fire (its in keyReleased()) while i'm moving, my ship will stop (since the moving is controlled with keyPressed()). Also, on my computer I can move diagonally (ie hold two keys at once) but on my friends computer he can't. Third, my high score screen glitches if SHIFT is held down. So here are my questions:
Is there any way to use keyPressed() and keyReleased() at the same time, or do they always conflict?
Why is my friend's computer not registering two keyPressed()s at the same time, and is there any way i can fix this?
Is there any way to check if a key pressed/released/hit is a key that gives a valid ASCII character?
Any help is truly appreciated!!!You need another thread I am betting. You should not do any work in the event thread. just get the data out of the event thread but your work should all be done in another thread, or else just what you are talking about will happen. when the event thread is interrupted, your app will stop.
-
Creating mouse rollover events on tab selectors in Swing
Hi,
I have a jTabbedPane on which I have placed several panels to make tabs.
Here are the two problems.
1.How can I control the background color of the tab selector(where the title of the tab resides) when its tab is selected. I have been able to set dynamically the unselected ones.
2. How can I change the color of the text in the title of the tab when the mouse rollovers the tab selector. When a mouse goes over the selector, the text in the selector needs to change to blue. When the mouse leaves the selector the text color needs to go back to black. I need to capture the event for the selector part only.
I have been able to do it with buttons but how can I do it with tab selectors?
Thanks for your help.I just did this quick but hopefully it should help you with the mouse events, simply get the rectangles that are associated with the tabs, and dectect when the mouse is inside of one, or not inside of one
public class TabbedPaneExample {
JTabbedPane tabbedPane;
Rectangle r[];
public TabbedPaneExample() {
tabbedPane = new JTabbedPane();
tabbedPane.addTab("PANEL1", new JPanel());
tabbedPane.addTab("PANEL2", new JPanel());
tabbedPane.addTab("PANEL3", new JPanel());
JFrame frame = new JFrame("TabbedExample");
frame.setSize(400, 400);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(tabbedPane);
frame.setVisible(true);
//Get the rectangles associated with each tab
TabbedPaneUI ui = tabbedPane.getUI();
r = new Rectangle[3];
for (int j = 0; j < 3; j++)
r[j] = ui.getTabBounds(tabbedPane, j);
//add a MouseMotionListener to detect when a mouse enters a tab
tabbedPane.addMouseMotionListener(
new MouseMotionAdapter() {
public void mouseMoved(MouseEvent e) {
for (int j = 0; j < 3; j++)
if (r[j].contains(e.getPoint()))
//put your code for changes here
System.out.println("inside a tab");
public static void main(String args[]) {
TabbedPaneExample tp = new TabbedPaneExample();
}Hope that helps -
Hi, I have created a Frame that the user can draw in. It is a separate class that I call in my main program from a different file. I have a button on my frame that I want to run a method to save the graphical contents of the frame as a type Image. This works fine, and I have created the image. Now I need to return the image to my main program somehow. I want it only to return to my main when the button is pressed. The actionPerformed cannot contain a return statement, and I cannot call a getImage (from the frame) in my main anyway, because I want it to be initiated by the button push, which is located in the Frame file and not in the main. Can anyone help me? I will post the code. Ignore the Picture and InterruptedException in my actionPerformed class, they just convert the image in other classes, but they're not important. An explanation to return the image would be perfect.
Here is my main:
class LoadPictures
public static void main (String [] args) throws IOException, InterruptedException, AWTException
PaintArea pa = new PaintArea ();
pa.loadArea (pa);
Picture pic= pa.getPic() //<---false method. This is what I want to happen when you click the button in the frame.
}}Here is my frame, entitled PaintArea:
import java.awt.*;
import java.awt.event.*;
import java.io.*;
class PaintArea extends Frame
static int x, y;
static Graphics g;
PaintArea ()
addWindowListener (new WindowAdapter ()
public void windowClosing (WindowEvent e)
hide ();
setSize (400, 400);
setVisible (true);
g = getGraphics ();
public void loadArea (PaintArea pa)
Button button = new Button ("Save");
// pa.add (button);
button.setSize (2, 2);
pa.show ();
final PaintArea pa2 = pa;
button.addActionListener (new ActionListener ()
public void actionPerformed (ActionEvent ae)
try
Image image = pa2.saveScreen (pa2);
//Picture pic = new Picture (pa2);
catch (AWTException e)
System.err.println (e);
System.exit (1);
// catch (InterruptedException ie)
// System.err.println (ie);
// System.exit (1);
pa.addMouseListener (new MouseAdapter ()
public void mousePressed (MouseEvent me)
x = me.getX ();
y = me.getY ();
g.fillOval (x - 5, y - 5, 10, 10);
pa.addMouseMotionListener (new MouseMotionAdapter ()
public void mouseDragged (MouseEvent me)
x = me.getX ();
y = me.getY ();
g.fillOval (x - 5, y - 5, 10, 10);
public Image saveScreen (PaintArea pa) throws AWTException
Image image = createImage (new Robot ().createScreenCapture (pa.getBounds ()).getSource ());
return image;
}Thank you very much, everyone!!When you open the frame, use wait() to suspend action in the main program. When the button is pressed, call notify() on the same object. Then the focus is back in the main program's code.
-
Hi,
Can anyone pass me a simple example showing how to use Events(Send,Receive & Raise) in workflow and also pass me any easy to understand document please.
I have already read document comes with workflow but it has not help me.
I will appreciate if someone can pass me a working example my email is [email protected]
Regards,
SaifHave a look at the white paper "Getting Started with the Oracle Workflow Business Event System and Advanced
Queuing":
http://otn.oracle.com/products/integration/workflow/workflow_wp_bes.pdf
You might also consider taking the Oracle Workflow training courses available through Oracle University. There are both
instructor-led classes and self-paced classes, the latter through OLN.
Regards,
Clara
Hi,
Can anyone pass me a simple example showing how to use Events(Send,Receive & Raise) in workflow and also pass me any easy to understand document please.
I have already read document comes with workflow but it has not help me.
I will appreciate if someone can pass me a working example my email is [email protected]
Regards,
Saif -
Ical missing events HELP!!
i post new events on ical and they disappear when i next log on YET they apppear on my other computer which subscribes to this computer's diary
there also appears to be sync problems
anyone recognise this issue? have a solution?
seems to have happened since last system update
ALSO i have recently started using my ipod video for my diary rather than old clickcwheel not sure whether this is relevant?
HELP!!
andyI've had similar problems since the last update .. I've had to dos disappear but they are there ... I solved that.
I also had events created/copied etc. but not show up until I moved to a different calendar display and return to the display (e.g. week) that I created them on. -
Active Content W/ Rollover Buttons Help
I'm pretty new to web design, and I've been using dreamweaver
to create webpages. My problem is I have some rollover buttons I
made in fireworks and imported to dreamweaver as fireworks html,
and in IE7 I get the "activate active content" error. I installed
the dreamweaver 8.2 update, thinking that would fix it, but
although I can see that the extension to automatically change the
code so it'll work in IE in my preferences, the option to do so
never comes up. I read somewhere that it doesn't support image
tags, which I think mine are. So my question is: is there an easy
fix for this other than the update, or at least a fix for a
beginner who doesn't know javascript? I've googled to my heart's
content, and everything I've come across has been over my head.
Please someone help me with this. I can also post the code if
that'll help, just let me know. Thanks in advance!
HiramI'm not quite sure what the actual issue is here but several
things seem to
be confused.
My problem is I have some rollover buttons I made in
fireworks and
> imported to dreamweaver as fireworks html, and in IE7 I
get the "activate
> active content" error.
Buttons made in Fireworks and activated with Javascript are
not related to
the "activate active content" issue.
Do you have some Flash or other active content on your page
which is
triggering the "click to activate" which you're confusing
with your
Fireworks buttons?
I installed the dreamweaver 8.2 update, thinking that
> would fix it, but although I can see that the extension
to automatically
> change
> the code so it'll work in IE in my preferences, the
option to do so never
> comes
> up. I read somewhere that it doesn't support image tags,
which I think
> mine
> are.
I don't quite follow this part.
So my question is: is there an easy fix for this other than
the update, or
> at least a fix for a beginner who doesn't know
javascript?
Web content driven by Javascript is not active content so I'm
not sure what
the issue is or what needs fixing.
Can you post a link to your page?
Regards
John Waller -
Hello all,
Where do i get good examples/tutorials in Client side eventing. I tried the one available in PDK but couldnot recreate the example. What is the jar file to find the package "com.sapportals.htmlb.enum.EventTrigger" and where do I find it.
Thanks,
Maya.Hi Maya,
The EventTrigger class is available in htmlb.jar
You can search for htmlb.jar in your portal installation
It has all the classes related to htmlb including the eventing classes.
PDK is a good resource for examples on anything and everything. You will have to do a bit of search. If you are looking for something specific then you can post the same.
PS: Please consider awarding points for helpful answers just by pressing the yellow star button on the reply in question and choosing the corresponding amount of points. Thanks in advance! -
Valery,
Thanks for your help with IFrame. This message is in continution to the message Web Dynpro Java
I opened seperate thread as the clarification required is different.
Now the clock is running okay. However, I need to capture the time that is displayed when a user clicks button. Any code in WD, is getting server time which most of the time varies from the client side desktop.
Is there any way I can code where I get the latest time from the client side desktop and pass this information back to the R/3.
I know the portal eventing to get the time from IFrame is limited. It does not really matter if I read the time from IFrame or not. I think if I can get the client side time within the action of button click is okay.
If you need more details, please do let me know.
Thanks and Regards,
RajuRaju,
There is no way to pass any parameters to WD application except for portal eventing and start-up URL parameters.
So it is impossible "to capture the time that is displayed when a user clicks button"
But all you have to know is time shift in hours at application startup time. For this, create redirect HTML page that will get user time via JavaScript, append time as URL parameter to WD application URL and call
window.navigate(<wd-app-url-with-param>);
WD application may get this parameter and calculate time shift between user and server time. Calculate up to hours precision (time zones has only offset by hours). Store this shift value somewhere in component controller attributes.
Now when you receive IWDButton.onAction event just add / remove shift from server time and pass this value to backend.
Valery Silaev
EPAM Systems
http://www.NetWeaverTeam.com
Maybe you are looking for
-
Hi Experts, How to restrict different users for accessing same Document type based on certain additional fields? for eg:if 2 users have access to create same document type, how to restrict displaying the documents based on some additional data entere
-
500 Internal Server Error : java.lang.NoClassDefFoundError in XI - SLD
Hi Friends, We have upgraded the NW2004s java sp level from SP 04 to SP 05. But after doing so we are getting the following error while accessing the System Landscape Directory from the following link "http://host:port/rep/start/index.jsp" The error
-
ClassNotFound error when loading applet from a NTLM authenticated site
Hi, I wrote a Java applet and put it into a JAR file and signed the JAR file. It works fine if the user doesn't need to be authenticated. However, when I place the same JAR to a site that uses NTLM (NT challenging) authentication. The applet failed t
-
This used to work on my Mac using Firefox and Mac Mail but now it doesn't. Opening regular links are unaffected. I can still click and open easily. This only happens when I try to use the feature, to open links behind mail. When I right click nothing
-
Amendments In billing Document
Hii Friends i made a condition type ZPR0 in order (attb: Manual Priority during sales order creation) ,Now in Billing i don't want to change condtion values/Rate by user's ,How can i prevant this to modify in billing ..I don't think authorisation can