AS2 .swf to AS3.swf
This may have been posted somewhere else however I have created a series of AS2 .swfs and now that I am using captivate 5 i need to convert them to as3.swf
Can anyone help
That's going to depend on whether or not there's any AS2 code in your SWFs and how complex that code is.
Did you create these SWFs in Flash? If so, what version? If it's Flash CS3 or above you should be able to open the original FLA files and change your publish settings to output as AS3.
If you've programmed a lot of interactivity into these SWFs as AS2 and you don't know AS3, you'll need to either learn it yourself or pay someone that does.
Similar Messages
-
Load AS2 swf into AS3 swf problem
I have a flash with AS3 and inside this swf i load in a AS2 swf.
to load swf works just fine, but the problem is when i load this i want to go to
a specific part of it, for example i want to go to frame 3 in the loaded swf.
i must control this from the AS3 swf, does someone know if this is possible?
thanks in advanceso can i do like this then to go to frame 3 in my loaded swf?
MovieClip(ldr.content).gotoAndStop(3); ?
sorry for being such an airhead
thanks for helping me out =)
Date: Sun, 7 Jun 2009 10:25:09 -0600
From: [email protected]
To: [email protected]
Subject: load AS2 swf into AS3 swf problem
no.
if, in your loaded swf, you have a function f1() on the loaded swf's main timeline and you load that swf using a loader (say ldr), use:
MovieClip(ldr.content).f1(); // to call f1() in the loaded swf
> -
Load AS2 SWF in AS3 SWF with FlashVars
I am able to load SWF which is created using AS2 in to AS3
SWF but I am not able to pass Flashvars to it..
Does any one has any idea, how can I do that??
ThanksYou can talk to loaded AVM1 (AS1/2) SWF using LocalConnection. I used Grant Skinner's SWFBridge class in the past and worked very well:
http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html
Kenneth Kawamoto
http://www.materiaprima.co.uk/ -
Communication between AS2 Template and AS3 Swf
I created a template in AS2 which loads as2 swf's. i want to load as3 swf. then how can load as3 swf.within as2 template.
please help me to find out this...hI,
Look at package SDYNAMICDOCUMENTS, or look for DD_* ( This is Dynamic Documents Tamplates ) in SE38.
Regards,
Marcelo Ramos. -
Hi All,
I am new to this forum.
Can anyone tell me how to load as2 swf in as3?
If this is possible,can anyone give me some sample example?
Thanks
HarshalYou can talk to loaded AVM1 (AS1/2) SWF using LocalConnection. I used Grant Skinner's SWFBridge class in the past and worked very well:
http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html
Kenneth Kawamoto
http://www.materiaprima.co.uk/ -
I have a swf (written in AS3) that loads other swfs into it.
There are no issues when loading other AS3 swfs but there is a
problem loading AS2 swfs. I get the following error:
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.display::AVM1Movie@35d3a51 to flash.display.MovieClip.
Is there any way to convert the AS2 swf into a AS3 swf so it
will be compatible with my loader? I cannot go back and change the
AS2 swfs because I do not have the fla files. Or is there any way
to incorporate AS3 code that will load AS2 swfs properly? It seems
hard to believe that Adobe would neglect this backwards
compatibility issue. ThanksHello Andrei1,
Thanks for looking at my simple AS3 code. The AS2 swfs that
I've been working (and having difficulties) with are components
that I've purchased from places like www.flashden.com. Some are
image transitions (such as "Dynamic Image Draw found at
http://www.flashden.net/item/dynamic-image-draw/7532)
while another is used to create a looped banner rotator animation
(IMG_loop, a free d/l from www.afcomponents.net). I have another
that uses an .xml file to configure a slideshow animation.
You mention "needing to do more" if AS2 scripts inside its
swf are to be run by the parent AS3 fla; what would these lines of
code be?
In researching my problem further I've since realized that
most of these issues deal both with the version of AS used, as well
as the version of the Flash player the fla is set up to animate
for. In particular, the "Dynamic Image Draw" component requires
that Flash Player 8 or 9 be used with AS2.
Given that many of my purchased components are like this,
I've since changed my main fla movie from AS3 back to AS2 and have
learned that the scripting needed to call individual multiple swfs
into it at various points in the timeline is MUCH simpler!!!!! One
single, easily interpreted, line of code vs. 5 lines using
variables and much more arcane (to me) function calls.
I started my file with AS3 figuring that I'd be better off
learning the new version of the language; much stress and
forehead-rubbing later, I've seen just how much easier and
understandable AS2 is to learn.
I recognize that there are likely very strong arguments for
the more structured coding approach used by AS3, but for someone
like me who wants to generate customized Flash presentations with
little fuss, I'm not qualified to make them.
Perhaps this is a no brainer for those many flash gurus out
there, but for me this tiny bit of wisdom has been hard fought for!
That being said, is there an easy way to convert a swf file
created using AS2 to something that AS3 can work/interact with?
I've come across a free d/l product called actionscript bridge, but
haven't been able to understand how to get it to work. -
here is the code i'm using:
var url:String = "avm1.swf";
var urlrequest:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loaderListener(loader.contentLoaderInfo);
loader.load(urlrequest);
function loaderListener(dispatched:IEventDispatcher){
dispatched.addEventListener(Event.COMPLETE, assignSWF);
function assignSWF(event:Event){
addChild(loader.content);
here is the error i get:
It is illegal to move AVM1 content (AS1 or AS2) to a
different part of the displayList when it has been loaded into AVM2
(AS3) content.
Is there a different way to do this?addChild(loader)
-
AS2 SWF loaded inside a AS3 SWF
Hi,
In a recent project I had to load a FlashPaper2 document
inside a SWF implemented in AS3. I read a couple of articles about
Darron
Shcall's article and
FlashInterface
but none of them seemed to be useful in my case.
I needed to load a FlashPaper SWF inside a AS3 and couldn't
rely on ExternalInterface since they were not two separate SWF's.
To be more clear, I was using the Loader class via a Sprite to load
the FlashPaper SWF.
Anyways, I created FlashPaperLoader.SWF implemented in AS2
which was used to load the FlashPaper SWF. This loader was able to
communicate with the FlashPaper APIs (AS2). As you can guess, the
AS3 SWF was used to load the FlashPaperLoader.swf.
What I don't understand is how come the FlashPaperLoader the
FlashPaper document SWFs can communicate with each other thru AS2
function calls when they are loaded inside a AS3 SWF, I thought
that due to VM differences, no communication is possible!
I hope I was clear, if I was, any guru insight is really
appreciated.
Cheers.Thanks kglad,
But you still haven't answered my question. I am not looking
for solutions, my own solution works. I wanted to understand more
about the VM's.
AS3
var request:URLRequest = new
URLRequest("./FlashPaperLoader.swf");
var loader:Loader = new Loader();
loader.load(request);
AS2
var loader:MovieClipLoader = new MovieClipLoader();
loader.loadClip("./FlashPaperDoc.swf", fpContainer);
// the loader SWF used IFlashPaper APIs to communicate with
the FlashPaper SWF.
Now, the first part (AS3), all that code is interpreted by
VM2. Once an AS2 SWF is loaded a
AVM1Movie
is created and no direct communication between AS3 and AS2 is
possible. I am curious to know how come the two AS2 SWFs can
communicate with each other while inside the VM2 space. -
Embed AS3 swf into a AS2 FLA?
HI, I have a flash site designed in AS2 and want to embed a
AS3 video player in it. If I republish the AS2 site to AS3 the
website doesnt function, and if I load the AS3 swf into the
website, the Player doesnt function.
I need the AS2 functionality on the website and I need the
advanced AS3 functionality on the video Player.
Is there any way to get these two guys to talk to each
other?Creating a 3rd fla, to load the AS2 Fla and the AS3 FLA just
aint gonna fly. This website is updated daily and its just too much
of a maintenance nightmare.
However, I do want to use Wabbits suggestion but I dont know
how to create a web object.
The GetURL function opens the swf on its own, which I dont
want to do. I want it to open the AS3 SWF in a small window within
the page.
Can someone help please? Thanks in advance, -
AS2 swf to AS3 local Connection
Hello:
I am embedding multiple copies of a single AS2 swf build in
FLASH into a FLEX2 AS3 swf. I am using LocalConnection to
communicate from FLEX to the flash swfs. This exhibits the strange
behaviour that only the last loaded swf actually works correctly.
The swf is a told to gotoAndStop at a particular frame. I trace the
FLASH swf function and it is getting the correct frame number from
FLEX. But it does not work correctly.
see a samle at
http://www.miragevideo.com/test.html
The problem seems to be the localConnectin being shared by
three similar instances of the gauge class. Any ideas??
Here is the FLEX code
<?xml version="1.0"
encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="400" height="200"
horizontalScrollPolicy="off"
verticalScrollPolicy="off">
<mx:Image id="gaugeSWF"
source="@Embed(source='../../resources/gauge.swf')"
creationComplete="init();" />
<mx:Script>
<![CDATA[
import flash.net.LocalConnection;
private var toFlash_lc:LocalConnection = new
LocalConnection();
private var _amount:int;
private function init():void{
toFlash_lc.addEventListener(StatusEvent.STATUS, onStatus);
toFlash_lc.send("lc_from_Flex",
'setGauge',_amount) ;
public function set amount(val:int):void{
_amount = val;
private function onStatus(event:StatusEvent):void {
switch (event.level) {
case "status":
// trace("LocalConnection.send()
succeeded");
break;
case "error":
trace("LocalConnection.send() failed");
break;
]]>
</mx:Script>
</mx:Canvas>
and the FLASH code:
// Code in the receiving SWF file
var receiving_lc:LocalConnection = new LocalConnection();
receiving_lc.setGauge = function(frame:Number) {
trace("in flash frame= " + frame +
" angle: " + ((frame/100)*180));
mask._rotation = -(frame/100)*180;
angle.text = frame.toString();
receiving_lc.connect("lc_from_Flex");
stop();You can only have 1 LocalConnection per sender/receiver. If I
have 2 SWFs, A and B. If I want A and B to send messages to each
other, I need 2 LocalConnections. If I have 3 SWFs and want
bi-directional communication between all of them, I'd need 6
LocalConnections. Add a 4th SWF and you'll need a total of 12 and
so forth. -
Load and control AS2 interactive SWF in AS3 and get properties of AS2 swf
Hi,
Can anyone please tell me how to load AS2 and AS3 swf file in AS3 Loader class. I have tried "ForcibleLoader.as, AVM1Loader.as, AVM2Loader.as but as of now I have not get successes yet. There are some issue in all library.
I am looking for below solution.
1) Load SWF file AS2, AS3 via flashVars params and load it in AS3 player.
2) After successfully loaded, below properties should be shown -
a) totalFrames
b) currentFrames
c) FPS of loaded swf file
d) Should wok play(), stop() properties of loaded swf file.
e) SWF file should work just like video player application where we can do Play, Pause, Stop, Seek (All properties and methods
should be supported. )
3) Player should be capable of loading all swf file regardless of any version AVM1 AVM2 both in AS3 Player.
4) After loading player should scale external loaded swf file as per Player stage width and height and content should be scale
proportionate in 4:3.
4) AS2 & AS3 action script must be supported in AS3 player. (All interactive swf file should be supported)
Thankshttp://gskinner.com/blog/archives/2007/07/swfbridge_easie.html
-
Loading muliple accordions into as3 swf
I have an application written in AS3 that is loading swfs written in AS2. Most of them work fine, except for ones that contain the old AS2 accordion component. Loading one results in it working correctly, but each one that is loaded after it breaks the previous one (the content no longer shows and the mask disappears). It's not just limited to the accordion, any of the AS2 components that came with Flash Pro cause breakage. I've tried loading the swfs to separate movieclips, tried using applicationDomain, tried everything else I can think of. Rewriting the swfs in AS3 is not an option due to circumstances out of my control. Any thoughts, ideas, even snide remarks would be welcomed. Thanks.
AS3 and AS2 stuff actually run in different VMs... to my knowledge, you can't have anything in AS3 in the same display tree as anything in AS2. Sorry, but you might be out of luck with this one...
-
AS3 SWF inside Director 11.5.9 quirk
I've previously used AS2 SWFs inside Director 11.5.9, and the SWFs work fine, actionscript works as it should.
I'm working on a project where I need to use some AS3 SWFs inside Director, and I've come across a limit on the pixel width and height of the SWF. It seems that if either the pixel width or height of the published SWF are greater than 1638, then any actionscript inside the SWF is ignored when the SWF is loaded into director. The SWF still works ok outside of Director.
For example, any actionscript stop(); commands are ignored and the playback continuously loops through the swf timeline.
Has anyone come across this before?
I am almost 100% certain this issue is related to the pixel width / height, as I've made a simple button navigation swf, and published it with different stage sizes. 1638 or less work inside Director, 1639 or more don't work inside Director!Made me laugh until I cried...
Or did I just cry? :(
Cruel but funny!
Richard -
I have a feeling that I know the answer to this. I am not
terribly savvy on Actionscript (basic sklls, not expert)..and not
in 3.0 at all!!!!!!!! I have a website that is done nearly all in
Flash with AS2.0. I recently added a video player from a video
aggregator, but their player is AS3.0.
All I could do was to build an html page and embed the AS 3
player into that. I prefer the seamlessness that Flash provides. Is
there ANY possible way to embed an AS3 swf file into an AS2
website.
I just cannot completely rebuild the entire website right now
in 3.0!!!!
Is there ANY simple solution? I cannot believe that I am the
only person who is having issues like this...Ugh!!!!
thanks for any help you can offer.you can't use an as2 file to load an as3 file and have the
as3 file work.
you can use getURL() to load your as3's embedding html file.
if you want it to look seemless, you can load into the same window
so the user will see your as2 content replaced by the as3 swf.
in the as3 swf you can put code to load your as2's embedding
html file (using navigateToURL()). so, you can go back and forth
between your as2 and as3 swfs. -
As2 for load movieclip swf file
im having a problem..i,e. i need to load an external swf which is in as3...and need it to be played in my as2 swf layout. with a time slider ,play, pause ,next, previous for that swf movie clip. pls give ur mail id i can sent my original files....................pls help me
download tis jpg image and convert to rar r zip file.....AS2 and AS3 are incompatible. Although you can load AS2 into AS3 - you CANNOT load AS3 swf into AS2.
Maybe you are looking for
-
CM Upgrade 8.6 to 9.1
I am running CM 8.6.2, I am upgrading to 9.1.2 I have the license and the media to ugrade. I have applied all pre-9.0 licenses. I will not be using IPv6 I have around 350 phones total. I have the following 3 Nodes Publisher 7825-I5 at my location. Su
-
when i tried to reinstall from that option and i entered my apple id it says that i need apple id that was used to purchase lion, i have no cd for that when i bought it.i am using macbook pro. i can's use my mac anymore i am using it by clicking on c
-
Music app: why icon spinning (wait/think) on playing music.
Music app, top bar next to wifi logo is spinning (wait/think) icon- while playing music. This has only started since I upgraded to IOS 7: what is it looking for?
-
Wireless printing - problem with MAC integration
Hi everybody. Just bought a Macbook pro and cannot get it to recognize my printer. Devices within network: - Belkin WLAN Router - HP Laserjet CM1312 multifunctional printer - with HP 2101nw wireless G (printing and even scanning works fine wireless!)
-
ITunes 8 / Genius / Can't enable / Unknown error (-9846)
I have a 99G music library (about 23000 songs). I have been trying to turn on Genius since I downloaded iTunes 8 on Tuesday (about 25 attempts, at all times of day). It gets to the 3rd phase (receiving results), and about 25% of the way through, I ge