摘要: function Yuan(r:Number ,ang:Number):Sprite { var s:Sprite=new Sprite();//容器画板 var m:Matrix=new Matrix(); m.createGradientBox(2*r,2*r,ang);//矩阵填充盒 s.graphics.beginGradientFill(GradientType.LINEAR,[0xff0000,0x000000], [1,1],[0,255],m); s.graphics.drawCircle(r,r,r); s.graphics.e... 阅读全文
posted @ 2012-02-03 17:41 与时俱进 阅读(991) 评论(0) 推荐(0) 编辑
摘要: package com.android.cist.camera.view; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import android.app.Activity; import android.app.AlertDialog; import android.content.ContentResolver; import android.content.DialogInterface; import 阅读全文
posted @ 2012-02-03 09:09 与时俱进 阅读(9340) 评论(6) 推荐(1) 编辑
摘要: //visa<HTML> <head> <title>Visa Example</title> <script type="text/javascript"> function luhnCheckSum(sCardNum) { var iOddSum = 0; var iEvenSum = 0; var bIsOdd = true; for (var i=sCardNum.length-1; i >= 0; i--) { var iNum = parseInt(sCardN... 阅读全文
posted @ 2012-02-03 09:03 与时俱进 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: 添加当重力变化时的处理函数在创建监听器时调用的函数 doSomething(x, y, z) 是自己定义的方法。当手机倾斜方向改变时,监听器会调用该方法。我们要做的,就是填充该方法,用于在重力发生变化时进行我们自己的处理。当 x=y=0 时,手机处于水平放置状态。当 x=0 并且 y>0 时,手机顶部的水平位置要大于底部,也就是一般接听电话时手机所处的状态。当 x=0 并且 y<0 时,手机顶部的水平位置要小于底部。手机一般很少处于这种状态。当 y=0 并且 x>0 时,手机右侧的水平位置要大于左侧,也就是右侧被抬起。当 y=0 并且 x<0 时,手机右侧的水平位置要小 阅读全文
posted @ 2012-02-03 08:53 与时俱进 阅读(1169) 评论(0) 推荐(0) 编辑
摘要: 001 /** 002 * Copyright 2010 Fuchun. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "Lic... 阅读全文
posted @ 2012-02-03 08:50 与时俱进 阅读(1992) 评论(0) 推荐(1) 编辑
摘要: /*** Copyright (C) 2009-2010 Yichuan, Fuchun All rights reserved.* Licensed to the Apache Software Foundation (ASF) under one or more* contributor license agreements. See the NOTICE file distributed with* this work for additional information regarding copyright ownership.* The ASF licenses this file 阅读全文
posted @ 2012-02-03 08:46 与时俱进 阅读(2435) 评论(0) 推荐(1) 编辑
友情链接:同里老宅院民居客栈