Using Flex Code in Flash
Hi everyone,
I really hope you can help me with this. Here's my
situation...
I've developed a flex application that connects to another
java application using "BlazeDS". It works great!! The reason why I
did this is because I'm developing (along with a Flash designer) a
website of a music band, and I use java to connect to a database
that has all the "gigs", news and subscribers to the website.
Everything works great in Flex, my problem is I'm not a
designer, I'm a developer. So I wanted to know if there's a way I
can just give my designer friend a code so he can use it in Flash
CS3?? (Like to send him objects containing the info. For example,
give him a concerts object that contains the date and the location
so he can build the datagrids for the concerts page in Flash)
I think there must be a way to use Flex libraries in CS3, or
maybe create some kind of Flex class that will work as a
"communication interface" between the database and the flash code,
I'm really not sure...
In other words, I need to know how can my designer friend use
(in Flash) what I've developed in Flex.
Please let me know if there's a way...
Just in case you need to know, I use Flex's Eclipse plug in
(it's easier for me this way cause I have java and flex in the same
place!)
Thanks!!!!!!
No need then to use the LocalConnection. In a listener
function (add a listener function for the complete event of the
SWFLoader) you can retrieve a reference to the loaded swf and get
the two values from the swf if they are public and on frame 1 of
the main timeline.
private function onSWFLoaded():void
//retrieve a reference to the loaded swf
var loadedSWF:MovieClip = logn.content as MovieClip;
<mx:SWFLoader autoLoad="true" id="logn" source="main.swf"
horizontalCenter="8" verticalCenter="185" height="364" width="588"
complete="onSWFLoaded()"></mx:SWFLoader>
Similar Messages
-
Can i use flex components in flash?
hi all,
i recently downloaded flex and saw that the components have a
much better feel than the components which ship with flash 8 pro.
is there a way to use flex components in flash?
any help would be appreciated.
thanks,
gaurav"rritchey" <[email protected]> wrote in
message
news:g8ua6d$qu6$[email protected]..
> bump: Was I not clear in my question? Or does no-one
know the answer?
You might want to try in the flexCoders Yahoo! group. -
How to use Flex Components with Flash?
Hi!!
I found a lot of very useful components in the web, but they are all for Flex, is it possible to use Flex Components with Flash IDE?
Thanks !!!
jenry
PS: this is one of the components I need to use (a tree with checkbox nodes)
http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
another one:
http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfmFlex components are delivered as SWCs just like Flash components, but the
SWC format is incompatible with the Flash IDE.
Also, the default fl.. components in the Flash IDE are incompatible with
Flex components.
You should be able to load a Flex SWF into a Flash SWF as long as you aren't
using fl.. components in the Flash SWF. If the Flex SWF overlays things
in your Flash SWF then it might block interaction, but otherwise it
shouldn't. I don't think the statement you quoted is true for all
configurations.
But loading a Flex SWF into a Flash SWF isn't going to help you use those
Flex components from your Flash IDE. Try Flash Builder 4 to build out the
Flex portion of your application. I haven't tried it myself, but it I think
it is supposed to have better integration with Flash. -
Using Flex SWC in Flash CS3 (ADOBE EXPERT NEEDED)
I've searched everywhere, and there is not one good answer to
the question: "How do I use a Flex AS3 Class Library in Flash CS3?"
So I decided to come to the source :)
This question has also been asked on this forum twice, but
got no answer.
Any help on this topic will be greatly appreciated
- OzIf you're using Flex 2, there's a solution using a
manifest.xml file. Tim Walling details it on
his
blog, but I haven't found a way to get it to work for Flex
3. -
Using Flex components within Flash CS3
I'm new to Flex and I enjoy all of the components that it has
to offer, but I am wondering about their availability within Flash.
My plan is to make a highly animated and interactive menu and
I have reached a point where I have to ask two questions:
1. Is is possible to use any of the Flex components within
Flash CS3?
2. If the first is not possible, then if I make my menu and
specify "containers" within the Flash file then is it possible to
populate these "containers" with Flex components by making the
Flash (.swf) file of my menu into a Flex component itself?No, Flex components cannot be used in Flash 8.
-
Web Site Portal Feasibilty - Using Flex
I have been tasked with redesigning my work intranet portal.
In your opinion, is it feasible to do the whole website in
“Flex”? Is Flex more for just small applications? I was
looking at the 2Advanced Link:
http://www.2advanced.com/
website, and would like to design something similar using Flex
instead of Flash.
The website will have the usual calendar, wiki, blog, phone
book, news, etc...
Any input or opinions would greatly be appreciated.You could use iWeb for this but you would have to get into building your own navigation and creating the site in manageable sections on separate domain files.
Do you mean that you would be running E commerce from the site?
If so, have a look here...
http://iwebfaq.org/site/iWebBusinesssolutions.html -
hiiiiiiiiiiiiiiiiii
can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
In flex3 we are making a component ex: <mx:canvas> and changeing that component to
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cairngorm="com.adobe.cairngorm.business.*">
</cairngorm:ServiceLocator>
if any one used 4.5 with cairngorm let me know
thanks -
Using a swf generated by Flex from a Flash component
I know you can include and control a swf generated by Flash
within a Flex component. But can you do the inverse? Can you use a
swf generated by Flex within a Flash project/component?
We plan to develop a "core" module that would be used in a
lot of other Flash and Flex components we'll develop in the future.
This core would be a package of classes that could be easily
re-used by the components. There would be nothing visual in it,
only standard classes.
Even if this core would not contain any visual components, we
would like to develop it using Flex since we prefere Flex Builder
to the Flash editor to code and debug.
But I'm not sure if:
1) A core module like this, developped in Flex, could be used
by our Flash components or only by other Flex components?
2) If we use Flex to generated this core, will the resulting
.swf be bigger than if we would have used Flash to develop it?
Since there will be no Flex visual components in it, maybe it will
be as small? Is there a compiler parameter to tell Flex to only
include the minimum things possible in the generated .swf?
Any help or link about this would be really appreciated!
Thanks you in advance!
P.S. I apologize to those aware that this message was also
posted on another Flex related forum, but I received no reply on
it!try this. for me it has worked.
import flash.net.URLRequest;
import flash.utils.Timer;
var loader:Loader = new Loader();
var timer:Timer;
var myclip:MovieClip;
//load the Flex Component
loader.load(new URLRequest("IS.swf"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loaderDone);
addChild(loader);
function loaderDone(e:Event) {
timer = new Timer(100);
timer.addEventListener(TimerEvent.TIMER, handleTimer)
timer.start();
function handleTimer(event:TimerEvent):void {
//cast the loader.content into MovieClip to access
currentFrame.
myclip = loader.content as MovieClip;
if (myclip.currentFrame == 2)
however, i need to access properties of IS.mxml..
any data member would work..
or if i could dispatch an event in IS.mxml and catch it in
flash through IS.swf, it would work.
Pls somebody suggest. -
When to use Flex Or Flash Or HTML-Javascript
I am Experimenting with Adobe AIR. I know AIR Applications
can be developed either using Html-Javascript Or Flex Or Flash.
But can anybody HELP me understand when do i exactly use Flex
or HTML-JS.
Well i know one of the reason to use Flex is to build
RIA's.What are the other Possible reasons ?? can i draw a Decision
Boundry between them??The best reason to choose one tool over the other is that you
have something working in that language already, and are just
extending it into the AIR world.
If you're starting a new project, you then have to balance
tools you have and know how to use against the strengths of the
tools. A tool you don't know has to have some pretty compelling
strengths to make you take the time to learn it, unless you're just
doing it for fun. If not for fun, the effort has to pay off, yes?
Very generally speaking, here are the strengths of the tools,
as I see it.
For HTML + Javascript, just look at what you see on the web
today. People are pushing browsers pretty hard these days with web
apps, so that gives you a good first-order idea of the power of
this tool set. The AIR environment does give you some more power,
not just in the AIR APIs, but also in having a single modern
browser to develop for, so you don't have to limit yourself to IE6
compatible code. Still, it's not yet the equal of the other tools
in some areas.
Flash's main advantage over the others is in applications
with lots of graphics and animation. The reason for this is purely
because that's what the Flash authoring environment is geared to
produce. It's not got a very good ActionScript editor, and as a
consequence there's a practical limit on how much code you want to
write in a given project. It's not a question of whether you
can write a 20,000 line ActionScript program within the
Flash environment, it's a question of whether it's better done in
another tool.
One of the best "other tools" when you end up with lots of
code is Flex. With the "Builder", you get Ecipse, and without, you
are presumably using some other worthy programming environment.
But, you give up the graphic and animation tools from Flash, and
you give up a lot of the simplicity of HTML + Javascript.
You can combine them, of course. You could build a whizzy GUI
control in Flash to use in a Flex application which is hosted
inside a web page, for instance. -
Are you using Blueprints search for Flex Code?
Blueprints (aka Code Search) is one of the options we provide with Community Search with Flex, in both the browser and the CHC. With Blueprints, your search results are restricted to code samples and a brief blurb.
You can access the Community Search through the Flash Builder help system.
We're curious to know how people are using Blueprints/Code Search, so can you please reply telling us:
* Do you use Code Search in the CHC or the Browser?
* Do you use the Blueprints Flash Builder/Eclipse plugin?
* If you use Blueprints, do you find the results useful?
Thanks very much!
Stephen Gilson
Flex Doc TeamI didn't even know it existed. I'm installing the plugin now. Thanks for putting this out there, it sounds very useful!
-
How do I use a Flex swc in Flash CS3?
My engineering team has used Flex to create a nice little swc
for me to use inside of Flash CS3, but now I'm having trouble
finding any documentation on how to actually import it. Placing it
in the Components folder doesn't work, as it's not recognized by
the Components window (either as an AS2 or AS3 swc). Is it even
possible to use swcs from Flex in Flash? Thank you very much for
the help.
-- JeremyUse these links
Modular Applications
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f22.html
Creating Flex Libraries
http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/WS6f97d7caa66ef6eb1e63e3d11b6c4d0d2 1-7fe6.html
-Pramod
http://www.flexmycode.com -
Using Flex Component Kit for FlashCS3 in Flash Builder
Hi at all,
i apologize for my english.
I'm using Flash Builder 4 and i've created a movie clip symbol in Flash CS4.
I convert the flash symbol in Flex Component but Flash Builder sends a "Verify Error" because the mx.flash.UIMovieClip class in the Flex Component Kit package is not updated at mx.flash.UIMovieClip in Flex4 library,
Is there a updated version of Flex component kit? At this moment i'ive a 1.1.2 version.
Thanks.
F.You should be able to get version 2.0.0 of the MXP in the open source repository:
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/flash-integration/ -
Problem showing Trademark symbol using ascii code in Flex 3
I am facing problem in displaying trademark symbol (™) using ascii codes(it is showing square symbol). I have ascii code stored in the database for trademark symbol(ascii code "™" ). So I can't use Hexa code instead of ascii code. But using ascii code I am able to show copyright symbol. Following is the sample code :
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
var trademarkSymbol = "\u2122";
var trademarkSymbol1 = "™";
var copyrightSymbol = "\u00A9";
var copyrightSymbol1 = "©";
</mx:Script>
<mx:Label text="Macromedia™"/>
<mx:Label text="Macromedia{trademarkSymbol}"/>
<mx:Label text="Macromedia{trademarkSymbol1}"/> \\ problem code
<mx:Label text="Macromedia©"/>
<mx:Label text="Macromedia{copyrightSymbol}"/>
<mx:Label text="Macromedia{copyrightSymbol1}"/>
</mx:Application>
Please suggest some solution.
Regards
Rajat SahniYou must use Unicode values, not Windows extended ASCII values.
The Unicode value of a copyright symbol is hex 00A9 or decimal 169. This happens to be the same as where it is in a Windows' extended ASCII character set, but this is irrelevant. The Unicode value of a copyright symbol is hex 2122 or decimal 8482. In Windows' extended ASCII it has a different value, hex 99 or decimal 153, but again this is irrelevant.
So the reason you think it "works" for the copyright and not for the trademark is that the two character sets agree on the value of the copyright but disagree on the value of the trademark.
Moral: Find a good Unicode table.
Gordon Smith
Adobe Flex SDK Team -
Link File Using Code in Flash Builder
Is there any way to link to a file on a local drive rather than a url by using action script in Flash builder? For example is there a type of "file request" instead of "url request" command I can use?
Thanks,
SNHello Susan;
I don't know if this helps, but I was having code hint issues also, here is the link to the discussion.
http://forums.adobe.com/thread/553610?tstart=0
John -
Read values on HTML page(flash embedded) using Java code
Hi,
we can normally parse a HTML and can get values on a web page using java code.
is the same possible with HTML page indluding flash?
my basic need is to read values on webpage displayed by flash
thanks
Rflash can communicate with javascript using the externalinterface class.
Maybe you are looking for
-
Can't print from firefox 7.0 but can from Internet Expolrer
Can print offline or with Internet Explorer but after upgrading to firefox 7.0, when I try to print something I get a window popup that indicates I am trying to send a Fax. This happens after I have ok'ed the print window. printer is a Brother MCF 24
-
Safari Won't Open: Error message Process: CT_Plugin
Safari will not open on my computer. But Firefox will This is the error message I'm getting: Please help. Thank you. Process: Safari [278] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 4.0.4 (5531.21.10) B
-
How Do You Enlarge Text In Acrobat X?
All I want to do is go into a PDF file and enlarge the text, so that when I print it, the text is larger than what has been sent to me. Can someone with a generous heart, just please give me step by step guidance? Literally, a step by step guide as
-
Why when someone sends me a picture or video and i reply to it, my reply goes to everybody that originally was sent the picture.
-
I have a valid serial number, but acrobat installer won't accept it
I'm trying to install acrobat 8.1 on a new computer. I found my serial number under my account and it matches the one on the working acrobat v8.1 on my old computer, but then trying to run the installer,I get the message the the serial number is not