ActionScript 2.0 :: Border Attached Flash Movie?
Sep 23, 2008about making a Flash application that sticks to the bottom of a web page, even when scrolling?
View 1 Repliesabout making a Flash application that sticks to the bottom of a web page, even when scrolling?
View 1 RepliesI have a very simple player which connects to a shoutcast stream. All it has is a play/stop button, and a volume control, which control a mp3 Playback Component.However, everytime I click anything within the flash movie, a little focus border appears around my flash movie. You know how when you press tab on the keyboard to switch between different elements in a program, such as different buttons, and that little dotted border appears on the button you are on? Well, that happens to me, and I am not sure why or how to get rid of it.
View 3 RepliesI have a problem when I create flash movies (I have tried Flash slide show maker). The video looks good but when I publish it and view it in Explorer or Firefox it comes with a gray border around it (partly dotted)I have tried to find a solution in different forums but no luck. The gray border is visible even if you havent clicked on the flash movie.
View 3 RepliesI use attachMovie to call movie clips succesively on the stage. I use a forward button to slide them in progression but when I want to go back in the same order everything gets messed up. You can see the swf playing here, [URL]..I numbered each frame so you can see when clicking on back button it gets messed up.
// Each of the button functions here call the add_page() function and pass the Identifier of the page that they will display b_0.onRelease = function() {
[Code]...
I've noticed when browsing my flash site sometimes--not on every computer but--when I click on something (like a button) suddenly an outline or border appears around my entire flash movie. Anyone know what causes that and how to make it go away?
View 2 RepliesI tried all suggestions from the dreamweave forums and none worked.I am placing a CS4 swf movie into dreamweaver CS4 and when I preview in firefox I can't get rid of the 1 pixel white border.Have tried all settings, including setting the wmode parameters to transparentBorder set to 0, frame set to 'top', image set to top.If I change the background of the frame to blue for example, I get a 1 pixel blue line. I believe the problem is in dreamweaver.How do I fix this?
<param name="expressinstall" value="Scripts/expressInstall.swf" /> <param name="BGCOLOR" value="#FFFFFF" /> <param name="SCALE" value="noborder" /> <param name="wmode" value="transparent" /> <!-- Next object tag is
[code]....
There is a thin border at the top and left margins of my Flash movie when the .html is viewed in a browser. How can it be removed?Here's the movie.One solution suggests replacing some code, but the code they suggest replacing doesn't even exist in my html file.I have found questions similar to mine being asked all over different forums, but their solutions either don't work, or like the above, don't really apply. For such a common problem, finding the solution is getting a little frustrating.
View 1 RepliesI created a movie clip (mcPopup), deleted it from the stage, and set it to export for ActionScript. I then set up the movie to attatch the clip to the stage and then load a JPEG image into it. Now, I need to be able to let the viewer dismiss the popup, but I cannot figure out how to add an event listener to the movie clip. I tried several different ways, but the popup doesn't seem to be clickable and doesn't respond to clicks (perhaps the image is in the way?) Here is what I have for the code for the thumbnail the visitor clicks to open the popup:
on (release)
{
_root.attachMovie("mcPopup", "popup_mc", _root.getNextHighestDepth());
[code].....
I had created the script below but the cordinate is not working right. please see my scripts and let me know what is wrong with my scripts.
/*mcc is the Instance name*/
var myMovieClip:Sprite = new Sprite();
trace("x" + mcc.x + "y" + mcc.y + "width" + mcc.width);
[code].....
What is the best way to attached sound to my movie. I used to used the sound obejct as such:
my_Sound_sound = new Sound();
mySound_sound.attachSound("soundID");
But by under the linkage menu I am only able to select export in the first frame. Which makes my first frame super huge. Than my preloader will not load until the sound, so it is no good.
What is the best way to attached sound to my movie. I used to used the sound obejct as such:
my_Sound_sound = new Sound();
mySound_sound.attachSound("soundID");
etc etc.
But by under the linkage menu I am only able to select export in the first frame. Which makes my first frame super huge. Than my preloader will not load until the sound, so it is no good. What shall I do?
I have a scrolling image strip that loads images from xml. I was wondering how I could attach a border to the movie clips that the images are loaded into. I know how to use the drawing API, but I can't seem to attach a border to each movie clip. I'm posting the code below.
Code:
cliparray = [];
function loadXML(loaded) {
if (loaded) {
[Code]....
There is a code for the effect of resizing border in this tread: [URL]
Has anybody here loaded the picture+border (output of the code) into another movie through loadMovie?
I have a full browser scrollbar I found from here, that has class of 'ScrollExample'.as, but I have a difficult time adding it my website.I used a UIloader on my main site with the instance name of 'loadit' and placed it on top left corner of my site.I have a button on my main site with the code:
Code:
btn_1.addEventListener(MouseEvent.CLICK, ContactClick);
function ContactClick(event:MouseEvent) {
var loadit = new Loader();
[code]....
but when I click on btn_1 I get this error:
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ScrollExample/initStage()
at ScrollExample()
I am using a button (btn1) to attach a movie (hole01). The movie attaches fine but I can't seem to get it to go to the second frame of the attached movie and play.
[Code]...
Im pulling images from an xml file and I want to attach an onRelase and onRollOver event to each one, but it's not working
var thumbWidth = 24;
var thumbHeight = 24;
var xml = new XML();
[Code]....
I am trying to move attached movie clips, but I've come across a problem. This is the code inside the movie clip that's attached:
ActionScript Code:
function moveFrom(which){
for (i=which;i<20;i++){
[code]....
I've attached a movie clip using the attachMovie method. I was wondering if it's possible to handle the attached movie clip... I don't know if I'm expaining this correctly but I'd like my movie clip to perform some simple actions (gotoAndPlay, Stop)This is my (lame) script:
//Ataching clip
this.emptyClip.attachMovie("photo001","Img001",get NextHighestDepth());
//Action for the attached clip
this.emptyClip.gotoAndPlay("starting");
How do i change movie clips inside MC3?lets say i have a button called but1 inside MC3, how do i make his enabled=false?
View 6 RepliesI copied this code from the web that creates snow and I have this code on frame 100. I want to remove this movie clip when it starts back again on frame 1.
[Code]...
I just want each instance of the movie clip from my collect_array to show up in a different x & y position.
(the collect_array is defined as an array elsewhere). It displays the first item in the array once (or it's displaying all the items on top of each other).
PHP Code:
if (collect_array.length > 0) {
var xplace = 50;
var yplace = 50;
[Code].....
I'm having trouble figuring out how to target a series of movie clips i'm attaching to my movie.I'm loading some xml for a slideshow and i'm generating a series of dots at the bottom of the screen to indicate how many steps are in the slideshow and the circle is meant to highlight your current position as you step through the presentation.the MC for the dots is two keyframes with a different color and a stop action on each frame.
Here's the rundown of the code:
1. There's nothing weird here, i'm just bringing the xml in [code]
2. Here is the loadXML function i reference in the xml.Data.onLoad above:[code]Okay so now i have some dots with the instance names, step0, step1 etc. right? And at the end of my loadXML function you see the firstImage(); function. This is where my problem is, how do i target the first (step0) instance? I have no problem when I write "step0.gotoAndStop(2);" but I need to figure out how to use a variable to keep moving it along when i make my next and last functions for the slideshow.
3. Here is the firstImage function:[code]how do i target the step the same way i target the image? do i have to go back and do something in the loadXML for loop?[code]
is there a cleaner way to attach movie clips than this type of syntax?
_root.attachMovie ("Frame", "frame", 60);
frame._x = 375;
frame._y = 375;
[code].....
I used the tutorial posted at http:[url]... Now I have a button on my stage that attaches a movie from the library.
on (release) { this.holder.attachMovie(contents�,�contentslinks� ,1); }
It works fine but I also have buttons inside the attached movie clip that need to control a movie that is already on the stage.
contentslinks.contents_link_1.onRelease = function() { content_mc._visible = false; book_mc.directGotoPage(4);
If I just place the attached movie on the stage the buttons work but I when I proceed to use attachMovie, they do not work. How do I get the buttons in the attached movie to address the movie that is already on the stage?
I have a website, when you click a menu item it fades the current page out, and the selected one in. No problems with that, it all works well.
The only problem is, within those attached movies, all the actionscript doesnt work. I have, for example, a research page, which have 4 buttons, each of which attach a movieclip to and empty movieclip... Just a simple attachMovie function, but it doesnt work. If copy the research movieclip into a seperate flash file, everything works and the movies are attached fine, but in the website .fla, after the research page is loaded itself, none of the movies attach properly.
Are there any known issues with attaching movies within an attached movie?
i attach a movie to an other with this code currentMc = clips[0].cont.attachMovie("about", about, 0, {_y: 10 });
this works fine, bunt in de about movieclip there is a function that is called setData (xmlfile , cssfile) i want to call to fill the clip with the data provided in the funtion but i can not figure out how to call the function in the about
Q1) The registration point of a created clip is top left - my question is how can I dynamically change it's registration point - say to center center?
(I am trying to attach a movie clip to a created clip and I wanted it to be centered inside the container - a related sub-question, how can I find the x-y coordinates of the attached movie clip within the created movie clip?)
Q2)When I tried to create two different movie clips, I found I had to create them at different depths, else the first would load and the second would not. Why would that be so? I'm on MX 2004 Pro.
I would like to have one movieclip over the top of other attached ones. I have tried getNextHighestDepth on the movieclip, but it still doesn't work. Here is my code for attaching the movieclips:
PHP Code:
function growSpider() {
spiders = 0;
[code].....
I have a button that has an onPress function that attaches a movieclip with startDrag(true) so the attached movie snaps to the mouse and can be dragged around. The problem is that I don't know how to set up the onRelease function so that when the mouse button is lifted the attached movieclip is removed. Also, the attached movie appears in the upper left corner for just an instant before snapping to the mouse.
View 9 RepliesBasically its an onPress event handler on a movie clip that attaches another movie to it when pressed.The problem is, I only want the movie clip to be attached once in the designated x,y coordinates, no matter how many times the main object is pressed. I'm essentially trying to write my own FreeTransform script, that allows users to resize the object.
Below is the my source code:
ActionScript Code:
chair_mc.onPress = function() {
var bounds:Object = chair_mc.getBounds(this);
//
[code]...