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.
Similar Messages
-
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? ThanksHi 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); -
How to keep new cursor on top of swf movie
I've got a website I made in Flash, and on the main page I'm doing two things: playing an external SWF movie file and changed the cursor to a custom shape. The cursor works, but it won't show up on top of the movie; it keeps going behind it when I try to go over it. How do I fix that?
On my main page I have the simple code of:
loadMovieNum("home.swf",1)
stop();
Mouse.hide();
startDrag("cursor", true);
"home.swf" is the movie that's playing that takes precedence to the cursor. -
Play/pause battery function
I was wondering if anyone knows if it is possible to remove the play/pause and battery icons from poping up every time you're watching a video and want to stop or resume the movie. Any help you can offer would be much appreciated.
No, not possible.
-
Creating a Simple Flash Movie With Poster Frame and Play/Pause Buttons
Hi, It's been over a year since I played with Flash last, and
I have completely forgotten everything I learned.
I have a .flv file which I want to play on my website. It
should display a poster frame when the page load, and not autoplay
the movie. It should have the play button I made in photoshop
sitting on top of the poster frame. When pressed, the movie should
start playing and the button should be shifted for the pause button
I made in PS (it should work just like the play/pause button in
iTunes). When the movie has finished playing, it should jump back
to the poster frame.
I have tried using the flvplayback component and also played
around with just embedding the flv directly and inserting a play
and pause button from the common library, but I can't seem to get
it to work. With the flvplayback component I have managed most of
it apart from using my own buttons and getting the poster frame to
work (which apparently has to be done with Action script).
Any help appreciated.Which version of Flash/actionscript are you using? Since you
are just starting out, you should read one of Adobe's tutorials on
the matter. Either use Flash Help to find examples on how to use
Flash or go to their website. Here is a great tutorial for someone
just starting out. Make sure you read all three tutorials in "Using
Flash for the first time".
http://www.adobe.com/devnet/flash/getting_started.html -
I bought a new iPod 7th generation. I can't just touch music, I have to double tap it. I can't select songs with a tap, I have to double tap it. I then have to double tap play/pause, or next song selection to move to next song. I also can't use my finger to scroll volume.
Hello HoopsMD,
Welcome to the Apple Support Communities!
I understand that the display on your iPod nano (7th generation) is not responding to your touch as you would expect. In this situation, I would recommend reading over the attached article and working through the steps within to help resolve this issue.
iPod nano (7th generation): Hardware troubleshooting - Apple Support
Display
Follow these steps if your iPod doesn't respond to your input or has a display-related issue.
Screen is unresponsive and displays Apple logo or white screen
Reset iPod by holding down the Sleep/Wake button and Home button until you see the Apple logo appear. If the Apple logo appears on the display, connect iPod to a computer and verify that it appears in iTunes.
If the Apple logo does not appear, or if the iPod is not seen in iTunes, connect it to iTunes and try to restore.
Touch screen does not accept input
Clean the screen with a microfiber polishing cloth.
Do not wear gloves while using the touchscreen. Do not use the touchscreen with wet hands or immediately after applying hand lotion. Moisture affects touchscreen behavior in the same manner as it affects a trackpad.
If you have a protective plastic sheet or film on the touchscreen, try removing it, because it may be preventing the touchscreen from working properly.
The current application may be unresponsive; try resetting iPod by pressing and holding the Sleep/Wake button and the Home buttons simultaneously for a least six seconds, until the Apple logo appears.
Sync with iTunes and restore the iPod.
Have a great day,
Joe -
Stop another SWF movie (+ sounds) from another SWF
Hiya there
Thank you in advance for skim reading this and thinking if
you can help!
I've search and seen similar problems, but not the same.
THE PROBLEM / CHALLENGE!
I need a selection of simple SWF movie files with audio
attached. They're basically audio buttons, scattered through a HTML
page. At the moment they're set up with sound to 'stream' attached
to a specific frame - then enough frames to cover the duration of
the sound.
- on press of button it skips to Frame2 where the button
status changes and the sound plays
- if during that playing process, the button is clicked
again, then it jumps back to Frame1 and rests
I've played with the StopAllSounds command, but that just
stops the sounds on the other SWFs and doesn't stop (and revert)
the other SWFs back to their Frame1's.
Is this something i can solve with simple Action Script /
Behaviours... or do i need to fiddle with the Javascript in the web
page?
Thank you in advance for any help
cheers
James"MrIzzard" <[email protected]> wrote in
message news:e3l5nr$bdo$[email protected]..
> But surely if the way i'm currently playing audio is
from being attached into
> the frames in the timeline (at the moment if i press a
button to switch the
> movie back to Frame 1, where there's no audio attached,
the sound stops) - then
> this would work for other frames too.
> Does that make sense?
If your swfs are on separate places on an html page (not one
swf loaded by another swf) then you can use localConnection to
communicate between swfs.
There are some MX version 6 examples on my website where one
swf controls one or more others..
http://members.cox.net/4my2dogs/flash/
You can have the receiving end stop sounds or move to a
different frame etc.
tralfaz -
I was wondering why when i restored my iphoe5 from my laptop now when I try to play my music and movies a blog pops up saying (the requested URL was not found on this server)?
The problem resolved itself when I resynced the iPod with my computer. I suspect the error displayed when I tried syncing with my laptop and canceled out of it.
-
hello i purchased a movie recently and it shows in my Itunes library but will not transfer to my ipod. It has the Icloud icon in the top right hand corner of the cover and if i click on play it starts to download from Icloud again and it does this each time i wish to play it, the same now happens to all my purcased movies which of course uses additional ISP download allowance. Before the recent update and lay out of Itunes this didn't happen i just purchased a movie and downloaded it then synced it to my ipod and enjoyed it. But now this latest movie purchase will not download to my ipod. I have sent the problem to Itumes and if there is answer i havent received it. Appreciate any advice
regards johnHello hotsone,
You may need to download a lower resolution version of the movie in order for it to sync to your iPod.
iTunes: Sync purchased HD videos to iPod or iOS device
http://support.apple.com/kb/TS4223
Cheers,
Allen -
I have sownloaded an HD movie from iTunes store and when I attempted to play it on my Windows 7 PC a error message popped up saying something about the display not being compatible for HD movies. I have tried changing the display resolution several times but it didn't help. Now it just comes up with a blank screen when I attempt to play it. SD movies work fine. I have the latest version of iTunes installed.
Can anyone help me resolve this problem?Apparently the display is required to be HDCP compatible to view HD movies in iTunes. My display isn't so this is my problem. I contacted Apple support and they have agreed to credit me for the HD movie and I have now downloaded the SD version.
-
I am getting the following error during the play of a rented movie from my MacBook that i am trying to watch on AppleTV Could not play the rental “A Thousand Words” because it is authorized to play on another computer or device." any ideas?
Rentals can only play on one device/computer at a time. Have you tried to play on the computer and still have that window open?
Have you transferred the rental to iPod/iPhone or iPad to watch?
If it won't play anywhere contact iTunes support at:
expresslane.apple.com
AC -
Is there any way to play an iTunes rented movie from my mac on a tv that does not support HDCP?
No.
-
DVD and CD sharing will not let you play or share DVD movies and audio CD's. Does any one know of a way to get music from a CD on a MacBook Pro wirelessly to an iMac?
I cannot find the eMac install disk, and I haven't been able to get it to start up from my 10.3 CDRm (holding down option or c), though I read something somewhere about these not being able to start up from system folders earlier than those they shipped with. I've dealt with this sort of thing several times before, and it always seemed to work to simply use target disk mode.
It definitely won't start up fromt the 10.5 DVD-R, and I'm pretty sure I tried putting the MBP into TM to use its optical drive as well, but it didn't work. But it's worth trying again, and I appreciate your input greatly. -
I get this buzzing sound from my speakers when I play a video, or movie either from the internet or playing a DVD. What can I do to solve this problem
A: There is no such thing as an unlocked iPhone 3Gs in the United States. ALL iPhone 3Gs's sold in the US are locked to AT&T. AT&T will NOT unlock iPhones, therefore it is not legitimately unlocked.
B: Sprint is a CDMA network as others have mentioned. They do NOT use SIM cards. The iPhone 3Gs will NEVER work on Sprint. Ever. It's not physically possible.
Either your Uncle misunderstood or he was mislead. Send it back and tell him to get his money back. Buy an iPhone in India from a supported carrier. -
How to play a slideshow (with movies) from Iphoto to Apple TV second gen
Hi,
Does anyone know how to play a slideshow with movies, that I normally play perfect with Iphoto (I even can add music)to let it stream to the Apple tv second gen?
So I have some movies on Imac from a holiday in Egypt and Iphoto alows me let it play as a movie.
How can I setup my Apple TV so that it is the same on my Apple TV? So with nice fade ins and outs?
ThanksOk Thank you, but I have one more question.
The Iphoto library is loaded with different movies and Photos. They are sorted by date.
Is there a possibily to make folders in Iphoto. So that I have on folder called for example "vacation Egypt" and put all the movies in this folder within Iphoto?
And then when I select this map it will make a slideshow from all this movies with music? Just like in Iphoto?
Maybe you are looking for
-
Default background color code for Canvas, Panel, Form?
I could not find them. Are they the same for MX and Spark components?
-
Migration of my old user name (iMac w/10.4) to wife's new macbook pro
My wife was using my old iMac (10.4) Did a migration of data/docs/email to her new macbook pro, which she set us with a login/password, and her own email. Everything transfered under my old user name. Can I transfer contents of the old user to th
-
Every time there's an update my plug-ins seem to be at risk and some of them are not free, I am running v29 and I will roll back to a previous version and turn off any update/upgrade features, too much waste of time on my side. I think Firefox team s
-
I have made a complaint via email to three different 'complaint processess' hopefully one of them will result in some action. I have just hung up after three hours on hold. After being transferred 5 times. This is following 2 hours of the same treatm
-
Take folder correction no being saved
Hi Regarding my earlier post ("take folder problem")about certain takes in a take folder not starting at the right time, I unpacked the takes and managed to set them back to the original recorded postions. But when I saved the track, the corrections