473,626 Members | 3,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Roll over button caption

karlectomy
64 New Member
Hey all,

I Just installed Flash CS3 and was rearing to get animating when I caught a snag... Actionscript 3.0 is NOT Actionscript 2.0...

I want to make a popup caption when I do a rollover of the button...

I get silly errors like: 1119: Access of possibly undefined property _x through a reference with static type Class.

this is my code which is in the first frame of the timeline. I have a button LeftKnee and the caption leftkneelabel.

Apparently Actionscript 3.0 is a much more robust language than its predecesor.

Expand|Select|Wrap|Line Numbers
  1.  
  2. LeftKnee.onRollOver = function() {
  3.     this.onEnterFrame = function () {
  4.     leftkneelabel._alpha += (100-leftkneelabel._alpha)/3;
  5.     leftkneelabel._x -= (leftkneelabel._x-_xmouse)/2;
  6.     leftkneelabel._y -= (leftkneelabel._y-_ymouse)/2;
  7.     }
  8. };
  9. LeftKnee.onRollOut = function() {
  10.     this.onEnterFrame = function() {
  11.  
  12.  
  13.         leftkneelabel._alpha += (0-leftkneelabel._alpha)/3;
  14.     };
  15. };
  16.  
Jan 11 '08 #1
0 2560

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1378
by: wendy | last post by:
I created com add-in for word2003, excel2003 and powerpoint2003, basically, i added 4 button in toobar and on_click, i apply some bussiness logic. all works in excel2003 and powerpoint 2003, but in word2003, the button event has been tiggered twice. After i click, it run the code inside the button click, then run again. so annoying. code attached below,Any help and suggestion will be great appriciated Wendy
3
6768
by: David | last post by:
Hi, I need a button shown for each record (cont. form) with specific captions on each. I have a notes form for each record. When a user presses the button they can read the notes. I want to display a caption on the button to state either "Order Notes" or "READ NOTES". I placed a label over the button, and depending if the notes field is
5
5418
by: Wonder | last post by:
How can I create or use the msgobx to show a message without a default button. The user has explicity to click on the button, so the msgbox closes it. Thanks,
1
1260
by: CharlesA | last post by:
Hi folks, first off, I'm using Framwork 1.1 with ASP.net and C# I'm trying to do something quite basic and can't figure out why it won't behave without going into massive details I want a button on an .aspx page have either a 'save' caption and 'save' commandname or a 'close' caption and a 'close' commandname The caption necessity is obvious, but the commandname is important to because the event stub that is tied to that button (just...
3
5314
by: afr0ninja | last post by:
Hello! I'm currently working on a form that has several input fields and a subform. What I'm trying to accomplish is that when I first open the form I'd like to have the input fields displayed only. The fields are about 3" wide. Then I'd like to have a command button that when pushed it would expand the form to about 9" displaying the subform along with the input fields. The command button could then be pressed again to shrink the...
1
2028
by: fperri | last post by:
I hope that this is the right forum. I'm using VB to create a report in Excel. After the report is generated I put two buttons onto the title sheet. Both are for printing a part of the report. Here is my code; button1 = ApExcel.ActiveSheet.OLEObjects.Add(ClassType:="Forms.CommandButton.1", Link:=False _ , DisplayAsIcon:=False, Left:=119.25, Top:=217.5, Width:=110, Height:= _ 24).Select ...
15
2583
by: Briansmi1116 | last post by:
I created two buttons, that filter my form, They filter in different Fields, and if one is filtered, and the other is not there is a certain amount of record, if they are both pushed, then there is less. This works great, but now I want to filter within what is left in the form, without adding the other records. The code I use to filter using my buttons is: Private Sub filter_closed_Click() If filter_closed.Caption = "Filter Closed"...
2
3185
by: daniel_nolan | last post by:
I'm brand new to Python--and programming in general. I'm trying to use IEC to control Internet Explorer. I've navigated to a page, and now I'm trying to click a button. The button appears to be called 'PDF Preview' but I honestly do not know whether that's the name or the caption. Here is my code: from win32com.client import Dispatch import IEC
7
7021
n8kindt
by: n8kindt | last post by:
i have a continuous form that i want a toggle button to display "on" or "off." everything i try changes every single caption on the continuous form--rather than the single row. here's what i have so far: Private Sub Detail_Paint() If OnOff.Value = True Then OnOff.Caption = "On" Else: OnOff.Caption = "Off" End If End Sub it works, but every time the mouse moves over the button, the button flickers. this is not as clean as i would like it...
0
8259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8192
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8696
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7188
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4195
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1504
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.