How to change this code?
This code creates an external text file scroll on the stage. I want to modify it so that it continues to scroll when the mouse is moved down, as the moving text, a little bit on each mouse click seems useless to me. Thank you, jcarruth.------------------------------------------------------------------------------------------ -----------------------------------------
var external_txt:TextField = new TextField();
var externalReq:URLRequest = new URLRequest ("external.txt");
var externalLoad: URLLoader = new URLLoader();
externalLoad.load (externalReq);
externalLoad.addEventListener (Event.COMPLETE, textReady);
up_btn.addEventListener (MouseEvent.CLICK, scrollUp);
down_btn.addEventListener (MouseEvent.CLICK, scrollup);
external_txt.x = 175;
external_txt.y = 100;
external_txt. Border = true;
external_txt. Width = 200;
external_txt. Height = 200;
external_txt.WordWrap = true;
addChild (external_txt);
function textReady(event:Event):void
{
external_txt. Text = event.target.data;
}
function scrollUp(event:MouseEvent):void
{
-external_txt.scrollV;
}
function scrollDown(event:MouseEvent):void
{
external_txt.scrollV ++;
}
:
Tags: Adobe Animate
Similar Questions
-
Current month data: Help needed to change this code a return procedure
Hello people I this scenario where I need to change the code so that there return data compared to the month current day to the day before if it's a daily report and data from the months preceding it is a monthly report.
I have no idea how to change this code below. Currently the code returns the data of the monthly reports for the previous month. Someone has any idea how to change so that the code meets the requirements of daily and monthly reprts.
BEGIN
If v_lowdate is null or v_highdate is null then
Select to_number (to_char (sysdate, 'DD')) double v_cur_day;
If v_cur_day < 25 may
-It's for the month to run
Select Add_Months (trunc (sysdate, 'MONTH'), - 1).
IN V_LOWDATE
FROM DUAL;
SELECT Last_Day (ADD_Months (Sysdate-1)) INTO V_Highdate From Dual;
on the other
-This is for the current delivery month
Select trunc (sysdate, 'MONTH') IN V_LOWDATE FROM DUAL;
SELECT Last_Day (Sysdate) IN the double V_Highdate;
end if;
end if;
Thank you
Published by: user11961230 on September 30, 2009 20:34Hello
The revised version of the code below, statement a daily report on every day except the 1st of the month, will include the dates of the first of the month through yesterday.
If a daily report is requested on the 1st of the month, then it will start the 1st of the month form last through yesterday (which is the last day of the previous month, making it the equivalent of a monthly report). I've added comments in the code on the lines that check these things.v_cur_day := TO_CHAR (SYSDATE, 'DD'); IF report_type = 'D' -- Daily report AND v_cur_day > '01' -- (except when run on 1st of the month) THEN -- will cover from v_lowdate := TRUNC (SYSDATE, 'MONTH'); -- 1st of this month to v_highdate := TRUNC (SYSDATE - 1); -- yesterday ELSIF report_type = 'M' -- Monthly report OR ( report_type = 'D' -- (or Daily report AND v_cur_day = '01' -- if run on the 1st of the month) ) -- will cover from v_lowdate := ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH') , -1 ); -- 1st of last month v_highdate := TRUNC (SYSDATE, 'MONTH') - 1; -- last day of last month END IF;
The above code always makes all the previous month, a monthly report. If you decide you want to want to do the month in progress (not the previous month) when a monthly report is run the or after the 25th of the month (as your original code), then use the version below:
v_cur_day := TO_CHAR (SYSDATE, 'DD'); IF report_type = 'D' -- Daily report AND v_cur_day > '01' -- (except when run on 1st of the month) THEN -- will cover from v_lowdate := TRUNC (SYSDATE, 'MONTH'); -- 1st of this month to v_highdate := TRUNC (SYSDATE - 1); -- yesterday. ELSIF ( report_type = 'M' -- Monthly report AND v_cur_day <= '24' -- (if run between the 1st and 24th, OR ( report_type = 'D' -- or Daily report AND v_cur_day = '01' -- if run on the 1st of the month) ) -- will cover from v_lowdate := ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH') , -1 ); -- 1st of last month to v_highdate := TRUNC (SYSDATE, 'MONTH') - 1; -- last day of last month. ELSIF ( report_type = 'M' -- Monthly report AND v_cur_day >= '25' -- (if run on or after the 25th of the month) ) -- will cover from THEN v_lowdate := TRUNC (SYSDATE, 'MONTH'); -- 1st of this month to v_highdate := LAST_DAY (TRUNC (SYSDATE)); -- last day of this month END IF;
-
Mr President.
My servlet code does two things
1 see the report in JasperViewer
2. it download it in pdf in chrome.
How to modify this code it gives only the view in JasperViewr?
My code is
package esh.view; import esh.model.AppModuleImpl; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.HashMap; import java.util.Locale; import java.util.Map; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperExportManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.design.JasperDesign; import net.sf.jasperreports.engine.xml.JRXmlLoader; import net.sf.jasperreports.view.JasperViewer; import oracle.jbo.client.Configuration; @WebServlet(name = "MultiReportServletJasper", urlPatterns = { "/multireportservletjasper" }) public class MultiReportServletJasper extends HttpServlet { private static final String CONTENT_TYPE = "text/html; charset=UTF-8"; public void init(ServletConfig config) throws ServletException { super.init(config); } protected Connection getConnection() { PreparedStatement st = null; String amDef = "esh.model.AppModule"; String config = "AppModuleLocal"; AppModuleImpl am = (AppModuleImpl ) Configuration.createRootApplicationModule(amDef, config); st = am.getDBTransaction().createPreparedStatement("select 1 from dual", 0); Connection conn = null; try { conn = st.getConnection(); return conn; } catch (SQLException e) { } return null; } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String var0 = ""; String reportName = ""; try { reportName = request.getParameter("reportName"); } catch (Exception e) { e.printStackTrace(); } response.setContentType(CONTENT_TYPE); Map parameters = new HashMap(); parameters.put("format", "pdf"); parameters.put("WEBDIR", getServletContext().getRealPath("/")); parameters.put("REPORT_LOCALE", new Locale("ar")); Connection conn = null; InputStream is = null; try { conn = getConnection(); is = getServletContext().getResourceAsStream("/WEB-INF/reports/"+reportName+".jrxml"); response.setContentType("application/pdf"); response.addHeader("Content-Disposition", "attachment; filename="+reportName+".pdf"); JasperDesign jasperDesign = JRXmlLoader.load(is); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn); JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream()); JasperViewer.viewReport(jasperPrint,false); conn.close(); } catch (Exception e) { e.printStackTrace(); } finally { closeConnection(conn); try { if(is !=null){ is.close(); } } catch (Exception localException1) { } } } protected static void closeConnection(Connection conn) { try { if(conn !=null){ conn.close(); } } catch (Exception ex) { // System.out.println("Developer Msg : Exception in printReport1Servlet.closeConnection()"); } } }
Concerning
Change: response.addHeader ("Content-Disposition", "attachment; filename = "reportName +".pdf");"
To: response.addHeader ("Content-Disposition", "inline; filename = "reportName +".pdf");"
Browser first tries to show the PDF, and if no pdf reader is available, you will get the download dialog box.
(and remove JasperViewer.viewReport (jasperPrint, false); )
Dario
-
all my icons became itunes how to change this back to normal icons?
all my icons became itunes how to change this back to normal icons?
all my icons became itunes how to change this back to normal icons?
1. wrong forum. It is a forum for f\eedback, not for computer problems.
Your question should be posted in the forum Performance and appearance.2 take, always, start by specifying your operating system, i.e. Windows XP, Vista or Windows 7.
Can not give you the right way if we do not know your operating system.Suggestions:
1 since it does not know your operating system, here's the link to all Versions, performance and Maintenance forum:
http://answers.Microsoft.com/en-us/Windows/Forum/performance?tab=unanswered
2. you can try one of the following...
a. do a system restore. Choose a date where your icons were what they should be like your restore point.
For Vista and Windows 7:http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/
b. rebuild your icon cache.
For Vista:
http://www.Vistax64.com/tutorials/117229-icon-cache-rebuild.html
For Win 7:
http://www.SevenForums.com/tutorials/49819-icon-cache-rebuild.html
-
When I open the files they are always displayed as a default icons, I would like to change the default setting so my files are displayed as a LIST. How to change this default setting.
Hello combat
Open Windows Explorer/Tools/Folder OptionsOn the general tab, click the options you want.
In the view tab, click the options you want.
On the view tab, click apply to all folders.
Click Yes, then OK
. -
When I click on a drop down menu, my options open to the left. They used to open to the right, how to change this back to be able to open them to the right?
Which is caused by a windows setting.
-
Mr President.
Me using ALTs as my skin by default as follows
<?xml version="1.0" encoding="UTF-8"?> <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config"> <skin-family>alta</skin-family> <skin-version>default</skin-version> </trinidad-config>
Now, I want to change the width and height of the table added to a page jsff.
How to change the source code of this file skin.
Concerning
Dear all!
I get the solution to my question how to change the default alta of the skin as follows:
altaSkin v1 altaSkin.desktop altaSkin alta-v1.desktop org.apache.myfaces.trinidad.desktop skins/ADFSkin/ADFSkin.css altaSkin.desktop altaSkin alta.desktop org.apache.myfaces.trinidad.desktop skins/ADFSkin/ADFSkin.css ash.view.skinBundle If any body finds it useful and correct answer if you please points to fix in my favor.
Concerning
-
How to change the code to use the image on stage instead of in the library?
Hello
The following code, I found on the Web site is for the use of the image that is in the library. But how to change it works with the image on stage. Because I don't want to use from the library.
The second question - is it AS2 or AS3 code. If it is AS2 code then do let me know how to change to work with AS3.
Animator = CreateEmptyMovieClip('animator',1);
bg_1 = animator.attachMovie('bg_mc','bg_1',1);
bg_2 = animator.attachMovie('bg_mc','bg_2',2);
bg_1._x = bg_1._width / 2:
bg_2._x = bg_2._width / 2:
Speed = 1;
cloudWidth = 380;
animator.onEnterFrame = function() {}
bg_1._x = speed:
bg_2._x = speed:
If (bg_1._x < = - bg_1._width) bg_1._x = cloudWidth;
If (bg_2._x < = - bg_2._width) bg_2._x = cloudWidth;
}Thank you.
There is no need to clamp the end if this isn't in the library and this is the code AS2 below is code in AS3 when it is at the point:
(i) convert your first image in a music video with the name of the instance «bg_1»
(II) convert your second image in a music video with the name of the instance 'bg_2 '.
(III) shares:
var speed: Number = 1;
var cloudWidth:Number = 380;
bg_1.x = bg_1.width/2:
bg_2.x = bg_2.width/2:
this.addEventListener (Event.ENTER_FRAME, fn);
function fn(e:Event):void {}
bg_1.x = speed:
bg_2.x = speed:
If (bg_1.x<= -bg_1.width)="" bg_1.x="">=>
If (bg_2.x<= -bg_2.width)="" bg_2.x="">=>
} -
How to convert this code random AS2 AS3 pos?
Hello! I do a sort of screen saver and have random logo on the screen. In ActionScript 2, it's easy, simply paste a code for the object, and it works. Things to do it is total different in ActionScript 3 and I can not understand how to solve this problem. Would be nice if someone could take a look at my very simple example and point me in the right direction. Maybe there are some example out there done in AS3?
I can't understand how post fla so I renamed it to jpg. Just change the extension to the fla again format...
Best regards / Jimmy
Hello
I was not able to see the FichierVous have attached.
However, I enclose you a zip that will give you the idea of how we can position any logo randomly on the stage.
Check and let me know if that helps...
P.S.: Zip and attach files whenever necessary
-
I use a site that now has the following statement:
Safety notice: as part of our ongoing efforts to improve security, this agency will be no longer support the use of the internet security TLS 1.0 protocol effective August 1. In addition, we will also stop the support for the Security Protocol Internet TLS 1.1 on 1 September. This means you must update your browser to use this site. For any questions about the update, please consult your browser provider.
How do I change this?
Unless your Firefox settings have been changed, Firefox is ready for sites that use TLS 1.2, the latest version of the SSL protocol.
For example, if you click on the Green padlock on this site, so more information, the bottom of the Panel security in the Page Info dialog box should show that the page was encrypted using TLS 1.2. I have attached a screenshot showing where to find this information.
Can you confirm that this works?
-
My Start button is the old man how to change this back?
I have windows vista and my button from the task bar and start are not a new one, it looks like the old AutoScan, it was not always like this. How can I change this back?
What's happened is that the theme has been changed from "Windows Aero" to "classic Windows". Here's how to change back: on the desktop, right click and select 'Customize' then select 'Thème' and finally, in the drop-down menu, select 'Windows Vista' and click on 'OK '.
-
what I did to do all my words on all very small Web sites and how to change this back?
I have windows 7 and I clicked something by mistake and I don't know what I did... How can I change this back?
Hello
If you use Internet Explorer, hold down the Ctrl key and press 0 (zero) to restore size.
Kind regards
DP - K
-
Any download through Adobe Lightroom - how to change this?
Everything download us e-mail, or just the internet passes generally through Lightroom, even programs. He asked my mother if she wanted to give her permission to let download it through it, and she thought it was for images only. I tried to look for any sort of settings to change, but I'm not familiar with the program and could not find anything. Does anyone know how to change these settings?
Hi kimberlye
This can only happen if Lightroom is configurΘ for dΘmarrer all of these types of files.
What is your operating system?
How to change the file type Association? Reference:-change which programs Windows uses by default - Windows help OR Change of Associations of files under Mac OS X
Let us know if this helps
Concerning
Assani
-
Do anyone know how to change the code in CS6, so I can display the SWF in Dreamweaver?
Someone in a discussion earlier said to change the code but I can't find where to change it in Dreamweaver CS6. They said to make this change to version 15: < param name = "swfversion" value = "10.0.0.0" / >
Search the code of your page. Look for a similar line. Change there.
-
How to optimize this code?
Hi all
The function I want to achieve is very simple. The reading of data from data acquisition, play the sound file if a rising edge is detected and stop playing if a front down is detected.
Attachment is my code, it works, but if I stop the program and restart it, the program will be somewhat stuck (but), so all I can do is to put an end to the task and to reopen the program. I put two structures case for each channel, I believe that the problem is caused by the second case structure.
I am a beginner of labview, could someone optimize me this code?
Thank you!
First, use the charts to your advantage. You can do this fairly simple dynamic conversion of the Data Type in a table of waveforms. Trigger detection can treat an array of waveforms. You can then process all detections of relaxation in a loop, updated what trigger (and level), that you are looking for dynamically.
Maybe you are looking for
-
Equium A300D touchpad not working not
Hello I am a novice so please bear with me. I use an Equium A300D with Vista Home OS. I lost any use of the touchpad. (synaptics pointing device) I tried the key F9, uninstalled and reinstalled the driver and even tried the system restore, all to not
-
What wireless network card Mini-PCI can I install on Satellite 1410 604
Hello What types of cards Mini-PCI can I install in this laptop?There is information in the user manual, this Satellite 1410 minipci location is compatible with Type III A. Will this card http://www.gigabyte.com.tw/Support/Communication/FAQ_Model.asp
-
My D recovery drive is about 99% full. I continue to generate and save restore points?
-
uninstalled and reinstalled adobe flash player
had a virus named e-set went to windows live scanner, took care of virus, but now I don't have adobe flash player. have uninstalled and reinstalled adobe flash player and web sites tell me that I don't have recent version I have have adobe 1 and the
-
Windows tried to update with the above, since 11/11/2008 and does not now have hundreds of times. I know very little about computers, but think that this problem could affect detramental on my computer. Can anyone help please.