Flex :: The Components Aren't Compiled To The .swc File?
Jun 20, 2011
I'm trying to compile an SWC file and everything works great until the part where it needs to add components, none of them added added to the .swc file at all.
The original file should be somewhere around 211 KB and when i compile it its only 1.64 KB, after unpacking the .swc and then the .swf inside it i can see that there is no components added at all.
BTW some components showing some errors but i dont think its a reason to not include ALL the components because the errors are like:
Description Resource Path Location Type
1084: Syntax error: expecting rightparen before leftbrace. XXX.as /XXX/[source path] src/com/XXX line 1469 Flex Problem
What could the problem be? ask me if you need some future info cause i don't really know what to include in here cause there is no code it's only a project with a library.
View 1 Replies
Similar Posts:
Oct 30, 2010
I am working on a feature for an application that requires Flex 4 functionality. Due to some migration issues of the application from Flex 3.5 to 4.0, I have decided to implement this feature as a module that is compiled with Flex 4.0. The theory is that the application would remain compiled in Flex 3.5 and load the module when it needs it.[code]
View 1 Replies
Apr 3, 2011
I compiled a simple AS3 project using Flex 3.5 (also tried Flex 4.1) to create a small swf which draws a simple red square on screen. Nothing too complex that requires special flashplayer support (see code below)
package
{
import flash.display.Sprite;
/**
[Code]....
and tried to load it into a AS2 swf I have compiled using Flash CS4. But that just didn't work. I don't get any errors when loading and the AS2 swf can load any swf, either compiled in AS2 or AS3 by Flash.
View 1 Replies
Jul 12, 2011
I've built a form in Flex. When I run the flex project, I get a html file with some js, css and swf files (NOT A SINGLE FILE), swz files. When I run the main swf file alone, many things are working perfectly except at places where it needs to send a HTTPService request. When I use the html file, all works fine.
Now I want to do the following.Import this form made in flex into a flash site (actionscript 3)This form has various ViewStacks, where the user will be travelling through these. I want to reload the form back to its initial stage when the user wants to fill the fields again. Can there be any request sent to the Flash Site from this FORM, regarding the form submission success Can I compile the Flex Project to one single swf file, so that I can use this swf file without any Browser? Can I convert the webpage application Flex Project to an Adobe AIR application [URL]..
View 1 Replies
May 19, 2011
I have 6 variables that load into 6 different dynamic text boxes. They all load fine when I load them, but only the first one updates after 6 seconds. I have them all set to update after 6 seconds. Here is the code that is working fine followed by the code that isn't. I'm using CS5.5
1st Box that works fine:
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.text = this.myVariable;
};
[Code].....
View 2 Replies
Oct 11, 2010
Here's the actionscript.
var request:URLRequest = new URLRequest()/employee_slideshow_datalayer1.txt");
//request.method = URLRequestMethod.GET;
//
View 1 Replies
Sep 18, 2011
I am pretty new to flex, specially to mxml part. There are some confusing things for me.[code]...
So question is how do I access that button's properties. I want when something happens in Xyz file, button's (someId) visibility to become false. If Abc.mxml was AS class file then it would be easy, just make object etc., but how to get if it's mxml file.
View 1 Replies
Aug 22, 2010
Do you know any flex component with the functionality such as horizontally collapsible window or panel I found arc90, but it folds vertically.
View 1 Replies
Sep 8, 2009
I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....
[Code]...
View 1 Replies
Mar 30, 2009
Does anyone know why a dynamic text box does not appear when a file is compiled?
View 3 Replies
Sep 15, 2010
Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter?
<com:MyComp1>
<com:MyComp2>
<com:MyComp3>
[code]....
View 1 Replies
Feb 7, 2012
I have one swf file, it is JW Player plugin. It have one actionscript file in which is whole plugin code, and rest of files are jwplayer api files. So i need to open that file (where whole plugin code is) and edit few lines. But there is a problem, because when i try to decompile file with sothink swf decompiler (and few others) - to convert it to .FLA, decompiles simply crashes. It is because of some file from jwplayer api library. So, next thing i tried is to edit via HEX (because there is not much to be edited), but i couldn't find what i needed. So what i need is - is there any way or not? If yes, which program can be used for this?
View 2 Replies
Mar 20, 2012
how to get this working.I have found that
writeByte(0xFF);
writeByte(0xFE);
At the beginning of the Byte Array alters the Encoding.How ever the resulting String using the toString method still creates escape characters.I am trying to write the byteArray to another AS3 file to be compiled later.
View 2 Replies
Mar 5, 2010
The below code show the labels from previously selected list?
Steps to reproduce:
Click on List AB Open the list but don't select / click any item Now click on List CD Open the list again and you see A, B as labels instead of C,D but if you click on any item then everything comes properly
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Code].....
View 1 Replies
Oct 20, 2011
Recently downloaded Powerflash (FDT) to compare with Flash Builder, but it doesn't seem to cleverly colour the MXML code, nor provide me with predictive text. Is that only for action script files?
View 1 Replies
Apr 6, 2009
I am dynamically loading external SWFs in a Main Fla in response to clicks on a menu.
The loading code is standard and works fine for all of the SWFs except one. When I try to load it I get the following error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
I am certain that the URL to the problem SWF is correct. The SWF itself doesn't load any other SWFs or images. The problem SWF is linked to an external class file and compiled with it. i.e. in the properties panel of the main timeline of the problem SWF's Fla I have entered the path to the external class.
1. there is no problem compiling this SWF with the class (it works fine by itself)2. if I remove the external class from the properties panel and don't use it the resulting SWF imports without a problem into the Main Fla mentioned before So the problem seems to be the fact that the external class is linked in the properties panel. Is this a path problem?
View 3 Replies
Oct 9, 2009
I'm doing something wrong but I have a textarea where I've specified textAlign = center and if I type in text with several trailing spaces, it doesn't count the spaces towards centering the text. If I add another character to the text (after all the spaces) it then all of a sudden centers the line, is this a bug, can anybody think of a good solution?
To replicate:
-Create a textArea
-Set textAlign=center
Run the application and type in something like 'FOOBAR' followed by 10 spaces, note that it centers FOOBAR but stops centering the text while you're typing the spaces Now type another string like 'WTF', now it'll all of a sudden center the whole line.
View 2 Replies
Nov 24, 2009
I have a movieclip created in CS4. I export that into my Flex Project's /lib and then try to access the text. All the textfields have ids, embedded text, and show up in intellisense. But when i run the project, the textfield is blank. What is going on?It appears to only not work when the text is embedded. Non embedded text works fine.
View 1 Replies
Dec 9, 2009
I've got a flex app that hits a remote SOAP service and populates a list with the results.
It works fine when i run it through flex builder, but when i compile the application and move it onto a webserver it can't access the services.
I've tried it from a standalone webserver and on my own machine. I'm assuming that there's a security issue that i've missed as i can't think of any other reason why it's ok in flex builder but not when compiled on the same box.
View 1 Replies
May 26, 2010
I am using Adobe Flash Builder 4.
I've run into this issue with my latest project, but I was able to re-create it with an almost empty project. Here is what I've done.
Created a new Flex Project Created a locale/en_US folder within this project. Added a class that extends SparkDownloadProgressBar. All this class does is attempt to create a Label.
When I try to debug this application, I get the following error.
Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:dev4.0.0frameworksprojectsframeworksrcmx
esourcesResourceManagerImpl.as:340]
[Code]....
The Flex Compiler/Additional Compiler Arguments section does contain "-locale en_US", but I do not want to just remove this as I am planning to have this load different property files based on the localization region at run-time and how I understand it, I will need to add each locale that I am planning to use on the compile argument line.
View 1 Replies
Jun 15, 2010
I have several Flex applications in a project, and I would like to know if there's a way to get a list of the classes (and ideally, other assets) that are being compiled into each one. I want an easy way of making sure I've kept things separate and there aren't unnecessary dependencies. Any ideas? I'm running Flash Builder 4.
View 3 Replies
Oct 27, 2010
I have created an API in AS3 that uses Flex bindings. The API is being used by two other developers. I am delivering the API in an SWC that includes all code, including the required Flex libraries. The two other developers are building the API into AS3-only projects. One developer is compiling using the Flex SDK through FDT. He includes the SWC in his project and he is able to bind any bindable property. When he uses ChangeWatcher.canWatch on a bindable property, it returns true.
The second developer is compiling using the Flash CS5 IDE. He includes the SWC in his project using the Actionscript settings window (merged into code). But none of the bindings, including ones internal to the API, are working. When he uses ChangeWatcher.canWatch on a bindable property, it returns false. What could the Flash IDE be stripping out that causes ChangeWatcher to stop functioning? What is ChangeWatcher.canWatch actually checking? Is it the metadata, and if so, how can the metadata be preserved in the Flash IDE?
View 2 Replies
May 23, 2011
Are Flex swc file encoded differently from say movies file encode in SWC?
View 1 Replies
Oct 24, 2006
When i load a swf made by Flex 2.0 in my code (which is made with AS 3.0 *.as classes and compiled with mxmlc.exe) - the rendering of the swf is highly unstable in Firefox.
The .swf file *does* load, and no errors is thrown as far as i can see at runtime when i addChild the loaded swf. When checking ProgressEvent.PROGRESS, i see the file getting loaded.
I can see the loaded swf-file visually in my Firefox-browser about 1/4 of the times i refresh the page. (I clear cache every time).
If i load a jpg-picture or a swf-file published from Flash 9 Public Alpha, (even Flash 8) everything works as a charm.
My Flashplayer is 9,0,16,0 for both IE and Firefox.
I have tried to turn on and off all imaginable settings inside Flex publishing settings, but nothing seems to help, and im renderd puzzled by the randomness of this error.
View 3 Replies
Dec 25, 2008
I'm not sure whether to post this in a flex forum or here,but since the error is generated from AS3 code, I'll try it here.When I try to load a compiled flex swf with the loader class.As a test I tried 2 very basic programs:See the actionscript code in the attached code..As you can see I just load the swf without doing anything.I've found very few threads about this error, and even less solutions...Does anyone know if it's even possible to load a Flex swf?
View 8 Replies
Dec 22, 2009
I have an ActionScript project with several classes that i compiled as an swf using Adobe Flex (by creating an actionscript project and clicking on export -> release build)Is there a way to load that swf so i'll be able to load it's classes and use them on a different swf? i know i can use the following code to load an swf file:[code]
View 3 Replies
Feb 2, 2010
I've built a simple application in Flex Builder 3 with some trace() calls. It's an "ActionScript Project", no MXML or AIR involved. I don't run the app from within Eclipse, I just open the generated html file with Firefox.
I'm using the Flash Player 10 Debug version. I've correctly set mm.cnf to log trace output, following the official instructions. A flashlog.txt file is generate in the appropriate location.
Despite all that, trace output is not shown in the log file. What am I doing wrong?
(I suspect it's a compiler option, but I can find no such option in the project options in FlexBuilder)
(If I do run the app from Eclipse, by pressing F11, I can see trace output but only inside Eclipse, not in the log file)
View 3 Replies
Mar 28, 2011
I have firefox 3.6.15 with flash debug version 10.3. whenever an error occurs a popups comes up with the error and a stack trace but it does not line numbers of each leaf in the stack trace which makes it more difficult to debug. how to configure it to actually show line numbers ?
I think it may relate to how I compile my flash application. (i think!) i use eclipse FDT 4.2 to compile and i added the following compiler flags: -debug=true -compiler.verbose-stacktraces i think these parameters should be enough but I may be wrong.
View 1 Replies
Apr 2, 2009
I created a new Library project in Flex Builder 3. In a few of the mxml classes I wanted to put in this library I use the flash.filesystem.File class. For some reason I can't use it in the classes in the Library project. The error says that the Ytpe is not found when compiled. In another project, which is a Flex project (so no Library project) I can use the File class without any problems. how to use the filesystem in an other way? (I now use it to read/write files on my HD).
View 2 Replies
Aug 10, 2011
I've been searching for the last couple days but can't seem to find a basic example of what I'm looking for. I'm developing a Flex 4.5 app and in it I have a viewstack of 2 components that use some of the same services. Currently the only way I can get the app to correctly use the web services is by defining 2 different web services that use the same PHP web service file. For example: I have an app, and within it I have a viewstack with tab navigation of 2 components: #1) retrieve a list of all Salary Employees, and #2) retrieve a list of all Contractors. Currently to get it working I am defining a UsersTableEmployees webservice within component #1 and a UsersTableContractors webservice within component #2, but they both point to the same PHP class, and only differ in the arugment value I pass to them. Ie, getUsers("employee") and getUsers ("contractors"). Of course this is not best practice.
Searching StackOverflow and Google gives me many results about ColdFusion and MVC (example What's the best way to share data between components in Flex?), but I'm still confused. Can anyone here point me to a basic example (even sample MVC) and source code of an app that uses Zend AMF and allows different components to call common web services?
View 1 Replies