Movie Clips do not initialize!!
Hello there.
I have some "stop();" frames on the root and each frame conatins some movieclips.
When I click some button, I want these movie clips to initialize themselves, so I go to the previous frame and right after back to the current frame.
Some of the MCs load themselves again but some stay as they were!
HOW DO I SOLVE THIS PROBLEM?
10q.
Are the movieclips still present in the frame that you go back to? Do you store any varibles that define these movieclips that would not be reset when you go back to that frame?
Similar Messages
-
How to add a code so my drag and drop movie clip will not stick once it is dragged to final place o
Hello all and kglad, I have to use the old drag and drop code on my movie clips, but the problem is when I drag the movieclip to the area on my .swf file once i release it, it sticks to the hand mover.
I am encloseing the action script I am using could someone or kglad tell me what is missing from the code so that once it is released it will not stick, see code below
circle.onPress = function(){
startDrag(this);
circle.onRelease = function(){
stopDrag();
I am desparate for help on this must get project ready for this afternoon
Seal55there's nothing wrong with that code but it would be better to use:
circle.onPress = function(){
this.startDrag();
circle.onRelease = function(){
this.stopDrag();
but that won't solve your problem. there must be something else going on like a depth issue. you may need to use swapDepths() to bring your circle under the mouse when releasing. -
So I got this video that is streaming from the server on the stage (starting a new movie clip). I then have a mask over it to create a diamond shaped movie clip. However, once I take it into the main timeline and export as movie...when I view it--it is not looping...it's only playing once. Any ideas on what's going on? THANKS!
I found the answer via http://www.kristenstephenson.net/?p=333&cpage=1#comment-259. Working code:
import fl.video.VideoEvent;
ksvid.autoRewind = true; // fl_video being the name of the video component
ksvid.addEventListener(VideoEvent.AUTO_REWOUND, doLoop);
function doLoop(e:VideoEvent):void
e.target.play();
The only difference from her way of placement was that because I have the f4v as a progressive download in a movie clip as a flash playback with a mask (*pheww)...I had to make a cuepoint at the end of the video and then place the actionscript within the movie clip as its own layer.
SUCCESS! -
Is this possible in flash CS3 or later to resize a movie clip but not its childern
Hi
I want to make a movie clip inside another on, and when I
resize the outer one by code or manually, the inner on should keep
it size as I created it first?
If this possible please give me the code for that (AS2.0 and
AS3.0)
thanks a lot.Hi,
I am not sure so I will just give some some "ideas" you can
try:
1) can you assign a "variable" to the size attribute? like
mclip.size=myvariable;
and then changing it?
2) can you use something to "record" the current size of the
"inside movie clip" like StoringVariable=this.size;
and then call it again later?
3)can you siply not "reassign" the size two times?
like for one "button click:
on (release)
movieclipparent.size=something;
movieclipinside.size=something else;
I think its definitely possible...
Have a look at the Keyword "_parent" or "this" for example...
or "_root.moviclip.movieclip" -
A youtube movie clip will not sync with Ipod classic
I downloaded a short movie clip from youtube using Vdownloader. The clip downloaded to my movies in Itunes.
However it will not sync with my Ipod classic, and comes up with the error message "the olympics opening sequence was not copied to the Ipod, because it can not be played on this ipod."
Previous movies using Vdownloader have copied to the Ipod okay. I am running on Windows XP.
Any help would be appreciated.Let's just say that if your mvies are rent or bought, they are possible for snycing on your classic, but if they are downloads they won't be able to sync on your classic...
Rage Rex -
My iPhone 5 does not download my movie clips to iPhoto on my mac. Do I need to change something in settings?
There are 9 different versions of iPhoto and they run on 10 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
- What version of iPhoto.
- What version of the Operating System.
- Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
- History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
- What steps have you tried already to solve the issue.
- Anything unusual about your set up? Or how you use iPhoto?
Anything else you can think of that might help someone understand the problem you have. -
Hello Forum,
I am baffled by something i "created". I have a swf file,
that has 3 containers (aka movieclips).
my first container (cleverly named "container") gets an
attached movie clip beginning in frame 1 of the root timeline.
I also have a clip on my stage (called "NavigationPane").
This is a movie clip as well. This is dragged to the stage at the
design mode.
My clip NavigationPane has an instance name
("navigaionpane"). This also has a border that gets sized
dynamically at run time.
My stage size is 640x525, and my resize for the
navigationpane is 640x480. so far so good. If I run the swf file
from flash player all works fine (or so it seems).
My challenge is when I embed the swf file in an html page,
and set the swf file to a smaller size (512x420 for the "stage"),
the clip plays ok and at my desired size. I am using code
like this to "resize" the swf object:
<script type="text/javascript">
<!--
writeDocument('<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
scale="exactfit" width="512" height="420" ID="Captivate1">'+
'<param name="movie" value="Module1-4Buttons.swf">'+
'<param name="quality" value="high">'+
'<param name="loop" value="0">'+
'<embed src="Module1-4Buttons.swf" width="512"
height="420" loop="0" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash"
menu="false"></embed>'+
'</object>');
//-->
</script>
<noscript>
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="512" height="420" ID="Captivate1">
<param name="movie" value="Module1-4Buttons.swf">
<param name="quality" value="high">
<param name="loop" value="0">
<embed src="Module1-4Buttons.swf" width="512"
height="420" loop="0" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" menu="false"></embed>
</object>
when the clip starts to play the size show as 512x420 (swf
stage size is 640x525).
I have code (actionscript) set at about 1/2 way thru clip to
resize the nav pane to 640x480. when the code runs to resize the
nav pane - the html sizing seems to be bypassed, and I get a piece
of the stage in my 512x420 "window" in my html file.
It seems that the resize overrides the html code. should I
bite the bullet and just resize everything for my 512x420 size?
thanks,
eholz1ok I seem to have made some progress, but also stepped back
at the same time. I exported it as flv in premiere 2.0, and
imported to flash 8 as embedded video. bottom line quickly, it now
plays two times and stops, so thats better. :) however all of my
control buttons stopped working. I did instantiate the flv as
-video-, but the scripts shown above no longer work. It also
autoplays at load, so in publish settings I told it not to, but
without the buttons working I cannot get it to play at all. Chuckle
chuckle. So if autoplya, it plays twice, but my buttons do not work
at all, if no autoplay, it can do nothing as the buttons do not
work.
I am surprised the buttons do not work as the instance is
still video and I did not change anything. Ah so much I do not
know. Can you nudge me along a little further. I sure appreciate
yours and anybodys help as I try to get out of kindergarten. -
Movie clip resize not working when image is loaded
Hello,
I'm having some strange luck in building an image slide
show. I load the image paths into an array from an XML
page and then step through the array elements w/ forward and
back buttons.
I have an empty image clip on the stage where I create an
empty movie clip inside each time a new image is loaded. I load the
image into the second movie clip like this:
[code]
_root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader.unloadMovie();
_root.picsPage_mc.mc_pic_loader.createEmptyMovieClip(
'mc_individual_pic_loader', 1 );
_root.load_movie_and_stop(
_root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader,
_root.photo_array[_root.photo_index].image,
_root.picsPage_mc.mc_pbar, 'regular_load');
[/code]
The load_movie_and_stop function is as follows:
[code]
function load_movie_and_stop( target_mc:MovieClip,
movie_clip_to_load:String, p_bar:MovieClip, action:String )
mc_loader._width = 0;
mc_slider_bar.mc_drag_pan._x = 0;
if( action != 'simple_load' )
p_bar._visible = true;
p_bar.bar._width = 0;
var mclListener:Object = new Object();
mclListener.onLoadStart = function( target_mc )
if( action != 'simple_load' && action !=
'regular_load' ){ target_mc.stop(); }
if( action == 'load_and_play' ){ target_mc.play(); }
mclListener.onLoadInit = function( target_mc )
_root.resize_movie_clip(target_mc, 160, 120, 250, 190);
if( action == 'load_and_stop' ){ target_mc.stop(); }
mclListener.onLoadProgress = function( target_mc )
if( action != 'simple_load' )
percentLoaded = Math.floor( (
target_mc.getBytesLoaded()/target_mc.getBytesTotal() )*100);
p_bar.bar._xscale = percentLoaded;
p_bar.txt_percent = percentLoaded + "% loaded.";
mclListener.onLoadComplete = function( target_mc ){
p_bar._visible = false; }
var my_mcl:MovieClipLoader = new MovieClipLoader();
my_mcl.addListener(mclListener);
my_mcl.loadClip( movie_clip_to_load, target_mc );
}//___endFunc___
[/code]
After the image is loaded into the movie clip, I then resize
the image to be a specific width.
The image resizing is done w/ this function:
[code]
function resize_movie_clip(clip_loader_name:MovieClip,
max_width:Number, max_height:Number )
orig_width = clip_loader_name._width;
orig_height = clip_loader_name._height;
aspect_ratio = orig_width / orig_height;
if( (orig_width > max_width) || ( orig_height >
max_height ) ) // If either dimension is too big...
if( orig_width > orig_height ) // For wide images...
new_width = max_height;
new_height = new_width / aspect_ratio;
else if( orig_width < orig_height )
new_height = max_height;
new_width = new_height * aspect_ratio;
else if( orig_width == test_height )
new_width = max_width;
new_height = max_width;
else { trace( "Error reading image size."); return false; }
else { new_width = orig_width; new_height = orig_height; }
clip_loader_name._width = Math.round(new_width);
clip_loader_name._height = Math.round(new_height);
[/code]
Now, 98% of the time this works perfectly, but there is some
certain times where the image resizing is completely ignored and
the image gets loaded as it's normal size.
Can anyone see why the image sizing get's ignored in some
instance?
Thanks for any help,
ClemFound the solution that worked (used ._xscale and ._yscale
instead of ._width and ._height
[code]
function resize_movie_clip(clip_loader_name:MovieClip,
max_width:Number, max_height:Number, center_offset:Number )
if( (clip_loader_name._width > max_width) || (
clip_loader_name._height > max_height ) ) // If either dimension
is too big...
if( clip_loader_name._width > max_width )
_root.picsPage_mc.txt_test = "func if 1";
clip_loader_name._width = max_width;
clip_loader_name._yscale = clip_loader_name._xscale;
if( clip_loader_name._height > max_height )
_root.picsPage_mc.txt_test = "func if 2";
clip_loader_name._height = max_height;
clip_loader_name._xscale = clip_loader_name._yscale;
else { new_width = orig_width; new_height = orig_height; }
[/code] -
SWFs containing 3d movie clips do not display correctly
I'm having difficulty using a swf with a 3d movie clip, it's displaying much larger in captivate than it does in any other context. Are there known issues with 3d clips in captivate?
Hi GCemb,
Thank you for contacting Adobe Support.
Can you please and insert an .mp4 3D video clip using though Event video option in Adobe Captivate.
We tested the same at our end and the video is working fine.
Thanks
l.oveesh -
I'm working on creating buttons right now as movie clips so when you roll over it they rise up. The third one "print" is jumping around like crazy and I can't figure out why. I've deleted and re-done it 3 times without luck. I've attached my file - if anyone can spot where I've made a mistake that would be great. Thanks!
Got it - realized the text wasn't staying as static text and was a movie clip before the final frame. So if anyone else has this problem, create a new keyframe on the ending frame, and make THAT the movie clip.
-
Movie Clip Button not working within an Movie Clip
Hi,
I'm trying to create a movie clip on my my main timeline that has a movie clip button within it that pops up a box in the middle of the site that contains text and links. On Frame 1 I have the Up state, frame 2 the roll over state, and frame 3 my Down State (where Box appears).
on (rollOut) {
this.gotoAndStop("1");
on (rollOver) {
this.gotoAndStop("2");
on (release) {
this.gotoAndStop("3");
I have stop(); on each of the 3 keyframes
The problem is that on the main time line, the button is clickable but doesnt do anything
Any suggestions, what am i missing?
CheersOk, i have this assigned to a movieclip, is this wrong? Especially for MovieClip Buttons. Anyway, just tried this and it works!
on (rollOut) {
this._parent.gotoAndPlay(1);
on (rollOver) {
this._parent.gotoAndPlay(2);
on (release) {
this._parent.gotoAndPlay(3); -
I have a movie clip that is called to the stage. The user then clicks a button and music plays. As the music starts, another movie clip is called, a simulation of an equilizer. There are several things that should happen:
1) When the user closes the movie clip the music is supposed to stop playing and the equilizer movie clip is removed. What actually happens is the music stops playing but the equilzer movie clip is not removed.
2) When the music is finished playing the equilzer is supposed to be removed from the stage and the play button is reactivated. But none of that happens. When I click on the movie clip a second time equilizer is still there and the play button is not reactivated.
Here's the code that calls the movie clip to the stage.
stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtons);
function goButtons(event:MouseEvent):void
if (event.target == Song_bnt)
SoundMixer.stopAll();
addChild(myPlaySong);
myPlaySong.x = 304;
myPlaySong.y = 105;
//event.stopImmediatePropagation();
Here's the code in the movie clip:
import flash.media.Sound;
import flash.events.Event;
stop();
var playRayJaySong:RJSong;
var playRayJaySongChannel:SoundChannel;
var equilizer:Equilizer;
equilizer = new Equilizer();
playRayJaySong = new RJSong();
//Plays music, inactivates buttons, and adds the equilizer to the stage.
PlaySongRJClip.addEventListener(MouseEvent.MOUSE_DOWN, songPageButton);
function songPageButton(event:Event):void
playRayJaySongChannel = playRayJaySong.play();
PlaySongRJClip.visible = false;
ClicktoPlaySong.visible = false;
addChild(equilizer);
equilizer.x = 269;
equilizer.y = 246;
//Removes the equilizer from the stage when the music is complete.
PlaySongRJClip.addEventListener(Event.SOUND_COMPLETE, rjSoundComplete);
function rjSoundComplete(e:Event):void
PlaySongRJClip.visible = true;
ClicktoPlaySong.visible = true;
removeChild(equilizer);
//Removes the equilizer and event listeners from stage and calls dispatch event to close the movie clip.
closeSong_bnt.addEventListener(MouseEvent.MOUSE_DOWN, CloseSong);
function CloseSong(event:MouseEvent):void
removeChild(equilizer);
dispatchEvent(new Event("RemoveMSong"));
PlaySongRJClip.removeEventListener(MouseEvent.MOUSE_DOWN, songPageButton);
PlaySongRJClip.removeEventListener(Event.SOUND_COMPLETE, rjSoundComplete);
//Removes the MovieClip from the stage when the user clicks on the close button inside the MovieClip.
myPlaySong.addEventListener("RemoveMSong", RemoveSongClip);
function RemoveSongClip(e:Event):void
SoundMixer.stopAll();
removeChild(myPlaySong);
Any thoughts?I figured out the problem. Here's how I reorganized the code (all in one frame).
//Code for Ray Jay song.
var playRayJaySong:RJSong;
var playRayJaySongChannel:SoundChannel;
playRayJaySong = new RJSong();
myPlaySong.equilizer_inst.visible = false;
//Plays the song.
myPlaySong.PlaySongRJClip.addEventListener(MouseEvent.MOUSE_DOWN, songPageButton);
function songPageButton(event:Event):void
playRayJaySongChannel = playRayJaySong.play();
playRayJaySongChannel.addEventListener(Event.SOUND_COMPLETE, rjSoundComplete);
myPlaySong.equilizer_inst.visible = true;
myPlaySong.PlaySongRJClip.visible = false;
myPlaySong.ClicktoPlaySong.visible = false;
//Removes the MovieClip from the stage when the user clicks on the close button inside the MovieClip.
myPlaySong.closeSong_bnt.addEventListener(MouseEvent.CLICK,RemoveSongClip);
function RemoveSongClip(e:Event):void
SoundMixer.stopAll();
removeChild(myPlaySong);
myPlaySong.equilizer_inst.visible = false;
myPlaySong.PlaySongRJClip.visible = true;
myPlaySong.ClicktoPlaySong.visible = true;
playRayJaySongChannel.removeEventListener(Event.SOUND_COMPLETE, rjSoundComplete);
//Resets all of the movieclips to their orginal state.
function rjSoundComplete(e:Event):void
myPlaySong.equilizer_inst.visible = false;
myPlaySong.PlaySongRJClip.visible = true;
myPlaySong.ClicktoPlaySong.visible = true;
Thanks all for your suggests and input. -
AS3 to make movie clip not play on default?
I created a movie clip that I want to play when a button is
clicked and
stop when another button is clicked.
I have a stop action on the first frame where the 2 buttons
appear and
the movie clips resides. When I test the movie, the movie
clip plays by
default.
How do I set it up so the movie clip does not play until the
user clicks
the play button?
The code I am using:
myPlay_btn.addEventListener(MouseEvent.CLICK, playMc);
myStop_btn.addEventListener(MouseEvent.CLICK, stopMc);
function playMc(e:MouseEvent):void{
my_mc.play();
function stopMc(e:MouseEvent):void{
my_mc.stop();
Thanks!!!Not sure if I understand. Where specifically should this be
added to the
code:
myPlay_btn.addEventListener(MouseEvent.CLICK, playMc);
myStop_btn.addEventListener(MouseEvent.CLICK, stopMc);
function playMc(e:MouseEvent):void{
my_mc.play();
function stopMc(e:MouseEvent):void{
my_mc.stop();
Thanks! -
i create some animation. actuvally i move mouse on button some menu visible, i click test button when play "boxani" Movie Clip.
but not playing. ?????
Test link
http://megaswf.com/serve/1185333
btn_mc.menu_mc._visible = false;
boxani_mc.stop();
btn_mc.onRollOver = function()
btn_mc.menu_mc._visible = true;
btn_mc.onRollOut = function()
btn_mc.menu_mc._visible = false;
btn_mc.test_btn.onRelease = function()
boxani_mc.play();any solution that type of animation method
like freedocast video player mouse over menu and click run action (16:9, 4:3).
http://www.freedocast.com/watchvideo.aspx?vid=531B426A31D72143109F -
Library movie clip not readable
I apologize if this seems like a stupid question, but I've
only been using flash for a month, and I've been teaching myself
how. I'm attempting to make a simple interactive clip where an
onscreen icon performs an action when clicked on. Since it's a
graphic, I created the movie clip in the library. When I go to
reference it in actionscript (AS3), the code doesn't seem to
recognize what I'm doing. The code being used is this:
function onclick(event:MouseEvent):void{
gotoAndPlay('Click');
your_mc.addEventListener(MouseEvent.CLICK, onclick);
'Click' is the label of the frame I want it to jump to. If
necessary, I could convert it into Actionscript 2. Thanks in
advanced!Telling it not to "act" like a button constitutes removing
any button-like actions [e.g. on(click)] and making sure its symbol
behavior in the Library is "Movie clip" and not "Button." However,
if you simply want to remove the hand cursor...
useHandCursor = false;
Maybe you are looking for
-
Data socket problems with LVRT 8.2
I am in the process of migrating to LV 8.2 from LV7.1.1. My system has 18 RT targets which send data to a Host PC through data socket (DS). The Host PC runs LV on Windows XP Pro. With LV7.1.1 on both host and RT targets DS works perfectly. The RT t
-
when I try to install from App Store it give me message that my account is disable like video Download idownloader Please help me
-
Hi all !!! i'm looking for a good developement envinroment
that should include the ability to compile, debug and run java code. I prefer it not to be very complicated to use and understand. (Yes...i'm a newB.)
-
How to call a procedure with SYS_REFCURSOR OUT parameter
Hi, Using Oracle 11g R2. I'd like to know if it is possible to display the results of a SYS_REFCURSOR in a query. For example, if I had the following stored procedure create or replace procedure testprocedure (result OUT sys_refcursor) as begin op
-
Hello everyone, If this has been discussed somewhere else I apologize, I wasn't able to find this information. I have recorded an ep for my band in logic express 7. We are planning to send it off to be mixed. THe problem is they will be mixing on pro