Actionscript 3 :: Reference A Fla Component In Project?
Mar 8, 2010How do I reference a fla component from an actionscript project? I use flex builder.
View 1 RepliesHow do I reference a fla component from an actionscript project? I use flex builder.
View 1 RepliesIs it possible to build a flex 4 application that references or uses the flex 4 libraries (or any libraries that are compatible) without the project compiling them into the main SWF of the project.
So in a nut shell, I have a project and I want to load the flex 4 library from the server, is this possible? I've seen articles on compiler settings. Could this be the solution to loading the library from the server?
My flex (flash builder 4) project references (embeds) a flex library project (ReusableFx). I have it working fine when it builds and runs, but I am struggling with a Design mode error "Design mode: Error during component layout...". In the flex library project there is a 'default.css' file which references a png file. Specifically like this:
[Code]...
It works when I build and run, I see the icon, but the problem is that design mode must work different in flash builder and breaks with this line. I tried a few things with no difference:
[Code]...
I'm building a Flex App for a Media Development course and one of our requirements for this sprint is to implement a simple P2P chat into the interface. I created one from a tutorial that served my needs and altered it appropriately, but it exists as a separate Flex Project and not within the Main App.
I know I can export the Chat as an fxp project file, but I'm not sure how I can use it in my main app. I was trying to create a Custom Component, but the process isn't very clear and Adobe's help files on the subject didn't seem to relate to what I specifically wanted to do. I get the feeling that there's a very simple fix for my goal, but hopefully someone would able to point me in the right direction as I've been working on this app for a good 6 hours and need a break.
We have a huge project written in AS2 with the old FLVPlayback component which was responsible for progressive download playback of FLVs. I'd like to support MP4 files (which is now supported in Flash 9 and up with the updated FLVPlayback) but would like to not have to rewrite all of the project.I've seen in various posts on SO surmised that one could possibly use CS4 to open the AS2 project, replace the FLVPlayback component with newer one and build.
View 1 RepliesCan anyone enlighten me on how I can use the Flex mx.charts component in my Flash Project? I am using Flash Professional CS4 Are there any tutourials on the subject.
View 4 RepliesFLVPlayBack asks a link for it's skin. How can I bult-in skin in project, so I will have only one swf in result?
View 1 RepliesI am ASP.NET developer & wright now I am working on Silverlight project. SinceSilverlight has few drawbacks like we can get Clipboard IMAGE data using silverlight application(however we can access Clipboard TEXT data from Silverlight), but this is not an issue with flash. We can access to clipboard image as well as text data using flash.
[Code]...
how can i change my list component in Flex 4.6 mobile project with that when an item is pressed it would dynamicly resize and show an article description and a button [URL]
View 1 RepliesUsing CSS, how would I reference the Button component? FWIW, I'm using Flex 3.x SDK.
<mx:HBox id="myHBox" styleName="myHBox">
<mx:Button label="Test"/>
</mx:HBox>
I have a DataGrid with a custom itemRenderer(Canvas) which has a context menu on its right click. I am trying to get the data of the itemRenderer. I tried to find something in event & variables. I also tried with FlexNativeMenu on RIGHT_MOUSE_CLICK. But I didn't find any way out.
View 2 RepliesI've got a custom component based on a TitleWindow. I want to put an event listener in my main app that listens for the Titlewindow's modal button's click[code]...
View 1 RepliesI've got an mx accordion component that I want to populate at runtime. However, the first box will populate fine, but all the others return null reference so I can't access them. Does this have something to do with which one is currently selected? I'm creating my accordion:
<mx:Accordion x="398" y="207" width="331" height="250" alpha="1.0" borderStyle="solid" borderThickness="0" cornerRadius="10" fontFamily="Arial" color="#000000">
<mx:VBox label="EDITOR'S NOTES" fontSize="10" width="100%" >
[code].....
I have a component in my library that I want to programmatically place on the stage and manipulate from my external actionscript file. I have a blank FLA and all the movieclips, text, etc that are on the stage have being created in an external ActionScript file and placed on the stage. However I would like to access this one component that is stored in my library without having to place it on the stage - since everything is to be done in ActionScript.
View 2 RepliesI'm creating some custom components and backing code. I've created a Flex library project in Flash Builder which compiles to a SWC. The problem is now that all my MXML files get compiled into classes in the default package, making the whole thing a big mess.Is there a way to set a package declaration for MXML files? After all it just gets translated into AS3 classes. This seems to work in regular Flex projects using a namespace declaration so I'm at a loss how that is supposed to work. The other option is building out all the components in AS3 which I'd like to avoid.
View 1 RepliesI have created a XML driven shell where I'm calling external SWF files reading from the XML.ome of the SWFs has SCROLLPANE from the component panel of Flash is added on their respective stages. Now if I'm running those files individually, they are working fine. But it is loaded in the shell the below issue is coming.
TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::ScrollPane/setScrollDrag() at fl.containers::ScrollPane/draw() at fl.core::UIComponent/drawNow() at fl.containers::BaseScrollPane/get
[code].....
question about file reference: i have a file reference that can browse for media files (*.flv, *.f4v, *.wmv, *.wma, *.mov) i am trying to load the file Reference in to a video component. i do that by:
video.attachNetStream(ns);
ns.play(null);
myByteArray = fr.data;
ns.appendBytes(myByteArray)
flv files are OK and i can see them and hear them & controll them. but when im trying to load any other kind of movie type, the all thing fails.
I cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).
At the moment situation... (cant see that area around the project)
http://img19.imageshack.us/img19/1186/68553623.png
So my problem here is, I'm working on my Adobe Air project, so I decided to code some buttons to be able to navigate. The problem here is that I get a error for trying to do so. Here is my code.
[Code]...
I do not see what is wrong actually, I tried this on a blank non-AIR file, and it worked well.
I am trying to use the scroll pane component and I am having a few teething troubles. I have a scroll pane as a child object of a movie clip which is essentially a 'page', if I display this page it works fine and the scroll pane does too. If I then remove this page from the display list, go to another page and come back by readding it to the display list, I get the following error, even though nothing else has changed:
TypeError: Error #1009: Cannot access a property or method of a null object reference.at fl.containers::ScrollPane/fl.containers:ScrollPane::endDrag()
The scroll pane is still visible and works correctly, but ideally I'd like to stop this error.
I would like to add a widget board to my flash project so users can embed my project in their web page or wiget display. To see what I'm talking bout go here [URL] and click the white + mark on their widgets.If your a moderater please put this in the correct area, and consider making it a sticky so we can post new ways to impliment in different sites as they become available.
View 2 RepliesI am working on this one project that has a couple of movieclips (already placed on stage) which have a custom class set to export via the Library. Each of those custom classes loads an external SWF using URLRequest().
Is it possible (or, what is the best way) to preload the whole project first, including the external SWFs?
I just wanted to ask if I have a project created in authorware and one more in director.I just wanted to ask can we convert authorware project in flash directly or indirectly?Or can we import authorware project and/or director project in flash.does anybody know or anybody has done this b4???
View 1 RepliesMaven 2.2.1 unzipped,M2_HOME set and repository altered to point to different drive location in settings.xml Flex 4.0:
Installed Created a multi-modular webapp project using flexmojo:
mvn archetype:generate
-DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-modular-webapp
-DarchetypeVersion=RELEASE
with following options
groupId=com.test
artifactId=test
version=1.0-snapshot
[code]....
Parent pom has swc, swf, war as modules.
Dependency is war->swf->swc.
With parent artifactId of swf, swc, war set to swf, swc, test respectively.On executing mvn on test folder(for that matter clean or anything) I get this following error.
G:Projects est>mvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com/test/swc/1.0-snapshot/swc-1.0-snapshot.pom
[code]....
Looks like its trying to download the project from maven's central repository instead of building it.
I am developing a project in Flash Builder which will load a file built by Flash CS4. The code in Flash CS4 is below, it's a doc class. I am sure the dispatchEvent has been invoked[code]...
View 1 RepliesI've recently started making a game in FlexBuilder. The game is currently a Flex project. Is there any downside to using Flex as opposed to just Actionscript? A friend of a friend told me that Flex is slower than an Actionscript project. I've been unable to validate this on the internet; is there any truth to that claim?
View 6 RepliesIf I create a new flex project with flashbuilder, these are the libraries that get included by default through the Flex SDK[code]...
View 1 RepliesI have a CodeIgniter project and I made a back-office in Flex. I was wondering how I can implement the Flex project in my CodeIgniter since I'm working with routing I can't route to any directory. So there isn't a way to display the back-office.
View 1 RepliesI have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:
[Code].....
so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?
I have one Eclipse Workspace containing two projects. - The first is my actual library. - The second is example code for using the library.When I push this code to GitHub, I don't want two separate projects, I want the example code to go into an "example" folder of the second library.How and where would I do this? From Eclipse, GIT, or GitHub?Or is there a better way of including sample code in GitHub projects? (the example code doesn't actually need any version control)
View 1 Replies