Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-30-2008, 08:36 PM   #1
tata668
Registered User
 
Join Date: Aug 2007
Posts: 39
Default Is it possible to use a Flex swf inside a Flash swf?

I know you can include and control a swf generated by Flash within a Flex component.

But can you do the inverse? Can do use a swf generated by Flex within a Flash project/component?
tata668 is offline   Reply With Quote
Old 06-02-2008, 05:45 PM   #2
tata668
Registered User
 
Join Date: Aug 2007
Posts: 39
Default

Please let me explain a little more why I ask this question.

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?

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 resulting .swf maybe?

Any help or link about this would be really appreciated!

Thank you in advance!
tata668 is offline   Reply With Quote
Old 06-03-2008, 10:52 AM   #3
fnx
fearless
 
Join Date: Feb 2008
Location: Italy
Posts: 49
Default

Actually swf generated in flash or flex are exactly the same thing, so yes you can mix swf between flex and flash and viceversa.
Flex swfs anyway include the core components even if you don't use them (adobe should have correct this issue from flex3+flash player > 9) and an empy flex swf is
about 128k in size (if i remember well).
__________________
Federico "FNX" Nisoli
Lead Programmer - FNX Games
http://www.fnxgames.com
http://fnxdevbox.blogspot.com
fnx is offline   Reply With Quote
Old 06-03-2008, 02:28 PM   #4
tata668
Registered User
 
Join Date: Aug 2007
Posts: 39
Default

Thanks for the reply fnx.

If I understand you correctly, you mean that it should be possible to develop that kind of core component in Flex and use it in Flash?

I'm not so sure anymore for my part! I asked the same question on another forum and a Adobe guy seems to think it's not possible.

But maybe my question is not clear enough and he didn't understand what I want to do exactly?
tata668 is offline   Reply With Quote
Old 06-03-2008, 04:14 PM   #5
fnx
fearless
 
Join Date: Feb 2008
Location: Italy
Posts: 49
Default

I've read again your post and maybe it's my fault, not the adobe forums one

I've never tried something like you're asking about, I don't have clear in mind what you
want to achive. If you want only a "core" of classes well, you can develop/write them
using Flex Builder but if this won't include components than what's the point of compiling an swf? I mean, you can write those classes and then reuse them into flash
only importing them..

Again, having not clear the final result I don't know if my answer is correct or not
__________________
Federico "FNX" Nisoli
Lead Programmer - FNX Games
http://www.fnxgames.com
http://fnxdevbox.blogspot.com
fnx is offline   Reply With Quote
Old 06-03-2008, 04:18 PM   #6
tata668
Registered User
 
Join Date: Aug 2007
Posts: 39
Default

Ok, thanks!
tata668 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one template, many looks? subquark ActionScript 1.0 (and below) 1166 10-29-2013 06:18 PM
Loading flex datagrid into flash .swf bcyde Flex 2, 3 & 4 0 05-28-2008 01:13 AM
Viewing and Using Flex SWFs in Flash spectrum302 Flex 2, 3 & 4 3 09-04-2007 08:17 PM
control swf from a swf loaded inside that swf dftho1 Simple Stuff (Newbies) 1 07-26-2007 01:05 PM


All times are GMT. The time now is 07:52 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.