谁能帮我解释下这段AS代码:急onClipEvent (load){function speed(num){speedX = -(_root._xmouse - hx) / num / 2;return (speedX);} // End of the functionfunction trans(){p = p + speed(100);range = (p + 291) * 3.141593E+000 / 180;re1 = Math.si

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 04:05:06

谁能帮我解释下这段AS代码:急onClipEvent (load){function speed(num){speedX = -(_root._xmouse - hx) / num / 2;return (speedX);} // End of the functionfunction trans(){p = p + speed(100);range = (p + 291) * 3.141593E+000 / 180;re1 = Math.si
谁能帮我解释下这段AS代码:急
onClipEvent (load)
{
function speed(num)
{
speedX = -(_root._xmouse - hx) / num / 2;
return (speedX);
} // End of the function
function trans()
{
p = p + speed(100);
range = (p + 291) * 3.141593E+000 / 180;
re1 = Math.sin(range) * r;
re2 = Math.cos(range) * a;
} // End of the function
function property()
{
trans();
setProperty("",_x,hx + re1);
setProperty("",_alpha,re2 + 70);
setProperty("",_yscale,re2 + 70);
setProperty("",_xscale,re2 + 70);
this.swapDepths(_alpha);
} // End of the function
hx = this._parent.stageWidth / 2;
hy = this._parent.stageHeight / 2;
r = 100;
a = 30;
}
onClipEvent (enterFrame)
{
property();
}

谁能帮我解释下这段AS代码:急onClipEvent (load){function speed(num){speedX = -(_root._xmouse - hx) / num / 2;return (speedX);} // End of the functionfunction trans(){p = p + speed(100);range = (p + 291) * 3.141593E+000 / 180;re1 = Math.si
这是 VB写的 调用Word 填充数据的.
On Error Resume Next
Dim ex As Application '声明
Set ex = CreateObject("word.application") '创建Word对象
ex.Visible = True '让Word可见
Set woreddoc = ex.Documents.Add '添加一个新文档
ex.Caption = "数据库原理概论试卷" '文档标题名
ex.Application.Selection.Range.ParagraphFormat.Alignment = wdAlignParagraphCenter '字体居中
ex.Application.Selection.Font.Size = 14
ex.Application.Selection.Font.Spacing = 1
ex.Application.Selection.Font.Bold = 20 '上面设置字体字号的
ex.Application.Selection.Range.Text = Text.Item(1).Text '从text的项目1获取数据 text 应该是个 combo 或listbox
ex.Application.Selection.EndKey '移到结尾
ex.Application.Selection.Range.InsertAfter (Text2.Item(1).Text) + Chr(13) '再填充 加个回车
ex.Application.Selection.Range.InsertParagraphAfter
ex.Application.Selection.EndKey
ex.Application.Selection.MoveDown
ex.Application.Selection.EndKey
ex.Application.Selection.Range.InsertParagraphAfter
ex.Application.Selection.MoveDown
ex.Application.Selection.MoveDown '下跳
ex.Application.Selection.Paragraphs.Last.Range.Font.Size = 12
ex.Application.Selection.Paragraphs.Last.Range.Font.Bold = 0 '再设置字体 字号
k = ex.Application.Selection.Tables.Add(ex.Application.Selection.Range,2,8,0,0) '这里画了个两行 8列的 表
ex.Application.Selection.Tables.Item(1).Columns.Item(1).Cells.Item(1).Range.InsertAfter ("题型") '1行1列 填充
ex.Application.Selection.Tables.Item(1).Columns.Item(1).Cells.Item(2).Range.InsertAfter ("分数") '1行2列填充
ex.Application.Selection.MoveDown
ex.Application.Selection.Tables.Item(1).Columns.Item(2).Cells.Item(1).Range.InsertAfter ("一")
ex.Application.Selection.Tables.Item(1).Columns.Item(3).Cells.Item(1).Range.InsertAfter ("二")
ex.Application.Selection.Tables.Item(1).Columns.Item(4).Cells.Item(1).Range.InsertAfter ("三")
ex.Application.Selection.Tables.Item(1).Columns.Item(5).Cells.Item(1).Range.InsertAfter ("四")
ex.Application.Selection.Tables.Item(1).Columns.Item(6).Cells.Item(1).Range.InsertAfter ("五")
ex.Application.Selection.Tables.Item(1).Columns.Item(7).Cells.Item(1).Range.InsertAfter ("六")
ex.Application.Selection.Tables.Item(1).Columns.Item(8).Cells.Item(1).Range.InsertAfter ("总分") '这里添完
ex.Application.Selection.MoveDown
ex.Application.Selection.MoveDown '下条
ex.Application.Selection.Range.InsertParagraphAfter
ex.Application.Selection.MoveDown
ex.Application.Selection.Range.ParagraphFormat.Alignment = wdAlignParagraphLeft
ex.Application.Selection.Paragraphs.Last.Range.Font.Size = 10
ex.Application.Selection.Paragraphs.Last.Range.Font.Bold = 10 '设置字体字号
ex.Application.Selection.Range.InsertParagraphAfter
ex.Application.Selection.Range.InsertAfter ("填空(20分)") '再填充
ex.Application.Selection.MoveDown
ex.Application.Selection.Range.InsertParagraphAfter

谁能帮我解释下这段AS代码:急onClipEvent (load){function speed(num){speedX = -(_root._xmouse - hx) / num / 2;return (speedX);} // End of the functionfunction trans(){p = p + speed(100);range = (p + 291) * 3.141593E+000 / 180;re1 = Math.si c#,给我解释下这段代码括号里的是什么意思 flash怎么制作 用重力感应控制小球运动,求AS代码 制作过程.急只要求怎么做 如何放到手机里实现 这个我会 代码 代码 代码 求大神解释下面这串代码的算法实现过程,和代码讲解代码很长,谁能帮我请留邮箱 谁帮我解说下AS的代码stop(); // 解释以下代码的含义,代码很简单代码很简单Private Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow A sub声明 帮忙解释下这段代码的意思,Sub xiex(startX As Single,endX As Single,_startY As Single,endY As Single,Xstep As String,_ystep As Single,picX As Single,picY As Single)Picture1.ClsDim XX As SingleXX = startY + ystepFor i = startX To e [急求]谁能帮我查一下“孙”字的汉字代码是什么? 帮我解释下下面这段代码的意思 给我解释下这段代码的意思.datatime { float:right;margin-top:-22px; margin-right:10px;} 谁帮我解释下面的代码,最好能每个英文都解释为中文, 我是代码的菜鸟,谁能帮我翻译,小弟感激不尽!body{.tabs{.selectTab,.unselectTab{.unselectTab{ 谁能帮我解释哈下面这段代码的意思?StreamWriter newStream = File.CreateText(C:\newfile.txt); vb中Check的Value属性是什么意思Private Sub opt1_Click(Index As Integer)If opt1(0).Value = True ThenFor i = 0 To 31Check1(i).Value = 1NextElseFor i = 0 To 31Check1(i).Value = 0NextEnd IfEnd Sub方便的话帮我解释下这段代码吧 谁能解释下这段as代码//使用“,”运算符并示例运算符的优先级var v:Number = 0; v = 4,5,6; trace(v); // 4 var t:Number = 0; t = (4,5,6); trace(t); // 6 我主要不理解trace(v);这是干嘛的,是在3个数里去最值吗?带 请帮我解释这段VB代码的含义(很简单)Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)If Button = 2 Then Form1.PopupMenu mnePop,4End Sub这段里面的mousedown是什么意思?还有PopupMenu后面为 谁能帮我解释下我抄来的Flash代码的含义啊 急//the following 4 sections contain the data//for each menu item/* 0 */var image0title:String = Summer salad;var image0desc:String = Butter lettuce with apples,blood orange segments,gorgon 解释每行代码含义create trigger biufer_employee__job_idbefore insert or updateof job_idon employeereferencing old as old_valuenew as new_valuefor each rowwhen (new_value.job_id3 )begin:new_value.commission_pct :=0;end; 英语翻译有没有解释VC的代码的中文意思的东西?英文我实在看不懂.