Bitmap Fill is not working as thought
I am working on a simple target game. I have a class created
that inherits from Sprite called TargetSprite. TargetSprite creates
a resize matrix, sets beginBitmapFill, sets the line type, then
draws a circle, then ends the fill. The problem is that it treats
all the individual targets as if they were all the same draw on the
fill. Is there a way to make it not do this?
I attached my TargetSprite code.
A screenshot of 9 targets can be found here. Also note that
the image seems to be keyed off the underlying Canvas coords
instead of the coords of the Sprite. It would be nice if there was
a setting to make it use the Sprite's coords, or at least to shift
based off the upper left of the Sprite.
Sample
Screenshot
Oops. I put up the wrong screenshot. Here is the right one.
Similar Messages
-
Upgraded IPad to to 8.3, now auto fill is not working. I have checked, rechecked "my info", "saved passwords", etc. to no avail. Is this bug in 8.3. Never did this until I upgraded. Wife is not happy I upgraded!
Auto fill works for me in iOS 8.3.
Try the standard troubleshooting steps in this order:
Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds). No data will be lost.
Restore: Connect your device to iTunes on your computer, backup, and then select Restore to Factory.
See here for more details on restore: https://support.apple.com/en-us/HT201252
If none of these work your device may have developed a hardware problem. Contact Apple Support: http://www.apple.com/contact/ -
[SOLVED]Xmonad bitmap workspace names not working?
I don't have a great deal of space on my screen, so I thought I'd save some by using icons instead of names for my workspaces. I have written my xmonad.hs as closely to every example I've found without redoing my entire xmonad.hs and it still puts '^p(5)^i(/home/nfarley88/.dzenicons/terminal.xbm)^p(5)' instead of the actual bitmap for the workspace title!
import XMonad
import XMonad.Prompt
import XMonad.Prompt.Shell
import XMonad.Prompt.Man
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig
import XMonad.Hooks.UrgencyHook
import XMonad.Layout
import XMonad.Layout.Grid
import XMonad.Layout.Accordion
import XMonad.Layout.Tabbed
import XMonad.Layout.PerWorkspace
import XMonad.Layout.NoBorders
import XMonad.Layout.IM
import XMonad.Layout.Named
import XMonad.Actions.CycleWS
import XMonad.Actions.MouseGestures
import qualified XMonad.StackSet as W
import qualified Data.Map as M
import Data.Ratio ((%))
import Graphics.X11.Xlib
--import XMonad.Actions.NoBorders
import System.IO
fgColor = "#FF0000"
bgColor = "#000000"
wrapBitmap bitmap = "^p(5)^i(" ++ myBitmapsPath ++ bitmap ++ ")^p(5)"
w1 = wrapBitmap ".dzenicons/terminal.xbm"
w2 = wrapBitmap ".dzenicons/terminal.xbm"
w3 = wrapBitmap ".dzenicons/terminal.xbm"
terminality = (myWorkspaces !! 0)
internet = (myWorkspaces !! 1)
instantmessaging = (myWorkspaces !! 2)
myWorkspaces :: [String]
myBitmapsPath = "/home/nfarley88/"
myWorkspaces = clickable . (map dzenEscape) $ [ w1, w2, w3 ]
where clickable l = [ "^ca(1,xdotool key super+" ++ show (n) ++ ")" ++ ws ++ "^ca()" |
(i,ws) <- zip [1..] l,
let n = i ]
wrapBitmap bitmap = "^p(5)^i(" ++ myBitmapsPath ++ bitmap ++ ")^p(5)"
myManageHook = composeAll
[ className =? "Chromium" --> doShift internet
, className =? "Firefox" --> doShift internet
, className =? "Pidgin" --> doShift instantmessaging
--, appName =? "Buddy List" --> doFloat
--, manageDocks
myLayoutHookinternet = named "Tabbed" (noBorders tabs)
||| noBorders Full
||| Mirror tiled
||| tiled
where
tabs = tabbedBottom shrinkText oxyDarkTheme
-- default tiling algorithm partitions the screen into two panes
tiled = Tall nmaster delta ratio -- see how there's 3 arguments to "Tall"
-- The default number of windows in the master pane
nmaster = 1
-- Default proportion of screen occupied by master pane
ratio = 1/2
-- Percent of screen to increment by when resizing panes
delta = 3/100
oxyDarkTheme = defaultTheme { inactiveBorderColor = "#aaaaaa"
, activeBorderColor = "#000000"
, activeColor = "#000"
, inactiveColor = "#000000"
, inactiveTextColor = "#aaaaaa"
, activeTextColor = "red"
, fontName = "xft:nu-8"
, decoHeight = 8
, urgentColor = "#ffff00"
, urgentTextColor = "#63b8ff"
myLayoutHook = avoidStruts $ terminal $ www $ instantmessage $ layoutHook defaultConfig
where
terminal = onWorkspace terminality ( Grid ||| Full)
www = onWorkspace (myWorkspaces !! 1) ( avoidStruts $ myLayoutHookinternet )
instantmessage = onWorkspace instantmessaging (withIM (1%7) sidepanel (Mirror (GridRatio (1/1))))
where
sidepanel = (ClassName "Pidgin") `And` (Role "buddy_list") `And` (Not (Role "convsersation")) --(Title "Buddy List")
myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
[ ((modm, button1), (\w -> focus w >> mouseMoveWindow w
>> windows W.shiftMaster))
, ((modm, button2), (\w -> focus w >> windows W.shiftMaster))
, ((modm, button3), (\w -> focus w >> mouseResizeWindow w
>> windows W.shiftMaster))
myStatusBar = "dzen2 -x '0' -y '0' -h '16' -w '590' -ta 'l' -fg '#FFFFFF' -bg '#000000' -fn '-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*'"
conkyStatsBar = "conky -c .conkyrc_console | dzen2 -x '590' -y '0' -h '16' -w '485' -ta 'r' -fg '#FFFFFF' -bg '#000000' -fn '-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*'"
conkyClockBar = "conky -c .conkyrc_clock | dzen2 -x '1075' -y '0' -h '16' -w '120' -ta 'r' -fg '#FFFFFF' -bg '#000000' -fn '-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*'"
myLogHook h = defaultPP
ppCurrent = wrapFgBg "#3EB5FF" "black" -- . pad
--, ppVisible = dzenColor "white" "black" . pad
--, ppHidden = dzenColor "white" "black" . pad
--, ppHiddenNoWindows = dzenColor "#444444" "black" . pad
, ppUrgent = wrapBg myUrgentWsBgColor--dzenColor "red" "yellow" -- . pad
, ppWsSep = "^bg(" ++ myBgBgColor ++ ")^r(1,15)^bg()"
, ppSep = " | "
, ppTitle = (\x -> " " ++ wrapFg myTitleFgColor x) --("" ++) . dzenColor "white" "black" . dzenEscape
, ppOutput = hPutStrLn h
where
wrapFgBg fgColor bgColor content= wrap ("^fg(" ++ fgColor ++ ")^bg(" ++ bgColor ++ ")") "^fg()^bg()" content
wrapFg color content = wrap ("^fg(" ++ color ++ ")") "^fg()" content
wrapBg color content = wrap ("^bg(" ++ color ++ ")") "^bg()" content
wrapBitmap bitmap = "^p(5)^i(" ++ myBitmapsPath ++ bitmap ++ ")^p(5)"
myTitleFgColor = "#FF0000"
myBgBgColor = "#00FF00"
myUrgentWsBgColor = "#00FF00"
main = do
--xmproc <- spawnPipe "/usr/bin/xmobar /home/nfarley88/.xmobarrc"
workspaceBar <- spawnPipe myStatusBar
spawn conkyStatsBar
spawn conkyClockBar
xmonad $ withUrgencyHook NoUrgencyHook $ defaultConfig
{ --workspaces = ["terminality", "internet", "IM", "4", "5", "6", "7", "8"]
workspaces = myWorkspaces
, manageHook = manageDocks <+> myManageHook <+> manageHook defaultConfig
, layoutHook = myLayoutHook
, logHook = dynamicLogWithPP $ myLogHook workspaceBar
, modMask = mod4Mask --rebind Mod to the Windows key
, terminal = "urxvt"
, focusedBorderColor = "#000000"
--, mouseBindings = myMouseBindings
} --`additionalMouseBinding`
--[ ((mod4Mask .|. shiftMask, button3), mouseGesture gestures)
`additionalKeys`
[ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock")
, ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s")
, ((0, xK_Print), spawn "scrot")
, ((mod4Mask, xK_u), focusUrgent )
, ((mod4Mask , xK_b ), sendMessage ToggleStruts)
, ((mod4Mask .|. shiftMask, xK_r), spawn "killall conky dzen2 && xmonad --recompile && xmonad --restart")
-- Application launching keys
, ((mod4Mask , xK_p ), spawn "dmenu_run")
, ((mod4Mask , xK_g ), spawn "chromium")
, ((mod4Mask , xK_f ), spawn "firefox")
, ((mod4Mask , xK_i ), spawn "pidgin")
] `additionalKeysP`
[ ("<XF86Calculator>", toggleWS)
The conky dzen has icons working. I cannot understand why it's not working!
Any help would be greatly appreciated.
PS some of the options are a bit strange (colour choices and such); I have some odd ones so I know what affects what.
Last edited by Rubbishbook (2011-08-20 00:15:52)I've fixed it! A combination of https://bbs.archlinux.org/viewtopic.php?id=108968 and http://pastebin.com/hXD9YDRW. For reference, here are the bits that changed:
myWorkspaces :: [String]
myBitmapsPath = "/home/nfarley88/"
myWorkspaces = clickable $ [ " ^i(/home/nfarley88/.dzenicons/terminal.xbm) ", " ^i(/home/nfarley88/.dzenicons/internet.xbm) ", " ^i(/home/nfarley88/.dzenicons/im.xbm) " ]
where clickable l = [ "^ca(1,xdotool key super+" ++ show (n) ++ ")" ++ ws ++ "^ca()" |
(i,ws) <- zip [1..] l,
let n = i ]
wrapBitmap bitmap = "^p(5)^i(" ++ myBitmapsPath ++ bitmap ++ ")^p(5)"
and
myLogHook h = defaultPP
{ ppOutput = hPutStrLn h
, ppSep = ""
, ppWsSep = ""
, ppCurrent = wrap "^fg(#ffffff)^bg(#60a0c0)" "^fg()^bg()"
, ppUrgent = wrap "^fg(#ffffff)^bg(#aff73e)" "^fg()^bg()"
, ppVisible = wrap "^fg(#b8bcb8)^bg(#484848)" "^fg()^bg()"
, ppHidden = wrap "^fg(#b8bcb8)^bg(#484848)" "^fg()^bg()"
, ppHiddenNoWindows = wrap "^fg(#484848)^bg(#000000)" "^fg()^bg()"
, ppTitle = wrap "^fg(#9d9d9d)^bg(#000000)" "^fg()^bg()" . wrap "" " ^fg(#a488d9)>^fg(#60a0c0)>^fg(#444444)>"
, ppLayout = wrap "^fg(#60a0c0)^bg(#000000)" "^fg()^bg()" -
I have a new iMac with Lion OSX. In Safari, I checked the box for auto fill to populate my demographic info in websites from Address Book. It does not work. Any suggestions?
I am still using Snow Leopard on my iMac. I've done all that with the address book and Safari autofill preferences. I've had it that way for years, but in recent times, it seems to be completely useless, as every time I try to autofill a web form, all I get is this error dialog:
"AutoFill completes webpage forms using information from your Address Book card or from web forms you completed previously. The information required by this form does not match any of the information available to AutoFill"
Luckily, I use 1Password3 and don't have to rely on the random usability of the Safari autofill feature, but it would be good to know just what happened to make it so useless. -
ok, second question (still no free sex for a correct answer, sorry)
My i-book G4, which I bought used, does not seem to have an auto fill capability. I have looked in System Preferences but do not see anything regarding autofill. Any ideas?
Signed 'tired of typing my email addy' in VermontI also have "Other Forms" checked in Safari, so that shouldn't keep it from working.
I may be wrong about this, but I think autofill may work better on some sites than on others. It seems that with my mailing address, I have to fill it out manually sometimes, and other times it will autofill. Also, if you delete cookies, you have to fill in manually. At least in the OS I am running, which is not the one you would be running.
Good luck! -
Fit to fill edits not working correctly
When I do a fit to fill edit about 2/3 of the clip is slowed or speeded as required then it stops with the last 1/3 taken up by a freeze frame based on the frame where the clip has stopped. Any ideas?
Thanks HenryTom
Thanks for writing back. I think I am begining to get it! It is about using files that have a coherrent set of characteristics for the editor to work with. I have now actually managed to make some pal files function on fit to fill properly. The clips that I am working with were originaly recorded with these characteristics:
File type: AVI. Recorded with NSTC setting on camera. 30fps. 1.3mb/s pixel aspect square. Field dominance none. Alpha None / ignore.Composite normal. Audio 1 mono. Audio rate 8.0 Khz.Audio format 32 bit floating point. (I do not want to use the audio.)
Can you please tell me what is the best FCE setup for this type of file and or what does the file need to become to work well in the FCE envronment.
Whilst the FCE handbook is very good about how to do things in the program it is vague about what filetypes function well. I feel like I have been blundering around in the dark.
Best Henry -
Adobe Flash CS6 Image Filling Preloader not working?
I'm trying to make a flash preloader using a image that slowly fills up.
I used the tutorial on this site:
http://flashexplained.com/preloaders/creating-a-preloader-for-your-flash-site-using-the-im age-of-a-bottle-and-a-rectangular-mask/
I tried following the instructions until I finished and saw it wasn't working correctly. When i tried testing by simulating internet speed the screen showed blank for the first few seconds until the image loaded already half-way filled up. It's supposed to load completely transparent and slowly fill up from the bottom.
So, I downloaded the source file from the tutorial link i showed above to see if i had dont something wrong while following the instructions only to find it happens there too... I uploaded a video of my screen on Youtube to show what is happening to me:
Does anybody know why this is happening? Could it maybe be because I'm using the newer Adobe CS6? Any help is appreciated.The code is:
stop();
rectMask_mc._height = 1;
this.onEnterFrame = function():Void {
var loadedData:Number = this.getBytesLoaded();
var allData:Number = this.getBytesTotal();
var percent:Number = Math.round(loadedData/allData*100);
rectMask_mc._yscale = percent;
if (loadedData>=allData) {
gotoAndStop(10);
delete this.onEnterFrame;
I did a little testing and noticed when I deleted the line "rectMask_mc._height = 1;" it still does the same filling animation I got before that starts halfway.. so I'm guessing that command no longer works in CS6?!
Edit:
I just tried the "rectMask_mc._height = 1;" command by itself and it works...
I'm sorry im just new to Flash, trying to learn the basics and reading up on tutorials but they are all outdated so I'm trying to figure out whats the problem with it not loading with its height at "1" then filling up when I'm using the entire code. The height command only works when I delete the rest of the code. -
Browser Fill does not work at all...
Hello all,
I am veryfrustrated at the moment, and maybe I am missing something, but I cannot get the browser fill to apply any type of image at all. I am working on MAC OSX Mountain Lion, I have started numerous new sites with the same result. I am designing a site for a tablet. When I select Browser Fill and navigate to a file I would like as a background, select it and nothing happens. I have tried all different types of files, .jpg's, .gif's, .png's, .bmp's and tried changing the setting in the browser fill menu such as fill, fit and original size, and also the alighnment. I get nothing. It also does nothing on phone layout, but supprisingly it will place and fill on Desktop Layout.
Is there something I'm missing? I am so confused.
Thanks in advance for any help.As with the Desktop layout, there is a page on top of the browser fill. Depending on your design, you may want to use a page fill instead (since the browser fill seldom shows on tablets/phones if the page fill is opaque) or set the page fill to none so the browser fill shows through.
-
Google's Auto Fill will not work, how to fix it?
I downloaded Google's tool bar some time ago, the Auto Fill component has never worked.
Try Google Toolbar help. <br />
http://www.google.com/support/forum/p/Toolbar?hl=en -
Mac book pro tracking pad not working any thoughts please
On my mac book pro one year old the track pad has stopped working cursor moves around the screen but unless I press pretty hard of the bottom left hand corner nothing is selected .... Any thought please. Cheers.
Mountain Lion 10.8
Tap to click enabled?
System Preferences > Trackpad > Point & Click
Tap to click -
Not sure what to do? My disk drive will not read my dvd's or audio books. Was working fine till I upgraded my comp with Icloud.
I am a very novice user. Here goesl I have a MacBook Pro 2.53 GHz intel Core i5. 4gb 1067 MHz DDR3.
OSX 10.9 -
Select statement inside a select statement is not working as thought it would.
Hi all,
I have problem in the following programming code:
SELECT ACCT_FD_NO,ACCT_CUST_CODE, STAUS, FDR_STAUS, AMOUNT,INT_RATE ,MATURITY_DATE,(AMOUNT*(INT_RATE/100)/365)no_of_days,
(AMOUNT*(INT_RATE/100)/365)*((TO_DATE(:X_PRM_ST_DT)-TO_DATE(:X_PRM_YR_END_DT)))tot_int FROM KEC_FDACCT_MSTR
WHERE acct_type NOT IN(1,2,3,4,5,6,13,14,15,16,17,18,25,26,27,28,29,30) AND FDR_STAUS='R' AND STAUS='E'
AND ACCT_OPN_DT>:X_PRM_YR_END_DT
AND ACCT_FD_NO IN(SELECT OLD_FDR_NO FROM KEC_FDACCT_MSTR WHERE FDR_STAUS='R' AND acct_type NOT IN(1,2,3,4,5,6,13,14,15,16,17,18,25,26,27,28,29,30)
AND ACCT_OPN_DT>:X_PRM_YR_END_DT);
The following is the Table KEC_FDACCT_MSTR with the columns shown with data.
ACCT_FD_NO
ACCT_CUST_CODE
ACCT_TYPE
ACCT_OPN_DT
FDR_STAUS
STAUS
AMOUNT
INT_RATE
GROUP_TYPE
OLD_FDR_NO
MATURITY_DATE
250289
3
25
07/12/2012
R
E
140,000.00
11.50
12MNS
60002
06/12/2013
250290
3
25
07/12/2012
R
E
140,000.00
11.50
12MNS
60001
06/12/2013
270968
4
27
14/07/2013
M
E
450,000.00
12.50
36MNS
30227
13/07/2016
330516
9
33
08/12/2012
R
E
50,000.00
12.50
36MNS
90001
07/12/2015
320217
11
32
08/12/2012
R
E
50,000.00
12.00
24MNS
90002
07/12/2014
330513
12
33
08/12/2012
R
E
100,000.00
12.50
36MNS
90003
07/12/2015
360017
13
36
01/12/2012
R
E
50,000.00
12.50
36MSH
120002
30/11/2015
360018
15
36
05/12/2012
R
E
100,000.00
12.50
36MSH
120004
04/12/2015
270743
22
27
09/12/2012
R
E
50,000.00
12.50
36MNS
30004
08/12/2015
270744
22
27
09/01/2013
R
E
200,000.00
12.50
36MNS
30112
08/01/2016
270316
25
27
07/12/2012
R
E
70,000.00
12.50
36MNS
30007
06/12/2015
360019
29
36
05/12/2012
R
E
100,000.00
12.50This is the table on which i'm writing the code:
ACCT_FD_NO
ACCT_CUST_CODE
ACCT_OPN_DT
FDR_STAUS
STAUS
AMOUNT
INT_RATE
OLD_FDR_NO
SAP_CODE
MATURITY_DATE
350001
743
17-Nov-10
M
D
200000
12.00
323055
16-Nov-12
350002
734
18-Nov-10
R
D
300000
12.00
100018
323055
17-Nov-12
350003
736
19-Nov-10
R
D
150000
12.00
100015
323055
18-Nov-12
350004
737
20-Nov-10
R
D
500000
12.00
100016
323055
19-Nov-12
350005
735
19-Nov-10
M
D
150000
12.00
323055
18-Nov-12
350006
738
20-Nov-10
M
D
1500000
12.00
323055
19-Nov-12
350007
734
19-Nov-10
R
D
200000
12.00
100013
323055
18-Nov-12
350008
83
30-Nov-10
M
D
50000
12.00
323055
29-Nov-12
350009
136
12-Dec-10
R
D
200000
12.00
100006
323055
11-Dec-12
350010
716
12-Nov-11
M
D
200000
12.00
323055
11-Nov-13
350011
746
16-Nov-12
R
E
200000
12.00
120054
323055
15-Nov-14
350012
731
13-Nov-12
R
E
400000
12.00
290001
323055
12-Nov-14
350013
3,906
10-Sep-13
N
E
100000
12.00
323055
9-Sep-15
350014
3,907
18-Sep-13
N
E
50000
12.00
323055
17-Sep-15
360001
811
4-Oct-10
M
D
100000
12.50
323056
3-Oct-13
360002
535
7-Oct-10
P
D
10000000
12.50
323056
6-Oct-13
360003
527
7-Oct-10
M
D
4000000
12.50
323056
6-Oct-13
360004
54
19-Oct-10
M
D -
Running Windows 2000 and Firefox 3.6 Email does not do search in address field when replying to a sender. Have to manually type each address...
To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step. -
Pattern Fill layer not working out of layer panel
Banging my head against the monitor! All of a sudden I cannot make a Pattern Fill layer from the layer panel (It's greyed out). I can create one from Layer -> New Fill Layer -> Pattern. Can anyone tell me the stupid key I bumped to make this happen. I had just used it yesterday. See attatched.
Thanks in advance!
P.S. I'm in 8bit RGBCan't think of anything I have done since yesterday
Have you loaded MORE patterns? There's an enormous amount in there, See if deleting some or moving them helps- use preset manager for this -
Downloaded and installed uCamPro - if found my cams easliy enought but can't get get images to display. UCamPro website lists my cams (WVC54GCCA) as *supported types under Linksys "common" profiles. Anyone have issues? Support is not very quick on replies so far ... still trying with them...
Any assitance appreciated.
Thx.Try contacting the store support staff at http://www.apple.com/emea/support/itunes/contact.html
Maybe you are looking for
-
Blue Screen with Lightroom 5 - Multiple BSOD Codes
My computer has been extremely stable for the past few years without a single BSOD... Until recently when I updated LR4 to LR5. After a good 15-20minutes within the program, all of a sudden it will BSOD. It does not happen doing ANYTHING else with th
-
Issue in query panel LOV order by
Hi All, I am using Jdev 11.1.1.6 version and Weblogic 10.3.6 version. I am facing an issue which is explained below. I have a screen with query panel and results table. For Ex. Say i have Name in the results table and search paramater as well. Create
-
ITunes freezing (but not always)
Hello, Thought I'd throw this out there and see if anyone can make any sense of it... iTunes lately is freezing shortly after running. I have given it several minutes before closing it forcibly via task manager. Thanks in advance for whatever help yo
-
Creating expandable panels in LiveCycle
I am in the middle of creating a dynamic pdf for my customers. I am offering various products and the information I need from my customers varies for every product. However, I would like to have only 1 pdf form that I can send to every customer and w
-
Polaroid LCD 26" with mac mini
hello everybody, I hooked up my mac mini core duo to a Polaroid lcd using the VGA cable I can see the apple booting up but then I got a blank screen with the no support message...anyone knows whats wrong with it? Mac mini Core duo Mac OS X (10.4.5)