Actionscript 3 :: Override Base Path Parameter Inside Flex Application?
Jan 19, 2010
When using as3 and embed my swf via swf object JS, one of the parameters that being transferred to the embed JS function is "base=http://www.mydomain.com" which needed in order to load external widget into application.
Now, am also loading external assets like Styles.swf that placed locally on client side, and when I'm trying to load these assets I get error that they don't found in [URL]
For example: StyleManager.loadStyleDeclarations("Styles.swf");
Error: can't load [URL]
Is it possible somehow to load Styles.swf as local assets??? I've tried use
That is i have called one AA class in to stage. AA class is extends from BB class. BB class extends from CC class.CC class extends MovieClip. In CC class i have given CLICK event trace("this is CC class"). i am also given for AA class CLICK event ("this is AA class ").When I Click the AA in out put panel "this is CC class" ,"this is AA class ") i want to stop CC Class mouseEvents.
I have an asp.net page where I get the user_id from who's logged in. Now I need to pass this user_id to a flex application that runs in an asp.net page as a .swf. How can I get this user_id in a variable in my flex application.Or what is the best way to get the user_id into flex.
I always have a question about override custom event. I am not sure why or what do to inside override function. I searched google but didn't get too many feedbacks. EDIT: My projects seem work fine even though I use my custom event without override. Anyone could explain it?
I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well. Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application? While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.
I would like to compile my flex application with a services-config.xml file. However, I am forced to supply a context.root. In my setup, the context root (context path) isn't known until my .war file is named and dropped into the webapps directory.
I have a main.swf which loads a module.swf and the module.swf loads some assets.The module.swf works standalone and also needs to work when loaded by main.swf.But unfortunately the module.swf can't find the assets when loaded by main.swf because the assets aren't located relative to the main.swf, but are located relative to the module.swf.As I can't touch the module.swf and I'm also unwilling to change the directory structure, I am looking for a solution close to the a "base" parameter which can be used when a swf is embedded into html
I'm implementing a Flex application with several modules.I'm reusing the same component in all these modules.I was wondering if I'm correctly importing it in each mxml module definition: xmlns:hillelcoren="com.hillelcoren.components.*"Should I import it only once, in the main application mxml instead?
"When using progressive download (FLV), NetStream's .play(url) method is not resolving relative URLs in the expected way. Instead of being based off the HTML's embed location and reading the "base" param, it uses the location of the SWF file trying to load it." I have found it on the web while searching for a solution to exactly the same problem. Unfortunately no one provided an answer. If it is a bug it is in fp ever since and no one has done anything with it. Does anybody know any solution/workaround? I assume it is not possible to read base param value from inside of the swf in order to resolve paths manually?
I've got a problem with a function i'm using to dynamically move movieclips around - its like this at the mo:
function wjump(number) { _root.content.aboutus.webwizard.targetY = startPos[number]; }
where startPos is an array with numbers.
I want it to be like this:
function jump(target, number) { target.targetY = startPos[number]; }
so any clip can be moved as long as it has a targetY variable. But it won't work for some reason. Is there some sort of special syntax i should use like [] brackets? I tried this around the target in function body but it did not work.
I am trying to create a flow chart base application. where user can create connection from output node to input node.this connection is visible by using a line between nodes.I am trying to create a custom class for this functionality "outputDrag.as".There are some issues which I am not able solve here
Details
Yellow triangle = output node (outputDrag.as is attched to this) Yellow circle = input node
problems
1. when user drag mouse from o/p node, an interactive line from o/p node to mouse pos
2. when user release on i/p node create a new line parmanently btw o/p node to i/p node
3. when user moves the root nodes(gray box and gray circle), parmanent connection btw them should redraw.
4. there is a simple class "drag.as" attached to (gray box node) to move it on the stage.if i attach this class to (gray circle node movie) and I press and drag mouse on yellow triangle, entire node moves. How can I prevent this dragging?In general if you have a movie, with simple drag class attached, how do you prevent dragging that if mouse is pressed on some particular child movies, it shouldn't drag.
I am creating a class to handle some audio in an app I am building. This class will need to accept the XML element path as a passed parameter and or a getter.
examples of some XML elements I would like to pass to the the audio handler class to access them.
Dialog.introScreen.text
or
Dialog.secondScreen.main.text
ect.
I pretty sure this is not a string data type and thus cannot be passed as a string (I could be wrong though), if not, what data type would I pass it as?
I am coming from flash to flashbuilder I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled.So today I did that in flashbuilder, included AS3_classes_dir via Flex Build Path/Source Path ... but now the compile time are a couple of minutes, even though I am not even importing ANY of the classes from within.
i have a mission to deliver some SWF compiled in a third party application to iOS system. i install FMS 4 streaming edition and now try to send a path to my SFW like parameter to my player. but it doesn't want to play it.
Is it possible to create a webbrowser inside a Flex (not AIR!) application? I want to display some links in a Flex application and when a user clicks the links, it should open a custom component with some sort of a webbrowsing component. Is it possible?
EDIT: Due to the answer I change the code posted. I've added the Security.allowDomain("*") line and that line throws me an error. So, how can that be made?
I want to run an Action Script 3.0 Application into a Flex Application. To do this I've done the following:
I create some elements( UIComponents, mainly Panels) inside the "mx:Application name=tst . I need to cleanup all those UIComponent's on MouseClick event , using Actionscript. Is there any way I access the children elements of mx:Application ( I used var totalChildren:Number = this['tst'].numChildren ; but looks like it fails to access the children list).
Hey the think is, I need to play some swf file inside my flex 4 app, sometimes this swf file can be a Video, or just a object animated, I have a placeholder in my app which I want to play this swf file, how can I do this?
I have a great idea and I want to build a flex application around a .jar file. Is there a way I can go by embedding a jar file into the flex application?
Since I've never done this and the google results are quite random, I ask here: Is it possible to display Flash movies inside a Flex application and interact with them?
The scenario is as follows:
I'm developing a new application in flex Another, already completed application is given to me as SWF (or perhaps SWC, don't know any details yet) I have to insert this second application inside in my Flex application, which should be no problem afair I have to interact with this application: send and retrieve data. Don't know any further details here, too.
Will this be possible? Or is Flex only capable of displaying the SWF without the possibility to interact with it? I hope you can understand, what I want (have to...) do.
I have drop on a strange occurance - inserting a ButtonBar inside ListItemRenderer freeze the application. The bug is highly reproductive.ere is a bit of the code :
I currently have a network camera that streams video as a .swf (and also as a motion JPEG as well...) and I want to be able to embed the stream inside of either a Flash or Air project that I'm creating myself. The only examples i've been able to find though, require the .swf to be saved as a resource of the project; clearly, this is undesirable for a live stream.
Another option is to utilize the motion JPEG. I have some generated code (shown below), but unfortunately only the first image is displayed when viewed via adobe air (if I were to view it in a HTML browser, the image would automatically update, effectively showing the stream:
<SCRIPT LANGUAGE="JavaScript"> function displayImage( ) { // Set the BaseURL to the URL of your camera
I have a Tree Control inside my Flex Application which I want to edit on a doubleclick on a tree item. I found the properties doubleClickEnabled= "true", doubleClick="startEditMode()", and editable="true". With these functions I can detect a double click and I can change the editable property to true based on a double click. The problem is that after I double clicked on a Item i have to click once more to really enter the edit mode. That doesn't seem to be intuitive at all..
I am trying to develop a P2P conferencing application in flex using RTMFP. So I have to make connection to Adobe Stratus server for Id of Flash Player instance. I am a student and behind the http proxy. I have checked in NetConnection class but, didn't find anything related proxy configuration.So, How can I configure proxy settings for my flex application.
I have a main application that contains a list, using a custom itemRenderer to display data.
I would like to be able to call a function, inside the itemRenderer, from the main application.
When running the app, we have a list with three persons, and a button. I want to call the function myItemRendererFunction() inside the itemRenderer, of the selected item in the list, all this, from the main app.