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




[MX04] URGENT Load-bog Locking Up Site



Mercy! I am needing to launch this site RIGHT NOW and it is behaving very oddly and I don't want to show it to the client!

Here is the link:http://ca-institute.com/flash.html

Mostly when the site loads, the menu bar (the numbers in the lower right side) take a few seconds to load all the way, and they are totally useless until they fully load. I would think this was a preload issue, except it does not seem to get any better upon a refresh, or even when the file is on my desktop...

Even if the issue might be solved with a pre-loader, whenever I try to add another scene, or even another frame (to hold the loader), I loose my targets and the movie no longer slides.

Also, after the movie is fully loaded, the same menu bar is unresponsive until the page completely slides into place with the easing. Not the end of the world, but still annoying if you want to jump quickly from page to page.

Here is the file if you think you might know how to help me out!

http://www.ca-institute.com/load-CAI6.fla


Thanks so kindly in advance!
-Jessica



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-28-2007, 04:21 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Is This Site Locking Up During The Load? Plz Let Me Know
The site that is having a hard time loading is located at:

www.johncliffordtaylor.com/pat
(Flash player 6)

www.johncliffordtaylor.com/pat/test.html
(Flash player 9)

But here is the kicker I was talking a co-work and they said that both of them were loading fine on their computer.

I've tried it on the 2 computers I can access the site as its bogging down on both 1/2 way loaded, so I don't think it’s a PC thing. The size of the flash site is only 400 kb so it’s also not a bandwidth issue.

I've tried deleting my internet history. I'm not sure if it’s a sever issue or something else is going on but any suggestion as to what might be going to make this flash site bog down 1/2 way through the load would be great thx.

John

[CS3] Site Is Locking Up Half Way Through Load...
The site that is having a hard time loading is located at:

www.johncliffordtaylor.com/pat
(Flash player 6)

www.johncliffordtaylor.com/pat/test.html
(Flash player 9)

But here is the kicker I was talking a co-work and they said that both of them were loading fine on their computer.

I've tried it on the 2 computers I can access the site as its bogging down on both 1/2 way loaded, so I don't think it’s a PC thing. The size of the flash site is only 400 kb so it’s also not a bandwidth issue.

I've tried deleting my internet history. I'm not sure if it’s a sever issue or something else is going on but any suggestion as to what might be going to make this flash site bog down 1/2 way through the load would be great thx.

John

[MX04] Locking _root Path So When I Change Mc's _x Value It Is Relative To Parent Mc
Hey all,

I'm loading an external swf into a 'holder' swf using the loadMovie() command. This works find. My problem is that the external swf has actionscript in which a mc's _x value is changed. When loaded into the holder swf, instead of changing the _x value from the 0 point of the external file, it does it in relation to the holder's.

I've done a little research and tried to play around with the _lockroot command, but I can't seem to get it to work. I've tried putting it on the first fram of the loaded swf and targeting it from the holder swf, and neither has worked.

Is there another way of getting around this; it will be easier for some coding I have to do later on if the holder is the _root.

Any help would be great,
Greenham.

[MX04] Drag And Drop- Locking Object Into Center Of Target...
Hello all,
New member and relatively new Flash user. I created a drag and drop in Flash MX 2004, and I'm trying to find script that will lock the object into the center of the target when it is dragged over, sort of like a magnet effect. Here is the script I currently have on each object:


on(press) {
startDrag(this);
_root.reply.text="";
xstart = this._x;
ystart = this._y;
}

on(release) {
stopDrag();
if (this._droptarget == "/pinottarget") {
_root.reply.text="Correct!";
this.enabled = false;
_root.counter++;
}

else{
_root.reply.text="No, keep trying!";
this._x = xstart;
this._y = ystart;
}
}



If anybody can help me out with the correct script to do what I'm trying to do, I would greatly appreciate it. Attached is the source file. Thanks.

Lee

[mx04] Can Anyone Help With My 'jumpy' Site
hi i'm just finishing up this site www.pogocafe.co.uk and im havin a little trouble edging out a few problems....the main problem is that it seems to be running slow even though the entire site is 1.4mb, and the text content is loaded externally; could it be running slow because i have used an irregular font for the content and embedded it??
also i have noticed it seems to jump as i flick through the buttons on the left...usually it quickly flicks back to the home page before goin to the desired page! any ideas why this is happening?
help is most appreciated, also any comments on the design itself
thanks soooo much

[MX04] Do U Know How To Do Gradient Background, Like This Site?
I mean the site http://www.fontsforflash.com/

I know how to do a gradient rectangle in flash, but then how to make the flash to cover all the screen whenever the screen is setted to 800x600 / 1024x768 or 1280x1024?

any clue on where investigate?
is there a way to do it on php maybe?

well any info is welcome.


Panchoskywalker

[MX04] Flash Site GLITCH
I decided this was the better forum for this question.....

I'm working on a flash site, and its doing the strangest thing. It runs smoothly, and has for the past few weeks while I've been developing it, but now it seems to *randomly* freak out and repeat the intro animation for some reason. You can see the site here:

http://teamwarda.com/flashindex.htm

The part where the black boxes animates in is what I'm talking about when I say the intro animation. This has only happened about 3 times, and I have tried and tried but I can't figure out what is triggering it, as I said it seems to be random.

Even if you can't get it to break, have you ever heard of something like this? Is there a reason a flash movie would suddenly start over by itself and loop endlessly?

it appears to be happening when you go to "PHOTO" and then click on "PEOPLE"

but only sometimes....which makes it about 100x more maddening

[MX04] Site/movie Construction
Hi, I'm new here though I've been reading for some time now.

I would consider myself new to Flash even though I've been playing in Flash for years. I'm just now getting to where I want to really dive in and use it for my websites. I've been learning through books and tutorials and I can't find a reference to, or don't know what to refer to, the best way to "construct" a site. Like my site www.briantuckerimages.com I have built each page as a scene and just used the buttons as rollovers. Links I use to jump around scenes but doing it this way the browser dose not recognize "leaving" a page, or the site so I can't use the browsers back button. I would like the user to be able to jump around the site via links or to have the option of using the back button..... or have I done it the best way already? It's disconcerting to me though to hit the back button and have it take you to a totally different site - I dont' think my clients would like it either. Do I just make each page a separate Flash file and link to that URL?

Also how does one eliminate that white box (and the need to click to activiate site) that appears around the site on the home page? The code does allow ActiveX and Scripts, I thought that was what did that but evidently I'm mistaken.

I would like to use the search before asking all of these questions but like I said I wouldn't begin to know what terms to reference with these questions.

Thanks in advance.

Brian

[MX04] General Help With Site Updates
hi there,
ive been workin on a few sites for people but im struggling when the client wants to update the site...its fine if its just text they want to update etc but i want to advance my flash so that more things within the sites can added...ie; images or items within a shop etc
i presume this is done using some kind of database?!?? but is there sites out there that are useful for me and show me how to integrate these databases into flash? or is there other ways of doin it all in flash???
thanks alot for any help!

[MX04] Counter On Flash Site
Hello

I have an hit counter script:

<div align="center">
<%=GetCurrentHitCount("counter", true)%> visitors
</div>

which works in the browser: it shows: x visitors

I am hoping to use this same script in a Flash (MX 2004) movie. I imagine I need to show the numberof hits in a dymanic text field in my movie, but if I give my dynamic text field an instance name of, say, counter_txt, how to I pass the numeral processed in my ASP script to counter_txt and what would I need to show in my AS (2) panel?

Thanks for any help.

Steve

[MX04] There Negative Space Around My Flash Site.
hello I'm new to flash. I have a problem where I publish my website in the html format. I can see negative spaces. I have used the alignment options and I have tried to change the flash alignment too. When I test movie the file has no negative space. I can see the negative spaces when I use the SA Flash player and in the html format. I have a link to my temp. website :

http://209.85.6.38/~lsdesig/mgw_page...mgw_index.html

You can really see it once you clink enter on the page. Can anyone give some tips? Thanks

[MX04] Site Running Slow... Any Advice?
Hello all,

I'm working on a site in which a gradient background changes colors each time a nav button is clicked. My code is right and everything is working fine, but the transitions are taking forever and are slowing down everything else on the stage. I'm using a lot of onClipEvents to accomplish what I need. Is there a better way to do what I want to do without everything slowing down? Also, is my use of 6 different gradient backgrounds causing the slowdown? It's only slow during the transition, and then the speed returns to normal.

Here is what I have going on:

I have a shell movie clip in which I have loaded my background movies into an array. Basically, I created 6 movie clips inside the shell and loaded each bg into its own clip. Then I set the alpha on 5 of them to 0. My button code tells the button on release to fade the alpha settings down if any of the mcs are at 100 and fade any of them up if they are at 0. When the code is enabled, the correct target I want which is set at 0 fades up to 100, while all the others fade down. Since only 1 bg is at 100 at any given time, the other onClipEvents do nothing, but I didn't see another way to accomplish it since I have no idea which button the user will push next.

shell code:
code: bgArray = new Array("homeBG", "individualBG", "familyBG", "businessBG", "qualificationsBG", "contactBG");
this.createEmptyMovieClip("target1", 1);
this.createEmptyMovieClip("target2", 2);
this.createEmptyMovieClip("target3", 3);
this.createEmptyMovieClip("target4", 4);
this.createEmptyMovieClip("target5", 5);
this.createEmptyMovieClip("target6", 6);
target1.attachMovie(bgArray[0], "", 1);
target2.attachMovie(bgArray[1], "", 2);
target3.attachMovie(bgArray[2], "", 3);
target4.attachMovie(bgArray[3], "", 4);
target5.attachMovie(bgArray[4], "", 5);
target6.attachMovie(bgArray[5], "", 6);
target2._alpha = 0;
target3._alpha = 0;
target4._alpha = 0;
target5._alpha = 0;
target6._alpha = 0;


button code (there are six of these that are almost identical):
code:
on (release) {
_root.onEnterFrame = function() {
if (_root.loader.target2._alpha>0) {
_root.loader.target2._alpha -= 10;
}
if (_root.loader.target3._alpha>0) {
_root.loader.target3._alpha -= 10;
}
if (_root.loader.target4._alpha>0) {
_root.loader.target4._alpha -= 10;
}
if (_root.loader.target5._alpha>0) {
_root.loader.target5._alpha -= 10;
}
if (_root.loader.target6._alpha>0) {
_root.loader.target6._alpha -= 10;
}
if (_root.loader.target1._alpha<100) {
_root.loader.target1._alpha += 10;
}
};
}


Any advice?

Thanks in advance!

-Sandy

[MX04] Site Check Please - Inc. Popup Window
hi

I built a site for a close friend
www.ConqueringSelfHarm.com
it has an email page with a button to launch a new window
we capture the email address and name and launch a new window

every test on every platform suggests that it all works beautifully

however 50% of the visitors seem to have problems, it seems like they are clicking the enter button more than once. as if they have a popup blocker on. i was under the impression that flash calling javascript from a user click would bypass the blocker and launch the new window

am i wrong in this?

you can bypass the name and email fields
just click the checkbox and then the enter button
if you wish to enter something in the text field use the domain name
@flashkit.com
and i will delete any emails we get

you are more than welcome to comment on other areas of the site but it is the front entrance and popup window im most interested in at the moment

thanks in adavnce

[MX04] Flash Site IE / Firefox Problesm
well. i have a free host i am using to check weather my sight will work on a server as i does on my local drive... No surprise it doesn't!

it would help if you had both IE (tested 6 and 7) and Firefox ( i am using 2) to help me here

here is the The site

IE:Info doesn't display
but it runs faster
every thing loads without interaction (as intended)

Firefox:Info does display!!!
but it runs slowly
And for things to load mainly the Photo page under media you have to move the mouse round to refresh the screen!! WHY!!

[MX04] Flash Site Doesnt Fill Entire Window
When I create a flash site and view it in my web browser, no matter whta size i make my flash document, there is always a white border around it, how do i remove this?

[MX04] Empty Movie Clip Wont Stay In Centre Of My Site
I have created a site which loads a box into a empty movieclip box....however when shrink my browser window it does not load into the centre of my stage.

Heres the actionscript I have used on the main timeline:

createEmptyMovieClip("content_box",300);
content_box._x = 500;
content_box._y = 300;

createEmptyMovieClip("portfolio_box",400);
portfolio_box._x = 0;
portfolio_box._y = 10;


If anyone could help me it would be much appreciated.

Thank you

Linsey

[MX04] Easiest Way To Send Data To Html Site Without Leaving Flash Movie
I can't seem to remember how to do this. I know of done this once before, but I don't think I used any kind of loadvars commands. Right now I want to integrate a paypal shoping cart on my flash movie. I don't want the paypal site popping up everytime an item is added. Is there any easy way to post this data to the site, without leaving the flash movie and without another windowing popping up?

[MX04] Load Swf Into MC Of Other Swf
I know this fairly simple request but im a noob and not sure whats going wrong.


I basically want a button on SWF A to Load Swf B onto an MC/ Frame on the Main swf.

I can tell the button to jump to a target frame on the main swf tried but cant get the other swf to load

on(release){
_level0.gotoAndPlay("target1");
loadMovie ("carlisle2.swf", "container");
}

I then tried laoding it into an MC called container on the timeline of main SWF

container.loadmovie("my.swf")

that didnt work either.
Any suggetions, ahvnt been able to come up with anything. Thanks

[MX04] How .. .. To Load A Clip
Hi,

one funny problem; i know how to load external swf, but don't know how to load internal movie clip.

Say, i have a movie clip 'mainBttns' in the library, and have an empty loader clip 'loader_mb' created somewhere on the stage, with the instance name 'loader_mb' as well.

What ActionScript should i add to a button, to load (play) this 'mainBttns' clip?
And also what AS to unload this clip out of that spot, when some another clip should jump in?

Many thanks

[MX04] Can't Load XML In A Class
Flash MX 2004 Pro (mac)
ActionScript 2

I'm trying to generate a bar graph from an xml file. I have an empty movie clip with an AS class name of "BarGraph". The idea is for this class to parse the XML and then use attachMovie to add instances to the stage. I'm able to add the instances ok, but for some reason the xml fails to load, so I just get 5 bars on the stage that have no data passed to them, so they do not resize appropriately.

Here's the code from the BarMovie.as file:
(NOTE: the parsing is a bit convoluted due to the format of the file I'm using, but I have verified that it works when plased in yhe AS for frame 1 of the movie)

code:
class BarGraph extends MovieClip {
private var barConstructorParameters:Object;
private var value:Number;
private var numBars:Number = 5;
private var leftEdge:Number = 50;
private var rightEdge:Number = 500;
private var chartWidth:Number = rightEdge - leftEdge;
private var FMPFlash_xml:XML;
private var chartData:Array = new Array();
private var chartLabel:Array = new Array();

private function BarGraph() {

//load and parse the XML file
loadXML();

//add a new bar for data set
for (var i = 0; i < numBars; i++) {
attachMovie("bar","bar" + i, i).barInit(i, chartData[i]);
}

}


public function loadXML():Void {



FMPFlash_xml.ignoreWhite = true;

//setup load handler to invoke parsing function
FMPFlash_xml.onLoad = function (success) {
trace("success");
if (success) {

processData(FMPFlash_xml);
}
}

// load the xml file
FMPFlash_xml.load("filemakerFlash.xml");


}



// parsing function
public function processData(xmlDoc_xml) {
for (var i = 0; i < numBars; i++) {
chartLabel[i] = xmlDoc_xml.firstChild.childNodes[3].childNodes[i].attributes.NAME;
chartData[i] = xmlDoc_xml.firstChild.childNodes[4].firstChild.childNodes[i].firstChild.firstChild.nodeValue;
trace("data = " + chartData[i]);
}
}
}

[MX04] Silent URL Load
hello all

I've made a flash page and I want when a user view my flash a url loads in the flash silently
i've tryed getURL method but when the URL loads in the flash the page changes but I don't want the page change .think I want to log user IP by loading a php or sth like that.

- I don't want to use iframe outside of the flash like getURL("http://myurl","htmlframe");
- I don't want to to solve it in html codes (OUT of the flash).
I just want the url loads silently in the flash.


Please Please help me
Thanks

[MX04] LoadVars Or Load XML...
I'm wondering if it's possible for me to take an array I have in Flash and put it in an external file, either a .txt or .xml.

Currently, I have this array in flash:


PHP Code:



var aItem:Array = new Array();
    aItem["PT1P1 m"] = {instance:PT1PPage1.maxwell, itemname:"Shrub 1 - Maxwell", itemnum:"1697", price:.01, quantity:0};
    aItem["PT1P1 v"] = {instance:PT1PPage1.vray, itemname:"Shrub 1 - VRay", itemnum:"1698", price:.01, quantity:0};
    aItem["PT1P1 r"] = {instance:PT1PPage1.mentalray, itemname:"Shrub 1 - Ment Ray", itemnum:"1699", price:.01, quantity:0};
    aItem["PT1P1 maps"] = {itemname:"Shrub 1 Maps", itemnum:"8888", price:0, quantity:0};
    
    aItem["PT1P2 m"] = {instance:PT1PPage2.maxwell, itemname:"Shrub 2 - Maxwell", itemnum:"1700", price:.01, quantity:0};
    aItem["PT1P2 v"] = {instance:PT1PPage2.vray, itemname:"Shrub 2 - VRay", itemnum:"1701", price:.01, quantity:0};
    aItem["PT1P2 r"] = {instance:PT1PPage2.mentalray, itemname:"Shrub 2 - Ment Ray", itemnum:"1702", price:.01, quantity:0};
aItem["PT1P2 maps"] = {itemname:"Shrub 2 Maps", itemnum:"8889", price:0, quantity:0};




This array works great and is being accessed by this code:

PHP Code:



for (var i in aItem) {
    var currentProduct:String = i;
    aItem[i].instance.id = currentProduct;
    aItem[i].instance.onRelease = function() {
<code>
}
}




I'm worried that if I take the array out of Flash then the .onRelease code above won't work becuase I'd be taking 'aItem[i].instance' out of the flash timeline?!? I guess what I don't know is if flash can parse the info from the .txt or .xml and use it just as if it was an array on its own timeline? Does that make sense?

If I am able to use an external file to create the array then my next question is should I use a .txt or .xml file??

TIA

Mx04: Load Movie Loads Behind My Swf?
hi i'm having a problem with a load movie command,
basically on my mainline i have this code;

stop();
_root.emptyClip.loadMovie("01a kitchens-cont.swf");

The swf is then substituted for different files when different actions are reached (a button sends them to a certain frame which then gives the above command except swapping the '.swf' to another .swf)

I assumed that by loading in a movie and then loading another one in it replaces it as i haven't set any level except some of my swf's are loading in behind some of my other swfs. anychance of some guidence?

I've included the fla!

thanks for any help!

[MX04] External .jpg Load And Fade...
I have been using Flash for little while and am fairly confident in most things I have to accomplish visually. When it comes to action scripting though, I am pretty much lost.

I work for a small newspaper in Washington. I made this little "order photos" button that resides in a gutter of our site.

(http://www.kitsapsun.com - Right hand side, halfway down, on the blue rail)

My goal, is to be able to create a folder on our server that the photo journalists can simply drop in their six or seven photos into it and have the .swf just calling it's photos from this folder.

I *believe* this is possible, but I can't seem to find a tutorial that will help me fgure out the solution.

Any help would be greatly appreciated!

[MX04] Interrupting The Load Of A Soundclip
I'm working with non-streamed MP3s but this question applies to any external assets...I'm creating a photo album with soundclips that play with each photo...as the user navigates to the next photo, a new non-streamed MP3 loads up. I'm having a problem when the user navigates too fast, or switches to a thumbnail gallery (which, in actionscript, stops all sounds from playing, but not necessarily loading)...Anyway, things get all gummed up and unpredictable. Is there a command I could call that would halt the loading of a sound file that's currently in the pipe?

[MX04] Load Data From An External Jsp
[MX04] external xml wont load

If I have the xml load directly from the flash (ie, I have it go directly to the site, instead of through 'proxy.php'), it will load the data from the xml, but when I have it go through a php script, nothing shows up, the text field is completely blank, it doesnt even say "Couldn't Load".

here is my flash file script:
Code:


Code:
xmlGetBtn.onRelease = function(){
var xmlProxy:XML = new XML();
xmlProxy.ignoreWhite = true;
xmlProxy.onLoad = function(bSuccess:Boolean):Void {
if(bSuccess) {
xmlDataBox.text = this;
}
else {
xmlDataBox = "Couldn't Load";
}
};
xmlProxy.load("Proxy.php")
}



and the php script looks like:
PHP Code:

PHP Code:




<?php
$dataURL = "http://www.w3schools.com/xml/simple.xml";
echo readfile($dataURL);
?>






I have tried every tutorial and script I could find, but nothing seems to work.
Also, is it possible to load external data into flash from a .jsp?

Thanks alot if anyone can help me try to solve this problem.

[MX04]load XML And Loop Movie
Hi, I'm trying to create a certain effect.

I was wondering if anyone had any tutorials or codes that I could use for what I'm trying to do.

I'm trying to have a video playing in the background, but able to stop the rest of the movie. And on each frame I need to load things into text fields through a .xml file.

I guess the first/most important thing would be how to get the XML loaded into the text fields.

so far I have an XML file that has fields:
title
info
contact

and dynamic text fields

how do I get the information to load into the text fields?

[MX04] XML: I Just Want To Load ONE Image With ONE Caption.
I've found tons of slideshows (and successfully created them!) so I don't know what I'm doing wrong! I just want this file to import ONE image with ONE title and caption into a flash file.

XML:
<daTextBox>
<daTitle><p class="title">COLOR</p></daTitle>
<daContent><p class="content">The less color a diamond has, the more valuable it is. Diamonds are graded on a scale from D (colorless) to Z (light yellow).</p></daContent>
<daPic>graphics/cut.gif</daPic>
</daTextBox>

Actionscript: (or maybe it would be easier if someone suggested how they would do it in SIMPLY!)


Actionscript starts and then...//load in XML
daTextBoxContent = new XML();
daTextBoxContent.ignoreWhite = true;
daTextBoxContent.load("cut.xml");
daTextBoxContent.onLoad = function(success) {
if (success) {
daXMLTitle = this.firstChild.childNodes[0].childNodes;
daXMLContent = this.firstChild.childNodes[1].childNodes;
daXMLPic = this.firstChild.childNodes[2].childNodes;

//load css
var format = new TextField.StyleSheet();
var path = "flash.css";

format.load(path);
format.onLoad = function(success) {
if (success) {
//set the style sheets
daClip.containerMC.daContent.styleSheet = format;
daClip.containerMC.daTitle.styleSheet = format;
//assign the appropriate text and image
daClip.containerMC.daContent.text = daXMLContent;
daClip.containerMC.daTitle.text = daXMLTitle;
daClip.containerMC.daPic.image = daXMLPic;
} else {
daClip.containerMC.daContent.text = "Error loading CSS file!";
}blah blah blah on the rest of the code...

[MX04] Load SWF Files But They Don't Work
Hey guys I'm pretty new to flash.
My problem is this - I have loaded external swf files into my main timeline using the following code -
on (release) { this.box.loadMovie("ElliesMatchingGame.swf", 1);
}

The movie loads (images etc) but the coding doesn't seem to work. The external swf is using simple coding as well, just drag and drop MCs-

on(press) {
mysound = new Sound();
mysound.attachSound("blue");
mysound.start();
startDrag(this);
_root.answer1="";
}

on(release) {
stopDrag();
if (this._droptarget == "/blue") {
_root.answer1="Correct";
_root.answer2 = "";
_root.allCorrect +=1;
gotoAndPlay(2);


}
else{
_root.answer2 = "wrong";
_root.answer1 = "";
gotoAndPlay(3);
}
}

I'm sure i'm doing something really simple wrong! But can anyone help?

[MX04] Load Movie Once On Many Pages
I have a flash banner and its the same banner for 3 web pages. I want the introduction to only load once and the last frames to load on click of new web links. Any ideas?

[MX04] Load Library Images
I really dont know to much flash but I need a way to load images that are inside the library on demand. Lets say I have three area (I dont know how to make) I want to look in a xml file (I can do that much) read it to tell what images should go into what boxes. I can do this using external jpgs but I want the images to be inside the library how can I do that?

[MX04] Load MC Into MC (stage Instances)
Is anyone familiar with a way in which to load an MC (background) on the stage, into another MC (backgroundHolder) on the stage?

Normally I'd use a linkage identifier, however in this instance I want a large MC asset to load at a particular point in the movie rather than export it in the first frame. I figured that one of the following methods should work, but sadly not ...

_root.backgroundHolder.attachMovie("background");
_root.backgroundHolder.loadMovie("background","bac kground",1);

I'd really appreciate anyone with a working method.

[mx04] External Xml Wont Load
First of all, I'd like to say sorry for posting this more than once in a different thread.

If I have the xml load directly from the flash (ie, I have it go directly to the site, instead of through 'proxy.php'), it will load the data from the xml, but when I have it go through a php script, nothing shows up, the text file is completely blank, it doesnt even say "Couldn't Load".

here is my flash file script:

Code:
xmlGetBtn.onRelease = function(){
var xmlProxy:XML = new XML();
xmlProxy.ignoreWhite = true;
xmlProxy.onLoad = function(bSuccess:Boolean):Void {
if(bSuccess) {
xmlDataBox.text = this;
}
else {
xmlDataBox = "Couldn't Load";
}
};
xmlProxy.load("Proxy.php")
}


and the php script looks like:



PHP Code:



<?php$dataURL = "http://www.w3schools.com/xml/simple.xml";echo readfile($dataURL);?>







I have tried every tutorial and script I could find, but nothing seems to work.
Also, is it possible to load external data into flash from a .jsp?

Thanks alot if anyone can help me try to solve this problem.

[MX04] DESPERATE External Xml Wont Load
If I have the xml load directly from the flash (ie, I have it go directly to the site, instead of through 'proxy.php'), it will load the data from the xml, but when I have it go through a php script, nothing shows up, the text field is completely blank, it doesnt even say "Couldn't Load".

here is my flash file script:
Code:

Code:
xmlGetBtn.onRelease = function(){
var xmlProxy:XML = new XML();
xmlProxy.ignoreWhite = true;
xmlProxy.onLoad = function(bSuccess:Boolean):Void {
if(bSuccess) {
xmlDataBox.text = this;
}
else {
xmlDataBox = "Couldn't Load";
}
};
xmlProxy.load("Proxy.php")
}



and the php script looks like:
PHP Code:

PHP Code:




<?php
$dataURL = "http://www.w3schools.com/xml/simple.xml";
echo readfile($dataURL);
?>







I have tried every tutorial and script I could find, but nothing seems to work.
Also, is it possible to load external data into flash from a .jsp?

Thanks alot if anyone can help me try to solve this problem.

[MX04] Load Vars From URL When SWF Is Embedded In HTML
This works:
www.example.com/test.swf?myName=Fred
Above, the variable "myName" is available to the swf

This doesn't:
www.example.com/test.html?myName=Fred
Here, the variable isn't available to the swf embedded in the HTML.

Is there a way to resolve this?

[MX04] Preloader, Then Load Movie Clips Help
I am having trouble with the actionscript here. Preloader works fine, then goes to movieclip1 (slide1) which then plays.
But then I want it to play movieclip2, which is an external mc, and then from movieclip2 (slide2) I want it to cycle back to movieclip1 and play.

Can anyone help me with this?

I'm attaching the (not completed and inserted smaller jpegs for the purpose of uploading) file here...
BIG NOTE: There's a third actionscript file you need but it won't let me upload it.
Take the code below and create a file called Preloader.as, save it to the root.

class Preloader extends MovieClip{

private var target_mc:MovieClip;
private var progress_mc:MovieClip;
private var pct_str:String;

private var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;

function Preloader(){
// initialize with EventDispatcher so the preloader can broadcast events
mx.events.EventDispatcher.initialize(this);
}

public function startPreload(t:MovieClip){
// set a reference to the timeline that is loading
target_mc = t;

// reveal the preloader clip
this.gotoAndPlay("IN");
}

private function onAnimateIn(){
this.stop();

// this is called from the preloader mc timeline on the last frame of the 'in' animation
// starts checking the load progress of the target movie clip on each frame
this.onEnterFrame = this.checkLoadProgress;
}

private function checkLoadProgress(){
// get the total bytes and the loaded bytes of the target clip
var bl = target_mc.getBytesLoaded();
var bt = target_mc.getBytesTotal();

// calculate the percentage of bytes loaded
var pct = bl/bt;

// get the current frame and total frames of the progress clip
var cf = progress_mc._currentframe;
var tf = progress_mc._totalframes;

// calculate the frame that corresponds with the load percentage
var f = Math.ceil(tf * pct);

// if the current frame of the progress mc is less than the value of f then let the clip play
// otherwise, stop the progress clip to wait for f to catch up with the current frame
// this prevents the animation from jumping ahead if the target clip is loading faster than
// your progress animation
if(f > cf){
progress_mc.play();
}else{
progress_mc.stop();
}

// set percent display in preloader_mc based on percentage of frames that have played
this.pct_str = (Math.round(cf/tf * 100)).toString();

// if the clip is entirely loaded, and the progress clip has played all the way through
// then the preloading is complete
if(bt > 20 && bl == bt && cf == tf && progress_mc){
onPreloadComplete();
}
}

private function onPreloadComplete(){
// stop the check load call
this.onEnterFrame = null;

// animate the preloader
this.gotoAndPlay("OUT");
}


private function onAnimateOut(){
this.stop();

// dispatch event that tells any listeners that the preloader is done
dispatchEvent({target:this, type:'onPreloaderOut'});
}
}

[MX04] Load / Unload Movie Clips
I am loading external SWFs on my main flash file.

For every External SWFs:
They also have multiple levels. There is a base SWF and then 5 levels of other external SWFs there.

So- i load an external SWF on my main flash and that external SWF also has its own external SWFs.

This is how i do that:
on my main flash file.. i create a blank MC:
this.createEmptyMovieClip("blank1", this.getNextHighestDepth());

Now, by default i load my first external MC there (ExtMC1)
_root.blank1.loadMovie("ExtMC1.swf");

Now i have a button (Button2) and when it should be clicked- it should replace ExtMC1 with ExtMC2.
_root.blank1.loadMovie("ExtMC2.swf");

This just don't work because it does replace the base file for ExtMC1 but the external SWFs within ExtMC1 remains on the main flash file..

so i use this instead:

button2.onRelease = function() {
unloadMovieNum(1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
_root.blank1.loadMovie("ExtMC2.swf");
};

so basically i clear all the levels first and then load my second MC (ExtMC2.swf).

similarly to load my third MC i use this on button 3:
button3.onRelease = function() {
unloadMovieNum(1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
_root.blank1.loadMovie("ExtMC3.swf");
};

is there any better way of doing the same- it does work but the issue is, when the first MC (ExtMC1) is loading and click on the button 2 to load the second MC (ExtMC2) - it takes a lot of time.. so i need an effective way of doing the same.. please help.

[MX04] Pre-Loader And Load Movie PROBLEM
Hello,

So i have a movie with a preloader from following this great tutorial: http://www.hypergurl.com/blog/flash/...preloader.html

I did everything right, and he did too. It's just that, my movie itself won't load. Its a quite large file, about 200 MBs on www.trixmasta.com uploaded through FTP. When I open the swf file itself on my computer it opens in a while, and streams fine. But opening through a url online, took over 10 mins still not loading the swf. By loading though a media player I created, and a "loadMovie" statement the movie would stream quite nicely in my swf media player file, only problem was that it stopped a few times to load the swf from my website. Therefore I wanted to create a pre-loader, and i did so. It worked all the way up to towards the end of the tutorial. Then it stopped working, I don't know why, and how. Thats the problem, when I 'Test Movie' it in flash, it loads but barely, plays at like 100 times slowed down. Then I tried putting this media player swf online at www.trixmasta.com and, the movie didn't load at all.


My fla is attached, and the online swf media player is:

http://www.trixmasta.com/RH%20Media%20Player.swf

and the raw file being loaded is:

http://www.trixmasta.com/How%20to%20SSH.swf (200 Mb's file, very large to load).

Drop Menu To Load Html MX04
hi all,

Im having trouble with deciding the best method to create a drop down menu.

I need a menu with 7 items, each that has a sub-menu with between 2-3 sub items. the catch is that i want the menu to open html pages. i made a sample menu (cant upload yet :-( ) but i cant fill the empty area next to the menu with the text from the html as it obviously wont allow the html content to fill the emtpy flash area. any ideas? or is html / javascript better to use?
i was going to use http://www.kirupa.com/developer/acti...pdown_menu.htm but i think it would have same problem? at the bottom of this tutorial they better explain why im stuck http://www.kirupa.com/developer/mx/transparency.htm

many thanks

Drop Menu To Load Html MX04
hi all,

Im having trouble with deciding the best method to create a drop down menu.

I need a menu with 7 items, each that has a sub-menu with between 2-3 sub items. the catch is that i want the menu to open html pages. i made a sample menu (cant upload yet :-( ) but i cant fill the empty area next to the menu with the text from the html as it obviously wont allow the html content to fill the emtpy flash area. any ideas? or is html / javascript better to use?
i was going to use http://www.kirupa.com/developer/acti...pdown_menu.htm but i think it would have same problem? at the bottom of this tutorial they better explain why im stuck http://www.kirupa.com/developer/mx/transparency.htm

many thanks

[MX04] Best Way To Do This - Load Multiple Instances W/ Different Rotation And Stuff
Hi,

I'm having a hard time determining the best way to handle what should be simple, because I don't deal with the scripting I'm gonna need all that much and I don't have a lot of experience with loops.

I have an MC on my stage that explodes on button click. I want to add mc's of a fragment of the object that shoot out from the explosion with the following parameters:

When I click the button I want a random number of fragment mc's to load between 2 and 5.

I want the rotation of each mc to be different within a range (I understand how to randomize stuff, but I need to randomize between say 90 degrees and 180 degrees).

There is a tween inside the MC that follows a guideline to make the fragment arc as it travels across the stage. I'd prefer to script the mc traveling in the direction at an arc, but I have a feeling that's gonna be too advanced for me.

When the mc has completed it's tween (or travelled outside of the stage), I want the mc to unload so I don't have a bunch of them off the stage taking up space.

Can anyone let me know how I should accomplish this? I'm not looking for someone to write my script, just give me an idea of the script components I'm gonna need and where to put em.

Thanks in advance!

-Sandy

[MX04] Load External Images, Fade In On Completion.
Code:
loadee = new MovieClipLoader();
ImageHolder._visible = false;
loadee.load(bgfilename, ImageHolder);
templistener = new Object();
templistener.onLoadComplete = function() {
ImageHolder._alpha = 0;
ImageHolder._visible = true;
};
loadee.addListener(templistener);
And back at the ImageHolder movie clip (a movie clip on stage at the lowest level filled with a shape of transparent fill color)


Code:
onClipEvent (enterFrame) {
if (ImageHolder._alpha < 100 && ImageHolder._visible == true) {
ImageHolder._alpha += 10;
} else {
ImageHolder._alpha = 100;
}
}
And.. no image is shown... Probably a simple syntax error, but I'm not seeing it, and flash says its ok.

[MX04] Can't Load Flash Files Directly From Browser
I'm really new here, so I don't know where to post my problem. I'm posting it here just in case.

I can't open Flash files in my Maxthon Internet Browser... I just installed Flash MX 2004 (with an update to 7.02) in my PC due to a reformat. Embedded Flash files in a webpage work fine, but when I try opening them directly (I mean typing the URL of the file <example: http://i34.photobucket.com/albums/d121/vytalibus/Hitorijime.swf>), they don't load!

I don't think my browser is the problem. I tried using IE as my browser, but the same problem came up. I concluded that there's something wrong with Flash.

And the silly thing is: Flash files saved on my computer DON'T LOAD IN MY BROWSER. However, they play when I open the files.

Help! I'm using Windows XP.

[MX04] Changine The Size Of A ,ovieclip When You Load An Image Into It From XML W/.lo
I have a movie which gets image filenames from an XML file and loads each into a placeholder movieclip [movieName is the variable which points to the placeholder movieclip] :

Code:
movieName.loadMovie(library[newVar].firstChild.firstChild.nodeValue);
I would like to resize the _width and _height of the placeholder movieclip they are loaded into to be the same as that of the image. Currently, it appears that the movieclip the images are loaded into stays the same size and the image extends out of it.

Alternately, I would at least like to be able to access the dimensions of the image loaded.
[I want to know this so I can line up the loaded images without them overlapping.]

Please tell me how I can either find out the width and height of the loaded images or automatically change the dimensions of the placeholder movieclips to match the images loaded into them.

[MX04] MC Button Load Frame Main Timeline
Hi, I have not been able to get this to work! simply I want a button action in MC1 in frame_1 to load frame_2 on the main timeline. All good info greatly appreciated cheers P

on (release) {
_root.gotoAndPlay ("main", "frame_2");
}

Intro Load + Site Load
I have a page in flash...now I have NO idea how to load my intro on to it...and when the intro is over, I am even more clueless as how to make the site load automatically...can someone please help me?

Intro Load + Site Load
I have a page in flash...now I have NO idea how to load my intro on to it...and when the intro is over, I am even more clueless as how to make the site load automatically...can someone please help me?

Load Movie But Now I Want To Go Back To Parent And Play A Frame MX04
I have three swfs:
a.. slide1.swf (parent)
b.. slideshow2.swf
c.. namemov.swf (the logo I want to appear after the slideshow plays)

On slide1.swf I have a preloader, then it has part of a slideshow. Then I
load slideshow2.swf. That plays. Now, on slideshow2.swf's last frame, I want
it to go to slide1.swf and play frame "name". At which point I want
slideshow2.swf to play and loop while namemov.swf is loaded on a higher
level.

Final result is you see a slideshow, then the name appears while the second
part of the slideshow loops underneath it.

I have been trying, and trying, and trying to do this but every time I get
to slideshow2.swf it just loops in on itself.

PLEASE, PLEASE HELP... : (

Copyright © 2005-08 www.BigResource.com, All rights reserved