Dynamic Movie Troubles
I am haveing some troubles with dynamic movies. I have, in a drop zone, loaded movie clips. My problem is, when one movie clip is loaded it has actions to load another movie clip into that same dropzone and take the previous movie clips place. Now I not only want to load a new movie clip and replace the old one, I want (linked from the old one) to go to a certain spot in that newly loaded movie clip.
here is an example to (attempt) to clarify things.
movie clip A is loaded into dropzone which is contained within a master swf file.
movie clip are removed and deposited via the links on the master swf file: for instance when you click on the news section it unloads whatever movie clip is loaded intro the dropzone and loads the new.swf file into it.
That procedure is fairely easy.
now I want to link from movie clip A to unload itself and load another movie clip (just like before) but go to a certain point in that movie clip. And to add to that, there are several links in movie clip A that link to different parts of the loaded movie clip that I want to go to. So it is loading the same Movie clip everytime yet going to different places depending on the link pressed. I hope people can be of service if they understand what I just said. I am no good at explaining all this. Thanks a lot!
Cheers
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 10-01-2003, 08:42 PM
View Complete Forum Thread with Replies
Sponsored Links:
Dynamic Movie Troubles
I am haveing some troubles with dynamic movies. I have, in a drop zone, loaded movie clips. My problem is, when one movie clip is loaded it has actions to load another movie clip into that same dropzone and take the previous movie clips place. Now I not only want to load a new movie clip and replace the old one, I want (linked from the old one) to go to a certain spot in that newly loaded movie clip.
here is an example to (attempt) to clarify things.
movie clip A is loaded into dropzone which is contained within a master swf file.
movie clip are removed and deposited via the links on the master swf file: for instance when you click on the news section it unloads whatever movie clip is loaded intro the dropzone and loads the new.swf file into it.
That procedure is fairely easy.
now I want to link from movie clip A to unload itself and load another movie clip (just like before) but go to a certain point in that movie clip. And to add to that, there are several links in movie clip A that link to different parts of the loaded movie clip that I want to go to. So it is loading the same Movie clip everytime yet going to different places depending on the link pressed. I hope people can be of service if they understand what I just said. I am no good at explaining all this. Thanks a lot!
Cheers
View Replies !
View Related
Troubles With Dynamic Txt
Hi, I've got what I think to be an easy problem, but I'm stil cracking my skull on it...
So there we are :
I have a main clip (which we'll call main.swf) that calls a child (which we'll call child.swf)
In child.swf I have some dynamic text called dyntxt1 (with var: txt1) and dyntxt2 (with var:txt2). They are supposed to show txt1.txt and txt2.txt which are in the same directory.
In child.swf I have this code :
loadVariablesNum("txt1.txt",0);
loadVariablesNum("txt2.txt", 0);
It works very well as long as I only run child.swf, but once I run main.swf, child.swf doesn't display the text anymore...
I suppose it's the addressing that's wrong. I've tried to set it to :
loadVariablesNum("txt1.txt",1);
loadVariablesNum("txt2.txt", 1); (or 2 or 3 or ...)
and it doesn't work. I tried to put he script in main.swf, and it doesn't work... HELP PLIZZZZZZZZZZZZ what should I do, I turning me crazy!!!
View Replies !
View Related
Dynamic Text Box Troubles...
I am using duplicateMovieClip to create child movieClips based on some XML. I would like each siblingNode of the HTML to go into one of the child clip's dynamic Text box. The problem is, I can't seem to use an expression for the variable which the dynamic text shows.
I need an expression because the XML is parsed into a seperate variables (text1, text2, text3) for each sibling but the 'original' movieclip containing the dynamic text box can only be set to ONE variable. I tried using eval("text" + i) in the variable field with no effect.
Any ideas from you flash gods?
Thanks!
View Replies !
View Related
Dynamic Text Box Troubles...
I am using duplicateMovieClip to create child movieClips based on some XML. I would like each siblingNode of the HTML to go into one of the child clip's dynamic Text box. The problem is, I can't seem to use an expression for the variable which the dynamic text shows.
I need an expression because the XML is parsed into a seperate variables (text1, text2, text3) for each sibling but the 'original' movieclip containing the dynamic text box can only be set to ONE variable. I tried using eval("text" + i) in the variable field with no effect.
Any ideas from you flash gods?
Thanks!
View Replies !
View Related
Dynamic Text Box Troubles
I have a dynamic text box that works for the first set (putting titles under photos: "But" are buttons nestled in image's mc's
Code:
imagesone.ButSmoke.onRollOver = function () {
titles.text = "New York, NY 2002";
}
imagesone.ButSmoke.onRollOut = function () {
titles.text = "";
}
but it doesnt work for the second set:
Code:
imagestwo.YanksBut.onRollOver = function () {
titles.text = "New York Yankee's Parade, 1996";
}
imagestwo.YanksBut.onRollOut = function () {
titles.text = "";
}
I've tried setting up a second version with a new text box instance but that failed also-why? 2nd one was modelled on first?everything is the same? anybody have a clue plz?help
View Replies !
View Related
Dynamic HTML Troubles....
I am pulling a TXT file into my flash movie....
Within the TXT file I have HTML tags (links), such as:
"reg_wp_shareholder_value.shtm?uri2=&ref=/products/erm/reg_demo.shtm"
It won't display becasue I have a "&" character in the string.... is there any way around this?
Also whats the code for a "&" character?
Thanks a lot!
/zach
View Replies !
View Related
Dynamic Erase Troubles
Im having some troubles with a dynamic erase function. The user is allowed to erase the image as they wish. That works fine and dandy. Problem is, i dont want them to be able to erase the very back portion of the image. In the example below its a black square. I want the user only to be able to erase the red square that is above it. Take a look:
http://img71.imageshack.us/my.php?image=erasegr0.swf
Can anyone help. I assume its a scripting problem, as just move the black layer up will obviosuly thorw off thearrangement, and i want to keep it in the back at all costs. Any help would be greatly appreciated
View Replies !
View Related
Dynamic Check Box Troubles
hi i'm using xml to dynamically create check boxes, i can parse the xml correctly but can't seem to create the checkboxes? any thoughts on this:
Code:
import mx.controls.CheckBox;
function processXMLRiskData(success)
{
if (success){
// Create a variable to store a reference to each checkbox as it is created.
var cchItem:mx.controls.CheckBox;
// how many checkboxes
numBoxes = this.firstChild.childNodes.length;
//first one sometimes has no value: BMI
var a2 = this.firstChild.childNodes[0].childNodes[0].attributes.modname;
if (a2.length<1) { a2=1;}
for (i=a2; i<numBoxes; i++) {
//trace(this.firstChild.childNodes[i].childNodes[0].attributes.modname);
// correct data returned
// creating an array of items to populate checkboxes
var aLabels:Array = this.firstChild.childNodes[i].childNodes[0].attributes.modname;
// Create a checkbox.
cchItem = this.createObject("CheckBox", "cch" + aLabels[i], this.getNextHighestDepth());
// Assign the checkbox a label.
cchItem.label = aLabels[i];
// Move the checkbox so they are not each overlapping.
cchItem.move(100, 20 * i + 100);
};
// Loop through each of the checkbox to add an event listener.
for(var i:Number = 0; i < aCheckBoxes.length; i++) {
// Add an event listener.
aCheckBoxes[i].addEventListener("click", oListener);
};
}
}
View Replies !
View Related
Dynamic Content Troubles...
Okay, so after three days of lookin garound the internet for scoreboard tutorials, I couldn't get a SINGLE one of them working. Apparently. they're all chronically useless (though I may just be an idiot).
After a while, I get to wondering why I don't just code my own from scratch - problem being I don't know any other languages ('cept for batch XD).
If anyone could slap together a small bunch of source files (preferably with a commented .fla using the variables _root.score and _root.player designed for top 10 scores), I'd appreciate it alot.
I know that's a big ask, and you'll probably simply link me to tutorials; but I've read other forum posts and tutorial links have been no luck...
Oh, and for those of you who are interested - here's a beta version of the game!
http://drunkenpeon.com/s*hit/Island%20Fishing.html
Note: In order for the link to work, you'll need to remove the * from it. Sorry about that; swearing filter
Thanks in advance,
Sars
View Replies !
View Related
Dynamic Flash Troubles
i'm having some problems with attempting to load some data given out in a php script. everything before and after the load function works fine with simple test data and the function to fetch the info from the php file seems to be working fine. however i think that i am just not looking in the right place for the data returned. I am using an instance of loadvars. anyone know how i can access the data that is returned when i use the load function?
View Replies !
View Related
Dynamic Slider/scroller Troubles
I'm working away on my site and have run into a snag.
The site is here: http://www.conciousriddims.com
The problem is in the catalog slider/scroller. The products are generated inside an mc, and then the mc has this code:
onClipEvent ( enterFrame ) {
this._y = ((this._height/274) * _parent.dragger._y);
}
Any ideas?
Psx
View Replies !
View Related
Troubles With Dynamic Textfields In Movieclip
Hi,
I have a MC with two textfields in it.
One of the two contains text. When clicked on the MC the text should appear in the second textfield.
(stupid, but just an example...)
this is my code on the MC (textfields are msgBox and KeyNr)
code:
on (release) {
this.msgBox = this.KeyNr;
}
Instead of the text of KeyNr; "undefined" appears in msgBox ??
How comes? What do I wrong?
Thanks in advance
Genius
View Replies !
View Related
Yet More Troubles With Dynamic Text Boxes Please Help
Hi there!
Thank you for reading this.
I'm having yet more trouble using dynamic text boxes. My HTML code won't show properly when I view my pages. I have set the text box to render the text it is reading from the text file as HTML. Flash shows what I've asked it to but doesn't show the text bold (even though I've alse checked the bold button on the dynamic text box properties) and also the links don't appear in the colours I've asked them to. Also, some of the bottom bit of the page didn't show. Here is my HTML code that I've used:
daTextBox=<body bgcolor="#FFFFFF" text="#000000" link="#990000" vlink="990000" alink="990000"><b> CONTACTS </b><p> </p>
<p><b>Screaming Tricks<br><a href="mailto:aa@aa.com">aa@aa.com</a></b></p><p> </p>
<p><b>Webmaster<br><a href="mailto:bb@aa.com">bb@aa.com</a></b></p><p> </p>
<p><b>Spindrift Media<br><a href="http://surf.to/spindrift" target="_blank">http://surf.to/spindrift</a></b></p><p> </p>
<p><b>EQUIPMENT</b></p><p> </p><p><b><a href="http://www.bcrichguitars.com/" target="_blank">B.C. Rich Guitars</a><br><a
href="http://www.jimdunlop.com/" target="_blank">Jim Dunlop</a><br><a href="http://www.dwdrums.com/" target="_blank">DW
Drums</a><br><a href="http://www.ernieball.com/" target="_blank">Ernie Ball</a><br><a href="http://www.gibson.com/"
target="_blank">Gibson USA</a><br><a href="http://www.laney.co.uk/" target="_blank">Laney Amps</a><br><a
href="http://www.marshallamps.com/" target="_blank">Marshall Amps</a><br><a href="http://www.sabian.com/"
target="_blank">Sabian Cymbals</a><br><a href="http://www.staggmusic.com/" target="_blank">Stagg Music</a><br><a
href="http://www.shure.com/" target="_blank">Shure Wirelesses</a><br><a href="http://www.trace-elliot.com/"
target="_blank">Trace Elliot Amps</a><br><a href="http://www.yamahadrums.com/" target="_blank">Yamaha Drums</a></b></p>
<p> </p> <p><b>BANDS</b></p><p> </p><p><b><a href="http://www.evesonlyson.co.uk/" target="_blank">Eve's Only Son</a><br><a
href="http://thehiddenagenda.co.uk/" target="_blank">Hidden Agenda</a><br><a href="http://www.teapotjunkies.com/"
target="_blank">Purple Monkey</a><br><a href="http://www.rollingdog.co.uk/" target="_blank">Rolling Dog</a></b></p><p> </p>
<p><b>MISCELLANEOUS</b></p><p> </p><p><b><a href="http://www.dugoutstudio.com/" target="_blank">The Dug-Out Studios</a><br><a
href="http://www.jackdaniels.com/" target="_blank">Jack Daniels</a><br><a href="http://www.justmusicgosport.co.uk/"
target="_blank">Just Music</a><br></b>
-------------
I'd be most grateful if anyone could have a look at the HTML and let me know what I'm doing wrong please.
Thank you very much and I hope to hear from you.
Take care,
Mark
View Replies !
View Related
[F8] Dynamic HTML Text Troubles
I often have to modify my text within menus and other areas, so I usually make my text dynamic using the coding:
Code:
MainFlash.DynamicText.text = "This text is Dynamic."
This makes my MC titled "MainFlash" containing the dynamic text box with the instance name of "DynamicText" say whatever it is I put in my ActionScript. For some reason, I can't make the text bold or italicized. This hasn't been much of a problem till recently. I have tried numerous things to make certain pieces of text different, but to no avail. I have even tried using html text.
Code:
MainFlash.DynamicText.html = true;
MainFlash.DynamicText.htmlText = "This text is <b>Dynamic</b>";
When I view the swf, it takes out the text with the bold tags. It is the same with making it italicized. But, for some reason, If i use <u></u> to underline it.... it works. What is the problem? I am making sure to embed the text I'm using, I select the "Render text as HTML" button and everything. What is it that I am missing? Some insight would be much appreciated
View Replies !
View Related
Troubles Linking To A Frame Within A Dynamic Swf. Please Help
Hello!
Thank you for checking this out...
I am trying to link to a frame within a dynamically loaded swf from my main swf. The button in my main swf has the following actions assigned to it:
Code:
on (release) {
_root.profile.gotoAndPlay(11);
}
I've tried using frame lables so my code looks like...
Code:
on (release) {
_root.profile.gotoAndPlay("out");
}
...The link however doesn't work either way and the movie just stays put frame-wise so I was wondering if you can please help me to see where I'm going wrong with it. The placeHolder MC has the instance of 'profile' on it so I fail to see what I'm doing wrong!
Thank you very much and I hope to hear from you.
Take care,
Mark
View Replies !
View Related
I'm Having Some Troubles With A Dynamic Thumbnail Panel...
I have a thumbnail panel whose images are loaded dynamically from the same XML file feeding the stuff mentioned in my other thread (like 5 below this one, I think). The image enlarger I mention there depends upon data given to it when the user clicks on one of these thumbnails; the X,Y, width and height values of the thumbnail that was clicked on are used to calculate the proper corresponding values for the picture viewer created...
My BIGGEST problem is I don't know of a way to make the rest of the code "know" what individual thumbnail was clicked on so I can use that index number to access the array holding all of the data needed to be loaded into the viewer (name, description, enlarged pictures, etc). For example, if I click on the third thumbnail, let's say, I'd need to be able to use "projects[2].txtDesc" to access the text description of the third project; but how can I get that information just from clicking on a movieclip? I'd post code but I'm not sure what would be the most helpful to post.
Another trouble is, since these thumbnails are "attached" to the movieclip allowing them to scroll, when each thumbnail is clicked the static position of the thumbnail movieclip within the scrolling movieclip is returned, not the thumbnail movieclip's.
For example, let's say there are 3 movieclips occupying the scroller, and they're each 100 pixels wide, and spread 25 pixels apart. When I call for the X and Y positions of the second from the left, let's say, it would return "125" and "0" ("0" for Y because it's placed at the very top within its parent scroller, I guess).
Could somebody give me any kind of an idea on these please, or ask for what particular code they'd like to see?
I'm just stuck on this one and the other.
View Replies !
View Related
XML Beginner, Dynamic Menu Troubles
Hello, I'm new to addin XML to flash and I'm having some trouble. I'm trying to build a dynamic Accordian Menu, but I've run up on a stumbling block.
Here is my XML:
<menu>
<menuprams space="2">
<mainbutton lable="1st Button" mainlink="">
<subitem sublable="1st subitem" sublink="http://www.someURL.com" />
<subitem sublable="2nd subitem" sublink="http://www.someURL.com" />
</mainbutton>
<mainbutton lable="2nd Button" mainlink="">
<subitem sublable="1st subitem" sublink="http://www.someURL.com" />
<subitem sublable="2nd subitem" sublink="http://www.someURL.com" />
<subitem sublable="3rd subitem" sublink="http://www.someURL.com" />
</mainbutton>
</menuprams>
</menu>
Here is my AS:
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
var space = this.firstChild.childNodes[0].attributes.space;
var nodes = xml.firstChild.firstChild;
var numItems = nodes.childNodes.length;
var menuheight = item._height;
trace("There are "+numItems+" Menus");
for (var i = 0; i<numItems; i++) {
duplicateMovieClip("item", "item"+i, i+10);
setProperty("item"+i, _y, getProperty("item", _y)+(menuheight+Number(space))*i);
set("item"+i+".lableText", nodes.childNodes[i].attributes.lable);
set("item"+i+".ID", i);
trace("This is Menu Number "+i);
}
//
};
xml.load("test.xml");
I can get the following to work and output:
There are 2 Menus
This is Menu Number 0
This is Menu Number 1
But I don't know how to break it down further, I want to get the submenus:
This is Menu Number 0
1st subitem
2nd subitem
This is Menu Number 1
1st subitem
2nd subitem
3rd subitem
not sure what I have to do to get the other XML nodes named "subitem"
The goal here is that I'm going to marry it with some action script that will move all the other menus down when one button is unfolded EX:
This is Menu Number 0
1st subitem
2nd subitem
This is Menu Number 1
This is Menu Number 2
then:
This is Menu Number 0
This is Menu Number 1
1st subitem
2nd subitem
3rd subitem
This is Menu Number 2
View Replies !
View Related
[as1] Dynamic MovieClip HitTest Troubles
I am working on a project where I have 24 Movie Clips that will be dragged around to create a design layout. Each Movie Clip can be used as many times as necessary for the user to achieve their design. So what I'm doing is duplicating the Movie Clips upon the initial drag.
Since all of my MC's will be dynamically named and I need to be able to snap the ends of the pieces together, I have decided to try and use an array to store the active MovieClips so that I can run a HitTest against the array to determine if the dragged object is overlapping another object. The problem is, it appears to only be working correctly for the first and most recent duplicates. All of the duplicates in between these two do not seem to function properly from what I can gather with my reporting.
What happens is I have a dynamic textbox (txtTest) that is suppose to display the name of the hitTest Target that's in the array. As I mentioned before, the first and last items in the array always report themselves correctly. The ones in between don't, eventhough when I step-through the code in debug mode it seems to be running the line of code that sets the txtTest value. I'm new to operating the debug in Flash MX but the order in which it runs is odd also. It seems to keep going over the area of code more times then it's suppose to.
Anyways, here's the code:
ActionScript Code:
onClipEvent (load) {
if (getProperty(this, _name) == "testDrag") {
_root.mcArray = new Array();
_root.mcArraySize = 0;
}
}
on (press) {
if (getProperty(this, _name) == "testDrag") {
_root.i++;
nextMC = "testDrag"+_root.i;
clone = _root.testDrag.duplicateMovieClip(nextMC, _root.i);
_root.mcArray.push(nextMC);
_root.mcArraySize++;
clone._alpha = random(100);
clone.startDrag();
clone.onMouseUp = function() {
stopDrag();
};
_root.bringToFront(this);
} else {
this.startDrag();
_root.bringToFront(this);
this.onMouseUp = function() {
stopDrag();
for (i=0; i<_root.mcArraySize; i++) {
if (this.hitTest(_root[_root.mcArray[i]])) {
_root.txtTest = _root.mcArray[i]+" Hit!";
}
}
};
}
}
Any help would be greatly appreciated. I've looked and looked and haven't seen implementations of this nature to look at for ideas on how to implement this.
View Replies !
View Related
Any Dynamic Experts Out There? Image Gallery Troubles
Hmmm ... Ok - so: I have an image gallery that works just fine for the most part, but being a perfectionist there is still something I want to change, but I'm not sure how.
Ok - I'll run through the whole scenario.
1. I have a movie clip that loads the photo thumbnails, the instance name is "thumbnails".
2. I have a movie clip that loads the full size photographs with an instance name of "loader.
3. I have two buttons that scroll the thumbnails up and down.
The code for the thumbnails/loader is here:
Code:
gallery = new XML();
gallery.ignoreWhite = true;
gallery.load("gallery.xml");
gallery.onLoad = function(success) {
numimages = this.firstChild.childNodes.length;
spacing = 87;
for (i=0; i<numimages; i++) {
this.picHolder = this.firstChild.childNodes[i];
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
this.thumbHolder._y = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
this.thumbHolder.title = this.picHolder.attributes.title;
this.thumbHolder.main = this.picHolder.attributes.main;
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
and the code for the scrolling buttons is here (with slight alterations for the down button obviously):
Code:
on(press, release, keyPress "<Up>")
{
thumbnails._y += 87;
}
My issue with the whole thing, is that the buttons go on forever, even after the last thumbnail shows up. I want to either (a) make the scroll button not work/dissapear if the first/last thumbnail is on screen or (b) make the thumbnails loop around so that the first and last thumbnail meet up.
Is either of these possible? I just started actionscripting this week. If you want to help and want to see the .fla of the site, drop me an email - gradientgrace@gmail.com.
Thanks in advance,
Gracie
View Replies !
View Related
Drawing API And XML, And Dynamic Picture Loading Troubles...
Hey guys,
The other thread I had going was getting a little convoluted, so I figured I'd start another one to see if I could get better results.
I've loaded data from an XML file and put it in an array that contains everything. I'm trying to get the drawing API to draw some shapes dynamically on the stage using this information. They drew fine before when I was using hard-coded test values, but now that it's dynamic it doesn't work, and I think that's because the shapes are trying to draw before they get their values to draw with. Is there any kind of like "on(something)" I can use to ensure everything's fully loaded before I begin drawing? (The XML file's already in an "onLoad" function.)
Secondly, I'm trying to adapt the dynamic XML image gallery Kirupa tutorial found HERE to work when a button is pressed, and have the images load into a container created with the drawing API. Does anybody have any tips on how this could be accomplished? For reference, here's the code I'm using to create the boxes to house the images (each box consists of a nested preloader bar, and the actual container for holding the loaded image):
ActionScript Code:
//main box_root.createEmptyMovieClip("pictureBox_mc", tempClip_mc.getNextHighestDepth() + 5);pictureBox_mc.lineStyle(1, 0x000000);pictureBox_mc.beginFill(0xFFFFFF, 100);pictureBox_mc.moveTo(calcX, calcY); pictureBox_mc.lineTo(calcX, (calcY + picHeight));pictureBox_mc.lineTo((calcX + picWidth), (calcY + picHeight));pictureBox_mc.lineTo((calcX + picWidth), calcY);pictureBox_mc.lineTo(calcX, calcY); pictureBox_mc.endFill();//loader graphic (a library item):pictureBox_mc.attachMovie("imageLoader", "imageLoader_mc", pictureBox_mc.getNextHighestDepth());pictureBox_mc.imageLoader_mc._x = (calcX + (pictureBox_mc._width / 2)) - (pictureBox_mc.imageLoader_mc._width / 2);pictureBox_mc.imageLoader_mc._y = (calcY + (pictureBox_mc._height / 2)) - (pictureBox_mc.imageLoader_mc._height / 2);//the actual picture container:pictureBox_mc.createEmptyMovieClip("pictureHolder_mc", (pictureBox_mc.getNextHighestDepth() + 25));pictureBox_mc.pictureHolder_mc.beginFill(0xFF0000, 100);pictureBox_mc.pictureHolder_mc.moveTo(calcX, calcY); pictureBox_mc.pictureHolder_mc.lineTo(calcX, (calcY + picHeight));pictureBox_mc.pictureHolder_mc.lineTo((calcX + picWidth), (calcY + picHeight));pictureBox_mc.pictureHolder_mc.lineTo((calcX + picWidth), calcY);pictureBox_mc.pictureHolder_mc.lineTo(calcX, calcY);pictureBox_mc.pictureHolder_mc.endFill();
So there's the stuff being drawn dynamically. I've been trying to work in the code from the tutorial but mostly through just substituting the given variables for my own; I think there's probably something bigger I'm missing.
Anybody have any ideas?
View Replies !
View Related
Movie Troubles
Hello all,
i am rather new at scripting in flash, I have a small project I have been working on. to see please visit www.planetreggaeton.com. It's not done I still haven't installed a preloader, but any way what I wish to accomplish is:
a. the area that says "videos coming soon" I would like to place a video clip with a play and stop button.
b. and when the video play button is pressed or released (it doesn't matter which)I would like the background music to stop.
i have tried all kinds of methods but my newbie abilities are lacking in order to get the job done.
When I have tried this i can't get the background music to so when the video is played the background music is palting at the same time, very messy stuff. Please can anyone offer their advice.
thanks in advance...
View Replies !
View Related
Movie Troubles
http://www.rbell.net/intranet_prob/intra_3go.html
if you look at this you'll see my flash movie at the top is actually the same as Kirupa uses for this main site section. problem I'm having though is if you roll over the menu and then the drop downs the movie seems to stop/start kind of thing giving it a stutter effect.....(more noticeable on the snow effect)
can anyone else see it?
Also if you have IE can you tell me if you're getting a problem with the rollovers, thanks.
View Replies !
View Related
Still Having Troubles With Loading Movie
Ok
I still have the same problem. I have a main movie with 5 heading in it - News, services, portfolio, contact and integration. I am trying to have 6 movies in the whole web site.
The first movie is the introduction, where the site builds itself, and just says hello with links to the five headings, which are all separate movies. The first(main movie) loads fine, but when i load subsequent movies(the other headings), they do load, but when they do load, it is as if the first frame in each of the five movies are blank, and the backgraound (main movie) flashes for one frame and then loads.
What is the dealio!!!
PLEASE HELP!
View Replies !
View Related
Load Movie Troubles
2 relatively simple questions for the senior members here...
1) How can I define the exact x,y location where a second movie on top of the stage will pop up using the Load Movie action? Right now, Flash is (by default?) setting it up on the top left side of the stage.
2) How can I make that second movie's background transparent so I could see the stage's background?
Thanks for any help everyone, it'll be appreciated!
View Replies !
View Related
Movie Delay Troubles
I'm placed an empty clip on the stage and attached the following code to cause a delay in a movie clip
--------------
onClipEvent (load) {
t0 = getTimer();
_root.artisdrop.stop();
}
onClipEvent (enterFrame) {
t1 = getTimer();
if (t1>t0+15000) {
_root.artisdrop.play();
}
}
----------------------
The delay won't work. The playhead just goes to the end.
This movie clip is being called by tellTarget from a mouseover event.
------
on (rollOver) {
tellTarget ("artisDrop") {
gotoAndPlay("move");
}
}
----------------
Can anyone help with this?
View Replies !
View Related
Movie Clip Troubles
Here is my setup: play til frame 10(stop) it lands on a movie clip that plays for 5 frames(stop + tell target /one to play). ONE is on the main stage, and now plays..on frame 10 of the main stage since I cant figure out how to load it otherwise...it plays until frame 5 of the movie clip it is and lands on a button. I want this button to restart the whole movie, but when I try, it just restarts the movie clip. How do I set a movie clip end to start the whole movie over?
Also, if I have a movie clip on frame 2...and frame 5 of inside of that movie clip loads back out to an instance, does that instance too have to be on frame 2 of the main clip in order to load? If i put it out on 3, it doesnt even show up anywhere.
Note: I use flash 4 and 5. Not MX.
View Replies !
View Related
Movie Clip Troubles
how do i make a movie clip, i have 3 images each one is a different stage of a person walking, how would i take all 3 of those and turn it into a movie clip of the man walking, looping please help
View Replies !
View Related
Movie Clip Troubles...
Hello again...I'm having some trouble with this script I wrote. For some reason...(and it's probably pretty obvious to someone else) my movie clips named "square" and "square2" won't work...unless their layer is closer to the bottom of the timeline...and vice versa with the "circle" movie clips. All of the squares are on one layer, and all of the circles are on one...should I place them all on a layer together? Why are is only one at a time displaying...?
Code:
loadMovie("stillshots/image4.jpg", "_root.circle");
loadMovie("stillshots/image2.jpg", "_root.circle2");
loadMovie("stillshots/image3.jpg", "_root.circle3");
loadMovie("stillshots/image4.jpg", "_root.circle4");
loadMovie("stillshots/image5.jpg", "_root.circle5");
pic = 1;
pic2 = 1;
max_pic = 10;
//number of pics//
jump = 10;
//jumping of alpha//
i = 0;
i2 = 0;
num = 200;
num2 = 500;
//fade in variable//
z = num;
z2 = num2;
//fade out variable//also speed of changing pics//the smaller the faster//
_root.square._alpha = 0;
_root.square2._alpha = 0;
loadMovie("images/image"+pic+".jpg", "_root.square");
loadMovie("images2/image"+pic+".jpg", "_root.square2");
_root.onEnterFrame = function() {
//fade in//
if (i<num) {
i += jump;
_root.square._alpha = i;
} else {
//fade out redirect//
if (pic == max_pic) {
pic = 0;
}
pic++;
//next pic//
if (z>0) {
//fade out//
z -= jump;
_root.square._alpha = z;
} else if (z == 0) {
loadMovie("images/image"+pic+".jpg", "_root.square");
//next pic load//
//initiate variables//
i = 0;
z = num;
}
}
if (i2<num2) {
i2 += jump;
_root.square2._alpha = i2;
} else {
//fade out redirect//
if (pic2 == max_pic) {
pic2 = 0;
}
pic2++;
//next pic//
if (z2>0) {
//fade out//
z2 -= jump;
_root.square2._alpha = z2;
} else if (z2 == 0) {
loadMovie("images2/image"+pic+".jpg", "_root.square2");
//next pic load//
//initiate variables//
i2 = 0;
z2 = num2;
}
}
};
pics = 1;
pics2 = 6;
pics3 = 11;
pics4 = 17;
max_pics = 22;
//number of pics//
jumps = 10;
//jumping of alpha//
is = 0;
is2 = 0;
is3 = 0;
is4 = 0;
nums = 200;
nums2 = 250;
nums3 = 300;
nums4 = 350;
//fade in variable//
zs = nums;
zs2 = nums2;
zs3 = nums3;
zs4 = nums4;
//fade out variable//also speed of changing pics//the smaller the faster//
_root.small._alpha = 0;
_root.small2._alpha = 0;
_root.small3._alpha = 0;
_root.small4._alpha = 0;
loadMovie("smalls/image"+pics+".jpg", "_root.small");
loadMovie("smalls/image"+pics2+".jpg", "_root.small2");
loadMovie("smalls/image"+pics3+".jpg", "_root.small3");
loadMovie("smalls/image"+pics4+".jpg", "_root.small4");
_root.onEnterFrame = function() {
//fade in//
if (is<nums) {
is += jumps;
_root.small._alpha = is;
} else {
//fade out redirect//
if (pics == max_pics) {
pics = 0;
}
pics++;
//next pic//
if (zs>0) {
//fade out//
zs -= jumps;
_root.small._alpha = zs;
} else if (zs == 0) {
loadMovie("smalls/image"+pics+".jpg", "_root.small");
//next pic load//
//initiate variables//
is = 0;
zs = nums;
}
}
if (is2<nums2) {
is2 += jumps;
_root.small2._alpha = is2;
} else {
//fade out redirect//
if (pics2 == max_pics) {
pics2 = 0;
}
pics2++;
//next pic//
if (zs2>0) {
//fade out//
zs2 -= jumps;
_root.small2._alpha = zs2;
} else if (zs2 == 0) {
loadMovie("smalls/image"+pics2+".jpg", "_root.small2");
//next pic load//
//initiate variables//
is2 = 0;
zs2 = nums2;
}
}
if (is3<nums3) {
is3 += jumps;
_root.small3._alpha = is3;
} else {
//fade out redirect//
if (pics3 == max_pics) {
pics3 = 0;
}
pics3++;
//next pic//
if (zs3>0) {
//fade out//
zs3 -= jumps;
_root.small3._alpha = zs3;
} else if (zs3 == 0) {
loadMovie("smalls/image"+pics3+".jpg", "_root.small3");
//next pic load//
//initiate variables//
is3 = 0;
zs3 = nums3;
}
}
if (is4<nums4) {
is4 += jumps;
_root.small4._alpha = is4;
} else {
//fade out redirect//
if (pics4 == max_pics) {
pics4 = 0;
}
pics4++;
//next pic//
if (zs4>0) {
//fade out//
zs4 -= jumps;
_root.small4._alpha = zs4;
} else if (zs4 == 0) {
loadMovie("smalls/image"+pics4+".jpg", "_root.small4");
//next pic load//
//initiate variables//
is4 = 0;
zs4 = nums4;
}
}
};
View Replies !
View Related
Movie Clip Troubles...
Im building a dropdown menu in MX and i created a clip. I would like to use that same clip 5 times but the buttons inside the change with it? How can I use that same clip 5 times but have the buttons on everyone different? Can someone please help me? Thanks Much!
View Replies !
View Related
Movie Clip Troubles
I'm quite new at scripting and I've encountered something kinda complicated(to me anyway). I am making a website where i have animated characters that are movie clips. I want to be able to load another movie clip upon clicking on them and have it display centered while my animation plays behind it. I want the movie clip to go away when you click away from it all without disturbing the animation behind it(I don't want the anim to skip) The movie clip I want to load has a dynamic text box in it that loads a text file with scroll buttons. I have, surprisingly enough, got the movie clip to load, unfortunatly not in the right location and my scroll buttons no longer work.
I've tried tutorials and searched all over the forums looking for a solution. I've gotten close but still no cigar.
If anyone could offer some help with scripting it would be much appreciated.
this is how I loaded the text
loadVariables("textfile.txt", InstanceName_0);
(I don't know if you need to know that part?)
I put action scripting on the first frame of the movie clip I want to act as a button but it is definately wrong! P.S. I'm using Flash MX
View Replies !
View Related
Load Movie Troubles
Hello All
I have a problem with loading external swf's into a flash movie. It loads fine but the clip doesn't do what it is supposed to once it is loaded. for example I have a clip that is supposed to play audio once it is loaded into the main movie clip. It loads fine then when I press the play button I can't get sound. This is code I used for the main movie
on (rollOver) {
slider.xMove = button_2._x;
}
on (release) {
_root.createEmptyMovieClip("container", 1);
// Load external SWF
container.loadMovie("lisa.swf", 2);
}
Here is the code fromw the external swf
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}
_x=2;
_y=32;
Any help would be appreciated, and thanks in advance.
View Replies !
View Related
Movie Clip Troubles
I'm quite new at scripting and I've encountered something kinda complicated(to me anyway). I am making a website where i have animated characters that are movie clips. I want to be able to load another movie clip upon clicking on them and have it display centered while my animation plays behind it. I want the movie clip to go away when you click away from it all without disturbing the animation behind it(I don't want the anim to skip) The movie clip I want to load has a dynamic text box in it that loads a text file with scroll buttons. I have, surprisingly enough, got the movie clip to load, unfortunatly not in the right location and my scroll buttons no longer work.
I've tried tutorials and searched all over the forums looking for a solution. I've gotten close but still no cigar.
If anyone could offer some help with scripting it would be much appreciated.
this is how I loaded the text
loadVariables("textfile.txt", InstanceName_0);
(I don't know if you need to know that part?)
I put action scripting on the first frame of the movie clip I want to act as a button but it is definately wrong! P.S. I'm using Flash MX
View Replies !
View Related
Load Movie Troubles
Hello All
I have a problem with loading external swf's into a flash movie. It loads fine but the clip doesn't do what it is supposed to once it is loaded. for example I have a clip that is supposed to play audio once it is loaded into the main movie clip. It loads fine then when I press the play button I can't get sound. This is code I used for the main movie
on (rollOver) {
slider.xMove = button_2._x;
}
on (release) {
_root.createEmptyMovieClip("container", 1);
// Load external SWF
container.loadMovie("lisa.swf", 2);
}
Here is the code fromw the external swf
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}
_x=2;
_y=32;
Any help would be appreciated, and thanks in advance.
View Replies !
View Related
Attach Movie Troubles
I have a simple function that will attach "mc_Btn" from the library to the stage. I'd like the name and position of the button to be attributes that can be passed to the button when it is created.
With my code, the movie clip is created, but overwritten each time. So, if I try to create three buttons, it creates and overwrites all three, leaving me with just the third.
What am I doing wrong?
Here's my code:
In the cointainer clip, I have the following code:
ActionScript Code:
function addButton (butnName:String, xVal:Number, yVal:Number)
{
buttonsArray.push (butnName);
this.coinMain.attachMovie ("mc_Btn", butnName, this.getNextHighestDepth (), {_x:xVal, _y:yVal});
}
In the content clip, I have the following code:
ActionScript Code:
var containerClip = this._parent;
containerClip.addButton ("btn1", 50, 500);
containerClip.addButton("btn2", 100, 500);
containerClip.addButton("btn3", 150, 500);
btn1.btnText.text = "Button 1";
btn2.btnText.text = "Button 2";
btn3.btnText.text = "Button 3";
View Replies !
View Related
PreLoad And Loading Movie Troubles
Hi there,
I have a swf of about 3.3 megs. I have a preloader in scene one with the following script (with coments). It only shows up when 80 % of the movie is buffered. I'm not sure why. Could anyone shed some light on this?
Thanks!
// This says if the bytes are not completely loaded, begin preloading!
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
// This says if the bytes are loaded, play movie!
nextScene();
} else {
// Begin Preloading
// This will calculate the bytes loaded
bytesLoaded = _root.getBytesLoaded();
// This will calculate the bytes left to load
bytesLeft = _root.getBytesTotal()-_root.getBytesLoaded();
// This will calculate the total bytes
bytesTotal = _root.getBytesTotal();
// This will calculate the kilobytes loaded
kbytesLoaded = Math.round((_root.getBytesLoaded()/1024)*100)/100 add "kb";
// This will calculate the kilobytes left to load
kbytesLeft = Math.round((_root.getBytesTotal()-_root.getBytesLoaded()/1024)*100)/100 add "kb";
// This will calculate the total kilobytes
kbytesTotal = Math.round((_root.getBytesTotal()/1024)*100)/100 add "kb";
// This will calculate the percentage
percent = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "%";
// This will calculate the loading bar
loadBar = int((_root.getBytesLoaded()/_root.getBytesTotal())*100);
// This will determine the position needed for the loading bar
setProperty("loadbar", _width, loadBar+50);
// End Preloading
}
View Replies !
View Related
Movie Button Troubles,,please Read
I made my menu a movie clip and the info about the different frames to play are in that movie.. I dragged the menu movie clip to the main timeline and when I click the buttons nothing happens,, but when I make the button in the main timeline it works.
Im pretty sure you can control the main timeline within a movie clip,, or am I wrong?
How do I make the menu made as an movie clip work.
Look yourself if you think my question is a bit fuzzy.
http://bluefrost.dyndns.org/bluefrost/wblue.html
The first button at the bottom named curry is a movie clip the second curry button(the one out of place) is in the main timeline.
View Replies !
View Related
Troubles With Linking PDF And MOVIE Files
Hi,
I am using Flash MX and have troubles dealing with linked files,
especially PDF and Quicktime Movie files,
and wonder if any of you have suggestions.
I use Mac.
Actionscript used here is: "on(release)" and "getURL" tag that're applied to buttons.
There is nothing wrong with script, nor linked files.
All the files including swf, pdf, and mov files are on the Internet.
Whenever I click on any of the buttons, it always shows an error message.
If you want, try www.juridesign.net and click on "PDF RESUME".
You will get the same message over and over.
Does any one know the solution for this?
View Replies !
View Related
Movie Clip Troubles.. Eeps
Hello guys,
I am having this problem with movie clips. Basically, here is the problem.
My flash video works just fine when there is 1 frame, but when I add more than one frame (like to show a second movie clip), it just shows the first frame of each clip.
So when it should show about 80 frames (inside the movie clips), it only shows the first frame of each clip (like if the MCs were graphic symbols)... which is not what I am aiming for but could also start seizures if I had epilepsy.
What I have been forced to do is end up making the "movie clip frame" the actual size of the movie clip (in this example, 40 frames). All my MCs are acting as if they are graphic symbols.
It is really annoying though, since my flash book says that MCs are supposed to be timeline independent, and I shouldnt be having these problems.
Your help is very much appreciated, and I thank you very much.
-Jayson
View Replies !
View Related
LoadVars, Load Movie Troubles
I dont know how best to phrase this, but ill try cause i have been trying to fix it all day long.
I have a flash movie, and when its loaded another smaller flash movie is loaded into that( a guestbook).
This guestbook loads a variable in from a php script, status.
It will work fine on its on, but when i embed the movie into another movie it doesnt get the variable from the script.
attached are the files, changed the .php file to a .txt file
Please someone help me on this one
View Replies !
View Related
[F8] 2.0: OOP Movie Design, BG Tile Troubles.
i understand OOP very well, but some of the basics of flashs take on it are confusing me at this early stage.
For example, in my fla, i have the following code (i am attempting to make a 100% OOP AS Site)
Code:
stop();
import AS.UI.Index;
var objIndex = new Index(this);
Now its all going well as i am testing this stuff, but i am running into problems with trying to get some events for loading a basic tile image, then tiling it.
eg:
Code:
this.initLoadingListener = new Object();
this.bitTile.createEmptyMovieClip("bitTile", this.mc.getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(initLoadingListener);
mcLoader.loadClip("bitTile.jpg", this.bitTile);
this.initLoadingListener.onLoadComplete = this.loadingListComplete;
}
private function loadingListComplete(movc:MovieClip) {
trace("loaded?");
}
Now there are a few things right away i am not sure i am doing right. First off, i have an object i created before the constructor called "bgTile", that will hold the image of the background tile. Seeing as MovieClip objects cannot be initialized via a constructor, i am not sure if this is how i create the initialize the movieclip, or is this just creating this.bgTile.bgTile?
2nd off, the listener and event for the movieclip loader. In an OOP Enviorment, how are these defined? Because i can't seem to get that event triggered.
I guess that is it for the moment. Once i figure out a few of these oddities i'll be in good shape.
Thanks a ton!
View Replies !
View Related
Troubles Using A Flash Movie On A Website
Ok, I'm one of the newbies
This guy bought a template and asked me to use it for his website. My problem is that I changed the structure of the website (used to have iframes) and now the flash movie, which is used for the menu and header, is acting differently. If you check the website out providerci.com and click any link, you will see the flash movie reloads. Trouble is the movie reloads EVERY time a link is clicked. What I want the movie to do is load when the person enters the site and then not reload again. I'm very ignorant of flash but I suspect I need to change some scripting. I'm having a hard time finding the right frame with the scripting that needs changing. Does anyone have any suggestions? This is kind of a shot in the dark but I'll try to provide need info
thanks!
Edited: 10/02/2007 at 05:27:47 PM by starkween
View Replies !
View Related
Troubles With Implementing A Flash Movie
Hi all,
This is my first post and hope someone can assist in my troubles. I have created a webpage with DreamweaverMX and have also created a movie in flash. Actually I had help from someone here that has posted a snowfalling tutorial. Anyhow, I have both items and they both work well. I would like the snow to fall overtop of my existing webpage or as the background image. I'm having trouble with both. Can anyone help in pointing me in the right direction?
Thanks for any assistance!
View Replies !
View Related
Troubles With Implementing A Flash Movie
Hi all,
This is my first post and hope someone can assist in my troubles. I have created a webpage with DreamweaverMX and have also created a movie in flash. Actually I had help from someone here that has posted a snowfalling tutorial. Anyhow, I have both items and they both work well. I would like the snow to fall overtop of my existing webpage or as the background image. I'm having trouble with both. Can anyone help in pointing me in the right direction?
Thanks for any assistance!
View Replies !
View Related
Load/unload Movie (levels) Troubles
i'm trying to figure out the load/unload movie action tute
I cant figure out any of it.
the biggest thing is, where to my movies actually need to reside, - are these separate flash movies, not just separate movie clips, or separate scenes.
i understand how to get them to load unload, as it the button on release stuff, but i cant figure out levels,
please help (please with detail-i've read and searched and haven't found a clear answer yet)
THANK YOU!!!!!!!!
View Replies !
View Related
Load Movie Clip Troubles (i Have Several Issues)
hi
as a fairly new flash user, my brain is boggled by actionscript...
i am producing a site that will be made into a projector file & distributed on cd. the meat of it is a video & slide presentation. the videos are talking head sections sandwiching the slides (in other words there's an intro video, then the slides, then a closing video). after much finagling, i got the videos to look decent & show up in the flash site. since they're pretty large, i decided to bring them in as outside swfs within an empty movie clip with the load movie action. so, i plopped an empty clip within my scene (called "emptyclip" and it has the instance name of "loadingmovie"), then i attached the following actionscript to it:
onClipEvent (load) {
loadMovieNum("introedit00.swf", 1);
gotoAndPlay("slides");
}
i loaded it into level 1, since when i loaded it into level 0, nothing showed up of my scene EXCEPT the video. all around it was white, even tho the scene has a background color, logo, header & some navigation buttons!
so, here are my problems:
1. no matter where i place the little circle that indicates "emptyclip," the video plays in the upper left hand corner of the window--covering up other things in the background of the scene. i've tried moving the little circle around all over the place, but there's no change to its placement.
2. i then want the clip to play thru and go on to the slides movie clip (i named the frame label of this section "slides"), which i've placed on the timeline in a keyframe right after the keyframe which contains the first empty movie clip with the video loading into it. how do i do that?
3. finally, i'll need the closing video to be triggered right after the slides play. any suggestions there?
i've been working on this problem for several hours. i've read forums, tutorials, etc. i'm going a wee crazy.
thank you in advance for your help...
View Replies !
View Related
Movie Clip Buttons To Scene Troubles
Hi
I have made a drop down menu as a movie clip, and want the buttons on the drop down menu to jump to their respective scenes. The trouble is that when I have dragged the drop down movieclip onto the main stage in scene 1 and test the movie, The buttons (once pressed) do not jump to their scene.
Is there a way round this?
thanks
Mr Casso
View Replies !
View Related
Scripting Troubles For A Scrolling Movie Clip
Hey guys, I'm new to this flash scripting thing so hopefully someone can help me out here.
I'm using this movie clip to display text and a picture in a scrolling text box underneath a mask. This scrolling movie clip is controlled by an up and down button I created on the right side. When I publish this in .swf by itself, it works fine.
The problem I'm having is this page it is being used in is being called by a main page. My main page has a blank movie clip that calls in my page with the scrolling movie clip. When I hit the button to bring in the page with the scrolling movie clip, the page shows up, but the arrows dont work to scroll the text and picture the way it should. Instead it will only go down 1 line and back up 1 line with the text and the picture doesn't move at all. I've tried changing the path using a _parent and also a _parent._parent but nothing seems to work.
If anyone can help me that'd be awesome, and sorry for the long post.
- Mike
View Replies !
View Related
|