---
title: "actionscript中获取函数的名称"
author: "floydd"
date: "2008-05-27T16:03:00Z"
tags: []
slug: "actionscript"
draft: false
lastmod: "2011-12-26T12:03:05Z"
id: 1326374
url: "https://floydd.iteye.com/blog/1326374"
---

![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)functiongetFunctionName(func,context)...{  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)for(aincontext)...{  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)if(func==context\[a])...{  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)returna;  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)}  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)}  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)}  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)functiontt()...{  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)//trace(Q(arguments.callee,this))  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)}  
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)trace(getFunctionName(tt,this))