Load movie in a masked clip
Hi,
when I try to load a movie in a masked movieclip/placeholder
the clip
isn't loaded. When I check for getBytesTotal() it still is 18
bytes like
the paceholder. When I put the mask away the clip is loaded.
Can I have both?
TIA
Just read your post in google groups, for some reason I can't
see it on
the newsgroupserver.
The problem ist that is just not loaded when there is a mask
on it. It
is just ignored without any error message or anything. Have
done it
without a mask now. Seems to be a bug or something.
Similar Messages
-
Controll the ROOT timeline from externally loaded movie clip?
does anyone know how to controll the root timeline from an
externally loaded movie clip?
I have loaded a movie clip, which has buttons on it that I
would like to controll the main original website timeline with.
something like this.parent.parent?
thanks a lot
harkyfeedmeapples <[email protected]> wrote:
> does anyone know how to controll the root timeline from
an externally
> loaded movie clip?
>
> I have loaded a movie clip, which has buttons on it that
I would like
> to controll the main original website timeline with.
>
> something like this.parent.parent?
_root.doStuff;
Freundliche Grüße,
Franz Marksteiner -
Having a loaded movie clip talk to another movie clip
Here's what I want to do:
Load a clip into my main movie - "loadedMovie"
at the end of the timeline in "loadedMovie" i want a
function, perhaps setColor, which will change the colour of another
movie clip which sits in the main movie.
Does this make sense? for a loaded movie clip to change the
color of an instance of another movie?
Many thanks,
Rayponch wrote:
> Here's what I want to do:
>
> Load a clip into my main movie - "loadedMovie"
>
> at the end of the timeline in "loadedMovie" i want a
function, perhaps
> setColor, which will change the colour of another movie
clip which sits in the
> main movie.
>
> Does this make sense? for a loaded movie clip to change
the color of an
> instance of another movie?
Sure make sense.
If the clip you like to target is on main timeline of the
movie than
you will use something like :
on (release) {
var my_color:Color = new Color(_root.SomeMC);
my_color.setRGB(0xFF00FF);
You can also refer to it by level:
(_level123.SomeMC);
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Whenever I load a movie clip into the target and test my
movie, the loaded movie clip always loads in the bottom right. I
think this is a registration error but I am not sure how to fix it.
My target is 835px by 635px, same as the movie clip I want to load.
Any help would be much appreciated.Position the blank movie clip in the top left corner where
you want to have
the external movie clip loaded.
Note that if the external movie clip has dynamic content
creation via AS or
different content size on higher numbered frames you may find
it will show
content to the left and top of the blank movie clip because
initial size is
not detectable. In particular if you are loading Flash movie
that you
created that you used a third party tool such as xCelsius. In
this case you
need to MovieClipLoader and once the onLoadInit event fires,
manually
position the blank movie clip which is passed as an argument
for coding
convenience.
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"northstar_86" <[email protected]> wrote in
message
news:e27cer$5i2$[email protected]..
Whenever I load a movie clip into the target and test my
movie, the loaded
movie clip always loads in the bottom right. I think this is
a registration
error but I am not sure how to fix it. My target is 835px by
635px, same as
the
movie clip I want to load. Any help would be much
appreciated. -
Here's my problem, I have navigation buttons on the root
timeline that load different swf's into a target movieclip.
Example:
loadMovie("Videos2.swf", Target_mc);
Is there a way I can tell the the loaded movie Videos2.swf to
go to a certain frame and play from the root timeline?
I can adjust all the parameters of Target_mc, _x, _y and
_alpha but Target_mc.gotoAndPlay(50) doesn't work, neither does
Target_mc.play(). Any help would be greatly appreciated.
Thanks in advanceyou must wait until loading is complete (use preloader code
or use the onLoadInit() method of the moviecliploader class
listener) before trying to direct the loaded swf to its frame
50. -
Remove loaded movie after new loadMovie has been loaded
i need to unload a movie once the new loadMovie is fully
loaded because once i click on my button to do so, my current
loaded movie goes away & the screen is white until the new
loaded movie is loaded. (i hope that made sense)well I've done it a few ways successfully.
The most recent, I dynamically create new movie clips.
see ---
http://www.13studios.com/erin
--- Its a figurative painter's portoflio, so while its oil paint it
is perhaps a bit [NSFW].
Anyway, the panning effect kinda killed my normal process, so
when you click a new button, it goes like this...
PSEudoCODE
//tickerVariable is defined on frame 1
holder.create a new movie clip with name "something +
tickerVariable"
play preloader(tickerVariable);
on completion of preloader {
holder[something+(tickerVariable-1)].unloadMovie();
//do anything else you need to do
tickerVariable++
I hope I didn't just make that more confusing. -
Hotspots in a loaded movie not referencing correctly
My main movie uses an onResize function to reposition movie
clips relative to stage H & W, a movie loaded into level 1
contains the hotspots that aren't registering properly.
CODE IN MAIN MOVIE:
Stage.scaleMode = "noScale";
Stage.align = "TL";
///////////REPOSITION ELEMENTS WHEN STAGE IS
RESIZED////////////
this.onResize();
function onResize() {
newPosition();
Stage.addListener(this);
function newPosition() {
stageH = Stage.height;
stageW = Stage.width;
bkgrnd_mc._width = stageW;
bkgrnd_mc._height = stageH;
main_mc._x = (stageW- main_mc._width)/2;
main_mc._y = (stageH- main_mc._height)/2;
//loaded movie- all hotspots are inside this MC:
_level1.temp_mc._x = (stageW-_level1.temp_mc._width)/2;
_level1.temp_mc._y = ((stageH-_level1.temp_mc._height)/2);
on loading a movie into level 1 – I can see that the
hotspots contained within it are visually repositioned when browser
resized (hotspots all inside ‘_level1.temp_mc’) but the
x & y coordinates referenced during hitTest remain those of the
original loaded movie – ignoring the fact it looks as though
it has been physically repositioned!
Hit test code placed inside the loaded movie (in
‘temp_mc’) uses shapeflag method to test hits, eg:
//display readings:
_level1.temp_mc.reader_mc.onPress = function() {
this.startDrag();
_level1.temp_mc.reader_mc.onRelease = function() {
this.stopDrag();
if
(_level1.temp_mc.hotspot1_mc.hitTest(_level1.temp_mc.reader_mc._x,
_level1.temp_mc.reader_mc._y, true) {
_level1.temp_mc.temp_txt.text = " hotspot1";
else {
_level1.temp_mc.temp_txt.text = "Nothing detected";
Resize function also called in first frame pf loaded movie:
_level0.onResize();
Any help gratefully received, thanks in advance.I think I have the concept, but I can't figure out how
exactly to reference this variable.
basically, the variable is '_root.newsMov.myData.newsVar'
which works fine when i load the movie in firefox by itself.
The problem comes when I load the movie via the index movie.
If the new movie with the loadvars is loaded into level 9,
how do I reference it?
_level9.newsMov.myData.newsVar doesn't seem to work... any
other ideas?
Thanks to all who have helped so far -
Reusing dynamically loaded movies
Hello,
I am trying to reuse a dynamically loaded movie which has
been loaded with a movie clip loader. The movie loads fine and can
be displayed once with no problem. However, I would like to be able
to store this movie so that it can be resused again without loading
it from the URL again. Is there a way to do this?
I found this in the docs:
quote:
the problem w/ attachmovie is that one must have a link
identifier (in linkage panel) in order to attach it.
there is no way (that i know of) to attach a *dynamically*
created clip - either by duplicateMovieClip or
createEmptyMovieClip.
I'm hoping this isn't true. What if I had a JPG I loaded
dynamically and I wanted to use it 100 times? I can't imagine
having to load the JPG 100 times.
I need something like attachMovie(), but that only works with
movies that are already in the library. Does anyone know if there a
way to reuse a dynamically loaded movie? I've tried all sort of
combinations of createEmptyMovieClip, duplicateMovieClip, and
attachMovie but nothing has worked.
FYI - I am using Flash 2004 MX Pro and ActionScript 2.0.yes, load it 100 times. it will be retrieved from the user's
browser cache after the first time so this is not the limitation
you're thinking it might be. -
Controlling parent movie from a loaded movie
> This message is in MIME format. Since your mail reader
does not understand
this format, some or all of this message may not be legible.
--B_3264494197_595630
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
Hi!
I have a swf file which I call "Stage" and it contains 3
scenes.
In scene 1 of Stage, I have another swf- "Info1." loaded on
level 10. I know
how to get Info1 to unload and load Info2 but what I am
trying to accomplish
is when I click on Info1, it loads Info2 and it also go to
Scene 2 of Stage.
Is there anyway I can do this?
I appreciate any input.
Thank you.
K.
--B_3264494197_595630
Content-type: text/html;
charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Controlling parent movie from a loaded
movie</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Arial"><SPAN
STYLE=3D'font-size:12.0px'>Hi!<BR>
<BR>
I have a swf file which I call "Stage" and
it contains 3 scenes. =
<BR>
<BR>
In scene 1 of Stage, I have another swf-
"Info1." loaded on level=
10. I know how to get Info1 to unload and load Info2 but
what I am trying t=
o accomplish is when I click on Info1, it loads Info2 and it
also go to Scen=
e 2 of Stage. Is there anyway I can do this? <BR>
<BR>
I appreciate any input. <BR>
<BR>
Thank you.<BR>
<BR>
K. </SPAN></FONT>
</BODY>
</HTML>
--B_3264494197_595630--Never mind - I was doing something very stupid and wasn't
calling the function as a method of a movie clip. I was simply
calling checkTarget(event) rather than
event.currentTarget.checkTarget(event); which seems to work. -
i'm pretty green and like some help.
I want to load a movie clip and change the dimensions of the
clip at the same time- because my main movie is 765X750 and the new
clip is smaller. I want the smaller movie to play at it's native x
and y size in the projector. I can't work out the script to do it.
This is what I have but doesn't change the dimensions when it
loads.
on (release) {
setProperty("_self", _height, "400");
setProperty("_self", _width, "600");
loadMovieNum("intro.swf", 0);
Thank you.The problem is when you load a SWF, the movieclip you're
loading into inherits the properties of the SWF being loaded into
it. As loadMovie happens after everything else has processed,
resizing the movieclip has no effect as it simply gets reverted to
the dimensions of the SWF loading in. What you need to do is run
the sizing code after the loadMovie has started and the movie has
begun to load.
I usually use a loader function that calls another function
when it's finished loading. The function can contain _x = ?? &
_y = ??. I also hide the loading movie or alpha it to zero and then
show it or fade it in when it's finished loading. -
Controlling main timeline from loaded movie
I have loaded an external movie onto the main movie in a
movie clip called "mainholder" - In the main timeline on the main
movie there is a "stop" command on frame 1. From the loaded movie,
I want to control the main timeline and tell it to go to frame 2.
Can someone tell me the actionscripting to do this, I have tried
several commands and getting frustrated. ;-)
Thanksmovies are loaded into levels. The main movie is always
considered level0 a.k.a _root in the AS. When you load a movie into
another, the main movie is also considered the parent of that
loaded movie a.k.a. this._parent in AS where this refers to the
loaded movie. If you want something in the loaded movie to control
the main timeline you could call it like this...
_root.gotoAndStop(2); or _root.gotoAndPlay(2); depending on
what you want.
but because of the parent/child relationship, it can also be
done like this....
this._parent.gotoAndStop(2); or this._parent.gotoAndPlay(2)
Although the first method is less to remember, the second
method proves the most friendly and re-usable. Let me explain...
Say that you did something like this....
[MAIN MOVIE]
[LOADED MOVIE]
{Loaded Movie with buttons to control LOADED MOVIE}
Your main movie loads a movie and when this loaded movie
reaches it's 10th frame, it loads another movie where the buttons
reside for controlling that clip. If you used _root in the button
movie, it would cause the main movie (_root) to be called and not
the LOADED MOVIE as you had intended during its design prior to
trying to make this new main movie (and it would work as intended
if you opened the LOADED MOVIE's fla file and exported). If you use
this._parent in the button movie, it will always make it's calls to
the LOADED MOVIE's timeline and not the main clips timeline.
Sorry if this confuses you but it's important to
understand. -
Drawing order of curve behind loaded movie
Hi,
I'm having an issue with the draw order of curve that's drawn
using Actionscript. In terms of the order of execution of the
function call, I have a SWF loaded first using the loadMovie
function. Then I call the curveTo function with certain parameters
to try to draw a curve on top of the loaded movie. However, the
strange behavior is that the line is hidden behind the movie clip.
I've used swapDepths, but it wasn't working for me. Also tried
using the createEmptyMovieClip function with a depth number
assigned, but didn't do the trick. Any suggestion?1. there's no reason for an onEnterFrame loop.
2. there's no reason to use any setInterval() functions in the code you showed.
3. you should be using the same function to load your swfs. if some logic is needed to position, for example, the different swfs in different locations, the logic should be in that function.
ie, you should be using something like:
_level0 swf:
function nextMov(){
loadF(MovieList[movieQNum]);
movieQNum=(movieQNum+1)%MovieList.length;
function loadF(swf:String){
dep = getNextHighestDepth();
currLo.removeMovieClip();
currLo = createEmptyMovieClip("currLo"+dep, dep);
loadMovie(moviename, currLo);
//move the loaded movie behind movie frame
BlackMovieFrame.swapDepths(currLo);
function endSession(mc:MovieClip){
mc.removeMovieClip();
nextMove();
// in the loaded swfs:
var tl:MovieClip=this;
btnArrow.onPress = function() {
_root.endSession(tl); -
Loaded movie loses functionality
I have a movie called pageturn.swf and is loaded in this
order....................First my main timeline is loaded , which
is an animation.....at the end of the animation, my first movie is
loaded with "loadMovie("movie2.swf"); at the end of this movie my
third movie is loaded. ....In my third movie I have three
navigation points and on one point when a button is click it takes
the user to the the frame label and loads my page turn.swf
movie........so.......I've gone from
Main timeline
->movie1->movie2->movie3->pageturn.swf.
I have a btn that resides in pageturn.swf that takes the
navigation back to movie 3 or the "start" frame label. The
pageturn.swf works the first time BUT pageturn.swf doesnt work when
I try and open it again. It works the first time, then just doesnt
do anything, sometimes when I test export, sometimes it will work
but just not all the time like I would want it. I tried placing the
unloadmovie at the end of the page turn exit but it does not fix
the problem. below is what I have when it exits
this.unloadMovie();
_level0.lines.holder.holder2.gotoAndPlay("play");
Any ideas?I think the problem is the use of attachSound in an
externally loaded movie.
attachSound (Sound.attachSound method)
public attachSound(id:String) : Void
Attaches the sound specified in the id parameter to the
specified Sound
object. The sound must be in the library of the current SWF
file and
specified for export in the Linkage Properties dialog box.
You must call
Sound.start() to start playing the sound.
To make sure that the sound can be controlled from any scene
in the SWF
file, place the sound on the main Timeline of the SWF file.
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"devilmuzik" <[email protected]> wrote in message
news:e83i28$7s4$[email protected]..
> Hi Jan-Paul...here it is...
> _______begin code_______
> on (press) {
> stopAllSounds();
> mySound = new Sound();
> mySound.attachSound("pl");
> mySound.setVolume(100);
> mySound.start();
> }
> _______end code_______
> I've tried declaring the sound var everywhere...the
loader clip's main
> timeline...I even tried declaring it as a
_global...still no joy...
> It is clear that this is something to do with how I'm
handling the Sound
> object, but still don't get why
myLoader.content._lockroot=true didnt
> work...
> Remember...the player works when called by itself...it
just fails to play
> in
> the loader...
> Your continues help is much appreciated...
>
> -
Load .mov from my Nikon to FCX
when I load .mov files from my Nikon The windows show only a small part of the frame. If I bring the frame to full screen it is all there. Both browser and clip windows.
Files are 1920 x 1080 H264 - 29.07hz Set up is Apple inter codec 1920x1080i60
Runnubg Mavrick 10.9.1 FCE 4.0.1
How do I load these files so they appear properlu and can be edited.
I tried converting to mp4 but got the same result.
ThanksSet the scale of the viewer and canvas windows to "Fit to Window":
MtD -
Load a Movie into a Loaded Movie?
Okay, so I've got movie1. I loaded movie2 into movie1 using
loadMovie. That works fine.
I loaded movie3 into movie2, also using loadMovie. That works
fine when I preview movie2, but when I preview movie1, movie3
doesn't load.
How can I load a movie into a loaded movie? I don't want to
replace the movie, I want to load into it.
They're all in the same folder.
I'm using a movie clip placement marker instead of levels.
Help!!!davidlieb wrote:
> Okay, so I've got movie1. I loaded movie2 into movie1
using loadMovie. That
> works fine.
>
> I loaded movie3 into movie2, also using loadMovie. That
works fine when I
> preview movie2, but when I preview movie1, movie3
doesn't load.
>
> How can I load a movie into a loaded movie? I don't want
to replace the movie,
> I want to load into it.
>
> They're all in the same folder.
>
> I'm using a movie clip placement marker instead of
levels.
>
> Help!!!
>
I think that
_root.
this.
_parent.
helps.
Maybe you are looking for
-
Is it possible to have more than one email accounts on A1?
Basically I want to share A1 with somebody else and we both use yahoo email. So I need to sign out before she can sign in. Any way to do that? Thanks in advance for any help! Solved! Go to Solution.
-
Hi, I am getting a system error during the AD4j installation. Here is the error stack. The installation is successful but it couldn't start the Jam Console service. The log also contains the values i am using for key generation. Am I missing some ste
-
Error in getting Long data type from Table
Hi All, I have one table say xx_long. In this table one column is having Long data type. Now I want this values will get in to the PL/SQL variable. I taken variable data type as long but it is showing error "ORA-00997: illegal use of LONG datatype".
-
CATALYST(TM) Control Center + Radeon
I have just swopped out my fx5700Ultra for a Radeon 9800 Pro. Its my first ATI card, was always an nvidia man. Anyway can anyone tell me whats the deal with the ATI CATALYST(TM) Control Center, the one you need to have MS .Net Framework to use. Whats
-
Hello, I screwed up one of my test databases and no i don't have a backup. Database is Oracle10gR2 running on W2K3. Server is a virtual server. I assumed all the disks were on a vmware volume so I took a snapshot before playing around. After playing