MovieClipLoader Disabled Online?
My swf file works fine when i run it off my hard drive, but when loaded online it stops when it is supposed to load a movie clip. I used the movieClipLoader class to load these files and I imagine it has something to do with browser security.
Anyone know whats going on here?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 08-20-2006, 04:10 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
MovieClipLoader Disabled When File Plays Online?
hi everyone. Thanks to several forum members suggestions, i now have a parent flash file that uses the MovieClipLoader class to load external swfs as they are needed. Everything works smashingly when played locally, including when i fire up the parent flash html file. However, when I loaded the files onto a server and go the site online, the file no longer works correctly.
i have it loaded here:
http://www.hanlonarchitects.com/hanlona ... /home.html
I think what is going on is that the MovieClipLoader is not being allowed to fire due to some security settings somewhere.
The first error in playback occurs after the text that intially loads has faded and a preloader appears. Locally, the preloader functions correctly, and an image is loaded in the space that the crosshairs mark (this is all within the parent swf).
A second error occurs after the first thumbnail in the scrolling panel is released. A swf file that contains the information for that project loads, but images inside it that are also activated using the MovieClipLoader class will not load (this all occurs within a child swf).
In both these cases it seems that the browser has a problem using MovieClipLoader within another loaded movie. Again, this kind of leads me to believe that it is a security issue, but i'm definitely not 100% on that...
thanks for taking a look!
LoadMovie And MovieClipLoader Work Always Locally, But Only 80% Online
I have tried both loadMovie and MovieClipLoader to get swf's to load into other swf's. It works perfect locally, but online, it only works about 80% of the time, also the swf's that won't load changes each time. When I look at the temp internet files, the swf that didn't load is there, but it is corrupt and is only 1K when it should be 20K.
Here is the code that I'm using if it's MovieClipLoader
var myMCL = new MovieClipLoader();
function loadNew(movie, frame){
myMCL.unloadClip(frame);
myMCL.loadClip(movie, frame);
}
Here is the code that I'm using if it's loadMovieFrame
this.attachMovie("loadMovieFrame",1);
function loadNew(movie, frame){
unloadMovie(frame);
loadMovie(movie, frame);
}
This is an example of what is being passed to the function loadNew
loadNew("logout.swf", "loadMovieFrame");
Any Ideas?
Keeping A Disabled Button Disabled After Navigating Away From The Frame
Okay, so... I'm making a VERY basic Jeopardy game, and I need buttons to be disabled after being clicked on once.
Oh, and I'm working in CS3, but I'm using AS 1&2 because that's what I learned... I have no idea how to use AS 3...
example:
frame 1 has btn11 in it. btn11 when clicked takes the person to frame 2. when done with frame 2, they click on return.
the return button (btnReturn1) has the following AS
on (release) {
gotoAndStop ("Round1",1)
btn11.enabled=false;
}
the problem is that it works at first - the button disables when I get back to frame 1, but the next time I click a different button then return to frame 1, the first button I disabled isn't disabled anymore.
can you help me fix my actionscript so that my disabled buttons stay that way no matter how many times I come and go from the frame? or if you have a better way to do it, that'd be great. basically, it's like the jeopardy screen, and after "songs" for 200 is clicked, I don't want it to be clickable again at all.
Disabled
i'm using an onclip event:
this works as an individual swf but will not work when place in an html page.
any ideas why?
rat
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.menu.drop.nextFrame ();
} else {
_root.menu.drop.gotoAndStop (1);
}
}
Help For Disabled
Hi,
Can I do this with Flash? Would there be anyone out there willing to consult, for fee ($) on this project, that truly knows ActionScript?
I develop softare for disabled kids.
The program I am trying to 'port' over to PPC (PocketPC), Windows Mobile 2003, is a program that I have used for Autistic kids for almost 20 years. I wrote it in Director and have updated it to Director 7 over the years. It is called Point To Pictures.
Autistic kids usually don't speak. But they can be taught to point to pictures to indicate desires, needs, etc. In other words, a computerized device can be used to augment their communication (or in this case, their *lack* of communication). The field is called Augmentative Communication (it's a sub-field of my own, which is named Assistive Technology). I am quite well known in my field (just go to Google and type my name in, RJ Cooper, and you'll get, literally, tens of thousands of hits, most to me
In an Aug. Comm. program, we usually put up a screen with a number of pictures indicating categories (food, school, entertainment, etc). These pictures would be JPEGs and the teacher/parent would be able to choose what pics, from a library I provide, go where and how many.
Once a pic is touched (Food), a Wave file would be played ("Food", that picture is shown full screen with a second Wave played ("I'd like something to eat, please"), and then the screen would change to the group of pictures associated with that category (ex: if they touch food, then 8 foods appear). When they touch their desired food, a wave is played ("eggs"), that pic is displayed full size, and a second wave is played ("I'd like some eggs, please.") On this second (or third) screen, one of the buttons can jump back a screen.
There also needs to be a setup program so that a teacher/parent can choose the pics, record the sounds, for the user to interact with.
Can I do this with Flash? Would there be anyone out there willing to consult, for fee ($) on this project, that truly knows ActionScript?
Thanks!
Btn Disabled
Hello everyone...
Ok I have 6 button call m1-m6...ok my problem is how to disabled button when one of the button being press...and also stt.text will display crrently selected button...coz currently when I press the button it never stated and also 'stt.text ' also show nothing..any help would be appreciated...
tq again!
this is the code I'm using...
ActionScript Code:
stop();//-------loop through button---------//for (var i = 1; i<7; i++) { this["m"+i].ivar = i; this["m"+i].onRollOver = overMe; this["m"+i].onRollOut = outMe; this["m"+i].onPress = selectMe;}function overMe(p) { this.gotoAndPlay(2); stt.text = "card type no :"+" "+this.ivar;}function outMe(q) { this.gotoAndPlay(1); stt.text ="";}function selectMe(r) { //trace(this.ivar); stt.text = "card type no :"+" "+this.ivar;}
Why Is The Onmouseevent Disabled?
Why is the onmouseevent disabled???
how will it becom enabled??
I have a symbol (movie instance) I want something to happen when the mouse goes over it...
Can anyone help please...
Right Botton Disabled
Hello, im trying for disable the right botton action in a flash used as active desktop. How can i do this? The problem is that flash take control of your desktop and you cant use the windows right click menu over the desktop.
Thanks a lot
sorry about my english!
Disabled Stage
How to set disabled the all stage when appear an alert message (created by UI Components), like it appens when appears a macromedia message ( example deny or access a web cam source)?
Flash Disabled
Hi all,
I wonder if there's anyone who can help with this problem. I want to use a flash component for a site I'm building. The problem is, if a browser's security is instructed to disable flash, all the end user sees is a blank box. Is there a way I can get Flash to check to see if flash is disabled (ie: installed but not enabled) and if so to present a GIF instead? Or would I need to do this within HTML.
Can anyone help??? Desperate!
Cheers chaps.
Run Active X Disabled, Now What?
It was brought to my attention that if an end user disables Run Active X in their security in IE that my flash site doesn't load, I felt better when www.2advanced.com (my flash idols) didn't load either, but does anyone know a work around to this? My site, that I get about 10 minutes aday to work on is www.fpsweb.org ...thanks in advance
Disabled Cos Of Html?
i'm creating a drop down menu using the code in this tutorial.
http://www.flashkit.com/tutorials/I...k-951/index.php
except i cant get it to work.
it works fine when i simply open the swf, but when the swf is placed into a html page it is disabled?
any one got a clue.
rat
Disabled Code
i'm using this code on individual buttons in a group in an MC (eg. one button says)
onClipEvent (mouseDown) {
_root.position._x = 0;
_root.position._y = 20;
}
it links to a function that slides the MC to the co-ords.
problem is, i click once on any button and it works, a second click on another button with the above code and it dosen't work???
any of the buttons work but only once and then the rest are disabled!!!
rat
[F8] Buttons Disabled
I have 4 buttons which need swapDepth applied, so i make them into MC's and now the rollover and hit area of the nested buttons are disabled!!!!
what do i do?
Rat
[F8] Javascript Keeps Getting Disabled
Im trying to make my myspace all flash, but when i embed the .swf file myspace automatically disables javascript so my links wont work
What is the best thing i should do???
check it out here: Myspace
Disabled Button?
hi
I created button and by clicking on it, it shows dynamic text, but when I disable this button (button.enabled = false) and click on it, it still shows dynamic text
How can I disable the button to do nothing and then enable it ?
Flash Disabled
So i bought a computer and it came with flash mx and when the computer first arrived flash was working fine but then when i made updated the computer with newer software and a new master account flash was disabled and now its asks for my first and last name, organization, and the serial number is there some way i can revive it?
Trouble W/ Disabled MC
I am able to disable a movie clip that is being treated as a button on the timeline. However it doesn't finish playing the onRollOut animation once the script is in place. I tried an if statement but it isn't working. Anyone know a workaround or proper way of writing the code? The site and can be viewed at www.jasonburnam.com
Attach Code
// disable movie clip button
resume_mc.enabled = false;
// if disabled play onRollOut animation "s2"
if (resume_mc.enabled = false) {
resume_mc.gotoAndPlay("s2")
}
Button Disabled
is there anyway to disable the button while the others are enable what im trying to say if let say im on a about section of the site and i want to disable the about button while the rest is enabled
Scroll Disabled
Hello personal, it was seeing the example of enabled and desabled the scrollbar components, but in mine is carrying a. txt external, and doing not digitate in him, as I do for upon carry opens he the function?
Enabled And Disabled - Help Please
Hi all,
I have this movieclip with buttons residing in the main timeline. This movieclip is set with an _alpha = 0. How do I disabled this movieclip/buttons in the main timeline as well? The movieclip will be visible only if another button(not within this movieclip) is pressed.
I tried using the following but it doesn't work.
movieclipInstanceName.enabled = false;
How do I go about doing it?
Thanks for any input in advance.
Disabled Buttons ?
Hello.
I have another problem with MovieClipLoader .
It's loading external movies' correctly, but when it loads movie with navigation, buttons arent working :/ they are disabled or smth...
Here's code with mcl
HTML Code:
preloader._visible = false;
preloader.bar._xscale = 0;
var mclListener:Object = new Object();
mclListener.onLoadInit = function(container:MovieClip) {
trace('initialized');
container.play();
};
mclListener.onLoadStart = function(container:MovieClip) {
preloader._visible = true;
trace('started');
};
mclListener.onLoadProgress = function(mc, w, t) {
trace('progress: '+w+", "+t);
var w = container.getBytesLoaded();
var t = container.getBytesTotal();
preloader.percent = Math.round(w/t*100)+"%";
preloader.bar._xscale = Math.round(w/t*100);
};
mclListener.onLoadComplete = function(container:MovieClip) {
trace("loaded");
preloader._visible = false;
container.play();
};
mclListener.onLoadError = function(container:MovieClip, errorCode:String) {
preloader._visible = false;
trace('not loaded');
};
var container1:MovieClipLoader = new MovieClipLoader();
container1.addListener(mclListener);
container1.loadClip("core.swf", container);
And link to my site http://martyniuk.info/master.html
Anyone know what is wrong ?
Thnx for help.
Buttons Disabled By AS ?
I made a button, and in the "over" frame is an animation mc.
I tested this button with no AS assigned to it, and there is no problem at all, when I go over the button, the button plays.
Now I assigned a bunch AS code to the button, and suddenly, the button dont work anymore, the cursor transformes in a pointing finger, and on release it does what the AS wants it to do, but the 2nd frame doesnt show when I go over the button.
next is the AS I used on that button.
Code:
on (release) {
function leesXML(geladen) {
if (geladen) {
naam = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
country = this.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
leeftijd = this.firstChild.childNodes[1].childNodes[2].firstChild.nodeValue;
gender = this.firstChild.childNodes[1].childNodes[3].firstChild.nodeValue;
email = this.firstChild.childNodes[1].childNodes[4].firstChild.nodeValue;
homepage = this.firstChild.childNodes[1].childNodes[5].firstChild.nodeValue;
xmlUrl = this.firstChild.childNodes[1].childNodes[6].firstChild.nodeValue;
_root.ThisNaam.text = naam+"'s personal information";
_root.adres.text = xmlUrl;
_root.friends.text = naam+newline+country+newline+leeftijd+newline+gender+newline+email+newline+homepage;
_root.friendsknop.label = naam+"'s friends";
}
}
onzeGegevens = new XML();
onzeGegevens.ignoreWhite = true;
onzeGegevens.onLoad = leesXML;
onzeGegevens.load(_root.xmlUrl);
}
Can anyone tell me whats wrong, the AS works fine, but its just that the button dont show its "over" frame....
Thx for at least reading my problem :-)
OnMouseWheel DISABLED
Hi,
I would like to ask, if there exists any code, which would make a function disabled onMouseWheel?
Thank you for any help.
Button Disabled After Use
Hello
This is my first post (Forum Virgin!).
I have produced a wordsearch for kids to use on Flash MX.
Each word is a button to a page of information with a button that takes you back to the wordsearch page.
My problem is that I want the buttons on the wordsearch to be disabled after they have been used once and to look different when they have been used.
Button Disabled
is there anyway to disable the button while the others are enable what im trying to say if let say im on a about section of the site and i want to disable the about button while the rest is enabled
Scroll Disabled
Hello personal, it was seeing the example of enabled and desabled the scrollbar components, but in mine is carrying a. txt external, and doing not digitate in him, as I do for upon carry opens he the function?
Enabled And Disabled - Help Please
Hi all,
I have this movieclip with buttons residing in the main timeline. This movieclip is set with an _alpha = 0. How do I disabled this movieclip/buttons in the main timeline as well? The movieclip will be visible only if another button(not within this movieclip) is pressed.
I tried using the following but it doesn't work.
movieclipInstanceName.enabled = false;
How do I go about doing it?
Thanks for any input in advance.
Flash Disabled In New IE?
I read this twice. Does anyone know what it means to us?
http://msdn.microsoft.com/library/de...ng_activex.asp
Masks Disabled Upon Publishing
Hi - Has anyone ever seen this?... a mask (created by flash MX from a paste inside imported from freehand) simply disables itself upon publishing. In the attached example, the white street lines on this map are pasted inside the map shape, and display perfectly in the authoring environment. But as soon as it's published, the white lines in the resultant .swf end up behing the whole shebang! Anyone know what gives here?
Unzip these files to a folder, open beachwood.fla, export it and you'll see what I mean. Thanks for taking the time to look at this!
Matt
Can Buttons Be Disabled W/ A Script?
Problem...
I have a web site that has a navagation bar as the main .swf. I have all the pages load on top of this .swf as layer 50. Works out great so far.
My problem is....
I have another page / swf, loading on top of layer 50 this .swf is on layer 51. I want to do this because I want to use previous graphics on the layer 50. The down side so far is that the mouse events on layer 50 are still enabled "through" layer 51.
Any ideas to overcome this problem.
THANKYOU VERY MUCH!
Flash Sounds Disabled
hi guys...i need help with the sound components.
up until two days ago all of my flash files with audio would play their audio loops and i can go into sites and hear the sounds but now i dont seem to have that capability.
I dont know what I did and as far as i know i havent changed anything on WIndows XP settings...Im coding a website for college which contains a lot of flash files and audio but now i cant test it because i cant hear them...i know its not my sound card because i can play dvd's vcd's and Audio cd just fine...
need an urgent reply..dont want to reformat the pc.
Disabled Background Effect
Hi, can anyone help me? I want to make a custom dialog box in Flash, and I need the background behind the dialog box becomes completely disabled or 'unclickable' whenever the dialog box pops up, and then becoming enabled back again when the user clicks some button in the dialog box. Similar to what happens with the Flash MX Alert Component.
Can someone point to me the way in which I can do this with a custom dialog box?
Thanks for any help.
Disabled The Button, But How To Enable It ?
Hello, I hope this is the last of the "button questions" i've been posting here the last week.
I have disabled a button on the timeline :
Code:
clpA.btnA.enabled=false;
the button rests in a clip named clpA and the button is named btnA
the button is disabled if the user clicks on it. but how do i restore ability on the button ? i have tried all i know (not much, admittedly), to no avail.
i have tried
Code:
_root.clpA.btnA.enabled=true;
on the appropriate frame but no use.
If you take a look at the .fla [in MX] please see the layer "about actions" in which i have coded the above.
Like i say, i can disable the little swine, but i cant seem to bring him back to life.
many thanks
DJ
Keeping Buttons Disabled
Hi,
I am currently working on a flash game in which users have to find hidden objects (buttons) in a house to click to gain points. There are four different "rooms" you can explore.
Once a button is clicked, it becomes disabled so that it cannot be clicked again to gain points and cheat.
But when the users move elsewhere in the scene to other "rooms" (held in different frames), and then return to a "room" in which a button was just disabled, it is active again. I have tried scripting it in numerous ways and it just won't work.
Is there anyway i can premanently disable a button? I hope this made sense.
Cheers.
[F8] Mc Button Disabled In Down State
i've been using the currentPage on a number of places within my project, it works great but i do have one problem i'd like to disable the current pressed _bt_mc so it wont be clickable until a different _bt_mc is chosen.
any ideas on how to temporary disable the currentPage / current pressed _bt_mc then when another _bt is chosen enable the previous button?
cheers
here is my code:
stop();
currentPage = fea_title2
fea_title2.gotoAndStop(11);
fea_title2.onRelease = function(){
fea_title2.gotoAndStop(11);
currentPage.gotoAndStop(1);
currentPage = fea_title2
};
fea_title2.onRollOver = function(){
if (currentPage != fea_title2){
fea_title2.gotoAndPlay(2);
}
}
fea_title2.onRollOut = function(){
if (currentPage != fea_title2){
fea_title2.gotoAndPlay(6);
}
}
fea_title3.onRelease = function(){
fea_title3.gotoAndStop(11);
currentPage.gotoAndStop(1);
currentPage = fea_title3
};
fea_title3.onRollOver = function(){
if (currentPage != fea_title3){
fea_title3.gotoAndPlay(2);
}
}
fea_title3.onRollOut = function(){
if (currentPage != fea_title3){
fea_title3.gotoAndPlay(6);
}
}
fea_title4.onRelease = function(){
fea_title4.gotoAndStop(11);
currentPage.gotoAndStop(1);
currentPage = fea_title4
};
fea_title4.onRollOver = function(){
if (currentPage != fea_title4){
fea_title4.gotoAndPlay(2);
}
}
fea_title4.onRollOut = function(){
if (currentPage != fea_title4){
fea_title4.gotoAndPlay(6);
}
}
How To Enable A Button You've Disabled?
Hi,
I'm using Flash MX v6 but I'm not very experienced...
I've '.enabled=false' a button[1] whilst a movie is running.
When I close the movie(via another button[2]) I want button[1] to work again.
I've tried telling button[2] to '.enabled=true' button[1]
I've also tried '.enabled=false' but neither work.
Help!
What can I do?
Is there a different command I can use?
Or a clever piece of script?
All suggestions welcome,
Cheers,
Champignon
Talking To Flash: Are You Disabled?
Hi,
I'd like to know if a certain movieclip button is on the "disable" frame label. How do I ask that please?
Code:
areYouDisabled = function ()
{
if (_root.commercialsMc.contentMc.leftMc.gotoAndStop("disable") == true)
trace("yes")
};
But this isn't working... Any suggestions?
Thank you very much.
[F8] Depth Swap Becoming Disabled, But Why?
Hey everyone. Welcome to my first post!
Here's what I'm trying to do:
• change the opacity of a fixed shape ("mask") to be 0% while dragging another object.
• Bring draggable objects to the front with depthSwap when clicked on.
It seems that I can get one or the other to work, but not both at the same time. Here is the code I'm using on my button. As is, depthSwap is not working.
Quote:
on (press) {
_root.depthSwap(this._name);
startDrag(b6);
}
on (press) {
setProperty("mask", _alpha, "0");
}
on (release) {
stopDrag();
setProperty("mask", _alpha, "100");
}
the code at root level is this:
Quote:
function depthSwap (x) {
for (i=0; i<cA.length; i++) {
if (cA[i] == x) {
xPos = i;
}
}
i = xPos;
for (i=xPos; i>0; i--) {
_root[x].swapDepths(_root[cA[i]]);
cA[i] = cA[i-1];
}
_root[x].swapDepths(_root[cA[0]]);
cA[0] = x;
}
cA = new Array();
for (i=0; i<7; i++) {
cA[i] = "c"+i;
}
Any suggestions at a glance to fix this up? Do I need to provide more info?
I'm pretty novice at this in the grand scheme. Help a sister out. Thanks a bunch!
Button Disabled Because It's Covered Up?
In CS3/AS3, I have a button using this code
Code:
switch_bn.addEventListener(MouseEvent.CLICK, lightsUp)
function lightsUp(event:MouseEvent){
trace("lights up");
}
That button is covered by another movieclip on the layer above it, which causes it not to work. Is there a way that I can have the button covered by another movieclip but have it still work? Thanks.
Imbedded Links Being Disabled - Help
I'm new to this, so I'm not sure if this should be posted here or in the actionscript forum...
I've developed several dress up games which I distribute to different gaming sites so that they can feature my game and I can, in return, recieve some traffic from them. I've put some link buttons in my games but it seems they are either being disabled by the gaming sites webmasters or I'm doing something wrong.
I need to know if I"m doing something wrong with my links and if I am, how to fix it. Or I need to know if they are disabling my links how I can stop it?
An example of an original game from my site is here:
http://www.dressupcraze.com/DressUp/DUCSwimm08.html
And here it's posted on another site:
http://www.girlsgogames.com/game/Rea...-Dress-Up.html
Any help, advice, anything....would be so helpful! Thank you.
Disabled Quick Keys
Everyonce and a while my shortcut keys become disabled while I'm working. it seems random, but maybe I'm pressing something without realizing. This is very frustrating as I would like to use quick keys instead of clicking on tool icons.
I try to restart the program but it doesn't work. eventually the quick keys re-enable themselves but I can't see any rhyme or reason to it. help!
User Has Plug-in But Has It Disabled...
The Moock FPI correctly determines whether you have the required Flash plug-in installed but does not account for the plug-in being disabled by a browser preference. Does anybody know of a technique to work around this? I did a search here and on google and didn't find anything. Thanks.
Can Flash Be Disabled If Css Is Off On The Site?
I want to know if this is possible, with css on, site with flash displays properly, but if the user has css turned off, disabled, or otherwise unable to use it, i dont want the flash to display.
is there a trigger of some sort, i know you can control some graphical elements through css to effect flash, but can it be linked in a way?
thanks
JsessionID When Cookies Disabled?
Hello,
I have a situation where the SWF is at times loaded in a client page where the cookies are disabled, and prompting the client to "turn on cookies" is not an option. From my research, the AMF is supposed to automatically detect the client has no cookies, and append the jsessionid internally with every call.
This is not happening! On a cookies disabled machine, our SWF to server calls just hang.
Is there a CF server setting that needs to be set to make this URL passing of JSESSIONID in AMF possible? CF version 7 is the server.
Have done many hours of research all over the place, and not finding any clear answers. I'd appreciate any help.
Thank you!
Vahe
|