Control loaded movie with actionscript
Is it possible to get a button in my main movie to effect a
loaded movie. I need to make one element inside a loaded swf become
transparent. What would the code for that look like?
lets say you loaded your SWF into holder_mc and the the
element is inside another movie clip in the SWF named your_mc and
the actual element is name element_mc
yourbtn.onRelease = function(){
holder_mc.your_mc.element_mc._alpha = 0;
}
Similar Messages
-
Cannot load movie with subtitles and export in QuickTime 10 / Os X Lion
Since Os X Lion, when trying to load a movie (DivX) in QuickTime 10 at the same time that the related subtitles file (.srt) is in the same folder as the movie, QT 10 suggests to use QT 7. QT 10 cannot load the movie with subtitles (in Snow Leopard everything was OK). Q& 7 is useless too because it cannot export movies to another format.
Anybody has a solution for this? Thanks for your help!chaquemain wrote:
Since Os X Lion, when trying to load a movie (DivX) in QuickTime 10 at the same time that the related subtitles file (.srt) is in the same folder as the movie, QT 10 suggests to use QT 7. QT 10 cannot load the movie with subtitles (in Snow Leopard everything was OK). Q& 7 is useless too because it cannot export movies to another format.
Anybody has a solution for this? Thanks for your help!
I do this because Perian don't work with QT10 on Mac OS X Lion:
-Try to open .avi movie with QT 10;
-OS X ask you to open on QT 7;
-Donwload QT 7 and install it. It will be installed on "Utilities";
-Download Perian but don't install it;
-Mount Perian, and click "Show Package Contents"
-Go to "Contents"->"Resources"->"Components"->"CoreAudio" and copy to Desktop "A52Codec.zip" and unzip it;
-Go to"Contents"->"Resources"->"Components" and copy to Desktop "Perian.zip" and unzip it;
-Go to "Contents"->"Resources"->"Components"->"CoreAudio"->Quicktime" and copy to Desktop "AC3MovieImport.zip" and unzip it;
-Then copy all packages with ".component" extention to /Library/Quicktime/;
-Then you can run all movies on QT 7.
Or,
-Install MPlayerX;
Or,
-Install VLC;
Or,
Regards -
Loaded movie with sound problem
I have some movies with attached sound. The movie uses the
sound position property and preset cue times to drive action in the
movie. They play fine on their own but when they are loaded into
another movie using either loadMovie or loadMovieNum, the sound
does not play and the cue driven action don't work. I made sure to
set the _lockroot property to true in the loading clip with
loadMovie and also put it in the original movie and tried using
loadMovieNum.
What happened to the sound?when instantiating your sound object try:
-
"Could not load movie" with YouTube videos.
Hi there,
In both the past and present I have had much difficulty with playing many YouTube videos on my iPod touch 4. This happens to be the case no matter if I am in the YouTube app or on the mobile YouTube site in safari. I will try to play a video to watch it and often times I blue box will pop up saying 'could not load movie'. This makes video viewing and sharing quite difficult! Please help! Thank you very much!
- Samuel AmosHere is an explanation for you for the "could not load movie" error, which I have also received on my iPad.
If you run across this error on your iDevice, keep the following in mind:
This is taken from another site, so I will quote:
"Most of the time its due to the age of the video upload, this one for example was done back in 2009 which was 2 years ago now. YouTube as you know relies heavily on Flash for video playback which is not compatible with the iOS range.
However to combat this, YouTube did work on converting chunks of videos to H264 playback, but by default the entire backlog of videos did not go through this conversion process...so you will find the odd video out there that does not play.
I believe though (and please someone correct me here if i am wrong) YouTube by default now encodes uploads in H264 as well as flash and a few other formats for multi-platform enjoyment :-) " -
Loading movie with variable inconsistently working
I have multiple files that link together. When the user
clicks a button "back", a variable "return" is set and another swf
loads. The actionscript of the new movie checks to see if all the
frames are loaded. If they are, AND the variable "return" is true,
then it jumps to the last frame.
This code has worked for the last 4 years. Now, for some
reason, on SOME machines it is no longer working. Instead of going
to the last frame, it goes to the first frame.
This is being delivered for IE deployment.
Any help is greatly appreciated.
--pennyFRAME 1:
System.useCodepage = true;
main="";
pageNum=1;
if (_framesloaded > 50){
//if (_framesloaded == _totalframes){
gotoAndStop (8);
} else {
gotoAndPlay(1);
FRAME 7:
gotoAndPlay(1);
FRAME 8:
if (whichFrame == "return"){
gotoAndStop (20);
less6.gotoAndStop(2);
} else {
gotoAndStop("splash");
FRAME 20:
if (_framesloaded == _totalframes){
gotoAndStop ("p14");
} else {
gotoAndPlay(10);
} -
Controlling multiple movies with one button
Hi flash gurus,
I have 4 movies of the same length running on my stage in the
FLV playback component, with different instance names. I also have
a single play/pause component. I want all of the movies to play
together and unpause/pause when I press the play/pause button.
However, I have only been able to get the play/pause button to
control one of the movies (the last one listed in the
actionscript). I'm using the following code to attach the
play/pause component to the FLV playback movie:
FLV_instance_name1.playPauseButton = PlayPause_instance_name
FLV_instance_name2.playPauseButton = PlayPause_instance_name
FLV_instance_name3.playPauseButton = PlayPause_instance_name
FLV_instance_name4.playPauseButton = PlayPause_instance_name
When I use this, the play/pause button only controls the
FLV_instance_name4 movie. How do I get it to control all 4 moives?
Any help is much appreciated. Thanks!PS, I'd also prefer for the controls to be detatched from any of the viewers, if possible. Thanks!
-
Controlling QT Movie with Chapters in KN 3.0.1
Has anyone experimented with QT movies that have chapter markers in KN 3.0.1?
We would like to be able to select the various chapters of a given QT movie while it is playing in a KN show - ideally with the pull down menu that appears in the controls area of a QT movie (or something like it), presumably on the "operator" screen (i.e. not visible on the projected "show" screen)
I am aware this may be a tall order but even if we had the ability to just jump to the next chapter heading in the movie that would still be quite helpful.
I am aware that I could just cut the QT into separate movies and put them on individual slides but that would not edit from one video section to the next as instantaneously as simply jumping to the next chapter marker (whether by just using the "tab" key or something similar or by actually pulling down on a chapter menu somewhere on the presenter's screen.)
While I'm at it, shouldn't there be an easier (more Mac-like) way of putting chapters in a QT movie. The procedure outlined on the Mac site is at best cumbersome and seems to be a bit buggy and is certainly overly involved for something that should be an intuitive point-and-click kind of operation. I have also tried the premaid applescripts for this purpose but was unable to get them to work. May well be my screw-up but like I said, the prospect of adding a couple of chapter markers to a QT should take seconds and be done from a pull-down in QT Pro - I can't understand why it's so complicated.
Much Thanks.I started to answer a while back and safari crashed so I gave up.
There's no way to get Keynote to see the chapters, but to answer your other question...
try this:
http://www.feelorium.com/
I think their Textation app lets you add chapter tracks.
I usually use Final Cut Pro to make chapters, then once I've run my final DV movie through compression those get stripped out. A few simple steps and you can graft the chapter file from your original DV file into the web versions (we do this every week at my church). -
Controlling captivate movie with JavaScript
Hi,
I am trying to use Flash methods to control a captivate movie
using procedures documented in the support center article:
http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03. html
I am using the following code in a JavaScript:
var movie = window.document.Captivate1;
movie.StopPlay();
Captivate1 is the object ID assigned by Captivate when it
generates the HTML file. The movie does not respond to the command.
I have created my own Flash movie and the StopPlay command
works with it.
Thanks in advance for any help anybody can provide!Captivate SWFs don't respond like other Flash movies. You can
use similar techniques, but must use some specific, legacy "control
variables" that are hanging around since the RoboDemo days:
To pause a movie, use rdcmndPause = 1;
A good place to find more details is here:
http://www.raisingaimee.co.uk/index.php?option=com_content&task=view&id=27&Itemid=29 -
Loading movies with HD-SD combos into iTunes
When I try to load two quality versions of a movie into iTunes library, it loads as two different individual movies. I would prefer it to load as hd-sd combination, listed as a single movie in the iTunes library. It did this previously but for some reason has stopped working. Any advice?
Re-reading your question:
It sounds as though only HD has downloaded.
Apple have changed things and now if the device downloading is capable you only get the HD automatically. Many people will be fine with this but those of us who want SD for smaller file sizes to sync to AppleTVs and iPads etc want SD too.
If you navigate in iTunes to the main iTunes Store page (house/home icon), then in Quicklinks on the right you should have a Purchased link - click that, choose TV Shows or Movies and select the one you want SD for - then uncheck Download HD When available - this should then let you get the SD version (switch to All if they don't appear under Not on This Computer):
AC -
Hi all,
I have a movie that loads other movies into it, one of which
is effectively a page footer. As some of my movies are different
heights (all pages conform to one of 2 heights), I want the footer
to animate it's y position to sit at the bottom of the content.
I am currently loading the footer into _level0, the content
into _level1 and the navigation into _level100.
One of the pages (loaded into _level1) requiring the footer
to change positon has the following AS on the first frame:
_global.isTall = true; // (For pages where the footer should
be at the normal height, this is false)
trace("This "+_global.isTall);
if(_global.isTall = true and _global.wasTall == false){
_level0.gotoAndPlay("TallPage"); // (The animation for the
footer to its new position)
_level101.gotoAndPlay("out");
The button (at _level100) relating to this page has the
following AS attached:
on(release){
_global.wasTall = _global.isTall;
trace("Last "+_global.wasTall);
loadMovie("cars.swf", 1);
This works as expected once, but if I press the button twice,
while already on the page, the trace tells me that _global.wasTall
is false, when previously on the same page it traced true.
Am going about this in a completely backwards way?
TIA,
PaulHi kglad,
Code pasted below. I amusing Flash 8, but haven't done any
Flash scripting for a while.
Thanks,
Paul
Default.fla - frame 1:
loadMovie("navigation.swf", 100);
loadMovie("sub navigation.swf", 101);
loadMovie("index.swf", 1);
stop();
Default.fla - frame 2 (label "TallPage") to frame 15
animation of footer moving down with stop action on frame 15
Default.fla - frame 16 (label "ShortPage") to frame 30
animation of footer moving back up with stop action on frame
30
Index.fla (Not a tall page) - frame 1:
_global.isTall = false;
trace("This "+_global.isTall);
if(_global.wasTall == true and _global.isTall == false){
_level0.gotoAndPlay("ShortPage");
_level101.gotoAndPlay("in");
Navigation.fla - attached to cars button (cars is a larger
page)
on(rollOver) {
cursorIsOver = true;
play();
on(rollOut) {
cursorIsOver = false;
play();
on(release){
_global.wasTall = _global.isTall;
trace("Last "+_global.wasTall);
loadMovie("cars.swf", 1);
Cars.fla (a tall page) - frame 1:
_global.isTall = true;
trace("This "+_global.isTall);
if(_global.isTall = true and _global.wasTall == false){
_level0.gotoAndPlay("TallPage");
_level101.gotoAndPlay("out");
} -
Is it possible to load a Flash movie into an area that is
controllled by a scrollbar?
eg. load a 2000x300px movie into a 300x300px space and have a
vertical scrollbar...
ThanksI'd say in your case (as described) it should not be too
hard.
I understand that your scrolable clip is of a fixed size.
Evene if not for a start that would be a good asumption.
Here' what I would do:
Place an empty clip on stage (createEmptyMovieClip...),
Mask it with a clip of 300 by 300
load the desired clip (method depending on flash version
you're targeting)
and make a scollbar clip that positions the loaded clip (by
the name of the earlier created empty clip) acording to the
position of the slider.
Tricky part would be determing when the clip has finished
loading if you target players before 7. Also it might be (I'm not
sure right now, would have to check it out) that you have to
re-mask the clip once the external one has finished loading.
I don't kow If that helps you, but it might provide a general
idea.
If you need more hints, I'll try to be of help. -
Controlling external flv with ActionScript
I'm using the NetStream Class to control the playback of an
external flv. I've got a Pause/Play button using .pause, and Fast
Forward and Rewind buttons using .seek. What I want to do is once
the video is done playing to automatically reset back to the
beginning of the video, allowing the user to press play to view the
video again without having to reload the page. Right now when the
video finishes, the user has to rewind the video in order to watch
it again. I thought I could use .time to determine when the video
reaches the end to go back to "0" in the video playhead but so far
I have not been able to get this to work. Any ideas would be
appreciated. Currently everything is done in frame one of the swf.
Thanks.>>I think obviously there is a difference between FMS
and Flash MX04. The documents I
>>refer to are built into the help menu in Flash 7 and
8 both include the onStatus event
>>and absolutely no onPlayStatus event.
Yeah you're right onPlayStatus isn't in the NetStream class
Flash documentation as this is more about using this class for
progressive download, whereas the documentation i linked to
referred to the NetStream class used in FMS Client-side scripting
for streaming video.
>>I made a mistake. I meant NetStream.Play.Stop –
which was very poorly named. That
>>is what onStatus will return when it reaches the end.
It isn't really "stop" it is "complete."
>>So I tend to read it as such!
NetStream.Play.Stop does seem to be very similar to
NetStream.Play.Complete in progressive downloads. however i know
you can't guarantee that NetStream.Play.Stop occurs at the same
time as NetStream.Play.Complete in a streaming video through FMS,
as a NetStream.Play.Stop can occur for reasons other than
completion.
>>...My guess is that when they took the bits from FMS
into Flash MX04 they didn't do a
>>very good job. They purposefully renamed onPlayStatus
to onStatus...
onStatus does still exist in FMS Client side scripting...
>> – with a limited variety of events returned
(What is Switch?)
switch refers to playlists - only relevant to FMS streams.
Anyway, it appears as though all of this talk of the FMS is
moot regarding the original poster, as I've just had a look at
skauty's posts in the Flash Media Server forums, ironically, and
discovered that skauty is using progressive download and not FMS...
Simple but important distinction... -
Loaded movie with loader?
I have one question - I have a website in flash where I'm
loading SWFs into the main scene. I of course want to have there a
loader which will show me how much is already loaded. I have it
like that the LOADERbar is a part of a SWF which will be loaded
(first scene) which after that jumps to the main scene - is it
ussually being done like this? Or is there another procedure
(loader as a part of the main SWF ...etc. ) how to do it? I' m sure
there is, but it should be workink like this anyway, am I right?
However, it does not - the loaderbar just appears and a then
disappears like the movie is loaded, but it's actually not. When I
publish just the alone SWF, loader works fine. .... 8(
My first deduction was that I'm callin _root so I changeg
name of the name timeline of a movie which is being loaded to some
name, but it didn't help anyway.
I'm quite a newbie to flash so sorry if this bothers, but any
help would be very appreciated.
CheersTake a look at www.gotoandlearn.com. There is a lot of stuff
and i think
there is something about the preloader.
Klaus
phobos007 schrieb:
> I have one question - I have a website in flash where
I'm loading SWFs into the
> main scene. I of course want to have there a loader
which will show me how much
> is already loaded. I have it like that the LOADERbar is
a part of a SWF which
> will be loaded (first scene) which after that jumps to
the main scene - is it
> ussually being done like this? Or is there another
procedure (loader as a part
> of the main SWF ...etc. ) how to do it? I' m sure there
is, but it should be
> workink like this anyway, am I right? However, it does
not - the loaderbar just
> appears and a then disappears like the movie is loaded,
but it's actually not.
> When I publish just the alone SWF, loader works fine.
.... 8(
>
> My first deduction was that I'm callin _root so I
changeg name of the name
> timeline of a movie which is being loaded to some name,
but it didn't help
> anyway.
>
> I'm quite a newbie to flash so sorry if this bothers,
but any help would be
> very appreciated.
>
>
> Cheers
>
>
> -
Control Stacking Order with Actionscript?
How can you control the stacking order of objects using
acitionscript? That is, objects
already added to the stage. I know how to add something at a
certain level with addChildAt, but I'm wondering if someone adds an
item to the stage in the wrong order, I want to force it to be on
top (or at a specified z-index).Use setChildIndex().
-
Quicktime X Won't Load movies with AC3 track
Not sure if anyone else has seen this, it is more than likely that this is the case but maybe some people don't realise it.
Any movie file I have that has an ac3 track on it will not open in quicktime player x for me, but will work in quicktime player 7. When I use quicktime player 7 to completely remove the ac3 track (not just disabling it, that doesn't work), it will open fine in QT X. If I open a file that I ripped from DVD 6 months ago, quicktime x will open it fine as there is no AC3. A file I ripped yesterday won't open as it has AC3.
I tried to call the apple helpline but they were next to useless, considering the chap thought I wanted to put a password on quicktime when I talked about passthrough, and then directed me to download quicktime 7, like I hadn't used it to diagnose the issue!
Has anyone else encountered this issue, and more importantly does anyone know how to fix it, apart from using quicktime 7?Another questions occurs to me: May I use Quicktime 7 for playing MPEG-2 videos with audio AC3 files? Or do I need Quicktime 7 Pro? And where do I get these applications -- if they will solve the problem? Do I have these applications on my Snow Leopard DVD? I checked my utilities folder and they are not in there. Will QT 7 and QT 7 Pro even work with Snow Leopard? I'm new to Mac and very confused, obviously.
Maybe you are looking for
-
PI 7.11 - Configuration: Adapter Engines Not found
Hi, We have a PI 7.11 System that is connected to a central SLD. There are also two PI 7.0 systems connected to this SLD. If i open a communicationChannel i get following message: Adapter Engines Not foundNo SLD elements of type SAP_XIAdapterFramewor
-
REUSE_ALV_GRID_DISPLAY, columns reorder when exporting to Excel
I have a variable column output and am using "cl_alv_table_create=>create_dynamic_table" to create the field-symbol output table with correct number of columns in the exact order of the field catalog. The field formatting also matches from the dynam
-
Problem linking jsp with javabeans
Hey guys, I am new at this jsp stuff, but have read a few threads as well as a few tutorials. however, i dont understand why i keep getting this error. any help would be appreciate it! i m currently running it off tomcat 4.1, and the hierarchy that i
-
I have 160gb of music on my Classic, 6th Gen (I think) I've just bought it. Is it possible for it to play my songs in a random order, one or two from different albums?
-
Mac OS X 10.6.2 Upgrade/Parallels Crashes/HD Unrepairable
Once I have the 10.6.2 upgrade installed, parallels 4.0 crashes. I tried to repair the HD utilizing the install disk utlity. It is telling me the HD is not repairable. I restored the HD from my time capsule but once I re-install the 10.6.2 upgrade it