小编Dav*_*all的帖子

更改MovieClip的父级

我想分离一个movieclip并将其附加到其他地方,但在AS2中似乎不可能.

我正在寻找一个AS2相当于可可的中addSubview/ removeFromSuperview.

是否有替代路线可去,例如用新父母复制电影......这可能吗?

flash actionscript-2 flash-cs3 movieclip

1
推荐指数
1
解决办法
1829
查看次数

关注jQuery语法

我的文本框中有textmode作为我的gorm中的多行.我必须通过jQuery将css应用于该文本框.因为我使用了以下脚本.

 $(document).ready(function() {
                $('input[type=textarea]').addClass("INPUT");

                });
Run Code Online (Sandbox Code Playgroud)

上面的脚本中是否有语法问题.任何人都可以帮忙吗?

jquery

1
推荐指数
1
解决办法
70
查看次数

理解matrix.transition(); AS3

我试图了解Matrix类中的方法转换.我用它来复制bitMapData的片段.但我需要更好地了解转换的作用.

我有一个瓷砖表,上面有3个图像.所有30x30像素.总位图的宽度为90pxs.

第一个瓷砖是绿色,第二个是棕色,第三个是黄色.如果我使用转换的矩阵移动超过30pxs,而不是变成棕色,我会变黄,如果我移动超过60px,我会变成棕色.

如果我移动-30像素,那么顺序是正确的.我对发生的事感到困惑.

tileNum -= (tileNumber * tWidth);
theMatrix = new Matrix();
theMatrix.translate(tileNum,0);
this.graphics.beginBitmapFill(tileImage,theMatrix);
this.graphics.drawRect(0, 0,tWidth ,tHeight );
this.graphics.endFill();
Run Code Online (Sandbox Code Playgroud)

有人可以告诉我转换是如何工作的,或者是一些显示它们如何工作的资源.我最终想知道在每个瓷砖之间来回切换的好方法.

math bitmap matrix actionscript-3

1
推荐指数
1
解决办法
5239
查看次数

如何在vb.net中的DataGridView中填充组合框列?

我的DataGridView包含三列,列类型是复选框,文本框和组合框.

当检查同一行中的复选框时,如何加载行的组合框?

vb.net datagridview

1
推荐指数
1
解决办法
5万
查看次数

如何在Silverlight 4中设置网格的圆角内角

我需要使用silverlight 4在网格控件内设置圆角.

当我尝试做这样的事情时:

<Border BorderThickness="2" BorderBrush="#FF3EA9F5" Grid.Row="1" CornerRadius="5,5,0,0" Height="10" VerticalAlignment="Bottom">
   <Grid  x:Name="Phani1" Width="auto"> </Grid>
</Border>
Run Code Online (Sandbox Code Playgroud)

我能够看到网格外的圆角.但是我希望网格从外边框显示为矩形.但是网格的内角应该显示为圆角.

如果有人对此有任何想法,请告诉我如何做到这一点.

silverlight silverlight-4.0

1
推荐指数
1
解决办法
4773
查看次数

NSIS静默安装(通过代码启动)

我正在尝试构建一个NSIS安装程序,它将执行以下操作:

1当正常运行时,它将使用具有常规选项的安装程序安装应用程序.

2当使用/ S开关运行安装程序时,它会进行静默安装,如果它显示UI则没问题.但它应该是自动的.

在我看来,安装程序"工作",因为它运行,然后再次正确启动应用程序.但它没有更新任何东西,它几乎就像它运行,但不复制任何文件.

当它是静默安装时,它由以下代码启动(应用程序更新自身)

    ProcessStartInfo Pro = new ProcessStartInfo();
    Pro.Verb = "runas";
    Pro.UseShellExecute = true;
    Pro.FileName = gDownloadedFileName;
    Pro.Arguments = "/S";
    Pro.WindowStyle = ProcessWindowStyle.Normal;
    Pro.CreateNoWindow = true;
Run Code Online (Sandbox Code Playgroud)

NSIS脚本主(我可以发布NSIS的支持脚本,如果ppl需要自定义)

; example2.nsi
;
; This script is based on example1.nsi, but it remember the directory, 
; has uninstall support and (optionally) installs start menu shortcuts.
;
; It will install example2.nsi into a directory that the user selects,
!include MUI.nsh
!include fileassoc.nsh
!include Silent.nsh


!define _AppName "My application"
!define _AppExe …
Run Code Online (Sandbox Code Playgroud)

c# installer nsis

1
推荐指数
1
解决办法
4203
查看次数

什么是"时间跨度?" 在c#中意味着什么?

问号在变量的末尾意味着什么?

TimeSpan? begin = // bla bla bla
Run Code Online (Sandbox Code Playgroud)

编码语言是c#

c# variables nullable

1
推荐指数
1
解决办法
501
查看次数

DataGridView中的CellClick事件和SelectionChanged事件

Windows Froms DataGridView控件中的CellClick事件和SelectionChanged事件有什么区别?

当确切的选择更改事件运行时:在表单加载事件之前或之后?

c# events datagridview winforms

1
推荐指数
1
解决办法
8646
查看次数

如何通过浏览器访问包含URL编码的文件名?

"%20%20.txt"在我的网站空间创建了一个名为和上传的文件名.

当我尝试通过键入URL来访问上述文件时"http://mysite/%20%20.txt",它显示错误,找不到该文件.我知道这"%20"将被解码为空白区域.

如何通过URL访问文件?

html browser apache

1
推荐指数
1
解决办法
1930
查看次数

Gridview没有更新值

我试图让我的gridview更新一个SQL记录,但它没有更新值.

这是aspx代码:

<asp:GridView ID="GridView1" runat="server" GridLines="None" AutoGenerateColumns="false" 
    onrowcancelingedit="GridView1_RowCancelling" 
    OnRowDeleting ="GridView1_RowDeleting" 
    onrowediting="GridView1_RowEditing"
    onrowupdating="GridView1_RowUpdating" 
    DataKeyNames="RID"
    CssClass="mGrid" 
    PagerStyle-CssClass="pgr"  
    AlternatingRowStyle-CssClass="alt">  


      <Columns>           

         <asp:TemplateField Visible="false" HeaderText="RID">
            <ItemTemplate>
              <asp:Label runat="server" ID="RID" Text='<%#Bind("RID")%>' />
            </ItemTemplate>
         </asp:TemplateField>

         <asp:TemplateField HeaderText="Short Description">
            <ItemTemplate>
              <asp:Label runat="server" ID="short_lbl" Text='<%#Bind("SHORT_DESCRIPTION") %>' />
            </ItemTemplate>
            <EditItemTemplate>
            <asp:TextBox runat="server" ID="SHORT_DESCRIPTION" Text='<%#Bind("SHORT_DESCRIPTION") %>' />
            <asp:RequiredFieldValidator runat="server" ID="valShort" ControlToValidate="SHORT_DESCRIPTION" ValidationGroup="var1" ErrorMessage="*" />
            </EditItemTemplate>
         </asp:TemplateField>


              <asp:TemplateField HeaderText="Description">
            <ItemTemplate>
              <asp:Label runat="server" ID="desc_label" Text='<%#Bind("DESCRIPTION") %>' />
            </ItemTemplate>
            <EditItemTemplate>
            <asp:TextBox runat="server" ID="DESCRIPTION" Text='<%#Bind("DESCRIPTION") %>' />
            <asp:RequiredFieldValidator runat="server" ID="valLast" ControlToValidate="DESCRIPTION" ValidationGroup="var1" ErrorMessage="*" />
            </EditItemTemplate> …
Run Code Online (Sandbox Code Playgroud)

c# asp.net gridview visual-studio

1
推荐指数
1
解决办法
5464
查看次数