PIVOT in oracle - Code of Correction
select * from
(
select prod_code from UNICA.DSI_SUBS_STOP_START_DRW
)
pivot (
count(prod_code)
For prod_code in ('E','3','W','W5','SS','S','4','W2','WS','3S','D','FS','3T','H3','TS')
)
I can't make this pivotal work. Can someone fix my error in the code. I get error "Command not properly ended SQL". I have a problem, to operate the PIVOT. Oracle 10 g support ROTATE at all?Thank you.
Prior to version 11, you would do:
select count(case when prod_code = 'E' then 'X' end) as PROD_CODE_E
, count(case when prod_code = '3' then 'X' end) as PROD_CODE_3
, count(case when prod_code = 'W' then 'X' end) as PROD_CODE_W
, ...
, count(case when prod_code = 'TS' then 'X' end) as PROD_CODE_TS
from unica.dsi_subs_stop_start_drw
;
Tags: Database
Similar Questions
-
Hi can someone tell me how to get in touch with microsoft to check if my code is correct
Hi all can someone tell me how I can contact microsoft to varify my coa is for the correct version of windows that the coa sticker worn if wrong that only the code itself is visible please help
If the certificate of authenticity is attached to a computer, you must contact the manufacturer of this computer using.
-
Lesson 1-1 code is correct?
Hi all.
I just started watching a course and have finished all the chapters of lesson 1, no homework and quiz.
So we in Lesson 1-1 example usage of lambda expressions (with my method createStudentsList() to fill the list):
Students list < student > = createStudentsList();
Double highestScore = 0.0;
for (s student: students) {}
If (s.getGradYear () == 2011) {}
If (s.getScore () > highestScore) {}
highestScore = s.getScore ();
}
}
}
It compiles and works.
But the proposed changes by using lambda expressions does not work:
Students list < student > = createStudentsList();
Double highestScore = student
filter (new predicate < student > () {})
public boolean test (Student's t) {}
return t.getGradYear () is 2011;
}
})
.map (Mapper new student, < Double > () {})
public Double extracted (student s) {}
Return s.getScore ();
}
})
. Max();
saying "the filter method (new predicate < student > () {}) is undefined for the type List < student >" and "Mapper cannot be resolved to a type.
Even the latest version of the code does not compile:
Students list < student > = createStudentsList();
highestScore = student
filter (student s-> s.getGradYear () == 2011)
.map (student s-> s.getScore ())
. Max();
with "syntax error, insert ';' to complete the statement" for the two statements of student.
I managed to make it work with this approach:
Students list < student > = createStudentsList();
Double highestScoreL = student
. Stream()
filter (s-> s.getGradYear () == 2011)
.mapToDouble (s-> s.getScore ())
. Max()
. getAsDouble();
I do wrong or just missed sth sth important? Sorry for the question so long - it is because as pieces of code .
BTW I use Eclipse March 4.5.0 and jdk1.8.0_51 if that matters.
There is problem with your code. I fixed your code and it would be:
Student s0 = new Student(2014, 685);
Student s1 = new Student(2014, 675);
Student s2 = new Student(2014, 635);
Student s3 = new Student(2014, 985);
List of students of
= Arrays.asList (s0, s1, s2, s3); Stream
studentStream; studentStream = students.stream ().
filter (new predicate
() {} @Override
public boolean test (Student's t) {}
return t.getGradYear () is 2014;
}
});
Stream
highestScoreStream = studentStream.map (new function () {} @Override
public Double apply (student s) {}
Return s.getScore ();
}
});
HighScore = highestScoreStream.max of
in option (new comparator () {} @Override
public int compare (Double d1, d2 Double) {}
Return d1.compareTo (d2);
}
});
Double highestScore = highScore.get ();
System.out.println (highestScore);
Make sure and tell me if you don't get anything. This is the detailed code pre JDK8 average. Now you can write it as functional programming.
and Yes... The video code is just for us to understand. It is not syntactically correct as map is not a FunctionalInterface in JDK8.
-
Developer of sql Oracle - code beautifier
Hi all
Where is beautifier code of oracle sql Developer (if any)?
My version is 4.0.3.16
It (Ctrl + F7) works for me in 4.0.3 as well in a spreadsheet and the PL/SQL code editor. According to the SQL Formatter settings, sometimes the action Format has no effect. For example, a piece short single line of SQL may already be formatted according to the parameters. However, if the Format is something, then Ctrl + F7 should also have the same effect.
Watch Tools > Preferences > shortcut keys to see if the Format is associated with Ctrl + F7. If it is, with Format work but not the shortcut key, then something can be altered in your user settings.
-
Code works correctly with sql developer but not in shapes
Hi, formulas [32 bit] Version 6.0.8.11.3 (Production)
INSERT INTO DEFICIENCIES SELECT I.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME FROM ITEM_DETAIL I , STOCK S WHERE I.ITEM_ID = S.ITEM_ID AND I.ITEM_ID NOT IN ( SELECT ITEM_ID FROM DEFICIENCIES ) GROUP BY I.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME HAVING MAX(EXPIRY_DATE) <= TRUNC(SYSDATE) OR SUM(QUANTITY) = 0 UNION SELECT E.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME FROM EXPIRED E , STOCK S WHERE E.ITEM_ID = S.ITEM_ID AND E.ITEM_ID NOT IN ( SELECT ITEM_ID FROM DEFICIENCIES ) ORDER BY ITEM_ENG_NAME ;
When I used it in oracle forms, I have faced
error 103 at line 15 column 2 encountered the symbol "order" when expecting one of the following: ;return RETURNING_ adn or group havign intersect minus start union where connect the symbol "group was inserted before "order" to continue
?
forms not authorized such use for «insert into...» Select... Of... ORDER BY' with order by.
but this use can be used in a database procedure.
write your code in a database procedure. your code will run.
-
Trying to create a pivot in Oracle 10.2.0.4
I have the following query that retrieves data from three tables, SORPCOL, SORDEGR and STVSBGI. SORPCOL houses of prior information college for some applicants for admission, SORDEGR houses degree information, including VMI associated prerequisites colleges, and STVSBGI is a validation table housing codes of the institution and the names of the colleges.
SELECT SORPCOL_PIDM,
SORPCOL_SBGI_CODE,
STVSBGI_DESC,
SORPCOL_TRANS_RECV_DATE,
SORPCOL_TRANS_REV_DATE,
SORPCOL_ADMR_CODE,
SORPCOL_ACTIVITY_DATE,
SORDEGR_GPA_TRANSFERRED,
SORDEGR_HOURS_TRANSFERRED
OF SORPCOL, SORDEGR, STVSBGI
WHERE SORPCOL_PIDM = 123456
AND SORPCOL_SBGI_CODE NOT IN ('CUMGPA')
AND SORPCOL_PIDM = SORDEGR_PIDM
AND SORPCOL_SBGI_CODE = SORDEGR_SBGI_CODE
AND SORPCOL_SBGI_CODE = STVSBGI_CODE
The output that I get from it is fine and is as follows:
PIDM SBGI STVSBGI_DESC TRANS_RECV_DATE TRANS_REV_DATE ACTIVITY_DATE SORDEGR_GPA_TRANSFERRED SORDEGR_HOURS_TRANSFERRED ADMR
123456 008000 unknown College 2011-07-10 00:00:00 CLT1 07/10/2011 09:39:50 0.750
123456 008002 unknown College two 07/10/2011 00:00:00 CLT1 07/10/2011 09:39:50 1,800
Each applicant may have several previous colleges, but there is not a defined maximum number of previous institutions, they may have. The only thing in SORPCOL which can be a unique identifier is the SBGI code, but it would be different for each prior order, by pidm, and there is 8500 College different codes in STVSBGI, an applicant could have one of them. There is not a SORPCOL or SORDEGR field that creates a number of associate with each prior college, either, such as 1, 2, 3, etc. They want that this programmed to shoot up to 10 previous colleges. If I can get help doing the first two, I think I could find a way to add more.
What the user wants to look like the output is the following:
PIDM COLL 1 CODE COLL 1 DESC COLL 1 TR RECV DT COLL 1 TR REV DT COLL 1 ADMR, COLL 1 LAW DATE COLL 1 GPA XFR 1 HR XFER COLL COLL 2 CODE COLL 2 DESC 2TR RECV DT 2 DT COLL REV TR COLL COLL 2 ADMR, COLL 2 LAW DATE COLL 2 GPA XFR COLL 2 HR XFER
123456 008000 unknown College 07/10/2011 CLT1 07/10/2011 008002 0.750 unknown Coll 2 10/7 / 2011 CLT1 07/10/2011 1,800
Does anyone have suggestions on how this might be accomplished? It seems in Oracle 11 that it wouldn't be too hard, but I don't know about 10.2.0.4.
Thank you very much
MichelleIn my view, that the following example is close to what you are looking for:
select SORPCOL_PIDM as "PIDM" ,max(decode(pidm_col_seq,1,SORPCOL_SBGI_CODE,null)) as "COLL 1 CODE" ,max(decode(pidm_col_seq,1,STVSBGI_DESC,null)) as "COLL 1 DESC" ,max(decode(pidm_col_seq,1,SORPCOL_TRANS_RECV_DATE,null)) as "COLL 1 TR RECV DT" ,max(decode(pidm_col_seq,1,SORPCOL_TRANS_REV_DATE,null)) as "COLL 1 TR REV DT" ,max(decode(pidm_col_seq,1,SORPCOL_ADMR_CODE,null)) as "COLL 1 ADMR" ,max(decode(pidm_col_seq,1,SORPCOL_ACTIVITY_DATE,null)) as "COLL 1 ACT DATE" ,max(decode(pidm_col_seq,1,SORDEGR_GPA_TRANSFERRED,null)) as "COLL 1 GPA XFER" ,max(decode(pidm_col_seq,1,SORDEGR_HOURS_TRANSFERRED,null)) as "COLL 1 HR XFER" -- ,max(decode(pidm_col_seq,2,SORPCOL_SBGI_CODE,null)) as "COLL 2 CODE" ,max(decode(pidm_col_seq,2,STVSBGI_DESC,null)) as "COLL 2 DESC" ,max(decode(pidm_col_seq,2,SORPCOL_TRANS_RECV_DATE,null)) as "COLL 2 TR RECV DT" ,max(decode(pidm_col_seq,2,SORPCOL_TRANS_REV_DATE,null)) as "COLL 2 TR REV DT" ,max(decode(pidm_col_seq,2,SORPCOL_ADMR_CODE,null)) as "COLL 2 ADMR" ,max(decode(pidm_col_seq,2,SORPCOL_ACTIVITY_DATE,null)) as "COLL 2 ACT DATE" ,max(decode(pidm_col_seq,2,SORDEGR_GPA_TRANSFERRED,null)) as "COLL 2 GPA XFER" ,max(decode(pidm_col_seq,2,SORDEGR_HOURS_TRANSFERRED,null)) as "COLL 2 HR XFER" -- -- and so on.... from ( SELECT SORPCOL_PIDM, row_number() over (partition by SORPCOL_PIDM order by SORPCOL_TRANS_RECV_DATE desc) pidm_col_seq, SORPCOL_SBGI_CODE, STVSBGI_DESC, SORPCOL_TRANS_RECV_DATE, SORPCOL_TRANS_REV_DATE, SORPCOL_ADMR_CODE, SORPCOL_ACTIVITY_DATE, SORDEGR_GPA_TRANSFERRED, SORDEGR_HOURS_TRANSFERRED FROM SORPCOL, SORDEGR, STVSBGI WHERE SORPCOL_PIDM=123456 AND SORPCOL_SBGI_CODE NOT IN ('CUMGPA') AND SORPCOL_PIDM=SORDEGR_PIDM AND SORPCOL_SBGI_CODE=SORDEGR_SBGI_CODE AND SORPCOL_SBGI_CODE=STVSBGI_CODE ) group by SORPCOL_PIDM
-
Could someone please check my code is correct and clean
Hello
I bought a template and it handled for my site, could someone please check my code to make sure I have it correct. Because what I do here I will duplicate for the rest of the page.
< class li =' same illustration portfolio-entry ">"
< img src = "images/portfolio thumbnails/illustration & fashion/1_britten.jpg" width = "220" height = "240" alt = 'Britten Motorcycle Illustration' >
< div class = "entry-inch standard" > < a class = "thumblink" href = "images/portfolio images - news/illustration & fashion/1_britten_lge.jpg" rel = "prettyPhoto [2376]" >
< img src = "images/portfolio thumbnails/illustration & fashion/1_britten.jpg" alt = "Britten Motorcycle Illustration" class = "portfolio category" > < span class = 'extra' > < / span > < /a > < / div >
< div class = "entry-title" > Web </span > < span > < a title = "Permanent link Soft store" rel = "bookmark" > Britten Motorcyles < /a > < / div >
< a class = "more-link" href = "images/portfolio images - news/illustration & fashion/1_britten_lge.jpg" rel = "prettyPhoto [2376]" > < span > </span > < /a > < /li > Design view
This line, I don't want the text to a link anywhere:
< div class = "entry-title" > Web </span > < span > < a title = "Permanent link Soft store" rel = "bookmark" > Britten Motorcyles < /a > < / div >
Web site: www.lorraines.co.nz
Thanks in advance
You can check your code with the following online tools:
CSS - http://jigsaw.w3.org/css-validator/
HTML - http://validator.w3.org/
Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
-
Is this a bug in Dreamweaver? Because the code is correct! Please advise!
Hey coders.
I'm pretty new to Dreamweaver, but have a decent understanding of the code and if I ever got stuck I usually figure out on my own, but today are not the case.
My problem is: when I enter the code it didn't display correctly in my workspace, the slice falls completely down, when it should have been in the middle. But when I make it with the browser, it displays correctly! ???
You can see my site here's progress to:
http://www.topvizstudio.com/webproblem/index.html
or you can download sliced HTML and Image here:
http://www.topvizstudio.com/webproblem/index.htmlPlease help, it is just killing me, I've already lost 2 hours trying to figure it out!
Thank you!
Design view is not 100% reliable. What matters most is how your pages make in all the major browsers (IE 6,7,8, FF, Opera, Safari/Chrome...)
The last picture is 500px wide and floating to the left, and yet the previous images are quite a bit more small. This leads me to think there isn't enough available on the page width to account for this installment.
In addition, I do not understand why you are using may inline styles both in your HTML code. This will make it much more difficult lifestyle changes later because your styles are not separated from the content.
You must delete a semicolon after your image file names.
Finally, your code has a typical beginner problem called division-it is. In contrast to the provisions based on a table where each element is contained in a table cell
, CSS layouts, there is no need to place each element on the page within its own division. In fact, it is often best if you do not. Less increase in the code. image
image
image
Review this 3-part tutorial. I think it will help you.
Taking a Fireworks (or Photoshop) comp to a CSS based layout in DW
http://www.Adobe.com/devnet/Fireworks/articles/web_standards_layouts_pt1.html
Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB
http://ALT-Web.blogspot.com -
What is Oracle Code tree?
Dear friends,
Tree Code Whats Oracle? I need to understand in order to create a dblink, Oracle, SqlServer. I even met the term here.
http://www.DBA-Oracle.com/t_connecting_sql_server_oracle.htm
Please guide me.
NithYes. If you have installed the software of Oracle or customer database, you know that it is installed in a 'ORACLE_HOME.
Hemant K Collette
-
Requesting help with pivot in Oracle 10 g
Hey all,.
I have this table, call the table GRID that has the following columns:
What would take to rotate the names of column ("M1100", "M1105") with the value metric volumn: "COMMITTEDVIRTUALMEMORYSIZE_AVG", so that this query would yield a result like this:OBJECT_KEY DATE_KEY SEGMENT_ID COLUMN_NAME COMMITTEDVIRTUALMEMORYSIZE_AVG ---------------------- ---------------------- ---------------------- ----------- ------------------------------ 619 3371 1 M1100 593589862.4 619 3371 1 M1105 593611434.67 620 3371 1 M1100 592354508.8 620 3371 1 M1105 592376263.11 621 3371 1 M1100 731433369.6 621 3371 1 M1105 731455943.11
Any help would be appreciated!OBJECT_KEY DATE_KEY SEGMENT_ID M1100 M1105 ---------------------- ---------------------- ---------------------- ----- ------ 619 3371 1 593589862.4 593611434.67 620 3371 1 592354508.8 592376263.11 621 3371 1 731433369.6 731455943.11
Again, Oracle 10 g, 11g not so I don't have the PIVOT function to work with.
Kind regards
TimS
-
Change attached code and corrections
In VI I joined, there are two questions that my research director and I want to speak to, but are not enough familiar with the code to be able to change it compitently, we are not quite familiar with LabView to code from scratch.
The first question, it is the incrimentation system works on tension of start, end, Incriment voltage and time of incriment.
E.g. = 0.00 starting voltage
End of voltage = 5.00
Incriment = 0.01
Time of incriment = 1.00 s
This will result in 500 incriments, each incriment taking 1 seconds, for a total run of 500 seconds time. We, however, do not use real tensions, but are instead using this system of incrimentation as a means to load the program on data points how much to take and for how long.
Is not our doing, but just how the program was created originally (my supervisor has received the code elsewhere and has no contact with those who, when he received it). We would prefer the code to run simple on a loop For or a loop so that we can run out for as long as we will work without the help of an incrimentation tension system (because the system voltage does not end voltage value more than 10v regardless of the absence of real tension applied.) If someone has an idea how this could be done, the Council would be wonderful.
The second question is a little bug that occurs every time that the data are taken. Whenever the chart 1 receives a data point, the first data point that it receives in any period of data collection is copied on 3 other cards. This should not be the case, as the 3 other cards are not representations of data that should be coming in the first table, and come from different sources entirely. I have reviewed the block diagram, but I am a novice when it comes to LabView and could find no explanation.
If someone saw to the subject or the other of these issues with the VI I enclose below, help would be greatly appreciated.
Thank you Stevem181 and MoReese. Your advice has been invaluable
Now, the code runs exactly as I love to run and is more clean and easy to navigate. Thanks to you two
-
HOW can I get the code for CORRECTION of ERROR 39?
IM really hoping that someone out there in PC-land can help!
I have a problem with my CD/dvd-rom drive.
the D of DVD LITE-ON LH-16D1P ATA device' installed when I bought my PC has the yellow triangle on him when I access my device manager.
the driver provider is "MICROSOFT", but because the software has been installed by 'SOME ONE at COLLEGE' they cannot help me find a solution!
the device status says "Windows cannot load the driver for this hardware device. The driver may be corrupted or missing. (Code 39) »
When I try to "Update Driver Software" for this unit and research online, I get a message that reads "best driver for your device is already installed, Windows has fix6 software driver for your device is up-to-date."!
Help me!!
Cheers.
Evan
Hello
Code 39 means that the driver is corrupted or missing.
Please make all below even if you have done some before as it is often the set of operations which solves
the question.Try this - Panel - Device Manager - CD/DVD - double-click on the device - driver tab - click
Update the drivers (this will probably do nothing) - then RIGHT click the drive - UNINSTALL - REBOOT
This will refresh the default driver stack. Even if the reader does not appear to continue below.
Then, work your way through these - don't forget the drive might be bad, could be a loose cable or
slight corrosion on the contacts (usually for a laptop) and other issues.Your CD or DVD drive is missing or is not recognized by Windows or other programs
http://support.microsoft.com/kb/314060 - a Mr FixitThe CD drive or the DVD drive does not work as expected on a computer that you upgraded to Windows Vista
http://support.Microsoft.com/kb/929461When you insert a CD or a DVD, Windows Vista may not recognize the disc
http://support.Microsoft.com/kb/939052Your CD or DVD drive cannot read or write media - A Mr Fixit
http://support.Microsoft.com/GP/cd_dvd_drive_problemsCD/DVD drive does not appear in Windows Vista, or you receive this error during the installation of Windows Vista after booting from the DVD (AHCI)
http://support.Microsoft.com/kb/952951
Drive CD - R or CD - RW Drive is not recognized as a recordable device
http://support.Microsoft.com/kb/316529/Hardware devices not detected or not working - A Mr Fixit
http://support.Microsoft.com/GP/hardware_device_problemsAnother possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
ends. Remove and replace, do not just tight. For laptops, you can often clean power and
contacts data with a pencil eraser.--------------------------------------------------------------
Also check with your system manufacturer to see if there are any updated drivers for your DVD. Or even if it
are you can reinstall the 'old'. Many use Windows default drivers however some special aura
ones. Also check the website of the manufacturer of the car.Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htmHope these helps.
Rob - bicycle - Mark Twain said it is good. -
Pivot in oracle 11 g feature.
HelloI have a table where in I have values like
tpea_value_trn
, tpea_value_fxn ,
tpea_value_grp corresponding to tpea_period and tpea_fdr_tran_no, tpea_value_desc
I want to rotate and display the values of the txn for each period.
I used the following:
Select * from
(select tpea_fdr_tran_no, tpea_value_desc, tpea_period, tpea_value_trn of)
hpl_trade)
Pivot (Sum (tpea_value_trn) to (tpea_period) to (' as mtd_txn, 'Y' as ytd_txn, 'Q' as qtd_txn));
I get the results with columns:
tpea_fdr_tran_no, tpea_value_desc, mtd_txn, ytd_txn, qtd_txn.
now, I also want to pivot to the grp and yanick values. However, by using the following query that doesn't work:
Select * from
(select tpea_fdr_tran_no, tpea_value_desc, tpea_period, tpea_value_trn of)
hpl_trade)
Pivot (Sum (tpea_value_trn) to (tpea_period) to (' as mtd_txn, 'Y' as ytd_txn, 'Q' as qtd_txn)).
pivot (sum (tpea_value_fxn) to (tpea_period) to (' as mtd_fxn, 'Y' as ytd_fxn, 'Q' as qtd_fxn)).
Pivot (Sum (tpea_value_grp) to (tpea_period) to (' as mtd_grp, 'Y' as ytd_grp, 'Q' as qtd_grp));
can someone please help with that?
Yes... The column name is different... Change this... Try the below
SELECT * FROM
(SELECT tpea_fdr_tran_no,
tpea_value_desc,
tpea_period,
tpea_value_trn,
tpea_value_fnc,
tpea_value_grp
OF hpl_trade)
PIVOT (Sum (tpea_value_trn) strn,
Sum (tpea_value_fnc) sfxn,
Sum (tpea_value_grp) PRGS
FOR (tpea_period) IN (' AS mtd_txn, 'Y' AS ytd_txn, 'Q' AS qtd_txn));
-
I would like to test Oracle Ultra Search. I read that WE installed with the database. However, for me not (for some reason any).
So I wanted to find a document that shows how you can install manul.
I found a lot of sites where you can find information such as:
-----
You can look in Doc ID 970473.1 to manually install the oracle text
Note 579601.1 Manual installation, uninstallation and Oracle 11 g 1 material text verification
Note.970473.1 Manual installation, uninstallation and Oracle 11 g 2 text verification
Note.280713.1 Manual installation, uninstallation of the 10 g Oracle 10 g 2 text 1
-----
But I'm not sure that hell present documents...
Where I can write this document ID to find out what...
I searched on Google, I searched the site of the Oracle... and nothing...
Edited by: Ndejo 2012-10-30 08:57Hello
These documents can be found on Oracle's Support website (also called metalink): http://support.oracle.com
However, you need a support login en Id to access it.
Herald tiomela
http://htendam.WordPress.com -
My code is correct by flash tells my other wise?
I use a Lynda.com video and flash tells me that there are errors in my code?
THE FOLLOWING ARE THE ERRORS:
FunButtons.as, Line14 1013: Attribute private may be used only on class property definitions.
FunButtons.as, Line20 1013: Attribute private may be used only on class property definitions.
MY FILE
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
/public class FunButton extends MovieClip
{
public void FunButton()
{
this.addEventlistener (MouseEvent.ROLL_OVER, grow)
this.addEventlistener (MouseEvent.ROLL_OUT, shrink)
}
}
grow(event:MotionEvent):void private function
{
this.scaleX = 1.5;
this.scaleY = 1.5;
}
shrink(event:MotionEvent):void private function
{
this.scaleX = 1;
this.scaleY = 1;
}
}
use:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
SerializableAttribute public class FunButton extends MovieClip
{
public void FunButton()
{
this.addEventlistener (MouseEvent.ROLL_OVER, grow)
this.addEventlistener (MouseEvent.ROLL_OUT, shrink)
}
//}
private void grow(event:MotionEvent):void
{
this.scaleX = 1.5;
this.scaleY = 1.5;
}
private void shrink(event:MotionEvent):void
{
this.scaleX = 1;
this.scaleY = 1;
}
}
}
p.s. these MotionEvents should be MouseEvents
Maybe you are looking for
-
Ignore YouTube in Firefox more recent flash player and youtube using HTML5 player
Hi I have a problem with the new firefox YouTube site ignores the flash player and uses HTML5 player. I have no any button to move to flash player in settings HTML5 on youtube (in another Web browser it works fine), you can see from the photo, but I
-
Question about product recovery CD
Hello I have 2 partitions of hard drive (C and E), and I want to recover my system using the product recovery CD.If I do this, will be deleted all the files in the partition E?Thank you
-
When you use Safari - Macbook crashes sometimes
Hello! I have a weird problem with my Macbook Pro retina 2015. I didn't know if I should put this topic in the category of Safari, but this problem because I have improved my M to El Capitan. While I use my M Safari blocks - display freezes, works of
-
Can be restored to shared folders "not shared" in the world?
After the opening of Windows Movie Maker (not 'Live' verson, but that came as part of the Vista operating system), most folders and files under Documents, photos, music and videos now appear as folders and files with the images of the two men little
-
"unrecognized usb device": error message every time that a usb device is plugged into one of the usb ports 1. my laptop - acer aspire 5030 - has been having this problem for the last five months. 2. I tried everything including changing service pack,