Running A Flex App Outside Flex Builder
Hi all,
I've been working on a flex widget for a number of weeks and have just completed development and testing and want to upload the swf to a server! If I run the swf from flex builder it connects to the server fine and runs through the entire operation!
However if I try and run the swf from anyother location (I've only tried off a folder in my c drive and my desktop) I get an error connecting to the server?
Does anyone have any ideas why this is happening or more likely what I'm doing wrong? I'm copying the swf from the bin folder in flex builder and then pasting it to a seperate location and trying to run it! It runs fine by double clicking on it in the bin folder but won't run anywhere else??
Any help would be greatly appreciated!!
Thanks in advance,
Derm
KirupaForum > Flash > ActionScript 3.0
Posted on: 03-19-2008, 06:20 AM
View Complete Forum Thread with Replies
Sponsored Links:
Free Flex 2 SDK Or Flex Builder 2
Am i correct in thinking you can only go so far with the Free Flex 2 SDK? And if you want to build something serious and efficiently you need buy stuff i.e Flex Builder?
I don't want to sound stingy and am quite prepared to pay for authoring tools. But don't want to buy things I don't need.
View Replies !
View Related
Do You Use Flex SDK (without Flex Builder) ?
Im hesitant whether to buy Flex builder, and I want to make this step from flash to flex. The flex SDK is free, but I do not quite understand how exactly to work with it. It is basically a set of functions I can use, and a compiler? Anyone worked with it, and can refer me to a tutorial, for a helloworld application or something?
Thanks
View Replies !
View Related
WebORB On Flex Builder 3.0
I am getting this error regarding webORB, please help me
Error 1
Severity and Description Path Resource Location
Creation Time Id
Channel definition, weborb.messaging.WeborbMessagingChannel, can not be
found. Exploria1 Unknown 1204728962656 431
Channel definition, weborb.messaging.WeborbMessagingChannel, can not be
found. Exploria1 Unknown 1204728962656 432
Error 2
Token '{destinationName}' in 'messaging-config.xml' was not replaced.
Either supply a value to this token with a JVM option or remove it from the
configuration.
Regards
Thiru
View Replies !
View Related
NetworkClass Using Flex Builder
can some one point me in the right direction?
I wont to track game scores from players in a network, each network called the "BigHouse1 and so on" each will have rooms and in each rooms will be different games,there can be many players of the same game. In each game will have different groups of players with scores I need to track. Each group will have a group score and all in that group will stay syncronized. I would like each player to be able to drop out of there game and view the whole room of players to see there scores, and then resume there game without loosing there data. I will need to add server side data control using somthing like SQL or PHP stuff.
What is the best way to stay modular and reusable? using Class packages how do I communicate in real time?
Does this sound good for engredients hiarchi to make Class called "myNetWorkClass", "bigHouseClass", "myRoomClass", "myGamesClass", "game1Class", "game1MethodesClass","Game2Class", "game2MethodesClass"?
to communicate to a Class I use "import nameofClass" and to receive data and send data that is done using the URLrequest and URLSend properties.... am I headded in the right direction??
Thanks in advance
Rage
View Replies !
View Related
SetInterval() In Flex Builder
Hi,
I started learning AS3 two days ago so I'm very new to it. I decided to use Flex Builder 3 for my AS testing but ran into a bit of a problem. I'm going through an example from the book I'm reading and I need to use setInterval() but I'm getting the following error:
Code:
1180: Call to a possibly undefined method setInterval. virtualzoo/src/zoo VirtualPet.as line 20 1211805885932 246
Here's the code:
Code:
digestIntervalID = setInterval(digest, 1000);
Is there something I have to import for setInterval to work?
View Replies !
View Related
Using Flex Builder With Flash CS3 For Pv3d Dev?
I am trying to work out how to correctly go about this.
I am starting some Papervision development and I need to use Flash CS3 to hold my visual assets. I normally code in Flexbuilder for Flex apps.
I know that I need to set the document class to my external AS file but i'm not sure what the best way to do this is? I did have a plain Actionscript project set up in Flex builder that had a source path to the Papervision libraries.
When I tell m Flash CS3 doc to use the main.as from my Flexbuilder project as its document base class, I get loads of error where it can't find my referenced Papervision files?
So back to basics how do you set up a Flash CS3 project to use external actionscript files that you code inside of Flexbuilder that also retains code highlighting of custom classes etc?
Thanks
View Replies !
View Related
Meta Tags Flex Builder
Hello,
I'm just wondering. Is there a list of available meta tags to put at the top of an AS file?
For example, I have
[SWF(width="400", height="250", frameRate="24")]
Which works great, and I would like to add more meta code. For example, I would like to exclude some libraries when I export, and I'd like to have it in the code instead of in the compiler options because it's a lot more convenient to just comment/erase code from the source then going to the compiler options every time...
Thanks,
-Danny
View Replies !
View Related
[Flex Builder] CSS File Compiled Into SWF...
Hello,
I have a problem with all my css files in my Flex project. I need them to be compiled into SWF because its the only way to load and switch them at runtime.
I use a ClassReference to a custom programmatic skin in the css file:
skin: ClassReference( "com.someawsomepackage.util.manager.SkinManage r" );
MY PROBLEM is that I HAVE TO place the various css file in the ROOT folder of my project so that the compiler can find and compile this classreference along with the css.
I would like to place the css files into a style folder... But I will get a compile error if I do so.
Anyone has an idea ? Maybe some additional compiler arguments? (I've been using it only through the Flex Builder )
thx !
Alex
View Replies !
View Related
Customizing Flex Builder For Flash
Hello, I just watched your recent post and was having some issues trying to use the code snippet tree view from CFEclipse. I could get it to work for .as files but it wouldn't work for .mxml files. In fact if I had a .as file and .mxml file open at the same time and the .mxml had focus it would still insert the snippet into the .as file. I guess this could be a bug for the CFElcipse team, but I thought I would ask here first to see if someone else got it to work. I tried changing the key setting to When: Editing Text, Editing Flex Source, and even tried in Windows... all to no avail.
I also had some trouble getting the short cut "apple space" to work. Pretty sure I am doing something wrong there. Do you just type the trigger text then "apple space"? I changed the spot light preferences so that it would open spotlight on "crtl apple space"
Thanks
View Replies !
View Related
Flex Builder, And SmartFox Server
I have been looking into some advanced flash application building and multiplayer flash game design. Flex 2 looks pretty impressive for building online flash applications, and for multiplayer flash games, Smartfox Server looks great. here are links to both
Flex 2:
http://www.adobe.com/devnet/flex/?tab:samples=1
smartfox:
http://www.smartfoxserver.com/
http://www.gotoandplay.it/_articles/mul ... HPSESSID=4
I was wondering if you guys knew about anything else cool that has come out recently in the flash world. Also what do you think about these I have suggested. Good things about them, Bad things about them.
anyway I am excited about the future of flash and wanted to hear what you guys thought about everything. Because I know you are smart peoples and such!
View Replies !
View Related
Using Flash CS3 MovieClips Classes In Flex Builder
Hi,
after seeing a tutorial on the gotoAndLearn website for using Flex Builder to code projects (the editor of which is vastly superior to Flash's) I've tried to migrate one of my projects to a Flex ActionScript project. However I've run into a problem.
I have a MovieClip in my FLA which has a graphic and a button component. The button is called btn.
I've linked that MovieClip to a class called 'tester'.
In that class I use this simple code :
Code:
btn.label = "yay";
Im able to compile into a SWF easily from Flash (and the button's label changes as expected).
However when I move the project to Flex, Flex tells me in the tester class that 'btn' does not exist (which is understandable).
However I CAN use code like this in my main class:
Code:
var t = new tester();
t.btn.label = "yay"
and that compiles fine (by the way, I've created an SWC that contains my tester MovieClip which I've told Flex to link to).
Is there any way to get around this?
I've tried creating a property called 'btn' in the tester class but this creates an error when I try and compile in CS3.
Can anyone help?
View Replies !
View Related
External SWFs Load With Flex Builder
I am using Flex Builder 3 Beta for AS3 development.
When I load an external SWF via a Loader object and generate preview (run) my application with Flex Builder, it does not load an external SWF on the page generated. Yet, when I preview it in a stand-alone Flash Player or via a localhost, it works just fine.
Anyone experienced this issue?
I know it is something to do with the local environment security model. I can understand and appreciate that. However, how do I get control over it in Flex? I cannot add compiler options to Actionscript 3 compiler in Flex unless I'm creating a Flex application. Any help is greatly appreciated. Thanks.
View Replies !
View Related
Using Flash CS3 MovieClip Classes In Flex Builder
Hi,
after seeing a tutorial on the gotoAndLearn website for using Flex Builder to code projects (the editor of which is vastly superior to Flash's) I've tried to migrate one of my projects to a Flex ActionScript project. However I've run into a problem.
I have a MovieClip in my FLA which has a graphic and a button component. The button is called btn.
I've linked that MovieClip to a class called 'tester'.
In that class I use this simple code :
Code:
btn.label = "yay";
Im able to compile into a SWF easily from Flash (and the button's label changes as expected).
However when I move the project to Flex, Flex tells me in the tester class that 'btn' does not exist (which is understandable).
However I CAN use code like this in my main class:
Code:
var t = new tester();
t.btn.label = "yay"
and that compiles fine (by the way, I've created an SWC that contains my tester MovieClip which I've told Flex to link to).
Is there any way to get around this?
I've tried creating a property called 'btn' in the tester class but this creates an error when I try and compile in CS3.
Can anyone help?
View Replies !
View Related
Adobe Flex Builder 3 + Actionscript 2.0 Project?
hello, the agency i am now working for use macs and adobe flex 3.0, it's gonna take me some time to adapt as i am a pc user used to program on flashdevelop.
i have a cople of issue with flex and i was wondering if ppl could help me out
- ctrl+O does not exist in that software??
it seems that the only way you can open files is with your mouse... and the keyboard shortcuts are not editable? i mean i did try in the prefs, but i cant create a new shortcut, whats up with that? anybody knows a way to create a shortcut?
- as2 project
the client of the project i will be working on needs the project to be in as2, however i am not sure i can create a project in flex in as2, only in as3. am i wrong? if so, where would that option be when i create a new project?
View Replies !
View Related
Flash CS3 And Flex Builder Syntax Question
One of the things that I realized while doing research on the web about various Actionscript projects is the difference in syntax between Flash and Flex. I first discovered this while attempting to paste code into the Flash actions panel back when I was completely green (as opposed to now, where I am only half green). Is the Flex syntax simply stricter by requirement? It seems like Flash Actionscript is paired down somehow. I've bought Flex builder 2 and have begun to use it a little but I was wondering if anyone could shed some light on this. Thanks!
View Replies !
View Related
Using Flex Builder - Setting Stage Width/height
Hi there,
I have recently started using Flex Builder for my Actionscrtipt 3 projects because it is has a much better text editor and is designed around the eclipse framework. However I am having trouble with what should be a simply task.
Flex builder compiles a swf for me from my main application file which is just an .as file. I therefore cannot put a variable reference on my main timeline and pass it through to any of my classes(cannnot do this on main timeline):
Code:
var _stage:Stage = this;
I can acess the stage in one of my classes in order to add a child but cannot set the width and height and Flex seems to automatically compile my swf at 550 * 400.
Code:
public function PropShop(){
nav = new Navigation();
stage.scaleMode = "noScale"; //does work
stage.align = "B";//does work
stage.stageWidth = 990; //not working
stage.stageHeight = 720; //not working
stage.addChild(nav);//does work
}
This is the constructor for my main application class where I would like to initially set the stage width and height. I'm pretty sure you cannot dynamically change the stage dimensions once the swf has been compiled but I don't know how to go about changing them beforehand.
Hope you can help,
Regards,
Gareth.
View Replies !
View Related
Center Swf In Browser When Compiling As3 Project In Flex Builder
Hi,
when you publish a swf from within the flash ide and put the publish settings on 100% x 100%
noscale
html alignment : default
flash alignment : center center
the swf will appear in the center of the browser, horizontally and vertically speaking.
But when I compile an as3 project with flex builder, I can't get this done.
What would be the way to compile so that the swf is noscale and centered in the middel of the browser?
I tried
Code:
[SWF(backgroundColor="#ffffff", frameRate="40" )]
public class Main extends Sprite{
public function Main(){
stage.align = StageAlign.TOP_LEFT;//tried it with or without this line
stage.scaleMode = StageScaleMode.NO_SCALE;
etc...
I compared both html sources but they don't seem to differ, so I'm pretty confused. Both have width and height 100% and align = "middle"
thanks,
Jerryj.
View Replies !
View Related
How To Get Stage Width And Height In Flex Builder AS3 Project
I'm using Flex Builder to code an AS3 project that does not use the flex framework. I want to position my elements dynamically based upon the stage width and height. Unfortunately I do not seem to have immediate access to stage properties. The following code shows my problem:
ActionScript Code:
package
{
[SWF(width='800', height='430', backgroundColor='#000000')]
public class app extends Sprite
{
public function app():void
{
trace(stage.stageWidth); //0
}
}
}
Is there an event that gets dispatched when the stage has been created and sized? I've already tried listening for the following events.
Event.RESIZE
Event.COMPLETE
Event.INIT
Event.ADDED_TO_STAGE
FlexEvent.CREATION_COMPLETE
FlexEvent.APPLICATION_COMPLETE
Event.ADDED_TO_STAGE is the only one that gets dispatched, and at that point stage.stageWidth still returns 0.
View Replies !
View Related
Using Flex Builder - Setting Stage Width/height
Hi there,
I have recently started using Flex Builder for my Actionscrtipt 3 projects because it is has a much better text editor and is designed around the eclipse framework. However I am having trouble with what should be a simply task.
Flex builder compiles a swf for me from my main application file which is just an .as file. I therefore cannot put a variable reference on my main timeline and pass it through to any of my classes(cannnot do this on main timeline):
Code:
var _stage:Stage = this;
I can acess the stage in one of my classes in order to add a child but cannot set the width and height and Flex seems to automatically compile my swf at 550 * 400.
Code:
public function PropShop(){
nav = new Navigation();
stage.scaleMode = "noScale"; //does work
stage.align = "B";//does work
stage.stageWidth = 990; //not working
stage.stageHeight = 720; //not working
stage.addChild(nav);//does work
}
This is the constructor for my main application class where I would like to initially set the stage width and height. I'm pretty sure you cannot dynamically change the stage dimensions once the swf has been compiled but I don't know how to go about changing them beforehand.
Hope you can help,
Regards,
Gareth.
View Replies !
View Related
What Is The Most Graceful Way To Manager FLA-AS Driven Classes In Flex Builder?
Well.. I've been working on some different projects these months. Some are FLA-AS driven and some are AS-only driven.
Using @embed is really cool for the code logic, but for some particular projects, I have to maintain a main FLA file as well.
And, that brings a lot of troubles to Flex Builder.
The most annoying one is: Say I have a MovieClip on FLA stage and it has a child named "theChild". And it is binded to a class "MyMovieClip", in that class, I can use
Code:
private var theChildInstance:MovieClip;
public function MyMovieClip()
{
theChildInstance = theChild;
}
It's okay for compiling with FLA but Flex Builder will report this as an error since there is no place that "theChild" is declared (in AS).
So is there any good way to "hack" the Flex Builder, just let it know that some variables are from the FLA, which is not detected in Flex ?
View Replies !
View Related
Flex Builder + Regular Hand Coded Files
I know you can use Flex Builder to make your web apps. I would love to use it, but because I'm a "starving college student", that's not an option right now.
But since Flex is indeed "free", do you have to complie the code to get it run the flash? Or just save it with a certain extension?
View Replies !
View Related
Actionscript/Flex 3 - Seeking Tutorial That Connects Flex With Various Architectures
I am looking for a step-by-step detailed tutorial that will show me how to connect the following technologies with my Flex Application (from installation to actual usage to understanding what each part does). My flex application needs to be able to save data from a datagrid in the database and retrieve it. All suggestions and examples are welcome.Thanks
# Presentation Layer
* Flex 3
# Remoting and web messaging technology Layer
* BlazeDS
# Business Layer
* Spring
# Data Access (Object-Relational Mapping)
* Hibernate
# Data Storage
* MySQL
# Application Server
* JBoss
# Build
* Ant or Maven
View Replies !
View Related
Flex Displaying Labels/Text Vertically In Flex 3
Hi All,
I have a chart in Flex 3 and am currently displaying the axis names using <mx:Label! I want to display the vertical axis name vertically, that is
p
r
i
c
e
instead of
price
I was wondering if anyone knew how I might be able to do this? Any help really would be greatly appreciated!
Thanks,
Derm
View Replies !
View Related
Flex Drop Alternate Labels From A Flex Bar Chart
Hi,
I have a bar graph in flex. i need to show labels on the x axis only after a definite intervals. actually this is to avoid overlapping of labels. for eg. if it is the 12 months shown on x axis, i need to show Jan April July etc. instead of Jan,Feb,March,April etc.
Any help would be appreciated.
Thanks
Ananya.
View Replies !
View Related
Flex Flex 3 Update 2 ( AS3 ) And Visual Basic 2008
Hello i am newbie for your forum . A lot of thanks for welcome.
I would to know about Flex and Visual Basic 2008 ( 9 Version with SP 1 ) because it is different with "fscommand" or "externedinterface.call"
I know that adding with shockwave in Visual Basic 2008 like old version of using object.
http://www.kirupa.com/developer/mx/flashvb.htm
But it is old version! I am using Visual Studio 2008 Pro with Service Pack 1 ...
I want to create swc with externedinterface or fscommand like MDM Zinc 3.x or Rapid applications...
Can you say me when your simple example for code?
I want to know:
- How do i exit an Application from Visual Basic 2008 while i click with externedinterface by Flex-Application.
Edit:
Flex Builder 3: Code:
Code:
<?xml version="1.0" encoding="utf-8"?><mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"><mx:Script>
<![CDATA[
publicfunction myAppexit():void
{
fscommand("vb_exit", "");
}
]]>
</mx:Script>
<mx:Button label="Exit" click="myAppexit()" left="10" top="10"/>
</mx:Application>
Visual Basic 2008: Code:
Code:
Public
Class Form1PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
AxShockwaveFlash1.Movie = "C:Dokumente und EinstellungenSnakeMediaEigene DateienVisual Studio 2008ProjectsWindowsApplication1WindowsApplication1myApp.swf"
EndSub
PublicSub AxShockwaveFlash1_FSCommand(ByVal command As System.String) Handles AxShockwaveFlash1.FSCommand
Application.Exit()
EndSub
End Class
2 Errors were outputs.. i can not try.. Please answer me for help!!
Thank you.
Best regards, SnakeMedia
View Replies !
View Related
Develop FLEX Applications, Without Purchasing FLEX Server
BIG news today, Mike Chambers has announced that the next version of flexbuilder (codenamed zorn which will be an eclipse plugin) will be able to compile mxml and Actionscript files into swfs, without having the flex server. There will still be things that you need flex server for (enterprise level features, no word on what these are just yet) but you wont need it for most of your flex swfs. This is a HUGE deal btw.
You can see the post here: http://weblogs.macromedia.com/mesh/a...zorn_requi.cfm
make sure you read through the comments, esp. my question and his answer.
View Replies !
View Related
[Flex] Creating A Flash SWF And Using It In My Flex Project?
Hi there,
I recently got the demo for txeff and i was messing around with it. Quite cool, id consider a purchase but over 100 notes for some text effects is a scandal in my own meaningless opinion.
Anyways it had me wondering about something else. For example lets take a new Flash CS3 file containg a dynamic textField instance called "tF".
Is it possible to embed the SWF into a Flex project and dynamically populate the textFields propery?
Code:
[Embed(source="/assets/textFieldThing.swf")]
public var EmbeddedTextFieldThing:Class;
var myNewTextField:Sprite = new EmbeddedTextFieldThing() as Sprite;
//PS. Just wondered, can this be also done as Sprite(new EmbeddedTextFieldThing())? and what way is correct?
myNextTextField.tF.text = "I am trying to display this text in the embedded SWF".
addChild(myNewTextField);
This dont seem to work, it was worth a try though. Can anyone else give me some knowledge if this is possible or not. I find myself often using the API in flex when i could save alot of time in Flash IDE.
Cheers
View Replies !
View Related
[FLASH+FLEX] Call A Method In A Flex Swf From As3
Hello
here it is:
i have a flex file with methods inside and some as3 swf
The idea is to load the flex file in as3 swf, and when flex file is loaded, call a method from the flex file
here is the code process
Code:
var _loader:Loader = new Loader();
var flexAppli:URLRequest = new URLRequest("flexfile.swf");
_loader.contentLoaderInfo.addEventListener(Event.INIT, onLoadInit);
_loader.load(flexAppli);
and
Code:
private function onLoadInit(event:Event):void
{
var loader:Loader = Loader(event.target.loader);
var newSprite:MovieClip = new MovieClip();
newSprite.name = "LeFlexCharge";
newSprite.addChild(loader.content);
addChild(newSprite);
setChildIndex(newSprite, 0);
// here the method call
newSprite.mymethod(); //dont work
}
The problem is : when calling the mymethod from flex file, it does not work
So i did a trace on all elements in as3 file and i get an object like this
_MyFlexAppli_mx_managers_SystemManager
First question : What's this ?
Second Question : How to call my method ?
Thx for yr help
tofu
View Replies !
View Related
Flex Dynamic DataGrid Creation In Flex 3
Hi All
Can anyone please suggest me a way to create a data grid dynamically in Flex 3.(I actually was want to create it thru Action Script.)
The data would come from the XML and the rows of the grid are also not going to be fixed. It will be dependent on the number of nodes in the XML.
The data grid will have 3 columns 1 containing a text field, and the rest 2 will contain small icons, all created dynamically.
It would be gr8 if some code related to that can be provided.
Thanks for any help that can be provided.
Vicky
View Replies !
View Related
Flex RawChildren Ruins Layout In Flex 3
Hey all!
I've been playing around with Flex lately, and having come from a pure AS3 background, I couldn't help but create some simple effects in there for fun. That's when I hit a snag. Now, with Flex, I'd have to use the UIComponents' rawChildren object in order to add widgets of DisplayObject types... fair enough. Problem is when I do that, the components stop obeying layout rules, transitions stop working, etc.
The best way to really demonstrate this problem is to see the project itself. Here's a link to the project source:
http://www.thurinusworks.com/public/problem_src.zip
In there I created a Panel component that has view states and transitions, and an Application that holds that Panel and houses a bit of actionscript to create a sparkly mouse toy effect. If you commented out all the script for the mouse toy, you'll see that the Panel centers on the Application as you resize the window, and clicking the 'Register' link would display a nice elastic transition effect between view states. When the mouse toy is active, the Panel position stops working correctly, and clicking on the 'Register' link would simply display the view state with no transition. It happens intermittently, but seems to guarantee happening after the first SWF launch, so if you don't see it happening, relaunch the SWF and it should screw up.
I don't know what's causing it to break like this. It's either my error or a serious bug in Flex, and I dearly hope it's the former... If it is, what must I do to fix it? If it isn't, is there a work-around?
Thanks for *any* help you can provide!
Best regards,
Jay
View Replies !
View Related
Flex Filling Non-Flex Objects In A Repeat
Filling non-Flex objects in a Repeat
Hi guys,
For our current project were trying to put as much as possible of the display list structure into mxml. Because that's more readable.
This of course also includes using Repeat's for dynamical parts.
But, we build some parts in Flash. Just little peaces for skinning.
(We publish those as swc and use them in Flex)
We can't of course just use this in flex, but we have the DisplayObjectWrapper from Mr. Grant to fix that.
But despite of this wrapper I can't change the properties of non-Flex components within a Repeat, in mxml.
A simple example:
HTML Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:text="flash.text.*"
xmlns:ui="com.gskinner.ui.*">
<mx:Script>
<![CDATA[
[Bindable]
public var texts:Array = ["a","b","c"]
]]>
</mx:Script>
<mx:Repeater id="r" dataProvider="{texts}">
<ui:DisplayObjectWrapper>
<text:TextField text="{r.currentItem}" />
</ui:DisplayObjectWrapper>
</mx:Repeater>
</mx:Canvas>
This gives the (compile) error:
"Unable to generate initialization code within Repeater, due to id or data binding on a component that is not a visual child."
I went searching but couldn't find much. Only that you can get this error if you use the DataGridColumn in a certain way in a Repeat.
Anyone any idea how to get this working?
Thnx
View Replies !
View Related
FLEX Rocks [would Like A Flex Forum]
This awsam new technology will deffinitely change the web programming!
So I think it deserves it's own forum.. ;-)
Flex Example Applications: http://www.adobe.com/devnet/flex/ind...?tab:samples=1
I did a little testing - and I am amazed with every single thing that I discover!
Integration of your custom Actionscript 3 classes is great (link: my background test).
View Replies !
View Related
Flex I Need A Window Class In Flex
Hi ! I'm trying to make an application with windows. I want to load buttons, text, pictures, etc in each window. and i want to let the user move the window, close it ... maybe resize it and maximize/minimize it ... And the most important: It must have scrollBars. Because my content might be larger than the Window.
Now ... i am using Flex and it has some nice classes but i didn't found anything like what i was thinking about. For example the mx.containers.TitleWindow is a nice window that has a close button and i can easily add Children to it, it has that scrollBar ... But i can't move it, i can't resize it ...
Do you know any class? Or should i make a new one that extends the TitleWindow? and add the things i want ?
View Replies !
View Related
Flex ActionScript In Flex
I am creating a button dynamically, but i could not get the ID of the button.
Quote:
b1.label = "Close";
b1.addEventListener(MouseEvent.CLICK, closePopUp);
b2.label="Other Information";
b2.id="stateBut1";
b2.addEventListener(MouseEvent.CLICK, changeState);
Now Flex Builder points this as error...
Quote:
private function changeState(evt:MouseEvent):void
{
if(stateBut1.click == true)
{
currentState = "state1";
}else
{
currentState=""
}
}
It says that acesss to undefined property stateBut1. Now how should i call the id in my function.
All i wanted is to create a dynamic button via ActionScript and then perform a logic if that is clicked or not.
View Replies !
View Related
|