Potential LoadMovie Error
Hello ladies and gentlemen!I have an issue with a site that i have created for a client in BC.www.wildfloweryoga.caIt seems that a LOT of the people the client has sent the site to dont get content loading when they click the various navigation buttons (the flowers and roots).The nav elements are simple buttons with ActionScript Code: on(release){ _root.core.contents.loadMovie("contents adult.swf");} Where "_root.core.contents." is previously created blank movies.This site seems to work for everyone that i have shown it to, so i suspect some kind of firewall restriction... i dont know.Any suggestions would be muchly appreciated!Cheers.
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 02-14-2006, 04:52 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Sandbox Error With LoadMovie (access Before Fully Loaded Spits Error)
I have read all the posts on sand box errors. I have tried everything I have found to disable them. It took for ever but I figured out that after I call a loadMovie() if I do anything to the clip as it is being loaded before its fully loaded it spits a sandbox error, then since I have a mouse event attached it floods my trace window with about 50 error messages a second on a rollover. In my case I am using a simple setInterval to check and see if I MC has been loaded so I can attach the mouse events too it. Trouble is when run locally (just has to be right now). When it checks the bytesloaded if its not 100% it freaks out like the world is going to end. I have to set my setInterval to 10000 just to make sure each clip has time to load and when your loading 45+ images its just a pain in the ass to wait. Has anyone else run into this issue and found away around it?
Error Handler LoadMovie (Error Opening URL "http:)
I'm loading several foto's which are stored in a database in a movieclip.
The foto's are in different sizes so I use a repositioning function when the foto is loaded
ActionScript Code:
onClipEvent (data) {
_parent.reposPic();
}
However if the foto linked in the database (which I don't have control of) is not found. (Error opening URL "http://www.mysite.nl/test.JPG")
onClipEvent(data) does not do anything.
Is there a way to handle the error message so I can load a 'file not found' image instead?
Cheers,
Leon
Potential AS3 Compiler Bug
Would you mind trying this? At first glance, the following statement should either output "Hiya!" or throw some kind of runtime error. But it causes my Flash compiler to leave out all AS3 code when it publishes. I'd like to know if this is reproducible.
ActionScript Code:
(0?0:0)[0];trace("Hiya!");
Thanks in advance.
Help Me With This Game Somebody It Has Great Potential
im creating a game (obviously) where youre a characte you move around with. while the screen is moving like a tredmill but theres going to be walls that move the screen and if you touch it you lose a life and you have a certain amount of lives. i have the character and the script for him to walk but thats about it.
please help
thx
How Many Potential Layers Does Flash Have?
I was wondering if there is a limit to the number of layers that can be used in a flash file - for instance
When creating a new movie clip for a sound or image dynamically in the action script box on the route timeline like ......
..... _root.createEmptyMovieClip("holdB", 21); ...... for example.
what is the maximum number of layers that can be created?
when then creating another movie clip inside the created movie clip like ....
.............._root.holdB.createEmptyMovieClip("cr owd", 20); ...........
what is the maximum number of layers that can then be created again?
Is there a liimit of layers for a whole movie and if so is this a combination of all the layers that exist ?
cheers
Rob
A Potential Matrix Issue
Hello all,
I have been trying to rotate my movieClip by the top right corner using the rotateAroundInternalPoint function. All appears to work fine however after a full rotation it is clear the point of rotation has shifted ever so slightly. I have checked the code a few times to find any rounding issues but can not find any.
What I have found however is after assigning the matrix I make to do the transformasion to the movieClip.transform.matrix property the resulting two matrices differ ever so slightly. Here is the code:
Code:
var point:Point = new Point(iWidth,0.0); // iWidth is always the same, I have checked this.
var mat:Matrix = unit.transform.matrix;
MatrixTransformer.rotateAroundInternalPoint( mat, point.x, point.y, iDegrees );
unit.transform.matrix = mat;
trace(mat.a,",",mat.b,",",mat.c,",",mat.d,",",mat.tx,",",mat.ty);trace(unit.transform.matrix.a,",",unit.transform.matrix.b,",",unit.transform.matrix.c,",",unit.transform.matrix.d,",",unit.transform.matrix.tx,",",unit.transform.matrix.ty);
The output from the trace for the first two rotations are as follows:
Code:
1 , 0.017 , -0.017 , 1 , 400.019 , 298.818
1 , 0.017000000923871994 , -0.017000000923871994 , 1 , 400 , 298.8
1 , 0.034 , -0.034 , 1 , 400.056 , 296.619
1 , 0.03400000184774399 , -0.03400000184774399 , 1 , 400.05 , 296.6
Clearly they are not the same. What is happening with that assignment? Am I missing something simple?
Yes If I make mat = new Matrix() and assign that to the movieClip it is indeed a new clear matrix. Just sometimes, with some decimal values it seems to differ by a random amount.
Thanks,
Sino ... =)
Potential Solution For Ampersands (&) In URLs In XML?
I don't know if this is a clever solution or if there's some other way to do it (you tell me). I have a client who needed URL's in his XML (it happened to be one link per audio track that played). All of his URL's had one ampersand in them, which would always convert to "amp;" when I loaded the XML and screw up the URL links.
Here's what the URL looked like in the XML
Code:
<?xml version="1.0"?>
<root>
<node>
<songURL>audio/song6.mp3</songURL>
<imageURL>images/image6.jpg</imageURL>
<myText>Sample text here</myText>
<myURL>www.website.com/store-select.cfm?Itemid=1&book_id=0605</myURL>
</node>
</root>
My solution was to pass the link from the XML to an array, split the array on the "amp;" and then concatenate the two parts of the array back into a single variable that became the full URL. For some reason, when you pass the XML node to an array and split it on the "amp;", it retains the ampersand. Here's some sample code.
Code:
onClipEvent(load) {
// XML Object for Generate ------------------------------------------
_root.itemList = new XML();
_root.itemList.ignoreWhite = true;
// --------------- XML ON LOAD -------------------------
_root.itemList.onLoad = function(success) {
if (success) {
_root.numberOfItems = _root.itemList.firstChild.childNodes.length;
for (a=0; a<_root.numberOfItems; a++) {
_root["urlGenerate" + a] = _root.itemList.firstChild.childNodes[a].childNodes[3].childNodes;
//trace(_root["urlGenerate" + a]);
}
// ------------------ IF XML CAN'T LOAD ----------------------
} else {
//trace("not loaded yet");
}
};
// LOAD EXTERNAL XML FILE--------------------------
_root.itemList.load("myXML.xml");
}// CLOSE onLoad
onClipEvent(enterFrame) {
// _root.currentItem increases or decreases when the user goes to the next or previous item.
// Split then concatenate URL strings to fix ampersand problem for XML FILE.---------------------------
var urlGenerateString:String = String(_root["urlGenerate" + _root.currentItem]);
var my_strGenerate:String = urlGenerateString;
var my_arrayGenerate:Array = my_strGenerate.split("amp;");
for (var i = 0; i<my_arrayGenerate.length; i++) {
//trace(my_array[i]);
}
//
var urlGeneratePart01:String = my_arrayGenerate[0];
var urlGeneratePart02:String = my_arrayGenerate[1];
//
if (urlGeneratePart02 != nul) {
_root.fullGenerateURL = urlGeneratePart01 + urlGeneratePart02;
//trace(_root.fullGenerateURL);
} else {
_root.fullGenerateURL = _root["urlGenerate" + _root.currentItem];
//trace(_root.fullURL);
}
//--------------------------------------------------
this.onRelease = onReleaseOutside = function() {
this.gotoAndStop(1);
myURL = _root.fullGenerateURL;
getURL("http://" + myURL,"_top");
}
//---------------------------------------------------
}//CLOSE onEnterFrame
Newbie - Potential Solution To Idea?
Hi all,
without giving too much away, I have a little project I would like to do and was really looking for some "guidance".
After some thinking, researching, I believe flash could be the answer I am looking for...
Brief scenario, I need users to be able to visit my "interactive" site, be able to view animations and with a few clicks buy the animation directly from the site using very simple means of doing so.
A whole bunch of problems already spring to mind,
Firslty, security?
Secondly, how the hell do i do this?
Thirdly, setting up a merchant account with a bank and then scripting something to send funds there!?
Now I have experience with Joomla CMS, so quiet familiar with MySQL, PHP, and a add in called Virtuemart (Shopping software).
Now what's the best way of doing this?
Creating a flash applet which can show the animations, interact with the user and take payment (Sending directly to a merchant account)
Use a Joomla driven website and embed the flash applet and some how connect the commands to the "virtuemart" engine (if that makes any sense?)
I presume it would be important to have a system which didn't just require flash (IE some companies don't allow it on their networks, so a backup "Virtuemart" resource would be good)
*fingers crossed* some one will have a clue what I am on about!
Please assist
A Potential Oddity In Math.random()?
I was testing a random number function I 'made' that uses Math.random(), when I found a strange oddity in it. Let’s say my number range is from 0 to19. After generating 10000 random numbers with my function, the percentage of each number to the total times I generated is pretty even except for the first and last number. For some reason the percentage of my first and last number is always roughly half of the percentage of the other numbers.
You can see for yourself with the attached code below.
With the values I’ve put in the result printed is:
Total generations: 10000
0 Count: 288 2.88%
1 Count: 537 5.37%
2 Count: 544 5.44%
3 Count: 533 5.33%
4 Count: 537 5.37%
5 Count: 553 5.53%
6 Count: 544 5.44%
7 Count: 510 5.1%
8 Count: 531 5.31%
9 Count: 518 5.18%
10 Count: 535 5.35%
11 Count: 488 4.88%
12 Count: 519 5.19%
13 Count: 518 5.18%
14 Count: 516 5.16%
15 Count: 522 5.22%
16 Count: 487 4.87%
17 Count: 532 5.32%
18 Count: 523 5.23%
19 Count: 265 2.65%
I’d like to say that there is something wrong with my randomNumber() function, but at the moment, I can’t seem to see what could be wrong with it. Any ideas?
*Ah, I just discovered interestingly, if you run that in AS2 (and even running it in flash 8) you don’t get that odd result and all the numbers generated are evenly distributed (more or less).
Seems only in AS3 it happens.
Attach Code
// generates a random number from min to max (excluding max)
function randomNumber(min:Number, max:Number):Number {
return Math.round(Math.random() * (max - min - 1)) + min;
}
// number range is from 0 to 19
var numberRange:Number = 20;
var array:Array = new Array(numberRange);
// test generate max
var totalNumbers:Number = 10000;
trace("Total generations: "+ totalNumbers);
// set all the numbers to 0 in the array
for(var i:Number = 0; i < array.length; i++){
array[i] = 0;
}
// generate the random numbers and count the number generated
for(var counter:Number = 0; counter < totalNumbers; counter++){
array[randomNumber(0, array.length)]++;
}
for(var z:Number = 0; z < array.length; z++){
// trace the number, the amount of times it was generated, and its percentage of total generations
trace(z +" Count: "+ array[z] +" "+ (Math.round(array[z] / totalNumbers * 10000)/100) +"%");
}
Edited: 02/17/2008 at 04:27:16 AM by Some1Won
Potential Race Condition With Timers
Allow me to give an example:
myTimer1 :Timer = new Timer(500);
myTimer2 :Timer = new Timer(1000);
myTimer1.addEventListener("timer", TimerFunctionOne);
myTimer2.addEventListener("timer2",TimerFunctionTw o);
MyTimer1.start();
//------------------------
function TimerFunctionOne()
{
//do some operation here
myTimer1.stop();
myTimer2.start();
}
function TimerFunctionTwo()
{
//do some operation here
myTimer2.stop();
myTimer1.start();
}
--------------------------
Now for the tricky bit. Suppose you want this in a class, and you want the ability to pause the class. I can add states to the class which describe what it is doing at the moment, and then stop the relevant timers. However, I can't seem to find a way to avoid the race condition where the pause function on the object is called just as one of the functions have been called through the timer, and then starts a timer again.
I can add an "if (!paused)" to the timer starters in TimerFunctionOne/Two, but that still leaves a theoretical hole (although small).
So, any thoughts on this?
raal
Potential Bug: Can't Set TabIndex Of Objects In The Scrollpane Component
I've spent time off and on over the past month trying to get this to work, but have come up with nothing.
I am trying to set the tabIndex of objects (textfields, comboboxes, etc.) that are in a movieclip which is in the scrollpane component. After trying many workarounds and tricks I've found on various message boards, I've attempted to contact different people about the issue and their response is always the same - "It should work, but I've never done it."
So now I'm starting to think that its a bug. Here is a sample failed attempt to get it to work:
http://www.scottmanning.com/flashkit...scrollpane.zip
Here are some answered threads concerning the issue:
http://www.flashkit.com/board/showth...hreadid=395376
http://were-here.com/forums/showthre...hreadid=165499
http://webforums.macromedia.com/flas...hreadid=482998
http://webforums.macromedia.com/flas...hreadid=412432
Is it a bug? Has anyone see a working sample or done it themselves?
Scott
Scottmanning.com
Player Settings: Potential Insecure Operation
I have a popup on my site i'm developing. Its from flash and says "this is a potentially insecure operation"
It's probably because of a text file that's pulled into flash. The text file has variables separated by &'s.
I'm using one text file to have a flash and non-flash version. I.E. all the data is centralized in one text file.
Potential Memory Leak, Flash Player Using VideoCapture
we are developing a DirectShow Filter under Windows to be used in Flash to record, encode and push a video stream. The Filter was developed using Microsoft DirectShow (Plattform SDK). For simplicity the Filter will only expose a "Capture"-Pin but no "Preview"-Pin.
When debugging the filter we encountered a potential memory leak. The SWF seems to instantiate the Filter but omitting the COM-Release. So each access to the DirectShow Filter Graph seems to create an orphen instance of the Filter which get never be released.
Maybe somebody could adivse if we triggering a bug within the Player (here Flash 9) or if Flash needs any special consideration regarding a Capure-Filter (e.g. the need of a Preview-Pin etc.).
regards
Carsten Harnisch
- InTradeSys Limted -
Loadmovie Error
I was trying to unload 3 movies and then load the right movie but i got this error.
Error opening URL "file:///C|/My%20Documents/WebSites%20Work/Site/Flash/"
Error opening URL "file:///C|/My%20Documents/WebSites%20Work/Site/Flash/"
Error opening URL "file:///C|/My%20Documents/WebSites%20Work/Site/Flash/"
how do i over come this. It seems like everything is working because when i close the output window everything looks fine. Any ideas about what i am doing wrong.
My code on my button looks something like this:
on (release) {
_root.gotoAndStop ("window");
_root.window.gotoAndStop(2);
_root.window.products.unloadMovie();
_root.window.extranet.unloadMovie();
_root.window.expertise.unloadMovie();
_root.window.company.loadMovie("company.swf");
_parent.navSideCompany.gotoAndStop(2);
_parent.navSideExpertise.gotoAndStop(1);
_parent.navSideProducts.gotoAndStop(1);
_parent.navSideExtranet.gotoAndStop(1);
}
Thanks
LoadMovie Error
I have a Website completely in Flash... I have my navigation, background, and content all in seperate levels. In a few of the content pages I am loading swf files into an empty movieclip om my stage. This is fine for Windows, but MAC doesn't seem to want to show the files, even with IE 5 and the latest plugin from Macromedia... my code on the buttons is as follows;
loadMovie("services_animation.swf",_root.box);
any ideas or ways around this problem?
LoadMovie ERROR
Hello,
Using LoadMovie, Is it possible to get the Error Message with ActionScript when the picture is not available ?
I would like to display an animation when the function generates an error.
Many thanks for your help,
Best regards.
Loadmovie Error
Hi
I'm having another problem, please could someone assist?
I've a main swf and want to take in a swf into this movie and place it over a certain area, at the moment I am using
loadMovie("movie1.swf", _root.clip1);
but this doesn't work. ..
Could someone please help?
Thanks
TAsvinO
Loadmovie Error
When you do a Loadmovie on a Jpg and the jpg doesn't exist it returns an error in flash when you are testing outside of flash on the browser lets say no error message is given. Is there a way to get the error message into a variable or notice it in flash in a useable form.
Example I have a portfolio which loads thumbnails and it has a max capacity of 105 images. I only need to load 80-85 while the others in flash error which is fine.
I just want to know at what file it ended.
Thank You
Ese51
LoadMovie Error
HI .. I am trying to load an image to a movie clip that has a movie clip inside
MC_1 is the main movie clip . and Inside that MC_1 movie clip I have created another MC called mcView1 and I want the thumb1.jpg load there.
please tell me what am I doing wrong. I tested and it works if i want to load to a MC_1 movieclip but not to themcView1.
Thank you.
MC_1.createEmptyMovieClip("name",1);
MC_1.name.mcView1.loadMovie("thumb1.jpg");
MC_1.name.mcView1.onEnterFrame=function()
{
if (this.getbytesLoaded == this.getByesTotal)
{
trace("ok");
}
else
trace("no");
}
Loadmovie Error
Is there any way within flash to tell weather the loadmovie command actually found the external swf and loaded it or if it had an error. I want to make it so that if that swf does not exist I know that it did not load so I can load something else into the frame?
LoadMovie Error
hi,
i'm testing the loadMovie function. i have a main swf with 2 buttons. each loading an external swf.
all worked well on my PC. but when i copied the 3 files on my server the buttons didn't worked.
is there something in the path that i should add? am i missing something?
thanks,
m.
Error With LoadMovie?
Hi,
I am new to flash development, but I have followed the kirupa 'full-site' tutorial, and created the following flash site:
http://www.asbs17.dsl.pipex.com/Robertson%20Godfrey/
(although the webserver is a bit flimsy at the moment)
My problem is as follows:
I have a 'main' SWF which onLoad attempts to loadMovie my 'home_flash' SWF: i.e.
this.onLoad = function() {
trace("load movie");
};
_root.contents.loadMovie("home_flash.swf");
This works fine apart from the ActionScript part of the 'home_flash' fails to run?? this ActionScript fades an images from left to right and runs fine if the home_flash is run on its own (i.e. not loaded by main.swf), so I figure it must be something to do with the interaction with the main.swf or the way I am loading it???
Any ideas??
I have attached the main.fla file, howver the home_flash.fla is too large to attach.
Thanks.
Loadmovie Error?
heres the swf files of the first two pages of my site.
click on the enter button then players button then the back button
can you see that the first page is displayed after each click?
how do I stop this?
I have used load movie to open each page and used the default level of 0 for then here is the code behind the first buttons
ENTER BUTTON
on (release) {
_root.contents.loadMovie("index_main.swf");
}
PLAYERS BUTTON
on (release) {
_root.contents.loadMovie("index_players.swf");
}
can anyone help me????
Error With LoadMovie?
Hi,
I am new to flash development, but I have followed the kirupa 'full-site' tutorial, and created the following flash site:
http://www.asbs17.dsl.pipex.com/Robertson%20Godfrey/
(although the webserver is a bit flimsy at the moment)
My problem is as follows:
I have a 'main' SWF which onLoad attempts to loadMovie my 'home_flash' SWF: i.e.
this.onLoad = function() {
trace("load movie");
};
_root.contents.loadMovie("home_flash.swf");
This works fine apart from the ActionScript part of the 'home_flash' fails to run?? this ActionScript fades an images from left to right and runs fine if the home_flash is run on its own (i.e. not loaded by main.swf), so I figure it must be something to do with the interaction with the main.swf or the way I am loading it???
Any ideas??
I have attached the main.fla file, howver the home_flash.fla is too large to attach.
Thanks.
LoadMovie Error
Hello guys,
I'm stuck here. I've made a newslist, with lots of flas mx components in it wich are filled up with xml-data. When I run the swf, everything works fine.
Now I want to preload the movie, so I make a new .fla where I add the following code:
----------------------------------------------------
_root.createEmptyMovieClip("holder_mc", 0);
var mc = _root["holder_mc"];
mc.loadMovie("nieuwslist.swf");
this.onEnterFrame = function() {
var p = 100*mc.getBytesLoaded()/mc.getBytesTotal();
if ( p >= 100 ) {
mc._visible = true;
}
}
----------------------------------------------------
The preload works fine, my nieuwslijst.swf is preloaded, but then it goes wrong: all the component fields are empty.
It seems to me that it only works when I use :
------------------------------------------
_root.loadMovie("nieuwslijst.swf");
------------------------------------------
But then I don't have a preloader of course .
I have loaded the nieuwslijst.swf, fla and xml in a zip:
http://users.pandora.be/desmet/nieuwslijst.zip
Does somebody now what I'm doing wrong ?
Kindly regards,
Herre
LoadMovie() Error Checking
Flash actionscript seems to have a real lack of error checking hooks.
If I use loadMovie and the .swf file that I am attempting to load is not there, or the name is mis-spelled, what can I do to know that the load has failed?
Very Odd Loadmovie And Variables Error
Hi Guys,
I've been trying to get this to work all day, but well, now I'm here. So. . . here's the problem
I've got a movie that reads in variables from a text file.
The text file contains the following:
&StateFlick=ca.swf
Inside the movie, I am able to output StateFlick in a textfield. outputs as: ca.swf
Everything's fine and dandy so far. The problem is, when I get to using that variable. . things don't go so well.
In the flash movie i have: _root.StateContain.loadMovie(StateFlick)
Which. . doesn't work. If instead of StateFlick i write "ca.swf" then this runs w/o a hitch.
So here's what I've figure out from attempting to trouble shoot this:
- if I set var Playmenow = StateFlick and try to output Playmenow w/ a textfield, i get a blank
- if I call the movie like so: http://blah.com/statespin.swf?StateFlick=ca.swf
everything works just fine. Unfortunately I can't keep reloading this movie each time a state changes as data is updated inside the page already. . so why can't the movie variable also be updated?
So. . . Does anyone have any ideas? Please help!
Thanks tons and tons in advance
- Scott
Error Handling With LoadMovie
Is it possible to tell if a movie loaded successfully or not? I was looking for something along the lines of the xml.onLoad function but it doesn't exist for movie clips...
Is there a way to code something that resembles it?
GP
LoadMovie Error Handling ?
Hallo
need help :
I'm using loadMovie to dynamically load jpg's . I know I can get the Information, that the jpeg has loaded via onclipevent(data).
but is there a way to get an error message if the jpg could not be loaded?
for example if the clients internet connection is ****ed up?
I don't want to do it with waiting a certain amount of time for onclipevent(data)and then displaying an error.
Thank you.
Windows XP LoadMovie Error
I put together a Flash movie that is an elearning course comprised of five modules. When the user clicks a module, that module loads a movie called scenario1,2,3,4, or 5.
What is happening only with XP users with a dialup connection is the last module does not load. No matter what order they go through. So module 5 may load for someone but not for the next person.
on Broadband and LAN connections the course works perfectly. Same with other versions of windows.
Any suggestions on what could be wrong? This just does not make sense why XP won't work for all of these.
Thanks in advance.
How Do You Check For LoadMovie Error?
Hi,
I just want to set my image slideshow to move onto the next image if the previous can't be found, rather than it just getting stuck. Is there a way to tell it to carry out an action if there is a loading error? I know how to do it with loadvariables, but I can't figure it out for loadMovie. I know you can use the onLoadError command in MX2004, but I can't seem to figure that out, plus I'd prefer to be able to do it do it in Flash MX, as thats what I use most.
I've attached the slideshow for you to take a look at.
Thanks.
Where Is The Error In My Loadmovie Script?
Hi Everyone,
I'm just finishing building my first flash website. It's for my band:
www.afterpartyband.com
Every section in the website loads a movie with the corresponding content in it when the timeline arrives at the appropriate frame (Vids section will load the vids movie, etc.)
Everything seems to be running smoothly except the Pics content. The pics movie when published on its own works fine:
http://www.afterpartyband.com/picsContent.html
But when I try to load it into the main movie, the movement is jittery and the buttons don't load up the picture into the holder.
Any ideas??
Here is the code for the picsContent, taken from Lee at gotoandlearn.com:
***
panel.onRollOver = panelOver;
function panelOver () {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if (_xmouse < b.xMin or _xmouse > b.xMax or _ymouse < b.yMin or _ymouse > b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 26.9) {
panel._x = 26.9;
}
if(panel._x <= -169) {
panel._x = -169;
}
var xdist = _xmouse - 125;
panel._x += -xdist /7;
}
***
The script to load the pics Content into the main movie is straightforward:
picsContent_mc.loadMovie("picsContent.swf");
***
Thanks in advance!!
Kristina @ A f t e r p a r t Y
LoadMovie Error With OnRelease
I have two movie clips that I want to be clickable and one is a jpeg "button" that is being loaded in, the code looks like this:
code:
MC_1.onRelease = function(){
trace('clicked');
}
loadMovie("still.jpg", MC_2);
MC_2.onRelease = function(){
trace('clicked');
}
Now Button 1 works just fine but button 2 (the one that is a loaded jpeg) doesn't work at all. Is there something about a loaded jpeg that would make it not clickable??
External Loadmovie Error
i have 1 main swf with 3 buttons on a navigation panel , one frame with actionscript. those 3 buttons call three external swfs which are all under 150k(movie 1, 2, and 3). When main.swf loads, I have movie 1 playing automatically as the default filler for the blank movie clip. I have 2 problems:
1)movie1 plays properly in the blank movie clip, but then stops at the end. it doesn't loop
2) movie 2 and 3 just freeze in the middle
I'm not sure what to do?? Please help, thank you
FYI
this is the actionscript on my main.swf:
createEmptyMovieClip("base", 1);
base._x=0;
base._y=0;
base.loadMovie("mission.swf");
button1.onPress = function () {
loadMovie("movie1.swf", "base");
}
button2.onPress = function () {
loadMovie("movie2.swf", "base");
}
button3.onPress = function () {
loadMovie("moive3.swf", "base");
}
Where Is The Error In My Loadmovie Script?
Hi Everyone,
I'm just finishing building my first flash website. It's for my band:
www.afterpartyband.com
Every section in the website loads a movie with the corresponding content in it when the timeline arrives at the appropriate frame (Vids section will load the vids movie, etc.)
Everything seems to be running smoothly except the Pics content. The pics movie when published on its own works fine:
http://www.afterpartyband.com/picsContent.html
But when I try to load it into the main movie, the movement is jittery and the buttons don't load up the picture into the holder.
Any ideas??
Here is the code for the picsContent, taken from Lee at gotoandlearn.com:
***
panel.onRollOver = panelOver;
function panelOver () {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if (_xmouse < b.xMin or _xmouse > b.xMax or _ymouse < b.yMin or _ymouse > b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 26.9) {
panel._x = 26.9;
}
if(panel._x <= -169) {
panel._x = -169;
}
var xdist = _xmouse - 125;
panel._x += -xdist /7;
}
***
The script to load the pics Content into the main movie is straightforward:
picsContent_mc.loadMovie("picsContent.swf");
***
Thanks in advance!!
Kristina @ A f t e r p a r t Y
Detect Loadmovie Error
Simple. . . All I need to know is if there is a way to see if the loadmovie requested actually loaded into the flash movie.
If I say
ActionScript Code:
loadmovie("movie.swf", frame)
and "movie.swf" does not exist I need to know so that I can make it automatically try
ActionScript Code:
loadMovie("movie2.swf", frame)
Regards, The Honorable, Sven Allens
LoadMovie Error Trapping
Hi,
I am developing for flash player 6 environment and I need error trapping code similar to mclListener.onLoadError (which works for flash player 7 and beyond).
my project loads external audio files (that are swfs) and until those swfs are available (they are not made yet) I want an alternate script to load a generic audio file in their place so I know that everything is working and don't have to wait for the audio to be made by other members of my team.
once the actual audio is available, the exact same code will play that, without having to go in and recode everything.
So, I'm looking for listener code or whatever to load an alternate swf when the actual one is not found.
thanks!
LoadMovie & Unloadmovie Error
Hello there,
i was fiddling with the AS3 script the other day and must say it was a new way of coding. really having a tough time. what im trying to do is having one music load on the first frame:
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("music1.swf");
myLoader.load(url);
But when i click on a button i want the music to change and load another tune but seems it clash. i do not know wat to type to unload the movie. my code is here:
stop();
myButton.addEventListener(MouseEvent.CLICK, buttonClick);
function buttonClick(event:MouseEvent):void{
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("music2.swf");
myLoader.load(url);
gotoAndPlay(108);
};
Anyone can solve this problem ? I do not know how to use the unload function, and thus this causes 2 sounds to mix.....:P
Thanks in advance guys.......
LoadMovie / AttachMovie Error
Hi All, First post
I've got a swf that sorts out all the sounds for the master movie, this swf is loaded in and works just fine, except none of the actual sounds are attached from the library. Works fine on its own, but as soon as it's inside another swf the sounds fail to attach. I know that other people have had simialr problems, but as far as I can see I'm not using root anywhere, is it possible to somehow specify which library to attach from?
The code I'm using is below.....
//setup all sounds
soundArray = new Array("arctic_wind", "cheer");
//
for (i=0; i<soundArray.length; i++) {
this.createEmptyMovieClip(soundArray[i]+"Holder", i+1000);
this[soundArray[i]+"Sound"] = new Sound();
this[soundArray[i]+"Sound"].attachSound(soundArray[i]);
}
stop();
//test - plays fine on it's own. does not play when loaded into another movie
trace("sounds created");
this.arctic_windSound.start();
trace (arctic_windSound.position);
Please help,
Jules
Error Reporting For LoadMovie()?
Hello,
Is there any built in error reporting for loadMovie()? Say for instance, somethign like what "FileReference" offers?
Is there anyway I can tell exactly what is going on when using loadMovie() besides seeing whether or not the requested .jpg or .swf has loaded?
Thanks
LoadMovie -> Strange Error
hi, i have a problem. I have a site with many links, so everytime i load a movie for each link.
But this time, i have a buton, just like the other 5 with the same code, but with a different .swf. Here it is:
on (release) {
loadMovie("about.swf",2);
}
The problem is that, when i release this buton, it will load about.swf file, but it open index.swf file too. So the question is, why, just this buton, load 2 .swf files, when it should load just one single file.Every buton has the same code, just with another .swf file, and works very good. Just this one is different, why ?
PLS reply soon.
----sorry for my english----
LoadMovie & Drag Error
Hi,
I'm using loadMovie() to load a jpg, this works fine, the problem comes when I try to drag the mc. Seems like the mc loses it's drag functionality. I will appreciate any help.
Thanks!
Alex
LoadMovie -> Strange Error
hi, i have a problem. I have a site with many links, so everytime i load a movie for each link.
But this time, i have a buton, just like the other 5 with the same code, but with a different .swf. Here it is:
on (release) {
loadMovie("about.swf",2);
}
The problem is that, when i release this buton, it will load about.swf file, but it open index.swf file too. So the question is, why, just this buton, load 2 .swf files, when it should load just one single file.Every buton has the same code, just with another .swf file, and works very good. Just this one is different, why ?
PLS reply soon.
----sorry for my english----
MovieClip.loadMovie(...) Web Error
I made a flash movie that uses dynamic image loading. It works until I put the entire movie on the web and it fails :( Im using Addyour.net.
Loadmovie() - Iexplore.exe Application Error
I am using a button in a movie clip "intro.swf" to load another movie "yash_movie.swf". The code in "intro.swf" is:
on (press) {
loadMovie("yash_movie.swf",_root);
}
The "yash_movie.swf" loads succesfully and plays.
However, when I cloee the Internet Explore browser (File/Close) the following message is displayed:
The instruction at "0x10003e8d referenced memory at "0x10003e8d". The memory could not be "read".
Click on OK to terminate the program.
Any ideas or suggestions???
Jan Moody
LoadMovie Error On Browser Preview But Not On...
Hi together,
I am trying to load a external swf to my stage. I use this script for loading the file. I placed it onto a ketframe in the timeline where I want the movie to be loaded.
It works only when I preview the file within flash export but not when I place the file into an html document.
Why? and what can I do?
loadMovieNum("blackdove_flash_tv1_mc.swf",30);
Thanks,
David
Handling LoadMovie 'Error Opening URL
Hello
I am loading pictures into a movie clip using loadMovie, the jpg path is read from an xml file. If the file does not exist flash generates an 'Error opening URL '. I want to be able to trap this error and produce a message to say the picture does not exist.
function updateSlide(newSlideNode) { // update photo, description, and status field
imagePath = newSlideNode.attributes.jpegURL;
infoBox.photoText = newSlideNode.firstChild.nodeValue;
hours = imagePath.substring(10,15);
loadMovie(imagePath, targetPhoto.photoLoader);
targetPhoto.gotoAndPlay(1);
}
Can anyone help please
'IF' Trouble And LoadMovie Error - Massive Problems
Hi,
For the past week I’ve been trying to find a way to create actions from a LoadMovie error, but to no avail. I have a created a slideshow made up of 10 pictures, which cycle through depending on time. Each image is externally loaded. The slideshow works fine, the only function I want to include now is to skip to the next image, if one isn’t found. I have had great difficulty trying to achieve this.
The closest I have got is by using this script:
Code:
this.onEnterFrame = function() {
if (_root.holder._width<10) {
this.nextFrame();
}
};
Basically it checks the size of the holder MC, to see if it’s less than 10px in width, if it is (i.e. no image has loaded) it moves to the next one. This script works perfectly for one complete cycle, but when it starts from img1 again, it screws up. It starts skipping images for no reason, play the swf and see for your self. It’s as if the ‘skip’ script is running before the image has even had time to load, but I have no idea how to delay it.
I need a Flash genius to take a look at the fla and see if they can work it out, I can’t think of anything else to try! The actions for the skip function are in a layer called 'skip', I have also set the cycle time to 2 seconds so it will be faster for testing. Please note that I have deliberately not included img3.jpg, so that the skip function can actually test.
Please, please help me with this one. I’m about to crazy, if you can solve this I’ll be forever in your debt. I appreciate all help.
Thanks.
[F8] Post An Error If LoadMovie Method Fails.
Hi everyone,
I looked for sample code to display an error if image is not loaded into an empty mc. See my code that I have so far.
I have a button that is calling the loadMovie methode that will load a .jpg image when pressed. Its loaded from a maps folder in the c: drive.
loadjp_btn.onRelease = function(){
loadMovie("c://maps/"+jpgName_txt.text+".jpg",empty_mc);
}
I am using an input field named jpgName_txt to get the name of the .jpg file.
But I want to display an error with an (if) statement somehow if the image name that was typed in does not load into the empty_mc. Any idea??????
Thanks in advance for the help!!!!!
|