Control and playback of AS2 SWF playing in AS3 SWF?

Hi,
I have a rather interesting techincal question:
1. For starters I have a main flash movie which was developed
using AS3 code. It is a video player type flash movie set up to
play SWF files including 4 selectable SWF segments.
2. However I have received the 4 existing SWF files from the
client which were developed using AS2. Most likely they will not be
able to provide original FLA files because another company has
created the SWF presentations long time ago.
Can I load and control the playback of the external AS2 coded
SWF files in the main AS3 coded environment? And I mean having
complete access to it? (not just fast forward, pause, stop but also
communicate with it)
Thanks,
Attila

You can use gSkinner's SWFBridge located here:
http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html

Similar Messages

  • Control FLV Playback with separate SWF

    So, I have an HTML file with three Iframes. Just know that
    due to the nature of my project I need to use iframes. Basically,
    in one iframe is a bar with playback controls. play, pause, stop.
    In a second iframe is a video, in a third iframe is a you tube
    style panel that allows you to select different videos to watch. I
    need to control the video in iframe A with the controls in iframe
    B. If using iframes makes this solution untenable, a solution sans
    iframes is welcome.
    Is this possible? and if so, could someone direct me to some
    resources?
    I know a tad of actions script, and a decent amount of
    javascript, so I'm not a script expert by any means, but I
    understand the language enough to be functional.
    Thanks
    luke

    BTW, I realize that this will require the use of Local
    Connection Objects, as I have found some useful tutorials on the
    subject, but modifying them for my flvPlayback purposes has proven
    difficult due to my inexperience with action script.
    So, again, thanks in advance.
    Luke

  • Convert AS2 swf to AS3 swf

    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. Thanks

    Hello 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.

  • Playing AS2 SWF fiel in Flash CS4

    Naive question perhaps... Does anyone know how adobe plays the AS2 SWF file so beautifully, including being able to go to next frame or prev frame or zoom functions?
    I have tried many different ways to play an AS2 SWF in my flex (AS3) SWF loader and it is a very difficult problem. I use a AS2 Shell as a proxy and I use local connection to communicate between the two AVMs. The result is quite a horrible one because, I am not able to scale the swf very well and also have a torrid time with the debugger.
    Does anyone know of any special methods used by Adobe to achieve that in CS4 Flash or do they also use LocalConnection to play the AS2? Thanks

    Hi Kglad,
    I am indeed using LocalConnection. My requirement is to load an AS2 SWF in my flex app and be able to control the playing of the AS2 file. After a lot of research, I found out that the only way to really accomplish that will be load a proxy AS2 shell swf in the main AS3 app using a SWF loader and to communicate with the AS2 shell using LocalConnection. Thru LocalConnection, I then pass the AS2 SWF movie name and have the peoxy shell load the SWF into an empty movie clip and play.
    This actually works, sort of. My problem is that I am not able to scale the AS2 SWF movie automatically. I can scale using the _xscale and _yscale properties, but to do taht, I need to know the width and height of the incoming SWF, which I don't know of a way of finding.My attempts to find it using the following code have resulted in bupkiss. the trace statement which attempts to show the width and height of the movie clip show 0 and the stage trace staement gives me the dimensions of the browser. Instead of what I really need is the width and height of the movie "fileName" that is loaded. Any thoughts? Thanks, Ramesh
            __vid = createEmptyMovieClip(__vid, 0);
            __vid._lockroot = true;
            __vidMCL = new MovieClipLoader();
            var mclHandler:Object = new Object();
            mclHandler.onLoadComplete = function(mc:MovieClip) {
                trace("wh vals are " + mc._width + "," + mc._height);
                trace("stage wh vals are " + Stage.height + "," + Stage.width);
                mc._xscale = 48;
                mc._yscale = 48;
                out_lc.send(LC_OUT_NAME(), "onPlayVideoResult", true);
            __vidMCL.addListener(mclHandler);
            __vidMCL.loadClip(fileName, __vid);

  • Play Pause  as2 swf Movie from As3swf Movie

    Ihave create one as3 flash file.That file loads as2 swf movies. Ineed Control like (play,pause,gotoAndstop)from as3 flashMovie. Is it posssible?

    Virtual Machines (VM)s run SWFs files. AS3 and AS2 have completely separate VMs. Thus they cannot directly talk to each other because they're running as if they're 2 completely separate applications.
    As mentioned you can use the localconnection class to communicate to any process listening. You'll need to have your AS2 documents listening for commands from your AS3 document to do what you want to do.

  • Whilst playing a selection from a CD I've put in my CD drive, I select Controls and then wish to increase the volume.  It tells me to Press Control and then Up.  Where is the Up button please ?  Thank you.

    My question is how do I increase the volume when playing a CD in iTunes.  The volume slide is at full, but when I press Controls, it tells me to press Control and UP.  Where is the UP on my PC or is it on the screen ??
    Thank you.

    It means the UP arrow on your keyboard. Depending on your keyboard, it is usually located on the right hand side of the keyboard, either with the numbers keys or below the Enter (Return) key.
    However, Control/Up will simply attempt to move the slider in your iTunes programme further up. If the slider is already at the top, then those keys will have no effect, since the iTunes volume is already at maximum. Perhaps your computer's volume controls need adjusting.
    In Windows XP, I believe (if I recall correctly) that the volume control is in Start/Accessories/ and either Volume or Mixer. In Windows 7, it's in Start/Control Panel/Hardware and Sound/Adjust Sytem Volume.

  • Voice control and play order

    I noticed that playing songs by artist via the voice control feature ("play artist whoever") results in all the albums being played +as albums+. By contrast, if you select an artist from the menus, and play "all songs", it plays them in alphabetical order by song.
    Since I prefer to listen to albums in the original order, this is an unexpected benefit to the voice control feature.
    I just wish they'd bring back the "shuffle by album" feature; I miss that.
    Anyone notice any other useful quirks?

    I can use my Jawbone 2 to activate voice control just fine. As if it were any other phone that has had this technology for years.
    As far as using "Activate Voice Control and request(ing) whatever", the 3rd contact on my Favorites list can get me hookers and crack cocaine, so does that qualify?
    Summary: Click on button at the top of my Jawbone -> Activates Voice Control -> Say "Dial. Lou. Mobile" -> Wait a few seconds. Say "Lou. Me. The usual." -> press center button on Jawbone to disconnect. -> go back to watching Sports Center.

  • My iPod nano screen is frozen and will not respond. It shows the song which was playing is paused, but will not resume playing. I have held down all controls, and changed the slide switch, but nothing happens

    my iPod nano screen is frozen and will not respond. It shows the song which was playing is paused, but will not resume playing. I have held down all controls, and changed the slide switch, but nothing happens

    Hi Goofy Goat,
    Welcome to the Apple Support Communities!
    It sounds like you have done some great troubleshooting for your iPod nano that is not responding. In this situation, if resetting it did not resolve, I would suggest restoring the iPod back to its factory settings and then sync your content back onto it from iTunes. Please use the following article as a resource for restoring.
    Restoring iPod to factory settings
    http://support.apple.com/kb/HT1339
    Have a great day,
    Joe

  • The IOS 6 update tweaked my volume control and Itunes does not play?

    The IOS 6 update tweaked my volume control and Itunes does not play  on my Iphone 4? Should I wipe the Iphone clean.

    i would give it a try

  • When enabled, the flashing green light. And the player does not play music. Also no sound, no voice control...

    When enabled, the flashing green light. And the iPod  does not play music. Also no sound. But iTunes see my device, and i can synchronize it. Can you halp me?

    Have you tried resetting the Shuffle to see if that makes any difference?
    Resetting iPod shuffle
    Brock

  • FLVPlayback Component video and skin as one swf

    Is it possible when publishing a Flash CS4 file to have the Video swf and the Skin swf be in one swf file?
    I have a Flash CS4 (AS2) file that has a FLVPlayback Component. When I publish or test movie 2 swfs are output. I need only 1 swf as I am then going to insert this 1 swf into a Captivate 4 project.
    When I insert the video swf by itself into Captivate 4, I do not have a play bar/skin.
    If it is not possible to publish as one swf, can someone please tell me how I can insert the 2 swfs into a Captivate file and get them to work?
    Thanks in advance.

    My project is called JumpVideo.
    The only 2 items in my library are the FLVPlaybackComponent and a Combo box.
    I have imported a video using the FLVPlaybackComponent and have selected the SteelExternalPlaySeekMute skin to go with the playback.
    The video has defined cue points. The combo box has two values. When the first is selected it jumps to the start of the video. When the second is selected it jumps to the cue point.
    When I publish there are two swfs that are produced; the project swf itself (JumpVideo.swf) and the skin (SteelExternalPlaySeekMute.swf).
    I would like there to be only one swf published (i.e. the skin is within the JumpVideo.swf).
    Is this possible?
    The swfs will then need to be inserted into Captivate 4 as animation.
    If 1 swf cannot be published, then can you perhaps help with how I can insert the JumpVideo.swf and the skin swf into Captivate and have it work as it does in Flash CS4?

  • IPhone headset no more able to control iTunes playback on MacBook Pro

    After I have updated to Mac OS X 10.6.5 and iTunes 10.1 on the latest 13" MacBook Pro, it's not possible to control the iTunes via iPhone headset anymore. Only the volume keys work but the middle key (which can be used for play, pause, next, previous, fast forward) stopped working. I've been looking for any possible settings to activate that in iTunes but I can't see any. Can anyone else confirm that? And could you suggest a solution? I was really used to controlling iTunes playback the same way I am controlling it on the iPhone and I thought it was really cool that Apple has allowed such consistency and interoperability between products. I hope that's a bug and not a decision.

    There is another thread about this problem:
    http://discussions.apple.com/message.jspa?messageID=12605653#12605653

  • BUG: Software monitoring and playback levels

    Have you ever thought your headphone monitoring level jumped up or down, for no apparent reason ? I think I may have found out why... try this:
    1) Turn ON Software Monitoring. Independent Monitoring Level can be on or off, it doesn't matter. Take an audio track with active regions on it, arm that track for recording, and press play. Move the record fader up and down--it will adjust the level of the playback audio. All is good. Move this fader down around -20dB, so you can hear the track, but it's quiet.
    2) Now, stop the transport, turn OFF Software Monitoring, and press play again. The track's playback level has not changed, which is fine. Move the record fader up and down--it doesn't do anything. Would be nice if that fader controlled the playback volume, but that's more of a feature request. Here comes the real bug...
    3) Take the track out of record, then put it back in record. Press play: BOOM!, your playback level on that track has now jumped to 0dB. And there's no way to change it--regardless of the level set by the record and play faders, you're now monitoring at 0dB.
    4) Turn ON Software Monitoring, and everything goes back to normal--the playback volume jumps back to the setting of the record fader. Now, turn OFF Software Monitoring, and your monitoring level will stay where you just put it UNTIL you take the track out of record. Next time you re-arm the track, it will jump back to 0dB.
    Very weird, eh ?
    As best I can tell, when Software Monitoring is OFF, the only way to change your playback monitoring level (for a track armed for recording--using auto-punch, etc.) is to turn Software Monitoring ON, then back OFF again. That will set your level to whatever the fader is showing. But once you take the track out of record, the level resets back to 0dB.
    Assuming this isn't some bizarre corruption of my system, maybe we could get Apple's attention to fix this ?
    And I think there may also be a related bug where the live input monitoring level jumps (regardless of visible fader position) while Software Monitoring is ON, but I can't reproduce it. Just thinking I've experienced that from time to time, too, and it's such a similar problem to this one...
    -James

    jnashguitar wrote:
    And I think there may also be a related bug where the live input monitoring level jumps (regardless of visible fader position) while Software Monitoring is ON, but I can't reproduce it. Just thinking I've experienced that from time to time, too, and it's such a similar problem to this one...
    This happens to me on a fairly regular basis. In my case, the input volume is always LOWER than the fader position.
    I will be, say, recording an electric guitar part. Software monitoring on (I monitor thru Logic). The fader is at 0dB, and the guitar on input is a bit loud in the mix, but good for overdubbing a part. After a few passes, the level on input, or even while in record, will drop a good 3 or 4 dB. Hit stop, hit play, and the playback volume is loud again. Go into record, and it drops... the fader was never touched.
    This is isn't every time I record, but common enough to not surprise me... It's definitely a bug

  • I have CDs, legally purchased and uploaded to iTunes (v9.1.0.79)...they were on a harddrive and now I tried to play on my new computer (iTunes v11.0.2.26), but whilst the files appear intact they skip through each song in seconds...why?  and how to fix?

    I have CDs, legally purchased and uploaded to iTunes (v9.1.0.79)...they were on a harddrive and now I tried to play on my new computer (iTunes v11.0.2.26), but whilst the files appear intact they skip through each song in seconds...why?  and how to fix?

    I don't recognise the symptoms as such, but here are a couple of things to try.
    Check all tracks
    Unchecked tracks are skipped during normal track to track playback. Go to the Songs view and CTRL-click on an empty checkbox, or CTRL-click on a filled one twice. This will ensure all tracks are checked.
    Repair permissions
    To make sure that your iTunes folder (or media folder if located separately) has the correct permissions, right-click on the folder and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and SYSTEM full control to this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but later versions of Windows shouldn't be too different.
    You can also clear the Read-Only flag for the entire library from the Properties dialog.
    tt2

  • Video playback in embedded swf

    Hi,
    I'm building a website in flash catalyst that uses an embedded swf also created in catalyst.  The site is for a musician, and one of the pages (states) loads a swf file that contains a list of videos the user can select and play.  That swf was also made in catalyst.  This works. 
    When I navigate away from the video page to the Bio page (for instance), the video stops playing, which is good.  The problem though, is when I return to the video page, the video resumes right where it was when I left the page.  This is a bit jarring... I'd really like the video to stop playing for real when the user navigates away, so that when he/she returns to the page, its in the default state... With nothing playing.
    Can anyone help?  I'm stuck here.
    Thanks!
    Craig

    you need to make your own controls and you need to learn some
    basic actionscript: controlling playhead movement along a timeline
    is about as basic as it gets. check the movieclip gotoAndPlay(),
    gotoAndStop() methods.

Maybe you are looking for