Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
realtime158 #1
how come this is throwing a error
I am trying to put a view stack function in this example in a class
[url]http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product[/url]
Id=2&postId=5782
Here is my class code
its giving me a error
A file found in a source-path can not have more than one externally visible
definition.
package FlexScriptlets
{
import components.dashboard;
public var actualView:Class = components.dashboard;
public class flxScript
{
public function flxScript()
{
}
//Get the view and change it in the stack//
public function getView(viewClass:Class):int
{
var descriptors:Array = views.childDescriptors;
for (var i:int=0; i<descriptors.length; i++)
{
var descriptor:ComponentDescriptor = descriptors[i];
if(viewClass==descriptor.type) return i;
}
throw new Error( "View of " + viewClass + " not found.");
}
}//End Class
}//End Package
realtime158 Guest
-
Acrobat Standard 9 : app.viewerVersion is throwing error.
I'm using Acrobat 9 standard in Windows platform. I have a vb 6.0 application and I have to find the version of Acrobat installed on the user... -
AVConversionConvertFromPDFWithHandler is throwing exceptions
AVConversionConvertFromPDFWithHandler is throwing the below exceptions in debug output. I face some DDE timeout issues after this. Could you please... -
PayPal Extension throwing and error
I just installed the PayPal extension into Dreamweaver 8. I upgraded from MX recently, but just installed this extension today. It is throwing an... -
Throwing out 5 boxes Sol 7 still wrapped
Hate to throw these away if someone can use them. Just make it worth my time to box/ship -rj -
Dreamweaver MX Template/Page Update Keeps Throwing an Error
I'm having the same problem as Stephan, but in the US Version of Dreamweaver MX 6.1. I did not have this problem previously. Not sure what is... -
ntsiii #2
Re: how come this is throwing a error
Put your var inside the class declaration.
Tracy
ntsiii Guest
-
realtime158 #3
Re: how come this is throwing a error
Now it gives me a error on this line
var descriptors:Array = views.childDescriptors;
this is because views isn't defined. What object should i define views as.
here is the error it gives me
Type was not found or was not a compile-time constant: ComponentDescriptor
Thanks..
realtime158 Guest
-
Greg Lafrance #4
Re: how come this is throwing a error
You may need to import the ComponentDescriptor class in your imports in this class.
Greg Lafrance Guest
-
realtime158 #5
Re: how come this is throwing a error
It fixed the one error now it has troubles on this line
var descriptors:Array = views.childDescriptors;
its complaining about the views
what would i have to declare views but what object is views declared as.
realtime158 Guest
-
Greg Lafrance #6
Re: how come this is throwing a error
Maybe you need to import views as well.
Greg Lafrance Guest



Reply With Quote

