Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Draggable Window .swf Not Working When Loaded In A MC & Loadmovie; Works Otherwise?


I have a working draggable.swf. It drags fine and the 'X' closes the window.

As soon as I load it inside a blank MC (main_videholder), it displays, but won't drag nor close with the 'X' code.

on(release) {
loadMovie("draggable.swf","main_videoholder");
}


Any ideas would be GREAT cause I am el STUCKO!!
fitchic77

-----------------------------
Girl Programmers are WAY COOL
-----------------------------




FlashKit > Flash Help > Flash MX
Posted on: 10-17-2002, 08:53 PM


View Complete Forum Thread with Replies

Sponsored Links:

LoadMovie: Loaded Swf W/ Sound Not Working
Hello,

I've spent 2 days combing thousands of threads and after several million attempts, I'm stuck on this.

I have simple play-stop button loop player, loading into my main movie. The player movie loads fine on its own, however loaded into the movie in an MC the buttons aren't functional.

I did come across the script here that noted how to include a 'this' in the line my_sound = new Sound(this); and I finally got the sound loading in the main movie, but the buttons are still not linking to each stop and play position.

I know this problem lies within the player code, howver after bleeding my brain for a few days I'm stuck.

My code for the player movie:


my_sound = new Sound(this);
my_sound.attachSound("sundancer");
my_sound.start(0,1000);
gotoAndStop("stop");


For each button:


on (release) {
_root.my_sound.start(0,1000);
_root.gotoAndStop("stop");
}

on (release) {
_root.my_sound.stop();
_root.gotoAndStop("play");
}


I did try using _parent with no success, so this is what I've been working with originally. My code for the main movie w/empty MC:

this.createEmptyMovieClip("loop_player", 5);
loop_player.loadMovie("loop_player.swf", "loop_player");
loop_player._x = 100;
loop_player._y = 100;


I know someone here can help me!

many thanks in advance
claude coleman jr.

View Replies !    View Related
Pop-up Window From Flash 8 Not Working (but It Works From Flash 6 MX)
Hi!
This sure is a silly thing although I haven't been able to find the solution yet.
I always used this in order to open a Pop-up window from Flash MX, however, this same piece of code does not work when exporting the movie for a Flash 8 player.
code: on (release) {
getURL("javascript:newWindow=window.open('PopIC.ht ml','MYGALLERY','height=550,width=450');newWindow. focus(); void(0);");
}
(NOTE: It's 'MYGALLERY', don't know why it displays 'MYG ALLERY' in this AS code above... )
Any help please?

Thank you very much.
Best regards,
Manare

View Replies !    View Related
Loadmovie In A Draggable Box
I need help with this. Can somebody send me script for a draggable box or at least a tutorial. Also Do I just need to attach a loadmovie code to that box?

View Replies !    View Related
Draggable Pop Up Window
what I want to do is have a draggable window pop up at a certain location within the main movie when I press a button. what code do I attach to the button? I know the drag stuff, but how do i set the position?

View Replies !    View Related
Draggable Window
I have this working script for a draggable window:-

on (press) {
startDrag("/well", false, 0, 0, 640, 480);
}
on (release) {
stopDrag();
}

I can't figure out what the part in bold does, it works with and with out it.

false, 0, 0, 640, 480


I think the 640 and 480 may be the drag area, Any Suggestions? If you know please gimme loads of detail!

Thanks and Merry Christmas

View Replies !    View Related
Pop Up Draggable Window
Where can I find a good tutorial or component for how to do a pop-up draggable window embedded in flash? Thanks in advance.

View Replies !    View Related
Draggable Pop Up Window With No Frames
Anyboby seen the splash screens or the chromeless window as they call it on:
-http://www.phiberoptic.net/
-http://www.firstmistake.net/
How do they do that? open a draggable pop up window with no frames?
Can anybody please help me?
10x guys

View Replies !    View Related
Open Draggable Window
I have an mc which is a draggable window which also contains a close button. Initially it will be invisible as i want to be able to open it from a button on my main timeline. how can I do this?

View Replies !    View Related
Draggable Window (movieClip)
hi, i made a multi scenes flash with buttons. i have also lots of movieclips in the library. i made six buttons in one of the scenes and i made six draggable windows. everytime i click one of the buttons, one of the windows should appear. if i click another button, the first window should disapear and the new one should appear.
my question is, how i can put the draggable windows (movieclips) in the scene and make them invisible, then the buttons in the scene when clicked should make them visible?
please help me? thanx

View Replies !    View Related
Keep My Draggable Window From Going All Over The Place
Hi all-

I have a draggable window movie clip with the following code:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}

This is great, but I need the dragging confined to a certain rectangle...I've been searching for days on how to do this but am coming up short, if anyone could help, I'll give you my soul.

Thanks!

View Replies !    View Related
Draggable Window With Intertia
Ok, I already know how to make a draggable window..but what I'd like to know is how to make the window when dragged have that intertia like effect effect.

again, I searched the site for "inertia" and "draggable windows with inertia" but I still couldn't find what I was looking for.

View Replies !    View Related
Help With Draggable Image Window
I am creating a site that will include 8 scenes containing a lot of images in each along with text.
I would be very grateful to hear from any flash experts that can instruct me how to create a draggable image window.

Firstly, do you need to make a separate draggable window for every pic?

Ideally I would like to load each picture from the _root folder when selected, into the draggable window.

I am a real novice at flash, and you must forgive my inexperience but I am very keen to learn this program, with your help of course!
In a step by step format please

KAINCJ

View Replies !    View Related
Non Draggable Flash Window
Hello everyone,

Is there a way i can make flash window to be non draggable type.
I mean creating Flash Window in Flash 8 and setting it not to move at all.

I have tried using the Vmax and Hmax positioning but its not working

View Replies !    View Related
Resizeable, Draggable Window.
ok, i'm quite happy with draggable windows, done that.

i'm happy with resizing a movieclip.

i've used the tutorial at http://www.flashkit.com/tutorials/Ac...-726/index.php which is all very well, but i'm creating a window to display a blog, and i'd really prefer it if when i resized the window, it didn't scale the text up.

i was thinking maybe creating a text box on the fly and linking the size of it to the movieclip being resized (not having the textbox as part of the movieclip, but maybe sitting on top of it) to match the dimensions of the movieclip as it resizes (with a border of course).

anyone got any ideas on this ? anyone know of a tutorial on resizing windows like this and keeping the text a consistent size ?

cheers

AJ

View Replies !    View Related
The Omni Draggable Window...
Now I have used the forums search tool. Yes some explain quite well what to do, others not so much because they were helping more experienced users who didn't need much explaining. But these threads don't explain everything, they are little old(for Flash MX), not sure if Flash 8 has easier methods for achieving a draggable window and so forth.

But I notice that right now the more popular and ,may soon be, standard thing showing up are scrollable draggable windows. No animation in them, yet.
An example I found looking at a flash template for refferences of interactivity...

Please read the 2 bubbles of text near the right and bottom
that I added...



I really don't know where else to turn. I know it's a big mouth full of info. How do you make draggable window, how do you make a scrollable draggable window, what methods are best when make multiple buttons that use draggable windows for extra content.

I think the popularity of the draggable window is growing faster then the communities knowledge of it. it seems so far away from knowing how to just add pages with transitions and other animations. Yet it's just a little window lol

Any help in making this would be very much appreciated (too bad there isn't a tutorial of this on the site).

View Replies !    View Related
Draggable Window (not The One Offered...)
hehey, anibodi can help me on making like this window thing in flash? n like u can pull it about... like the music thingi on http://vts330.tripod.com or the same.. music thingi on http://www.xeofreestyle.com/2000
thx alot...:-

ohoh, n how to do an animation when 'mousedown' for ur created 'cursor' featured in that global mouse cursor tutorial

View Replies !    View Related
Button In Draggable MC Not Working
I have a movieclip that is draggable. There is a button on it that "closes" the mc. The startDrag() function is on the mc onEnterFrame and the buttn action is inside the mc telling it to go to the frame label on frame 1. The movie clip drags, but can't recognize the button- why???
miakzi

View Replies !    View Related
Multiple Draggable MCs Not Working
Hi.

I have a simple problem. I have two different movieclips. Inside BOTH of the movieclips is a button (the same button, actually) with the same code:


PHP Code:



on(press) {
    drag=true;
}
on(release, releaseOutside) {
    drag=false;
}




Then on each movieclip I have the following code:


PHP Code:



onClipEvent(enterFrame){
    if (this.drag) {
        trace("clip1 drag = " + this.drag);        
        this.startDrag();
    } else {
        this.stopDrag();
    }
}




(note: the trace line reads "clip2 drag..." etc on the second clip.) Anyway, when I just put one of these on the stage, then it works fine. When I put the other one on there, then only one works! The output looks correct (always "clip1 drag = true" when I am supposedly dragging the first clip and "clip2 drag=true" when I'm dragging the second one). Anybody have any ideas why this isn't working?

Here is the FLA if you want to play with it: dragtest.fla

Thanks,

~j.

View Replies !    View Related
Draggable Loaded Movie?
2 Questions:

1.I'm creating a cd-rom entirely in flash with video. Is there a way I can load a video from a remote source and specify where exactly on the screen I want it to load?

2. Can I load a movie that I can drag around on the screen?

View Replies !    View Related
Loaded Movie Draggable
i'm loading an externally located .swf into my movie, how do i make the imported swf draggable for the user? thanks

View Replies !    View Related
Loading External Jpg Into Draggable Window
I am having problems loading an extenal jpg into flash 5 into a draggable mc called 'draggable'.
I have created a mc called 'slide' within the 'draggable' mc on a seperate layer from the drag window graphics, but am stuck on the right actionship to apply to 'slide' to make the external jpg load.

Anybody

KAINCJ

View Replies !    View Related
[MX04] Confining A Draggable Window
Iv'e got a draggable window and I need to keep it inside a pre-defined area, Ie a box which is 800px x 600px. The script for the draggable window is on a hit-area inside the window mc, and consists of simply:


PHP Code:



on (press) {
    startDrag(this, false);
}
on (release) {
    stopDrag();
}




What code would be needed to make sure a draggable window stays in a confined space, and cannot be draggged outside? Is it simple enough, or complicated?

Many thanks.

View Replies !    View Related
Draggable Pop Up Window Within Flash Movie?
i've seen on some sites pop up windows within the flash movie that one is able to drag around. it also usually has a "close" button on it. i can't think of a specific page that has one of these, but for those who know what i'm talking about, could you point me in the right direction of how to do this? thanks!

View Replies !    View Related
Draggable Pop Up Window Within Flash Movie?
i've seen on some sites pop up windows within the flash movie that one is able to drag around. it also usually has a "close" button on it. i can't think of a specific page that has one of these, but for those who know what i'm talking about, could you point me in the right direction of how to do this? thanks!

View Replies !    View Related
Draggable Movie Clip Qua Window
Hello,

I'm a total actionscript novice, but have found a flash effect that I very much want to replicate on my site. An example of it can be found at www.secondstory.com.

I am especially impressed by the fact that no matter what the browser window is resized to, the floating window never goes past the edges of it, so vertical and horizontal scroll bars aren't "generated".

Any suggestions?

Thanks in advance for any help you can offer.

Ean

View Replies !    View Related
Draggable Windows...a *working* Tutorial
Hey!
I need a tutorial for draggable windows that works, or at least is easy to follow. I tried the one on flashkit.com, but it was sort of hard to follow... does anyone know how to make windows that drag, minimize, close, and are resizable? Help would be greatly appreciated.

ZD

View Replies !    View Related
Button Not Working Inside Draggable Mc
K, so I've got a button inside a mc. The mc is made draggable via some script on the main timeline:
[as]
mc_instance_name.onPress=function(){
this.startDrag();
}
mc_instance_name.onRelease=function(){
this.stopDrag();
}

Works fine. (this is an attachMovie clip by the way).
So i put an invisible button inside this movieclip so when pressed it would close the mc (removeMovieClip()

Doesn't work now since the mc is now draggable. I've tried different ways to hitTest but nothing working.

Any ideas?

View Replies !    View Related
Draggable Mc With Dynamically Loaded Text
I'm using Flash MX and have a basic understanding of Actionscript.

I have a mc. The mc is supposed to resemble a small window with a title bar. The 'window' can be minimized, maximized, and closed. The mc ('window') is draggable. Inside that mc are a number of buttons (one of which is the buttn that makes the mc draggable).There is also another movieclip into which I want to place a text box that dynamically loads a text file. The code =

loadText = new loadVars();
loadText.load("news.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.newstext;
};

The text file loads fine. The problems now are:
1 The main mc - 'window' - drags erratically. It's jumpy and hesitates.
2 The other problem is that when I minimize my window (using : on (release) {setProperty("_root.win.bottombar", _yscale, "0");} )the lowerpart of the window disappears, but the text stays visible!!!!!

The same thing happens when I close the window (using:
on (Release) {setProperty("_root.win", _alpha, "0");} ).
The dynamically loaded text stays visible!!!

I certainly hope someone has an answer that will solve this issue for me.

View Replies !    View Related
Centering A Movie Inside A Draggable Window
I have a draggable window that is placed in a movie at the level 3. I have a button in level 0 that when I pressed it will load a movie into the draggable window. I want the movie to be centered into the window because I have a drag bar and it will look nice if the movie is centered. So far I was able to load the movie but since it loads into the left upper corner the bar sometimes look small and not in the center. What should I do?
Your help is appreciated.
Thank you
Carlos

View Replies !    View Related
Draggable Window Shade Menu Problems
Hi - This is a very FUNctional menu that I'd like to incorporate, but am running into some trouble.

The first layer is the draggable bar (which is converted to a button, with start/stop drag actions - therefore with no reference to an Instance Name. The next layer is a rectangular mask and the third (masked layer) works like a window shade that you can pull down to reveal the copy or buttons, etc. This is a movie clip with a nested button - start/stop drag & constrain to rectangle actions are added.

When these elements are together alone on screen - they work fine when I test the movie. However, the big problem is, even when I recreate this menu window from scratch in another movie, it does not work on its own. When tested, the first layer (draggable bar) ends up being able to drag the entire content window.

Why is this happening? I would imagine it should retain its properties to work as it supposed to. I've tried turning the first layer's draggable bar into a movie clip, then nest the drag action in a button, but that only succeeds in liberating it from the window shade masked layer - which is now not draggable, but does go up & down.
HELP? Anyone? Thanks!

View Replies !    View Related
Dynamic Iamge Loading In A Draggable Window
hi 1st post hear coz i cannot see to work it out. New to flash and all and am buiding my 1st webby. so heres the question. i have made a draggable pop up window thing in my movie. i wnat to have an image inside the draggable window that i can load dynamically.. if i am not wrong dynamically means i can just upload the pics under the same file name and they will get automatically updated rite? thanx in advance

View Replies !    View Related
Centering A Movie Inside A Draggable Window
I have a draggable window that is placed in a movie at the level 3. I have a button in level 0 that when I pressed it will load a movie into the draggable window. I want the movie to be centered into the window because I have a drag bar and it will look nice if the movie is centered. So far I was able to load the movie but since it loads into the left upper corner the bar sometimes look small and not in the center. What should I do?
Your help is appreciated.
Thank you
Carlos

View Replies !    View Related
Draggable Window Shade Menu Trouble
Hi - first time "caller" to Kirupa! Thanks - thanks very much - good to be here!

My problem is this: I've found this great, useful menu system that allows the user to both drag it around, and pull down a masked layer to reveal either content or buttons, etc.

It's comprised of 3 layers - the first is the draggable bar or graphic out of which the window shade effect is pulled. It's a button with a drag action attached (not made into a movie clip first, then assigned a button behavior - a button from the start with no reference to instance name.

The 2nd layer is the rectangular boxed mask layer and the 3rd is the masked layer that contains the image to be pulled down in the window shade effect. This is a movie clip with a nested button. The MC has a start/stop drag action on it, with constrain to rectangle checked - with l,r,t & b coordinates.

Test the movie, works great! Both the draggable bar or grahic, AND the window shade layer are connected and able to be dragged together. (somehow, as I don't understand how they are linked to one another with no real reference to each other)

The main problem is this: when I add another layer containing another draggable MC or anything else, go to test the movie and for some reason, now the draggable menu bar is either separated from it's window shade and can be dragged around independantly (which I don't want) and/or it is now connected to the other MC and drags everything around on stage, at the same time.

Would anyone have the answer to how I can implement this great menu system into my project without it forcing everything else to be dragged around? I'm sure it's a quick fix, but I need the fix...man! Help is greatly appreciated!

View Replies !    View Related
Hit Test And Draggable&animated Window Problem
Hi, please, i'm a newbie who needs help:

1 I have an animated draggable window
2 when i drag it over a particular area, the window starts an animation (the mouse is still pressed)
3 when i release the mouse (and the window) onto that particular area i want the window starts another animation and then closes

My first attempt:

onEnterFrame i perform an hitTest if
if false -> do nothing
if true -> i check if the mouse is pressed
if true -> first animation starts
if false (the window has been dropped)-> second animation starts, unload movie

Problem this workflow works only for single frames becouse of the enterframe
How can i solve this problem?

Tia
cris

View Replies !    View Related
Draggable Windows...a *working* Tutorial Needed
Hey!
I need a tutorial for draggable windows that works, or at least is easy to follow. I tried the one on flashkit.com, but it was sort of hard to follow... does anyone know how to make windows that drag, minimize, close, and are resizable? Help would be greatly appreciated.

ZD

View Replies !    View Related
My Draggable Movieclip Prevents My Other Buttons From Working :(
Hi helpers i need a hand.

On my siet i have an email link button, but you cant click the email link and i think it has something to do with the script for dragging the image behind my mask. I am new to actionscript and cant figure out how to get the link to work. Please help


the code on my draggable MC aqua is:

onClipEvent (mouseMove) {
startDrag ("_root.aqua", true, 100, 130, 200, 150);
}


the code on my email button link is:


on (release) {
getURL ("mailto:live@lucid-life.com");


It would be helpful for you to see the site which is
lucid life

Many many thanks in advance,

Cesca

View Replies !    View Related
Buttons Not Working When Draggable Object Is Present
Help! I have a movie clip that I wanted to stay confined in an area but still follow the cursor position. I used the actionscript

onClipEvent (load) {
startDrag("", true, _x, _y-10, _x, _y+400);
}


But, I have simple buttons right next to this movie clip and they're not working--the hand doesn't appear when I mouse over and when I click nothing happens as well. Also, the actionscript I'm using for the mouse-following movie clip may be causing the error, it was an experimental script that happened to work. If anyone knows what I can do to make them work please email me! Kittiesister@hotmail.com

Thanks!
Kirsten

View Replies !    View Related
Draggable But Stop Input Text From Working
I have a draggable MC with this script on:

on (press){
startDrag("");
}


on(release){
stopDrag();
}


However this MC has editable text fields within in it. Once the drag action is applied to it, it prevents the user from being able to click to enter the text fields. The hand cursor is in place the whole time

View Replies !    View Related
Draggable Movie Clip Loaded From Library
I have created a multi-scene flash document. One of my buttons on the stage loads a movie clip from my library and has the following script:

on (press) {
this.attachMovie("help", "window", 1);
window._x = -300;
window._y = 200;
}


Works great. Then inside this movie clip, I have an invisible button with the following script:


on (press) {
startDrag(window);
}
on (release) {
stopDrag();
}

This allows the movie clip that popped up to be draggable. This also works perfectly.

My problem is, the button will only attach the movie clip on the first scene. I currently have it loading in level 1. Does anyone know how I can work around this?? Any input would be greatly appreciated!!!

View Replies !    View Related
Draggable Clips In Swf Not Workin In Loaded Level
I've got a project that takes place on different levels.

In _level0 is the main navigation.
In _level1 is the secondary navigation with draggable items.


The movie in _level1 has several drag and drop clips.
When I publish/play the .swf on it's own it works fine. When I play it loaded into _level1, it drags but does't recognise the targetMC it's dropped on and so the 'triggerMC' doesn't work at all.

I've tried a couple different things. Referencing the draggable objects and target using _level1. The draggable objects only become draggable when loaded in _level1 however the targetedMC code will still not work?

Major stress please advise.

View Replies !    View Related
Draggable Scroller With Dynamic Xml Loaded Text How To?
I've got an fla that loads an external xml file and puts the data on a textfield. I've got the basic arrows updown scroller but I want to have a draggable scroller too.

Can't find a way to do it as the the lenght of text for the textbox is variable so I can't have a fixed _y\_x based scroller.

Could anyone show me directions?

Here is the code I have:
Code:

var news:XML = new XML();
news.ignoreWhite = true;
news.onLoad = function() {
   for (i=0; i<news.firstChild.childNodes.length; i++) {
      for (j=0; j<news.firstChild.childNodes[i].childNodes.length; j++) {
         dnews += news.firstChild.childNodes[i].childNodes[j].toString();
         dnews += chr(13)+chr(13);
      }
   }
};
news.load("news.xml");
//------------- Scroll   
scrolldown.onRollOver = function() {
   over = true;
   this.onEnterFrame = function () {
      if (over == true) {
         dnews.scroll+=1;
         if (dnews.scroll >= dnews.maxscroll) {
            delete this.onEnterFrame;
         }
      }
   }
}
scrolldown.onRollOut = function() {
   over = false;
}

scrollup.onRollOver = function() {
   overup = true;
   this.onEnterFrame = function () {
      if (overup == true) {
         dnews.scroll-=1;
         if (dnews.scroll <= 0) {
            delete this.onEnterFrame;
         }
      }
   }
}
scrollup.onRollOut = function() {
   overup = false;
}

Thanks in advance.
Luis Guerreiro

View Replies !    View Related
Working Buttons Inside A Draggable Movie Clip, Lil Help Please
First I just want to introduce myself and say Hi to everyone, This is the first forum I joined and I am an actionscript noobie so if I seems a bit "slow" I hope to get into the groove with all your valuable help. Anyway, I'm curious. I followed the swapDepth tutorial with the draggable movie clips. Still I was wondering how to next another button within the movie clip. It seems that the only onRelease code only work on the draggable object and not the button I nested inside my movie

Basically I have an instance of a poloroid photo and if you drag them around, the photo fades in, and a little post-it note appears on the photo and give you the title. Then when you clock on another photo, the first photo fades back to it original state,

I would like to add a button into one the the clips with a link to my resume but I can't seem to find the VooDoo to Do Do it. Can one of you Flash GODS possibly help?

I'll trade you a really good fried chicken recipe for the answer to my probelm
THANKS!

-A

View Replies !    View Related
Ok, I Have My Draggable Clip Working, But Want A Close Book To Be Clickable
I have a clip properly working with:

on (press) {
startDrag (this, false);
}
on (release) {
stopDrag();
}

But I also want a close box at the top right corner to be clickable for an unload action.

How do I perform the 2nd areas clickable action if it is a sub-object of draggable mc.

Thanks

Ron

View Replies !    View Related
Setting Background Color Window Component (draggable Part)
Hi,
I am trying to set a background color of the Flash8 window component. The backgroundcolor I am referring to is the draggable section (top) of the window.

I've tried


PHP Code:



_global.styles.windowStyles.setStyle("backgroundColor ", "0xFF0000");




But that didnt work.

Anyone an idea?

cheers
Patrick

View Replies !    View Related
Onclick Open A Draggable Window With Picture And With Xclose Button?
Hello, i have a small thumbnail, and i would like to try to make it when the user clicks on the thumbnail, it opens a larger window and then loads dynamically the photo from the URL stored in a variable.

so if my variable = /pics/thumb.jpg

user clicks on the thumb, window opens and loads the image according to the variable value, and then the user can click close(X) to get rid of the screen

to make it draggable would also be a nice feature


Does someone have sample code / tutorial for this? i couldnt find a simple/clean one. only over-done versions of it...

View Replies !    View Related
Popup Style Draggable Window For Viewing An Image (bigger Version)
Hello again

I've been looking around for quite a while, and i'm surprised but i really cant find something so simple like i am looking for

Does anyone know a tutorial or example file of this:

I have a thumbnail and a button, when the button is clicked it opens a window within flash, which is draggable and has a button to close the window again. All that i would like to be displayed in this window is a image which is located from a variable with a value such as /images/thumbnail.jpg

I cant seem to find another site with an example to show it

View Replies !    View Related
How Does Loadmovie() Works
what loadmovie() does? i know how to use it. but i have a quetion.
for example: i have a movie, and there are loadmovie(blablah) action(s), wich is activated when button(s) is(are) released.
when this movie is in the net somekind of page, then when i'm downloading it to see it, how does it work? does my pc downloads all movies and .swf-s before it starts playing the movie, or it is downloading needed .swf-s when button is released?

View Replies !    View Related
LoadMovie() Only Works Sometimes, Please Take A Look.
(Flash MX)

I am loading jpgs dynamically into my flash slide show. I made a php function to count the number of jpgs in the directory. The slide show loops through the images using loadMovie(). There is a counter variable which acts as a delay(letting the image pause on the screen) that increments by going back and forth on the timeline. Once the counter reaches the set maximum allowed value, the timeline goes back to frame 1 which calls the loadMovie() function and loads the next jpg. What's the problem you ask?? Well, I believe it is only working properly when the visitor's computer is working at an optimum level. The slideshow sometimes does not load or pics take a long time to load. Also, majority of the time, my problems occur when using Netscape 7.2.

Please check the movie and take a look at my code.


frame1:::::::::::::::::::::::::::::::::::::::::::: :::::::::
//declare vars

var count;

var alph = 0;
var delay = 0;
var delayAmt = 200;
_root.alphtest = alph;


count++;
loadMovie("image" + count + ".jpg", "box");
test = count;


//set box initial properties
box._alpha = 0;
box._width = 505;
box._height = 211;
box._x = -350;
box._y = -110;


barBG._width = 478;
barBG._height = 2;
barBG._x = -342;
barBG._y = 100;

bar._width = 10;
bar._height = 2;
bar._x = -342;
bar._y = 100;

_root.form._visible=true;
_root.newEntry._visible=false;


frame2:::::::::::::::::::::::::::::::::::::::::::: :::::::::
test = count;
c = delay;
_root.alphtest = alph;

//start to increase flyer width and height
if(delay >= delayAmt){
alph = 1;
box._alpha -= 5;
box._width += 10;
box._height += 4;
}

//when flyer becomes big enough load new flyer
if(box._width >= 600 || delay >= 209){
gotoAndPlay(1);
}

//when all flyers displayed, go back to begining
if(count>=_root.flyers){
count = 0;
}


_root.form._visible=true;
_root.newEntry._visible=false;

frame3:::::::::::::::::::::::::::::::::::::::::::: :::::::::
test = count;
_root.alphtest = alph;

//pause until exceeds delayAmt
delay++;
c = delay;
bar._width = delay*2.3;
gotoAndPlay(2);

//initially set to 0, give flyer opacity
if(alph != 1){
box._alpha+=5;

//make sure alpha does not exceed 100
if(box._alpha>=100){
box._alpha = 100;
}
}


_root.form._visible=true;
_root.newEntry._visible=false;

View Replies !    View Related
LoadMovie: Works With Swf Not With Png
Hey All,

I have the file I'm working on that loads external swf files. The variables are set with xml and it works fine when loading swf file but would be real great if it could load png files instead. png files simply because I need the transparent bg. The following script works for swf's not png's any help would be fantastic!!!!!!

Oh, yeah and when I set up a more simplistic test file I am able to load png's without a problem. Seems to be in the variable reference.

Cheers
-jub-


a = a-1;
if (a < 0) {
a = totalBands
} else {
a = a;
}
IM1 = bandThemes[a].firstChild.attributes.image1;
IM2 = bandThemes[a].firstChild.attributes.image2;
SEC = bandThemes[a].firstChild.attributes.seconds;
URLs = bandThemes[a].firstChild.attributes.urls;

//This works when I target an .swf but not an .png HELP!!!!!!!!!!
loadMovie ([IM1], _root.spotOne);
loadMovie ([IM2], _root.spotTwo);

View Replies !    View Related
How Loadmovie Works?
Can someone explain to me how loadmovie actully works?

I am familiar how html pages call eachother, but flash doesn't require a target path for the loadmovie command. How then does flash know where to look for the external file? Does it just assume its in the same root folder as the file its loading into?

Forgive me if I've reposted. If anyone knows of a similar post that would answer my question then just post the link. I've searched the fourm and didn't find anything.

View Replies !    View Related
LoadMovie Works In IE, But Not In Netscape? Help
http://www.buckleyavenue.com

My site functions as intended in IE, but when i check it in Netscape its apparent that the loadMovie in _levels isn't working. Is there a different way of scripting it to function in both?

This cross-browser thing is getting old, man.

Thanks
Mark

http://www.buckleyavenue.com

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved