Simple problem with resolution
Hi All,
I followed a tutorial which told me to put the flash template size to 600 square pixels. But now that I have got the hang of it, I want to increase the resolution of the whole thing, without having to change everything seperately. Basically my high quality images are pixilated on a high resolution monitor.
Is there any simple way to scale everything up, similar to the way that you can adjust the canvas size in photoshop and increase the DPI?
I dont want to have to resize each image individually; there must be a way to do it all in one go! When I adjust the canvas size normally, I just get a vast area of white space surrounding the initial working area.
Thanks,
Jimmeh
No, there is no simple way to adjust the size of the content of a Flash movie. Flash has only one resolution. So, if you want a larger overall image, and you are using only vector art, you can publish your movie at a size larger than 100%. If you have raster art in your movie, then you should go back and individually enlarge each image to suit the larger stage size.
Similar Messages
-
A simple problem with sateful Session beans
Hi,
I have a really novice problem with stateful session bean in Java EE 5.
I have written a simple session bean which has a counter inside it and every time a client call this bean it must increment the count value and return it back.
I have also created a simple servlet to call this session bean.
Everything seemed fine I opened a firefox window and tried to load the page, the counter incremented from 1 to 3 for the 3 times that I reloaded the page then I opened an IE window (which I think is actually a new client) but the page counter started from 4 not 1 for the new client and it means that the new client has access to the old client session bean.
Am I missing anything here???
Isn�t it the way that a stateful session bean must react?
This is my stateful session bean source.
package test;
import javax.ejb.Stateful;
@Stateful
public class SecondSessionBean implements SecondSessionRemote
private int cnt;
/** Creates a new instance of SecondSessionBean */
public SecondSessionBean ()
cnt=1;
public int getCnt()
return cnt++;
And this is my simple client site servlet
package rezaServlets;
import java.io.*;
import java.net.*;
import javax.ejb.EJB;
import javax.servlet.*;
import javax.servlet.http.*;
import test.SecondSessionRemote;
public class main extends HttpServlet
@EJB
private SecondSessionRemote secondSessionBean;
protected void processRequest (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
response.setContentType ("text/html;charset=UTF-8");
PrintWriter out = response.getWriter ();
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet main</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Our count is " + Integer.toString (secondSessionBean.getCnt ()) + "</h1>");
out.println("</body>");
out.println("</html>");
out.close ();
protected void doGet (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
processRequest (request, response);
protected void doPost (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
processRequest (request, response);
}You are injecting a reference to a stateful session bean to an instance variable in the servlet. This bean instance is shared by all servlet request, and that's why you are seeing this odd behavior.
You can use type-leve injection for the stateful bean, and then lookup the bean inside your request-processing method. You may also save this bean ref in HttpSession.
@EJB(name="ejb/foo", beanName="SecondBean", beanInterface="com.foo.foo.SecondBeanRemote")
public MyServlet extends HttpServlet {
ic.lookup("java:comp/env/ejb/foo");
} -
Simple problem with transitions
Hi everyone
I am having a small bit of a problem with transitions....
When I drag a clip from the viewer over the canvas to get the menu bar pop up, and select insert with transition ( cross dissolve ) it puts in a transition but its very short and too fast and when i select it and try to make adjustments it doesn't seem to let me make any changes to the cross dissolve.
I wander what i am doing wrong?
Many thanks TimHi
Just as David Harbsmeier indicates. Handles
Transitions are handled differently in iMovie resp FinalCut.
• iMovie - material that builds the transition is taken from the videoclips = the total length remains same
• FinalCut (as pro- works) . You have to set of a piece of material in each end of the video clips.
This is called In- resp. Out-points. The remaining parts are called Handles
Transitions here are using material from these = Total lenght of movie increase
per transition.
I find books/DVDs by Tom Wolsky - Very valubale - Enjoyed them very much.
• Final Cut Express 4
• Final Cut Pro 6 - DVD course (now probably version 7)
Yours Bengt W -
hi!
i've a problem with user input in my application:
Code:
BufferedReader F_reader = new BufferedReader (new InputStreamReader(System.in));
Fs_line = F_reader.readLine();
My problem is that i've to press the return key for two times, before the JDK returns the line! Does anybody know a better solution with JDK 1.4.2?
thanks for help
mikeit was a mistake of our own implementation! code ist correct! any circumstances are our eval!
thanks mike -
Simple problem with a list initialization.
hello ! i have a class Contact and i would like to make a list of lists of Contact variables .. but when i try to run my code , it says "IndexOutOfBoundsException: Index: 0, Size: 0" . I know that every list of the list must be initialized .. but i don't know how .
here is the declaration of the List
static List<List<Contact>> lolContact=new ArrayList<List<Contact>>();and i know that i should do something like :
lolContact.get(0)=new ArrayList<Contact>();to initialize every list of the list but i don't know how . please helpbadescuga wrote:
and i know that i should do something like :
lolContact.get(0)=new ArrayList<Contact>();
Couple of problems with that.
1. You can never do methodCall() = something in Java. The result of a method call is not an L-value.
2. You're trying to assign a ContactList to a Contact variable. Basically, you're trying to do
Contact c = new ArrayList<Contact>();3. Even if you changed it to
Contact c = lolContact.get(0);
c = new Contact();it would not put anything into the list. That would just copy the first reference in the list and stick it into variable c, so that both c and the first list item point to the same object (remember, the list contains references, not objects--no object or data structure ever contains an object in Java), and then assigns a completely different reference to c, forgetting about the one to the object pointed to by the list. It would not affect the list in any way.
4. You can't do get(0) until you've first put something into the list. -
Probably simple problem with while loops
I was programming something for a CS class and came across a problem I can't explain with while loops. The condition for the loop is true, but the loop doesn't continue; it terminates after executing once. The actual program was bigger than this, but I isolated my problem to a short loop:
import java.util.Scanner;
public class ok {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String antlol = "p";
while(antlol == "p" || antlol == "P"){
System.out.println("write a P so we can get this over with");
antlol = scan.nextLine();
//it terminates after this, even if I type "P", which should make the while condition true.
}Thanks, that worked.
I think my real problem with this program was my CS
teacher, who never covered how to compare strings,Here's something important.
This isn't just about comparing Strings. This applies to comparing ANY objects. When you use == that compares to see if two references refer to the same instance. equals compares objects for equality in the sense that equality means they have equal "content" as it were. -
Problem with resolution of external display
Hi,
I am trying to use external display with my Unibody Aluminium Macbook Pro (NVIDIA GeForce 9400M, 2.26Gh, snow leopard). Cable setting I use is quite complicated as it is: macbook: minidisplay port>hdmi> DVI D : display. Display is LG Flatron W2242T (4:3).
So I hooked everything up and macbook detected display without any problem. The problem arises when it comes to resolution. Maximum resolution I can set (and in fact the only except 800xsomething) is 1152x870 and not only it is to low, but also it does not respect 4:3 ratio so it looks quite bad. So bad, that i cant really work on a setup like that. When I try to change resolution to any other, Display goes black. I tried using some apps, but they dont really work.
What can be the problem here? Is it connection?
I would appreciate any help.And once you've cut thru the clutter of cables and adapters, remember the max you will be able to push the Flatron is its "native resolution", that happens to be:
Screen Size
22"
Screen Type
TFT LCD
Wide Screen
Yes
Brightness
300cd/m²
Contrast Ratio
8000:1
Viewing Angle
(Horizontal/Vertial)
160/160
Response Time
5ms
Resolution
1680X1050
Supported Colours
16.7M Colours
(data taken from LG's product page)
If you happen to have a late model MBP with the widescreen option, the Mac and the display will be on a 1:1 ratio, both are the same. Else, if you have a regular MBP, the monitor has more resolution than the Mac (1440x900) and distortion will occur if you do video mirroring. -
Problem with resolution in BIOS on FM2-A75IA-E53
Hi everyone.
I'm working on a fully operational Windows 8 Pro 64 install on my new system. Specs are:
FM2-A75IA-E53
AMD A6-5400K
KINGSTON 2X2GB HYPER WHATEVER (THE BLUE ONES)
OCZ VERTEX3 SSD
all tucked away nicely in a Silverstone SG06 case
hooked up to a 42" Samsung 720P plasma tv
Like I mentioned, everything works as it should. However, I am unable to update the BIOS from 2.0 to 2.2 because when I boot into BIOS, the resolution is all whacked out. I'm only able to see the upper left corner of the screen (cuts off just below "MSI Settings" menu option). I am unable to scroll or move.
Does anyone have any ideas about fixing my resolution so I can update the BIOS??
I appreciate any and all suggestions!Are you using HDMI or VGA connectors ?
Suggest you connect it via the normal VGA port to a standard monitor to see if the BIOS displays correctly and then flash it.
Afterwards retest with a servicable HDMI cable. -
Hi all,
Initially I have written a trigger for testing .But im not able to write it as per the requirement.Actually I have written the trigger for a table "test" when a row is inserted into it then my trigger will insert a row in another table.In the same way if an row is UPDATED then that same field of the same row is to be updated in another table.how can I do this by modifying this trigger code.Im in a confusion of doing this.
Table: test.
Name Null? Type
ID NOT NULL NUMBER(38)
UNAME VARCHAR2(15)
PWD VARCHAR2(10)
Table : test123.
Name Null? Type
ID NUMBER
UNAME VARCHAR2(30)
PWD VARCHAR2(30)
the trigger is as follows:
CREATE OR REPLACE TRIGGER inst_trigger
AFTER INSERT OR UPDATE
ON test
FOR EACH ROW
DECLARE
id number;
uname varchar2(20);
pwd varchar2(20);
BEGIN
id := 1245;
uname :='abc';
pwd := 'xyz';
IF INSERTING THEN
INSERT INTO test123 VALUES (id,uname,pwd);
END IF;
END test_trigger;
how can i modify this for the above mentioned use.
Thanks in advance,
Trinath Somanchi,
Hyderabad.Hallo,
naturally , you have not assign values directly in trigger. They come automatically
in trigger with :new - variables.
CREATE OR REPLACE TRIGGER scott.inst_trigger
AFTER INSERT OR UPDATE
ON scott.test
FOR EACH ROW
BEGIN
IF INSERTING THEN
INSERT INTO scott.test123 VALUES (:new.id,:new.uname,:new.pwd);
ELSE
UPDATE scott.test123
set uname = :new.uname, pwd = :new.pwd
where id = :new.id;
END IF;
END inst_trigger;Nicolas, yes, merge here is very effective, but i think, that OP can starts with simpler version von "upsert".
Regards
Dmytro -
Simple problem with popup message before adding document on system form
Hi all,
We have an AddOn that validates price lines on system Sales Order form matrix, so that if prices fall below a certain value, a popup is show to ask to continue or not, when user presses ADD button.
The problem is that if he chooses yes (to continue), the Sales Order is not added since the button ADD keeps being selected ....
Here is my code:
[B1Listener(BoEventTypes.et_CLICK, true)]
public virtual bool OnBeforeClick(ItemEvent pVal)
int iResult = B1Connections.theAppl.MessageBox("Price lines fall bellow minimum! Continue?", 1, "NO", "YES", "");
if (iResult == 1) // NO
// Show error
B1Connections.theAppl.StatusBar.SetText("OK", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
return false;
// YES: Continue to add Sales Order
return true;
The problem is somehow related with the popup message being shown: if user says YES to continue, the system form does not continue with the standard process of adding the Sales Order (when I move the cursor above the ADD button is shows it already pressed...).
Do I have to do anything more to force the process to continue, when the user says YES?
Regards,
Manuel DiasThtas known problem. The solution for this is declare global variable as boolean, when user selects Yes, then set this variable to true and emulate click to add button again where before the message box check if its varaible sets to true - in this case dont show message box, only set variable to false.
The concept of code will be
dim continue as boolean = false
in item event
if continue = false then
x = messagebox...
if x = 1 then
continue = true
items.item("1").click
end if
else
continue = false
end if -
Simple Problem with Stacked Canvas, I hope
Hello all,
I am become a bit frustrated with what I thought would be a simple form development solution. I am trying to create a form with a stacked canvas that will display about 20 fields that can be scrolled through. This is the detail
Total of 25 fields
5 Fields on the content canvas
20 Fields on the stacked canvas
I created the first canvas that originally contained all 25 fields. Then I created the stacked canvas and moved the appropriate fields to the stacked canvas. Using the forms builder editor, I positioned my stacked canvas as such so that it would not overlap the last field on the content canvas or visa versa. This is a form being developed for Oracle EBus. Whenever I run the form in the apps, the stacked canvas is not visible. It only becomes visible when the 1st field on the canvas has focus. When the stacked canvas becomes visible, it shows all of the items of the stacked canvas and not just the ones that I included in the viewpoint. Once I tab through the last field of the stacked canvas, it goes back to the first field on the content canvas and the stacked canvas disappears. At this point I am not doing anything complicated, but for whatever reason this just is NOT working. Any advice anyone can provide, I would very much appreciate it. This is VERY frustrating.
Thank you in advance.Step No. 1
Set the STACKED CANVAS's property VIEWPORT WIDTH AND VIEWPORT HEIGHT
This property determines what viewable width and height of the stacked canvas at runtime.
Set SHOW HORIZONTAL SCROLL BAR or SHOW VERTICAL SCROLL BAR or BOTH as YES so that you can scroll down to view all the items in the CANVAS.
Step NO.2
In your WHEN-NEW-FORM-INSTANCE trigger, write the code to make the canvas visible
SHOW_VIEW('stack_canvas_name'); -
Having a simple problem with MDK
I am using eclipse+MDK to develop/debug the MAM and MAU applications. I have been using MAM with MDK no problem. About a month ago, I even used MAU with MDK no problem.
But now when I try to run MAU with MDK, the following error occurs only via eclipse, running via MAM alone works fine.
Error: 500
Location: /CMAU/home/home_mgmt.do
Internal Servlet Error:
javax.servlet.ServletException: cannot find message associated with key : dispatcher.forwardException
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:238)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:423)
at 0002fmam0005fstart_0002ejspmam_0005fstart_jsp_0._jspService(_0002fmam_0005fstart_0002ejspmam_0005fstart_jsp_0.java:62)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:479)Hi Ezatullah,
Did you find a solution to ur problem.if yes plz tell what changes u did to make it run I am also facing the same problem..
bye
Anand -
A simple problem with natural join
i have 2 tables what have columns with distinct's names are referenced.
natural join not works 'cose only foreign key reference this 2 tables.
Have something to make table join in using an specific foreign key??
I'm using oracle9i
Example:
table a( a_cod number, a_name varchar2(20))
table b( b_cod number, b_month_year date, b_salary number)
ALTER TABLE b ADD ( CONSTRAINT b_a_FK FOREIGN KEY (b_cod)
REFERENCES a (a_cod));
select * from a natural join b
where trunc(b_month_year) = trunc(sysdate)I'm not express me correctly.
We have 2 tables like this:
CREATE TABLE PPTBA001
PPA001_GROUP NUMBER(3) NOT NULL,
PPA001_PEOPLECODE VARCHAR2(20 BYTE) NOT NULL,
PPA001_NAME VARCHAR2(60 BYTE) NOT NULL,
PPA001_DATEOFBIRTHDAY DATE NOT NULL);
CREATE TABLE CLTBA001
CLA001_GROUP NUMBER(3) NOT NULL,
CLA001_CLIENTCODE VARCHAR2(20 BYTE) NOT NULL,
CLA001_SITUATION NUMBER(1) DEFAULT 1);
SELECT * FROM PPTBA001 NATURAL JOIN CLTBA001;
ALTER TABLE CLTBA001 ADD (
CONSTRAINT CLA001_PPAA001_FK1 FOREIGN KEY (CLA001_GROUP, CLA001_CLIENTCODE)
REFERENCES PPTBA001 (OFA001_GROUP,OFA001_PEOPLECODE));
the select returns without results. 'cose does not have columns like same name.
Natural join use a columns with same name. I need something use an foreign key.
Why?? Now i have a problem .. i need aggregate one more column in primary key
and i need change all selects that have join with PPTBA001 and put manualy a new column.. if have a other possibility like natural join to using a foreign key to join the selects problems is so more easy to resolve.
Message was edited by:
jonas.lima -
A few simple problems with dreamweaver 8
Hello,
Please watch these 20 second clips so you can see my problem.
First video (quite fuzzy, sorry):
http://tinypic.com/player.php?v=qsp10x&s=5
I want it so it goes down 1 line instead of 2 lines at a
time..
Second video:
http://tinypic.com/player.php?v=8wgt93&s=5
I want to put something in that massive area next to the
buttons table area, but it keeps going underneath..Hello,
I don't think I've seen screenshot video showing a question
before. Clever.
1. Use CSS to set the margins for the <p> tags.
p {margin: 0px;}
or
p {margin: 0.2em 0em}
Adjust as needed.
2. That's how HTML works. Elements follow the normal flow and
block level
elements, like a table, usually begin on a new "line."
You could make the table with your navigation in it a 2
column table.
Insert the navigation in the first column.
Insert a new table in the second column.
Then, the new table will sit to the right of the navigation.
You could also use divs and CSS to float them next to each
other.
Your best bet is to set DW aside for a little while and learn
HTML and CSS.
DW will be far easier to use if you understand how HTML
works.
Then you'll understand why things happen like they do, what
is possible and
how to do it.
If you don't, DW will be a very frustrating adventure with a
hard learning
curve.
A good place to start:
http://www.w3schools.com/
Take care,
Tim
"jimmyharr" <[email protected]> wrote in
message
news:gn77dk$82e$[email protected]..
> Hello,
>
> Please watch these 20 second clips so you can see my
problem.
>
> First video (quite fuzzy, sorry):
>
[url]http://tinypic.com/player.php?v=qsp10x&s=5[/url]
> I want it so it goes down 1 line instead of 2 lines at a
time..
>
> Second video:
>
[url]http://tinypic.com/player.php?v=8wgt93&s=5[/url]
> I want to put something in that massive area next to the
buttons table
> area,
> but it keeps going underneath..
> -
Must be simple problem with wiring...surely??
Hi all,
I've just moved into a new house and it has a VERY simple phone wiring. Master socket in the kitchen, and internal wiring that goes to one further socket in the living room.
I can not get my router working on either of the sockets. The only one it works on is the test socket behind the faceplate at the socket.
I have attached some photos in case anyone can spot the problem..?
Any help greatfully recieved!@ imjolly
Thanks for that. I didn't realise.......
It does occur to me though that if one end of the cable has been wired in the "old style", then it seems unusual that the other end isn't wired the same, as presumably it would have been carried out by the same person ?
If you found this post helpful, then please click the star on the left, after all, I'm only trying to help........
Maybe you are looking for
-
Hello, i am having the following problem... "iTunes could not copy "Beethoven's Symphony No 9 (from "A Clockwork Orange")" to iPhone "Heywood Floyd's iPhone" because the file could not be read or written" [ ... and yes, Heywood Floyd is an avatar nam
-
Attached file in receiver mail scenario and ConvertCRLFfromToLF
Hi, I have a problem attaching a text file in a receiver mail channel. I use mail package, and I've created a UDF to create field content with: for (int j=0;j<a.length;j++) b = b + a[j] + "\n" ; result.addValue(b); In my receiver CC, I have config
-
HP Photosmart D110 - detail missing when printing tickets and statements
When printing on line tickets or bank statements, the form itself (heading, column heads, etc) prints, but the personal detail data that is on the form does not show. The print preview screen shows all the data. There is no error message. Printer
-
Mixed signal graph : Legend udate problem
When manipulating the graph in diagram window with properety nodes like example "Plot Visible", the legend of the mixed signal diagram will not be updated. Only when refreshing the front panel by scrolling with the mouse up or down, the legend is cor
-
I need help installing os. i erased my hd and now?
i erased my hard drive now it tells me that i cant install os from the disk