IfFrame Is Loaded Weird Problem
I've got this problem..(very weird guys..i use flash 5 within 3 years and i'd never had this problem!) i have 1 scene... 1st frame i have this action:
ifFrameLoaded (3) { gotoAndStop (3); }
2nd frame i have this action:
gotoAndPlay (1);
3rd frame i have all the site in this frame. On a layer i have this action:
_root.pianta.a = 1;
where pianta.a is a variable to determine the movement of the entire nav system...
The prob is this...when i publish the flash movie in my ftp the preload process begins without problems but it won't go to the frame where the site is in..and when i click the refresh button on ie the site magically appear ! What went wrong in my coding or what went wrong on browser mind??? i am still getting mad with it..please help a sure next one suicide! thx richard
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-05-2002, 06:41 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
IfFrame Loaded
Hi,
ok, I have a (reasonably small) preloading movie which is fine. I have split my entire web project into a number of movies. when you go to specific parts of the web site another part of the movie loads. anyway thats not the problem.
How do you do if frame is loaded for another level. I can do it for each clip itself have a seperate preloader. but rather than replecate the preloader movie on each movie clip, I would think its more efficent to just have another seperate movie that handles all the preloading for all movies in the site.
Not sure if the question is clear.
Anyway hope someone can help
IfFrame Loaded? Action
I am writing this code to make a simple preloader:
ifFrameLoaded ("end") {
gotoAndPlay ("start");
}
but my label "end" and "start" are inside a MovieClip timeline that has been placed in the main timeline. I think because of this the preloader doesn't work. If all the frames were in the main timeline it would work. So now how can I say ifFrameloaded ("end") when "end" is not in the main timeline????
Weird Coordinates In Loaded SWF's
Hi,
I need to load and place SWF-files into my published swiff during run-time. I created a custom class "Swiff" which manages this, by loading the external swiff according to a specified URL. No problems so far, it loads the swiff, manages loading progress and then places the whole UILoader including it's contents (which by then is either an AVM1Movie or AVM2Movie).
The problem I have is that I can never be sure of the positioning of the swiff, since I myself have not created it. I'm loading different banners, which may or may not be properly created concerning their positioning on stage, and when trying to place them they sometimes end up in totally weird places.
Is there some way to correct this discrepancy in case the x- and y- positions are messed up? I've tried to localize the difference using localToGlobal and globalToLocal, but Flash tells me everything fits perfectly... but it's doesn't...
Basically what I want is the same thing as when placing a Swiff into an HTML-page; I don't care how the swiff is made, the positioning, or anything. All I want is the size of the stage / published swiff, and then I want to display it as the developer of that swiff intended.
Very thankful for any suggestions!
Regards/
Hamrin
Weird Warping In A Loaded Movie
Hey,
I've loaded movie swf's into another movie on a target. This all works fine. I put a movie clip in the backgroup of random lines bouncing around and this causes the loaded movie to ripple and distort slightly. When i zoom in the movie is fine, but at 100% is gets wavy. I have no idea why this is happening. Does anyone know why this is happening and how to fix it? Thanks in advance,
chris
Weird Preloader And Image Loaded
Hi everyone..
just a quick question....why my preloader are not working as suppose to ..because when I test locally it works great...and then when I publish it to real using the actuall path..it seems the preloader not shown up and the image not show up as well..
here's are the as I'm using;
ActionScript Code:
stop();var getImagename:LoadVars = new LoadVars();getImagename.onLoad = function(){ loadtheImage(this.imgname);}getImagename.load("http://www.someactuallurl.com/getimage.php");Bar._xscale = 0;function loadtheImage(thestuff:String){ createEmptyMovieClip("container",this.getNextHighestDepth()); container.loadMovie("admin/img/"+thestuff); temp = createEmptyMovieClip("tmp", this.getNextHighestDepth()); temp.onEnterFrame = function() { var t = container.getBytesTotal(); var l = container.getBytesLoaded(); var percent = Math.round((l/t)*100); trace(percent); Bar._xscale = percent; if (l == t && t>0) { Bar._xscale = 0; delete this.onEnterFrame; } };}
Any help or shoot would be appreciated..
Thanks
Weird Problems Playing A Loaded Swf
Okay, this is a weird one. I've built a video player for one of my clients that loads in swf encoded videos. The videoplayer has a preload bar that keeps track of how much of the video has loaded (while the video plays). For some reason, when the video has completely loaded, it goes back to the first frame and starts playing all over again. WTF? And here's the kicker: it doesn't happen with Safari, only Internet Explorer and Firefox. What gives?
Weird Display Glitches With Loaded Movies
hey there,
I am designing my portfolio site and am inporting old .swf's from over the past few years into the portfolio swf and displaying them there. Problem is that when i do there are weird display glitches.
The screen doesn't refresh and there are layers of graphics showing that won't clear even though the individual swf's work fine.
any ideas as to why this is happening? i'm at a loss!
thanks
Spin
Weird Text Problem... Not Showing Up In Loaded Movie
I have an external movie loaded using this code:
on (release) {
_root.pattern.loadMovie("ss301.swf");
}
It loads the movie perfect, however the movie doesn't function correctly, more specifically I should say text on one of the frames doesn't appear.
In the external SWF (ss301.swf) I have two frames, each with a stop action. On the first frame, there is a button with this code:
on (release) {
gotoAndPlay("detail");
}
where "detail" is the second frame. In the second frame, I have a button with this code:
on (release) {
gotoAndPlay("pattern");
}
where "pattern" is the first frame.
On the second frame, there are two text boxes, both are static text and using device fonts. When I test the external movie, it works exactly as designed. When it loads into my main movie, the first frame shows up as it should. When the button is clicked to take the playhead to the second frame, the text that should be displayed in the text boxes is not there. I know the playhead is moving to the next frame, because graphics that are only on the second frame appear when the button is clicked.
Any ideas why the text isn't showing and/or how to resolve this?
Thanks
Weird Behaviour Of SetMask() With Loaded JPG: Sandbox Error?
Hi!
I am trying to set a MC drawn with the drawing API as a mask for an externally loaded MC.
I get really funny behaviours....
Sometimes it works (If I call the setMask() from root)
Sometimes it masks every MC on _level0.
Sometimes I get a sandBox SecurityDomain error!!!!!
It says that the JPEG is trying to access a context not allowed....
This really sounds weird... the jpg loads perfectly but the error comes when I am setting a mask!!!
Can anyone help me???
I am really loosing my feel of reality on this
thanks
Pippo
Dynamically Loaded Text Line Spacing Is Weird...
So I have a text field that loads in external text documents for a few of the pages on a site I'm working on right now. The problem is the spacing is wrong and I can't seem to fix it. The text doc was written in Notepad and I've tried Dreamweaver as well and no matter how or what I write it in, some text is double spaced and some isn't. I don't want the double spaced text and can't figure out how to fix it.
Any help would be greatly appreciated!
Here is the site (work in progress):
http://www.littlefenris.com/NedStevens/
And the text document being loaded:
http://www.littlefenris.com/NedStevens/TXT/jobsPage.txt
And the css file:
http://www.littlefenris.com/NedSteve...tevens_CSS.css
My Loaded Movie Clips Appear To Load At Weird Sizes, No Matter What I Do.
I'd have external Flash animations that are the exact size (or at least similar proportions) to the dimensions that I set. Yet when I load them, half of the time, they're warped or too large/small.
This is basically the gist of the coding that I used (or at least, what I think is relevant):
Code:
var animation_loader = new MovieClipLoader();
myListener = new Object();
myListener.onLoadInit = function(thing) {
thing._width = 450;
thing._height = 300;
}
animation_loader.addListener(myListener);
animation_loader.loadClip("someClip.swf",screen);
// "screen" is an Instance name I'm using that the Flash animation replaces when it loads.
My movie clips themselves are generally shoved into one frame as a movie symbol (I have my reasons why I do this, which I don't really want to explain now).
As I said, half of the time, they're fine. But other times, they're just a lot smaller than they should be. The only thing I can think of is that it's taking into account extra junk that is hidden by a masking layer, except that the warping in the size doesn't really correspond to where this extra junk sticks out.
There's also another related problem I'm having, which is that for the Flash animations that I import that do appear the proper size, they're actually warped during pre-loading, but as soon as the movie's loaded, it appears somewhat warped until I restart the entire Clip Loader animation. It is only after this that those imported clips appear normal sized.
Is there something I'm missing in my code that is causing this warping? Is it the extra junk that I described that's hidden by masking? Can anybody pitch ideas as to why clips appear as they should only after I restart the Clip Loader animation after they finish pre-loading?
Help: Weird Or Not So Weird Thingy With Dynamic Text Animation
http://www.david.bullaro.com/
there are 3 buttons on the right side education, experience and awards. Each loads an MC that then motion tweens into view from the side. The MC dynamically loads a text file. At the end the text blinks once. I understand the blink because i needed to reload the text for that keyframe but is there anyway around that blink?
TIA.
[F8] Weird Weird Loading Problem
Hey all,
Check out this project I'm working on:
http://www.niekdekker.com/overig/
The weird thing is, and you can see this, that the movie just stays white while it's loading. When the movie is fully loaded the movie begins.
And I am CERTAIN this has nothing to do with the way I built my flash. Even if I remove all the loading code it's still just white until it's all loaded. Think about it: There's isn't even a white frame in the entire movie!
So I dont' know what I am doing wrong.
Does anybody recognize this problem?
Thanks in advance,
Niek Dekker
Weird, Weird Stupid Problem
Ok, guys so I pressed something on my keyboard in actionScript 3 while writing code, and some weird sybmols popped up all over the place, I can't get rid of them :/
there is >> after every indent and line, and also some sort of backwards "P" on every new line.
does anyone know how to get rid of these? Cause they are crowding the code, and it's really hard to read and write.
Thanks deewds
Weird Weird Mask Problem
For some reason, all of a sudden, I'm experiencing a weird problem:
If I load an external swf into a movie clip that has a mask, the swf fails to show up. Delete the mask, and the swf appears. Put the mask back in, and POW! no swf.
The odd thing is, a project I authored a few weeks ago, with masks, works just fine!
Anybody else experience this issue??
I'm running OSX Tiger on a G5 dual processor.
Weird Weird Mask Problem
For some reason, all of a sudden, I'm experiencing a weird problem:
If I load an external swf into a movie clip that has a mask, the swf fails to show up. Delete the mask, and the swf appears. Put the mask back in, and POW! no swf.
The odd thing is, a project I authored a few weeks ago, with masks, works just fine!
Anybody else experience this issue??
I'm running OSX Tiger on a G5 dual processor.
[f8]weird DuplicateMovie...very Weird...
Hi,
I'm trying to create an application where users can add a textfield from the context menu and then extend the textbox to suit their needs. I have managed to do this pretty much but something very odd is happening when the clip is duplicated...see SWF.
Where am I going wrong if I just want the clip to be duplicated and I don't want the original clip visible otherwise the context menu would be pointless.. Notice what happens when you right-click a second time and try to extend the clip.
Code:
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
root_cm.customItems.push(new ContextMenuItem("Add card", itemHandler));
function itemHandler(obj:Object, item:ContextMenuItem) {
for (i=0; i<100; i++) {
card1.duplicateMovieClip("card1"+i, i);
}
};
_root.menu = root_cm;
And this code inside the MC
Code:
this.drag_mc.onPress = function ()
{
this._parent.swapDepths(_root.getNextHighestDepth());
this._parent.startDrag();
dragging = 1;
};
this.drag_mc.onRelease = function ()
{
trace("new_y=" + this._parent._y);
this._parent.stopDrag();
dragging = 0;
};
stop();
Finally I use this to enlarge the textbox:
Code:
onClipEvent (enterFrame)
{
if (pressing == true)
{
_parent.textbox._width = _x + 37;
_parent.textbox._height = _y + 32;
_parent.drag_mc._y = _y + 15;
_parent.drag_mc._x = _parent.textbox._width / 2;
} // end if
if (_parent.dragging == 1)
{
} // end if
}
Help would be much appreciated as I have been trying for a while now...
Weird Problem, Really Weird.
Okay, using this script on the frame...
ActionScript Code:
var Stamina = 100;
and this on a MC...
ActionScript Code:
onClipEvent (load) {
walkSpeed = 1.5;
runSpeed = 1.8;
moveNum = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += walkSpeed;
_root.Stamina -= .1;
} else if (Key.isDown(Key.LEFT)) {
this._x -= walkSpeed;
_root.Stamina -= .1;
} else if (Key.isDown(Key.UP)) {
this._y -= walkSpeed;
_root.Stamina -= .1;
} else if (Key.isDown(Key.DOWN)) {
this._y += walkSpeed;
_root.Stamina -= .1;
} else if (Key.isDown(68)) {
this._x += runSpeed;
_root.Stamina -= 2;
} else if (Key.isDown(65)) {
this._x -= runSpeed;
_root.Stamina -= 2;
} else if (Key.isDown(87)) {
this._y -= runSpeed;
_root.Stamina -= 2;
} else if (Key.isDown(83)) {
this._y += runSpeed;
_root.Stamina -= 2;
}
}
For some reason, the number never goes down by .1, it goes down by something like .100000000001. Is there a way to fix it? And how would I use Math.floor, Math.ceil, or Math.round to fix it?
StaminaBox is the name of the TxtBox
Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM
1. I have my navigation buttons in level0
2. When a button is pressed it loads an external .swf into the highest empty level
3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.
4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.
The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.
It works fine if you test it on its own. But not when loaded into a Movie Clip.
MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);
Do I have to refrence it differently? Because of where it is situated?
e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();
confesed!
Calling A Function That Is Whithin An Externaly Loaded Clip Form Another Loaded One
I am having trouble, I am loading external movies within a target that is on another movie clip. If I call it directly in that movieclip it works. What I need to do is call it from a button that exists in another movie clip. Help Please.
on (press) {
_root.paperSlide.my_mc2.loadClip("movies/apollo.swf", "secondaryContnent");
}
my function is called my_mc2 which is located on the firs key frame of _root.paperSlide.
if after the script in _root.paperSlide I call the function like my_mc2.loadClip("movies/apollo.swf", "secondaryContnent"); it works fine. But when I try to call it from a button within another clip that is externaly loaded as well it will not work.
please help, my head hurts.
Load Bar Progress Using Bytes Loaded As Opposed To Frames Loaded
My problem now is that I would like to build a preloader with a load progress bar etc., that is based on bytes loaded rather than frames loaded.
This is because I have most of my content loading in movie clips on just 1 or 2 different frames within the movie, perhaps bad design but somewhat of a necessity due to nested clips. So, the load bar hangs on these one or two frames for a long time while preloading, whereas if it could be based on bytes loaded the load bar would have a nice gradual sliding effect. I've been playing around with it myself but have yet to get if functioning. Any help would be greatly appreciated.
Checking If Movie Loaded Into An Instance Has Fully Loaded B4 Playing
Hi,
I'm building a site that streams a series of small movies into some preset into instances on the _root timeline but are paused on an empty frame 1 until needed. So while the first movie is playing the second movie is already being loaded and is cued on frame 1 ready to play.
However, if the timeline tells the loaded movie (i.e. _root.content ) to play frame 2 before this movie has finished loading it will not play. This shouldn't happen because the movie loaded into _root.content should have loaded, but I need a failsafe.
Is there a way to run a routine once the _root timeline is finished to constantly check the status of the movie being loaded in _root.content and then play once it is loaded.
I've tried running this code in a routine:
if (_root.content._framesloaded >= _root.content._totalframes) {
_root.gotoAndPlay(2)
}
..but I'm not sure if it will work.
I really want to avoid a preloader (each movie is only about 10k big )
Any help would be greatly appreciated
Cheers
How To Make Sure Randomly Loaded Externals Swfs Are Fully Loaded [F8]
I am randomly loading external swfs into my main movie. I've got the random part working. However, I don't know how to make sure the random swf is fully loaded before jumping to a specific frame in my main movie.
I have a preloader inside each external swf, but I don't know how to make my main movie understand that the random swf is completely loaded before the main timeline should gotoandPlay("start").
What I Have So Far:
I have a blank MC (named "location") on the main stage, which I am using to hold the random swfs. On the first frame inside this MC, I have the following code:
choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
case 1 :
location.loadMovie("image1.swf");
break;
case 2 :
location.loadMovie("image2.swf");
break;
}
Loading the random swfs is working perfectly. But after the external swf is fully loaded, I want to move onto a frame labeled "start" on the main stage. I just don't know how to make sure the random swfs are completely loaded before I say gotoandPlay("start").
I've tried piecing together bits from so many tutorials, and I just don't know what I need to do to make it work with my current code.
Thanks so much!
Checking If A Movie Loaded With LoadMovie Loaded Succesfuly
Hi,
I have a movie called main. I want to load into a movieClip that sits in main an .swf.
To do it i use a
pictureClip.loadMovie("PR001.swf");
My question is: is there a way that the main movie can know that PR001.swf was not loaded?
Thanks fo the help.
Playing A Loaded Movie Clip (loaded In A Different Level)
I really don't understand the problem here, I'm loading a swf containing a movie clip with 2 frames with Stop(); on each. The file is loaded on _level5 so I tried this:
Code:
tellTarget (_level5.musicmc) {
gotoAndStop (2);
}
but instead of telling the musicmc movieclip to go to frame 2, it tells it to the main timeline to go to frame 2 and stop...What's the problem, when I use "Debug Movie", I can see the:
_level5
......._level5.musicmc (....... = spaces)
what's wrong, it seems to don't want to tell the MC to go to frame 2. I passed many hours on this simple d*mn thing and I really can't find out...
BTW, I'm using Flash 5
Setup Loaded Movies To Work Loaded Or Standalone
Hi Guys
How do I get a movie to work as a standalone movie - when i'm building it - and also work as a loaded movie in a parent movie that loadMovie or loadMovieNum this movie.
It just get annoying having to always change paths after I finish building my sub-movies because half the time I get it wrong - it might take me a couple of hours to get the move working as a standalone, but then i can take more hours to get it working as loaded.
any ideas??
thx
How To Reference A Loaded Swf, When Loaded Inside A Loader Component?
I am trying to control a movie (swf) that I loaded into the flash loader component. I have two files: preloader.swf and movie1.swf.
Preloader.swf has the Flash component from mx.controls.loader.
I have given this component the instance name "myLoader".
Once preloader.swf is called, it loads movie1.swf.
Movie1.swf has a button that controls the frame of a mc played within movie1.swf. When I test the movie1.swf without loading it into the preloader component, the button works as expected. However, when I load movie1.swf into the preloader.swf, it doesn't control the play of the mc.
#This is the AS I attached to button in movie1.swf when I am loading movie1.swf into the preloader.swf. Which DOESN't work.
_root.myLoader.mc1.gotoAndPlay(10);
#This is the AS I attached to button in movie1.swf when I am playing movie1.swf WITHOUT loading it into the preloader.swf. Which DOES work.
_root.mc1.gotoAndPlay(10);
I can't seem to figure out how to reference the loaded movie in the preloader.
Any help would be appreciated.
Thanks!
Problem With How Dynamic Loaded Text Is Displayed When Loaded...
Hello!
Ive been struggeling all day with this!
I found a code in this forum on how to scroll and load a .txt in a dynamic textfield in flash 2004 (thx alot timothye )
This all works, but the problem is that I cannot get it to display some text bold. the
HTML Code:
<b></b>
does not work... why?! I did the same thing in flash MX and here it works just fine!
any help will be most welcome!
I'll post the flash for u to have a look at!
thx!
Function Not Working After Clip Is Loaded, Unloaded And Then Loaded Again
I have a Movie Clip in my Library that I'm loading on to my stage using the attachMovie command. Within that movie clip, I have actions set on the first frame.
From the root level of my movie, I call "profile-section" clip by pressing a button in my nav and it loads properly and works. The functions and handlers all work correctly within it. Then when I press another button from the root level, I have code to removeMovieClip. That works and removes the "profile-section" clip.
My problem is when i click on the button to re-load the "profile-section", the function doesn't work properly anymore. I'm attaching the function for you guys to look over. Any help would be greatly appreciated. Thanks.
//
// Variables
//
var speed = 3;
//
// Sub-Section Rollover Red Bar Function
//
function subSectionRollOverLoop(movieClip, speed, distance, callBack):Void {
if (speed > 0 && movieClip._width <= distance) {
movieClip._width += speed;
} else if (speed < 0 && movieClip._width >= distance) {
movieClip._width += speed;
} else if (movieClip.__interval) {
clearInterval(movieClip.__interval);
movieClip.__interval = 0;
if (callBack) {
callBack(movieClip, speed, distance);
}
}
}
function subSectionRollOverStart(movieClip, speed, distance, callBack):Void {
if (movieClip.__interval) {
clearInterval(movieClip.__interval);
movieClip.__interval = 0;
}
movieClip.__interval = setInterval(subSectionRollOverLoop, 10, movieClip, speed, distance, callBack);
}
joan_btn.onRollOver = joan_btn.onDragOver = function ():Void {
subSectionRollOverStart(joanRoll_mc, 30, 140);
};
Urgent Loaded Movie Controlling Other Loaded Movi
I need this one done today!
I have two holder movie clips in my main .swf. One is selectloader, the other is normloader.
So selectloader.loadMov..... that works
In the select I load a selection with three boxes, the user chooses one.
When the user clicks one of the boxes I do
_root.normloader.loadMovie...
and it doesn't work!
So I created a new frame on the holder .swf for each of the three buttons so all the selectino has to to is go to another frame.
That works, but I also want each of the boxes to direct to a certain frame in normloader
so the problem comes back again
I can't get one loaded movie to control another loaded movie
I'm assuming it has to do with levels, and I need to do more then just _root.normloader.gotoAndPlay(3);
what do I have to do?
This Is Weird...
http://lennon.csufresno.edu/~sl328/flip/index.html
The above link shows you the problem I'm having. Click to load all four background images, then click them again. They flicker for a split second before reloading.
I have a main swx called shell
In shell I have 4 empty MC's that each image(swf) loads into.
The interface main loads onto _level1. I use a swapDepth on each button to bring the current pick (mc) to the top. Does anybody have an alternative way to this. I wan to load the images externally, for they are over 30K each. If I don't swapDepth, then they will load on top of eachother in the z-order of the empty mc's. What should I do? Should I use levels? I don't want to have an empty screen during loading time. Please post any suggestions. I will be grateful to you. Thanks in advance y'all!
Isn't This Weird..?
Hi!
I just made a flash draggable movieclip with some motion in it. The problem starts when u startt to drag it.
What I want is that no matter how much you drag..the movie clip shouldn't go outside the partciular size of the movie. I know it's possible but somehow I am not able to do it..
The flas file can be found at:
http://www.uaegraduate.com/dhaval/flashkit.fla
Thanks!
Regards,
Dhaval
Weird... Is This A Bug?
http://kerry.simon.users.btopenworld...e-newidea6.swf
Could someone please view this site, press all the buttons one after the other - home product services and contact - then on each window that pops up, press the "titlebar" of the bottom one, and then run your mouse over the screen, does it sort of "paint" the 2 windows in between the bottom and top so they appear above the bottom one? It's hard to explain but it's happening with my comp..
Weird?
ok this will be my first time using action scripting, so i need help :| im using flash mx,
ok, this is what i want to do, itl be a white background, then bullet holes shoot through it and make a circle, then the circle that is made slides down, but what i want for the action script is, when the bullets are hitting the wall, i wanna know how i can make like lil fragments of the wall come off.....just tell me if thats hard to understand and ill try to explain beter
any help would be great
thx
dev
Ok So This Is Weird
This has never happened to me before and Im tearing my hair out trying to figure it out!
I am using a hitTest between two movie clips to advance a third movieclip:
_root.onEnterFrame = function() {
if (secA.hitTest(dot) == true) {
_root.secA1.gotoAndPlay(2);
}
};
So this works...sort of... it advances the third clip to frame two... but then it STOPS! It just wont go past frame 2 of the third movieclip!
There is nothing special about this third movie clip other than that I have used other seperate movieclips within it (so I can control the tint independently) these have stop frames within them... but I dont think thats whats stopping the playback... is it? I mean they should play independently and then the movie clip that contains them should move on... right?
I have posted the fla in a zip file at the link below if someone has a minute to look at it... that would be awesome! In the first three frames I have used the method with the hitTest. In frame 4 you can see how I originally handled this and see the clip as it is supposed to play out...basically I just added a bunch of blank frames so that it would wait a while before playing... to allow the letters to move before opening the next menu... obviously this is not an ideal solution!(Ignore the rest...also ignore the colored bars and stuff...)
The clips involved are in the layers lettersmove (the letter "A" named "secA"...its the only one in that layer I left unlocked) and lettersbuttons(this is the third movieclip in question called "secA1"... it has nothing in its first frame...so it will be invisible...and referencewhich contains a tiny little movieclip called "dot", a circle with alpha set to 0 this is meant to be the movieclip that triggers the action when "secA" hits it.
Anyway... I hope I have explained myself enough... very sorry to go on like this forever...Im sure the solution will make me feel really dumb! But oh well... cant help that!
www.michaelselto.com/ICMexperiments/ICMtest3.zip
Thanks a million! Hope somone can help!
-Mike
Weird
Can someone solve this problem for me?
When I hardcode a value to a variable, the prototype works. When I manually add the value through a text box, it doesn't. What gives?
Weird... Please Help
I have a php menu, in the top frame, that interacts with the flash in the bottom frame via loadVaribles()..
It works on my computer, but on my brothers... the flash can't communicate with anything. Anyone have any idea?
Weird Bug
I want to play an animation that loads sub navigation for a button when pressed. I have multiple buttons, so the problem here is obvious. Instead of loading a each animation as a movie clip on a separate level and unloading the current one on(release), I decided to put the following code on my buttons:
Code:
on(release){
this.gotoAndPlay("subNav");
_root.otherMC.gotoAndPlay(1);
}
Now, basically it tells the button pressed to play the sub nav animation, and tells the other button to play frame 1 which consists of nothing more than a stop(); script on the actions layer, and the button which houses the code above. follow?
I have this code on two of my buttons. The problem is that when I press either button BOTH sub nav animations play at the same time. This doesn't make sense to me cause in my mind it should work.
I've included my fla...the only buttons in question are "flash" and "2d"
Am I missing some obvious scripting NO-NO? Is there a way around this, or am I just going to have to go ahead and load each animation as a movie on level 1?
Weird Bug
The latest flash piece i put on my site is acting strangely, but i can't test from this machine whether its fixed or not.
Could anyone have a look now and tell me if the comic loads first time? It would be a big help thanks:
www.meshybeats.com
Dene
Very Weird....can Some One Take A Look
hi all,
I have this email form, which I finnally got to work....or so I thought. When I test it by itself, it works fine, but when tested where it is supposed to go, it is telling me that I must fill in my name and I had. Here see for your self
contact.swf by it self
and here's the whole site
let it load, and then click "contact us" try sending an email and see how it goes crazy. Any ideas why?
Thanks in advance
This's Weird.
Due to some understandable errors with setInterval, I wrote another scripts to make a random timer, but the following error made me ...'dizzy' again..
Frame1:
starttimer=int(getTimer()/1000);
time2blink=random(10);
if (time2blink<1){
time2blink=1;
}
Frame 2:
if (int(getTimer()/1000)>=(starttimer+time2blink)) {
this.eyes.gotoAndPlay("blink");
gotoAndPlay(1);
}
Frame 3:
gotoAndPlay(2);
//End of script
If I remove the red statement (in frame2), the script won't run (the eyes don't blink), but If I replace the red statement with another, such as stop();. I'll work.
I don't understand why?? You can see the attached file for detail.
Thank you
Kyo//
Here's A Weird One
I have a button symbol and a combobox on screen. The button works normally until the combobox is used - even if nothing is selected in the combobox. After that, the button works once, then the mouse has to be moved a little or the button doesn't work - ie if you keep the mouse in exactly the same place, the button no longer responds.
Any one heard of this or its solution?
G
Weird Bug
I have a weird bug in my movie. I have a slider that triggers different actions depending on where it is. If I slide it too fast then the movie doesn't compute all of the AS, and several actions are triggered together instead of separately. If I slide it slowly then it works, with each action being performed separately.
Help This Is Really Weird
its my portfolio
click here visit
the section buttons on the left hand nav, are faulty.
they don't go to the right sections.
they are going to frame numbers, but for some reason are going to the wrong ones...
am I stupid or what?
.FLA is too big for me to attach, but reply and I could email it to you if you are a genius and can help.
Weird
Hi
Can anyone please look at this:
http://mr-andersen.no/elastic/
As you see I want to have this elastic effect when hovering the image, but I get problems with the images quality when I place the image in a second frame( Look at the samples).
Does anyone knows why?
please help, I've spent so much time now
best regards,
T
Weird
i have an input box and i told it to only accept numbers (0-9). and it still accepts letters. but not W, Z H,J,K... does anyone know why this is happening? is there exeptions for this option?
Weird
I want to use a mask thats a sort of border of a square. But not the standard border given to a square but home made .
now if I tween this from big to small, and use it as a mask, the inside of the square shows also the image to be masked. But, only when I am in flash authoring mode it's shown good. From the moment I export the movie or I make a test movie he doesn't do it right.
what is the problem here... and is there a solution to my problem?
thanx
Weird. Any Help?
Hi everyone. Wondering if anyone can help me.
// code _root timeline first and only frame
// basic concept
mybutton_btn.onRollOver = function ()
{
// code here;
}
That works fine on the _root timeline if the buttons are not embedded within an MC. Which is fine. However my button is embedded within two movieclips with the path
_root.MC1.MC2.mybutton_btn
ofcourse the code from the very top works if its in an actions frame where the button instance is found so it works fine from the actions frame in MC2 which is obvious.
But I want to convert to putting all my code in the first actions frame of my _root (stage) instead of embedded them over MCs and BTN instances all over the place. Here's the weird problem.
// code _root timeline first and only frame
// Different from basic
MC1.MC2.mybutton_btn = function ()
{
// code here
}
This DOESN'T WORK on MX 2004 Pro on the current project i'm working but I downloaded someone's fla to test it out and i was able to reference mybutton_btn to that path MC1.MC2.mybutton_btn. I'm I doing this right? Weird
This Really Is Weird
hi, I have a problem with this part of my code:
code:
trace(a+" "+b);
if(a==b)
{
trace("Inside the if");
}
when i run my program the first trace sends the values: 140.5 and 140.5, but the condition of the if just below returns false so i cant see the second trace!!!!!!!!!!!!!!!!!!!!!!
does anybody knows why this happens?
|