English 中文(简体)
灵活性——为什么这些方法在我的日期物体上找不到?
原标题:Flex - why are these methods not found on my Date objects?

我正试图编纂一些示范行动守则。 弹性体(Flash Buildinger 4.6) 我进口了一个项目夹(申请是PurePDF实例)。

在几个地方,我在研究来文方档案时有黄色的“吗?”字塔,尽管还没有警告或错误表明它们尚未收到(我正在处理其他错误)。

这是一种例子——当我把“吗?”一字不提时,我看到没有界定的财产获得。 时间:

最后——时间 = 新的日期。

另一种说法是,没有定义的财产可以取得StackTrace()

catch ( e: Error ) { trace( e.getStackTrace() ); }

我清理了我提到的错误,这些黄色的“吗?”的标志在阅读守则时仍然出现。 问题窗口没有警告或错误,但我所描述的这些问题仍然存在。 即使我关闭了档案,清理了该项目并重新打开档案。

问题回答

它把一个问题与“法什建筑商”联系在一起。 接下去的任何途径:

new Date().time

而不是

new Date().getTime()

getTime() is a method of the Date class; getStackTrace() is a method of the Error class.

• 确保你进口这两个高级班子:

import Error
import Date




相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

热门标签