Flex :: Can't Find The Class URLRequestDefaults
Jan 22, 2012Can't find the class URLRequestDefaults in flex 4.6. Where is it gone?
View 2 RepliesCan't find the class URLRequestDefaults in flex 4.6. Where is it gone?
View 2 RepliesI have a program where I have multiple classes derived from a base class. I want to take all instances of the different subclasses and put them into an array. Is there a way I can search for anything derived from the base class?For example, right now a get the number of children, then see what they are, so:
for (var i = 0; i < this.getNumChildren(); i++)
{
if (i is "type")
[code].....
I have some experience working with Flex but im feel clueless working with flash pro. My problem is that i found a flash project that i want to edit (.fla), this project contain an actionscript class in some part that i am unable to find. How to find a class in Flash Professional?. I know that the class exist in the project because i generate a swf file and decompile it and it show the class.
View 2 RepliesPHP Code:
public class Fruit extends MovieClip {
//something
}
var apple:Fruit = new Fruit ();
[code]...
Is there a way to find the class of apple without using (apple is Fruit)? Doing it that way takes an array and having to check it with each index of that array to see if it matches.
I'll be working along on a project, using a Document class, adding new functionality, then all of a sudden I make a change in a class file, and my Root FLA can't find my doc class. Nothing has changed in my folder structure, I haven't changed my FLA or the doc class in weeks, but now suddenly I can't link to it anymore. I try changing the file names, and re linking, no luck. In the end I have to make copies of the entire project folder, rename things again, create a new .as file for the doc class and copy all my code into it.
View 4 RepliesIs there a way to search for symbols by the class they are using? I have a large projectand at times (specifically when refactoring)
View 2 RepliesI usually use if(object!=null) but it doesn't work well.
How can I verify if the class is instantiated. I want to get rid of the 'cannot access a property of a null object or reference'.
I mean, the 'var object:Object;' is just a reference to an Object class instance. When i initialize it with 'object = new Object()' it runs the code in the constructor, initializing it. How can I check if it has been initialized or not.
I'm fairly new to using Flash, only one previous project to my name.
I'm an OOP programmer in other languages so using classes appeals to me and I want to use them in my next project. However I'm having problems after following tutorials on-line.
I've created a classes file called ScreenWordClass.as and within it is a very simple definition for this class at present. But when I try to use this class with say[code]...
Ill be working along on a project, using a Document class, adding new functionality, then all of a sudden I make a change in a class file, and my Root FLA can't find my doc class. Nothing has changed in my folder structure, I haven't changed my FLA or the doc class in weeks, but now suddenly I can't link to it anymore. I try changing the file names, and re linking, no luck.
In the end I have to make copies of the entire project folder, rename things again, create a new .as file for the doc class and copy all my code into it.
when I create a new flash project, I would like to put the source files in /src/ folder.When I try to add the base class to my project, flash can't find it.I've added the folder "src/" to source paths, in flash preferences.
View 2 RepliesIs there a way to find all the public variable names in a class (given the instance of the class)?
View 2 RepliesSo I had a working .fla, with a document class package in the same directory. Everything was fine, until moving both to a new directory, now the fla cannot find the document class. WTF?
View 2 RepliesC:alexflashportfolioimagesDualGallery.as, Line 15001: The name of package 'portfolio.images' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:alexflashportfolioimagesDualGallery.as
My class file is located here: C:alexflashportfolioimagesDualGallery.as
My class file is defined as:
package portfolio.images
{.....
My FLA is importing it as :
import portfolio.images.DualGallery;
Normally I use portfolio.classes and I have no trouble. My AS3 prefs are set to the alexflash folder.
I have a App.fla file on a path and a App.as file on the same path. On the Class field I put "App" and on the ActionScript Settings Source path there is "." which means the same path of the .fla file, right? I open the App.fla file and click on the little "pencil" icon in order to edit App.as but then Flash whether tells me there's no class file associated or it opens a new ActionScript file.
So I can't do nothing , I even copied all code into the App.as , and pasted into the new ActionScript file it generates when I click the little pencil button. It still cannot find the god damned class. A little detail, I'm using Mac OS X 10.6.2. I've been working full time with flash on a Windows and that never happened to me before. That hasn't happend to me on Mac either (though I have hardly used it to do FLASH/AS).
I am trying to build my first flash facebook app, using the "flash facebook cookbook". Its instructions are all for flash builder and I am using flash pro. I've downloaded the flash facebook graph apk, and connected the swc, but when I try to login I need to return a FacebookSession object and I keep getting an error message that it can't find the class.
I import the:
import com.facebook.graph.Facebook;
But it's as if the swc connection didn't work.
im getting an error message that flash cant find the base class. i put the as file and the fla file in the same folder, isnt that the first place in the classpath?
View 1 RepliesAll my custom classes that extend MovieClip simply trace as "MovieClip" when using stage.getChildIndex(i); I'm trying to search the stage to see what objects have been placed and then add them to the correct array. E.g. if I place 5 "Enemies" on the screen, I want to then add them to an array by searching the stage for the "Enemies" class, without naming each one and adding it manually in the code.
Edit:
Code:
for(var i:int = 0; i < stage.numChildren-1; i++)
{
trace(getQualifiedClassName(stage.getChildAt(i)));
[Code]....
Using the mac version of flash CS3, and trying to import classes, namely the Loader class. Everywhere I've seen this code is used:
import flash.display.Loader;
or for all classes in display:
import flash.display.*;
Neither of which seems to work, and after searching out the file path for flash.display there is only one file in the display folder (BitmapData.as).So my question is, where do I find the loader class? And secondly, once I find it, do I copy and paste it into the display
folder or do I use a different file path?
I have a Flex 4.6 web game which displays 2 Lists with virtual layouts with 2 custom item renderers. The renderers consist mainly of BitmapImages displaying user avatars + few Labels.
The Lists are being updated often over TCP socket with gzipped JSON data. I merge that data into 2 ArrayCollections serving as dataProviders for the Lists. This seems to work well, the Lists do not flicker and are updated correctly (I've monitored debug traces a lot to get it right).
[Code]...
I must rejected all users outside Denmark from our live streaming (c-ip) and this is done in an access plug-insBut now I need to open up one of the streams, but I can't get the streaming name in the access-plug-ins only in the Auth-plug-ins.I cant use x-page-url or s-uri I need pStreamName. in access-plug-in like thissetStringField(m_pAev, IFmsAuthEvent::F_STREAM_NAME, pStreamName);but I cant get it inside the access-plug-in
View 1 RepliesI am trying out to deploy a flex application in one of our servers. I was able to deploy it but running it causes some problems like missing swfs. One of these missing swfs is the sparkskins, which I am not sure where to get from.
View 1 RepliesWhere can I find the path to the Flex SDK? Last time I embeded metadata, Flash CS5 automatically found it for me. This time its not working. I get this message in the output window:You have used a feature that requires the Flex SDK:"Embed" metadata Please set the Flex SDK path if necessary and add it to the library path for this file. The Flex SDK folder contains the bin, frameworks, lib and other folders.
View 3 RepliesI'm attempting to compile my Flex project with an ANT build script.One of my MXML components references an external XML data file, like this:
<mx:XML id="treeData" source="assets/data/help.xml" />
When I build the project using Flex Builder, it compiles fine. However, when I try to compile it using ANT, I get the following error:
Error: Problem finding external XML: assets/data/help.xml
How come ANT isn't finding the XML file? Apparently it knows the source path otherwise it would not have found the component to begin with. I added the source path to the target anyway, but it doesn't seem to have made any difference:
<source-path path-element="${SRC}" />
I was trying to find a bandwidth profiler in flex like there used to be one in Flash but couldn't really find one. Is there a way, that I can do bandwidth profiling of my local swf?I'm using Flex Bulider with a AS3 project.
View 2 RepliesI am loading data from one sample.xml file using http service. the xml file will generated by jsp and it is saving in one proper location like(d:/programfiles/some.xml).now when I first time login to application i need to check whether that xml file is present or not. How can I check?
View 2 RepliesI'm working on a build script in the Flash Builder version of Eclipse. This build script needs to import launch configuration .launch files into the user's workspace. However there doesn't seem to be an available ANT var for determining the workspace location. While stepping through the available vars with intellisense I noticed that ${osgi.instance.area} does point to my current workspace but when I tried to echo it back in a running ant script it just spat out "${osgi.instance.area}" and not the path.
View 3 RepliesI'm opening popups (subclass of TitleWindow) in Flex by using
PopUpManager.createPopUp(parent, TrainCard)
Is there any way I can get a list of popups that are open? Or do I need to keep my own list?I need to make sure I'm not opening the same popup twice.
I would like to get the user's IP locally without any invoking any service.
View 1 RepliesI need to recalculate the max value of lineChart according to the visible lineseries. In the application I have the ability to make visible or not the lineseries of the graph and if I make not visible the lineseries with the actual top value I want to zoom in and change the top value of the graph.
View 1 RepliesI need to detect via AS3 inside flex mxml appication which is browser I am in - FF, Chrome, IE etc, only name and version. How to do such thing?
View 2 Replies