Small Problem With Loading External .txt.... URGENT
my text files load fine, but for some reason flash displays little boxes in place of " and ' anyone know how to get around this? your help would be very much appreciated!
thanks a lot!
brian
FlashKit > Flash Help > Flash General Help
Posted on: 12-18-2003, 07:34 AM
View Complete Forum Thread with Replies
Sponsored Links:
Loading External Swf, Small Question
hi.
here is the code i have that gets a certain movie (depending on what button was pressed)
ActionScript Code:
stop()_root.loader.loadMovie(_root.m_name)
what would i add to this so that it loads the movie, but doesnt show it untill it has fully loaded?
thanks.
View Replies !
View Related
Loading External Swf, Small Question
hi.
here is the code i have that gets a certain movie (depending on what button was pressed)
ActionScript Code:
stop()_root.loader.loadMovie(_root.m_name)
what would i add to this so that it loads the movie, but doesnt show it untill it has fully loaded?
thanks.
View Replies !
View Related
Mx.controls.loader Is Loading External .swfs Too Small
So I'm using an mx.controls.loader. For the Home button, it loads the external .swf perfectly fine. However, on my About button, it will load that .swf many times smaller than the original size. I don't see any difference at all between the way I built the two files and the code looks fine to me. What are some causes for an mx.controls.loader to load an external .swf a lot smaller than what they are supposed to be? Thanks for your time.
View Replies !
View Related
Small Flash File Loading Into HTML - Weird Sporadic Loading
Hi,
I'm hoping someone can help...
I have a very small Flash file (less than 5k) loaded into a table cell of an HTML page .
On occasion (on Mac/IE) there is a flash of white appears in the table cell before the file starts. On other occasions only a portion of the file appears (while the rest of the cell is white). And at other times, none of the file appears (the table cell that it's in is appears as white).
The background of the flash file is orange (not white) so I guess that means that none of the Flash has loaded. Sometimes when I refresh the page, the problem resolves itself.
Does anyone know what the problem may be? Is there any sort of pre-loading JavaScript that would help, even though the file is very small to begin with?
Thanks for any help, I really appreciate it!
View Replies !
View Related
How To Get External Url Into A Small Window
Hi
I have this html page in my site
http://dialognet.org/k8/meteo/current_conditions.htm
this page brings the url such as : http://dialognet.org/k8/meteo/daily/Barometer.htm
into a small window
How can I do the same thing in FLASH MX
Thanks and Happy New Year for all
Raanan
View Replies !
View Related
Help With External Data (willing To Pay Some Small Fee)
Hi there,
maybe someone could help me with the following AS code:
See: http://pastie.org/298108.txt
What I am doing is accessing domain.com/file.php?show=1
The file returns: rrr1=123&rrr2=456&rrr3=789
My application then adds rrr1 to a textarea which works fine of course.
Now the problem is that I need to add all results, meaning rrr1 rrr2 rrr3 and possibly more (its not always rrr1 – rrr3 – it can be more than that)
So what I need is some addition to my code which allows me to add all rrr values to the TextArea one after another using
Maybe someone could help me with this (I am willing to pay some small amount for your help via Paypal)
if (Loading_1)
{
// your code to add all rrr values to my TextArea here
}Should be easy for a flash pro
Let me know if there is anything you can do to help me.
Please be aware that I am totally new to AS, meaning if possible, post a working solution instead of just saying "use a loop" etc.
View Replies !
View Related
Opening An External Swf From A Small Button.
This is really a combined html, css-p, Flash AS puzzle. The challenge is to open a Flash file over html content with a small flash button situated on the right. But I don't know how to avoid the white background of the stage from showing. I put the button on the right (25px x 400px) on a higher css layer (z-index=1). The button has uses loadMovieNum to load a larger Flash file, but the file didn't open. When I tested the swf without html, the larger file only covers the button.
So now I know that the new file can't be wider than the button. Great! If the button were wide enought, even if it sat on the side, the stage would cover my html content. I can't use the css invisible attribute or I would lose my button. I don't know how to use the button to load to a different HTML layer.
Can anyone help me with this knot? I wonder if the loadMovieNum can change the size of the stage?
Frustrated Tomas
View Replies !
View Related
Loading Small Movies... With PL
Hello... I really need to know how to make a movie load different little movies (with their own preloader) after I click a respective button... What I mean is:
For instance:
At the start of the movie, there's the same old preloader, saying how much has been loaded of the movie (not including the small clips)
Then during the "body" of the movie, I want small clips to load when the user WANTS to, not automatically... For instance, making click on a button "Pictures" loads a new small clip that I can place on the stage with its preloader.
How can I do this? Using MCs the correct way in the first place? Or do I have to do something else?
Here's an example of what i mean:
http://www.hidex.si/
>Clicking on "Products" or "Suppliers" opens up a preloader and then the MC.
Here's another example:
http://www.50percenthuman.com/50.html
> Clicking on "Film" or "Photo" opens up the preloader and the
> small MC. How can I do that?
Thanks.
View Replies !
View Related
Loading... Small Problem.
Hi everybody !
i am doing a super loading script (wow). I use the _root.onEnterFrame to make it work.
The only problem i have is my website is on one frame and flash seems to want to load evrything on my firts frame. It start to show the loading bar when it finish to load the first frame. (70% to 100%).
Can someone tell me what to do to make it work fom 0 to 100 %. When i do a seperate scene and only put my code in that scene, it work fine, but the use of frame is oldschool.
Need help, thx
View Replies !
View Related
Small Blink When Loading Movies.
I have a site that preloads several movies and then by clicking on buttons, you can view these movies. depending on the order you view them, animations can run. the problem is, I want the animations to run together fluidly but unfortunately, they're not, theres a very small blink.
its hard to explain so just have a look
http://clients.crombieanderson.com/opwe01/
then once all the movies have loaded, click the top buttons in order. any way to get rid of this? I've racked my brains. the mc's all on the stage at the same time is unfeasible.
cheers
View Replies !
View Related
Loading An Small Applet Window
I am building a financial website and want to load a small stock quote window on my flash site. Here is the code that has been provided for me.
<APPLET NAME="QuotePage"
CODE="QuotePage.class"
CODEBASE="http://java.barchart.com/quotepage"
HEIGHT="80" WIDTH="190"
>
<PARAM NAME="symbols" VALUE="'Indices,$INDU:$INDU,$INX:S&P 500,$NASX:Nasdaq">
<PARAM NAME="bgcolor" VALUE="FFFFFF">
<PARAM NAME="fgcolor" VALUE="000000">
<PARAM NAME="pscolor" VALUE="005500">
<PARAM NAME="ngcolor" VALUE="AA0000">
<PARAM NAME="numcols" VALUE="1">
<PARAM NAME="numrows" VALUE="5">
<PARAM NAME="crorder" VALUE="down">
<PARAM NAME="data" VALUE="price, percent">
<PARAM NAME="display" VALUE="fractions">
<PARAM NAME="fface" VALUE="Courier">
<PARAM NAME="fsize" VALUE="12">
<PARAM NAME="fstyle" VALUE="Normal">
</APPLET>
How do I load this into a scene? Please help!!!
Sebron
View Replies !
View Related
Small Files Loading So Slowly?
Hello,
I am working with a standard html frameset, but using flash rather than html pages for the content. Can anyone please explain to me why when you click on a link in the nav bar on the left, it takes so long to load the flash page in the main frame? Some of these files are just 8.5 kb! And yet they are taking quite a few seconds before they start to load? I am really fraustrated with this, could someone please help me to sort it out.
Thanks JC http://www12.brinkster.com/charities...oom/index.html
View Replies !
View Related
Small Pages But Loading Far Too Slowly?
Hello,
I am working with a standard html frameset, but using flash rather than html pages for the content. Can anyone please explain to me why when you click on a link in the nav bar on the left, it takes so long to load the flash page in the main frame? Some of these files are just 8.5 kb! And yet they are taking quite a few seconds before they start to load? I am really fraustrated with this, could someone please help me to sort it out.
(By the way I am using a flash nav bar that I downloaded from a site. It uses an unusual way of linking to pages, all the details are in the html page of the nav bar rather than being in the SWF file.....
I can edit the SWF obviously as it didnt come with a fla, there is just a webpage that adds the names to the buttons for you, and then adds the " a href "links in the html page.)
Thanks JC
http://www12.brinkster.com/charities...oom/index.html
View Replies !
View Related
Loading Large Res .jpgs Into Small MC
Hey all,
I'm trying to make a slide show that will always display the image, no matter what the resolution, inside the size of the mc. Never tried this before. My code for the mc is a simple (this is in MX):
loadMovie("1.jpg", "movieclip");
so far, what that does is displays the images at their resolution and it's way too big for how I want it displayed. Any help would be greatly appreciated.
nicfu
View Replies !
View Related
Small Prob, Loading A Swf Externally
I cant figure out what the deal is. All I am doing is loading a MC externally and for some reason it wont work on the server but it works fine when tested locally. My AS is simple....
loadMovie("2.swf", "2");
Thats it, one line. Not too much room for error HAHA. So anyways, I have changed the filepath to what it is exactly on the server and it still didnt work. Both files (default.swf and 2.swf) are in the same dir on the server.
Any advice guys???
Thanks
View Replies !
View Related
[CS3] AS2 - Small Movie Loading A Bigger One
Hi,
I'm doing a project to put on freebie USB pen-drives where, ideally, it would work like this:
- The user inserts the pen drive and up pops a small window, like a business card, somewhere on their screen - 'click to begin' etc...
- Upon clicking this, a full-screen, quite high-resolution movie opens, for the user to browse.
I'm having a few problems though...
I intend to do it all in standalone flash player, so it'll work on anyones PC, I think avoiding HTML at all would be best. SO, with that in mind, should i make 2 seperate movies, where the smaller one loads the bigger one? If so, what's the code? I've messed about with most of the loadMovie lines, i think they all jus load into an embedded movie clip or just on top of the open movie... so it can't be bigger than it...
Also, I can make a 'fullscreen' button no problem, so the alternative plan would be to make a shrunk-down version of the movie for the first, smaller window, then just full-screen it after clicking... However, I want to work at a relatively high res, and even with tags like Stage.scaleMode and Stage.displayState the smallest i can get it to appear is full-size, i.e. too big.
I realise that what i'm trying to do seems really simple, it is, but it's driving me nuts, i can't figure out how i should go about it.
Anyone got any thoughts on how this could be done?
Much appreciated,
PigeonSurgeon
View Replies !
View Related
LoadMovie Loading Movie Too Small
Im using a loadMovie to load in an external swf. Both the swfs are the same size, however, when I load one into the other, it automatically scales it down, so rather than taking up the whole stage, it sits in the corner at about 50% ratio.
Ive uploaded the file so you can see if there are the same problems
Ive never experienced this before and its a tad worrying.
Thanks
View Replies !
View Related
Page Hangs While Loading Small .swf
Hey all,
I'm a newb to Flash, but I thought I had a simple music on/off button setup on my site pretty easily. I'm using Dreamweaver MX to edit and it was simple to set the .swf up on the actual page, but when I browse to my site, every thing loads, except my button rollovers and my flash file and its only 205 kb...The page just sits there and hangs indefinitely...?
Any help would be appreciated.
Thanks
View Replies !
View Related
Loading Random Swf's: Small Problem
hello,
i've created a site where the background image is a randomly loaded swf file into an MC. there are 3 different images. everything works fine, but every now and then no image shows up. here's the code i am using:
choice = Math.round(Math.random()*3);
switch (choice) {
case 0 :
location.loadMovie("med01.swf");
break;
case 1 :
location.loadMovie("med02.swf");
break;
case 2 :
location.loadMovie("med03.swf");
break;
}
is there something i am missing that is causing this? i keep checking it but i can't figure it out!
also here's the site so you can see what i'm talking about: http://wickliffehouse.com
thanks in advance!
View Replies !
View Related
Small Problem Loading Highscore Tables...
Hi, me again. This is just a small problem, but now when i load in my variables from php to flash i get a strange error, but only if i try to load in more than four. If i try to load in 5+ sets of data, i get this error:
Code:
Error opening URL "http://www.xenwars.com/blocks/nghs.php?hslevel=1&nocache=68510351&name0=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time0=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name1=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time1=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name2=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time2=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name3=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time3=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name4=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time4=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name5=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time5=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name6=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time6=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name7=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time7=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name8=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time8=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&name9=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E&time9=%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Lucida+Console%22+size%3D%2212%22+color%3D%22%23000000%22+letterSpacing%3D%220%2E000000%22+kerning%3D%221%22%3E%3Cb%3ELOADING%2E%2E%2E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E"
The URL i am using is:
code:
loadVariables("http://www.xenwars.com/blocks/nghs.php?hslevel="+_root.hslevel+"&nocache="+rando m(99999999), this, "GET");
My php code on that URL simply prints out something like this (from the database):
Code:
&name0=Fred&time0=2.73&name1=Fred&time1=3.935
Any ideas? Is this some kind of, over-data loading? :s
View Replies !
View Related
Loading Movies, Large And Small Canvas Prob/question
hi all, i have a main flash movie, (say 500x500), and i also have a small movie (100x100). in the small one, i have elements that fly in from out of the stage, when tested, it works and looks great. i am attempting to load the small movie into the large one, but i can see all elements that get loaded onto the stage from outside of it, instead of just the canvas area. i have tried many things, including masking the stage and putting all my animation in a MC, but i have a dynamic loaded textbox that looses its text when a mask is used. so is there a way that i can load the exact canvas of the small file into either a MC or a level without seeing the elements that come from outside the stage? thanks!!!
View Replies !
View Related
Small To Large To Small In Actionscript
Say I wanted an "a" to go from 100 xscale/yscale to 200 then back again as in normal tweening, how would I do this in actionscript? Here is what I thought of but didn't work:
if(this._xscale<>200 and x<>1){
this._xscale+=5
this._yscale+=5
}
}else{
x=1
}
if(x==1 and this._xscale>100){
this._xscale-=5
this._yscale-=5
}
View Replies !
View Related
Am I Blind..? Small Small Bugg But Where..
maybe i´ve got my eyes in my ass but I can´t see where it goes wrong...
works fine in flashplayer 6 but not 7 & 8
onClipEvent (enterFrame) {
loading = this.getBytesLoaded();
total = this.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}
somebody?
tnx
View Replies !
View Related
Loading External SWF From External SWF Onto An Empty MC On Main Timeline?
Hi Everyone,
Please bear with me while I explain. I have an external swf that loads into a frame in the main timeline, into an empty MC. I can do this just fine. Once this clip is loaded, I have a button in this clip that loads another external swf into a different empty MC on the main timeline. I'm using loadMovie, and I need to load these movies into specific empty MCs. In other words,
I have the following:
MainStage: frame 5, contains empty MC "ClipA"; frame 6, contains empty MC "ClipB"
External swf: "Movie1"
External swf: "Movie2"
"Movie1" goes into "ClipA" of frame 5 on Main Timeline; and "Movie1" has a button that loads "Movie2" into "ClipB" of frame 6 on Main Timeline. I need help loading "Clip B" into "Movie2" from a button in "ClipA."
I'm sorry my message is so roundabout - it's not really a complicated situation, but explaining it makes it seem so.
Thank you in advance for any help - I'm assuming it's some sort of _root or _parent issue things I'm not quite understanding.
Thanks!
macgirl
View Replies !
View Related
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.
Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?
Any ideas how to fix this?
Here is the code for Frame 1 of the externally loaded swf.
Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
midframe=10
All the files are in the same dir.
View Replies !
View Related
Loading A Frame In _root And Also Loading An External Movie Problems.
First of all, hello everyone and nice to meet you
I have been hacking at a problem for a couple of days now and I am in need of help to solve it. Please excuse my noobishness, but I have a lot to learn when it comes to flash.
Here is my scenario:
I have my main movie (_root)
In the actions layer of my main movie I have:
Code:
this._lockroot = true;
I have a button that loads a new external movie at the end of which I want to load a particular frame in the main movie. I call this from the external movie:
Code:
on (release) {
_root.gotoAndPlay(610);
}
Everything up to here works brilliantly....But my problem arises when I also try to load an external movie onto level 5 at the same time as I am instructing the main movie to play frame 610 from an external movie. I want the external movie to call frame 610 in main, and also load a new external movie on level 5 in the main movie. I have tried about every way of loading movies that I can think of but I can never get the external movie to load along with frame 610 of the main movie. I even tried _root.loadMovieNum("myexternalmovie",5) right after my first root call, like this:
Code:
on (release) {
_root.gotoAndPlay(610);
_root.loadMovieNum("myexternalmovie",5)
}
Is that possible or do I have to approach this entirely differently? Thanks for any responses
View Replies !
View Related
Help Problems Loading External Text And Loading The Movie Into The Explorer
Hola a todos!
I have some troubles with my movies. I'll explain.
(Sorry for my poor English - I'm Spanish!)
I'm developing a website for a Real State Agency in Spain. My idea is make it enterely with Flash, but It's the first time I face Flash. I've found in the tutorials of kirupa.com the greatest help! But, still that, I need more help!
My first problem comes when loading the .swf into the explorer. I made a simple .html file that calls the .swf file to be loaded. The explorer says it's loaded, but I have to press the "Reload" button to see the movie. Can you say me why?!!!!
My second problem... well. I'll need a few minuts to explain it!
I have created a main scene. Inside the main scene I load the movies of the different sections of the site. This new movies loaded onto the main movie contain texts from external .txt files. There's no problem with the texts that are just a few words, as in the section "Acerca de". But when I need a bar to show the whole text I find that the bar doesn't work in the first time that the movie is loaded, and you have to click again in the section to access the whole text, I mean, to make the bar work. Have I explain myself?
Well. I think you should visit the site to see my problems.
Is this: http://www.wk-inmobiliaria.com/FLASH
This website is, of course, incomplete. I'm still working on it.
Could someone help me????
---- Help me Obi Wan: You're my only hope!!!!
Thanks a Lot.
Raul.
View Replies !
View Related
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.
Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?
Any ideas how to fix this?
Here is the code for Frame 1 of the externally loaded swf.
Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
midframe=10
All the files are in the same dir.
View Replies !
View Related
Problem With External MCs, Loading An External Into An External
What I have is 2 seperate files, Main file is the actual website flash, second file is the external movie clip that loads 3 other external movie clips. The site will see the external clip but nothing will appear on the site, blank movie clip only.
On the main site there is this code to load the external clip into the site:
ActionScript Code:
loadMovie("toonsext.swf", _root.toons_mc)
On the external clip these are the codes for loading the 3 characters onto it:
ActionScript Code:
loadMovie("joshtoon.swf", joshblank_mc)loadMovie("toonmatt.swf", mattblank_mc)loadMovie("metoon.swf", meblank_mc)
Seperately the external clip will work and show the characters however on the main site it will not show anything. What could be the problem can flash not load 2 seperate entities like this or is there a code wrong on my behalf?
View Replies !
View Related
Problem With Loading New External Mc Before Existing One Has Finished Loading
Hi all,
I've been building a flash website which loads various external movieclips with preloaders into a main movie using either target or level. All is working fine, except when a user clicks on a button to load an external movieclip (the button actually goes to a frame label and then said frame contains the loadmovie action), but then decides to click on another button which loads another movieclip before the original has finished loading. This basically breaks flash, causing the movieclips to start looping erratically (even though I have stop actions in place).
Obviously this problem doesn't occur when I test locally, but please follow this link to see what I mean. Click on the 'locations' or 'recent shoots' sections and then try to load a new movie before an existing one has completely loaded:
http://www.david-vernon.co.uk/365_2/365.html
Now I've experimented with adding 'unloadmovie' to buttons and frames to no avail (though as I'm loading new movies into the same target this shouldn't be the problem surely?), so my only thought is that the preloader actionscript might be causing a problem. Here's the actionscript I'm using on frame 1 of all my external movies:
Code:
stop();
myInterval = setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded() >=getBytesTotal()) {
play();
clearInterval(myInterval);
}
bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
percent.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
}
I'm not very good with actionscript and I'm really stumped with this, so any help would be greatly appreciated!
Thanks,
Dave
View Replies !
View Related
External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
ps. i am using Flash MX
View Replies !
View Related
External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
ps. i am using Flash MX
View Replies !
View Related
Loading Main Timeline Diff. From Loading External Swf's?
Last edited by enkriptid : 2008-06-30 at 04:16.
hey peoples, im still learning how to load things , my methods are working so far..
what ive been doing to load external swfs is using a intermediate "loading swf" that works between the main timeline and the desired swf to be loaded.. so far it works and is simple enough for me to work with now, but my question is, how do i go about preloading the main timeline if there are mc's being exported .. i tried my previously mentioned method but no dice.. if theres a rock-solid technical answer id like that..my goal is to have most of my site(illsci.com) in actionscript .as files, doc. classes and xml as of now so im looking for a method i can implement using script if i can, if there is one. perhaps a metatag trick of some sort
View Replies !
View Related
Loading External Swf Which Load External Txt File
Hi,
My main movie loads an external swf with the following:
code:
createEmptyMovieClip("contRight_mc", 5);
contRight_mc.loadMovie("contHome.swf");
contRight_mc._x = 485;
contRight_mc._y = 0;
contHome.swf loads an external text file and stylesheet:
code:
loadVariablesNum("contHome_no.txt", 0);
globalStyle = new TextField.StyleSheet();
globalStyle.load("global.css");
hdrHome00_txt.styleSheet = globalStyle;
hdrHome00_txt is a dynamic text field with the variable hdrHome00, which is used in the loaded text file:
hdrHome00=<html><body><hdr>text</hdr></body></html>
All files are currently in the same directory. When I test contHome.swf (the swf loaded by the main movie), everything works. But when I test the main movie the text does not load, or at least it does not show up as I receive no errors in the output window, and I can't figure out why. Can anyone help?
View Replies !
View Related
Loading External Jpeg Via External Preloader
mx2004
hello all, i have a button which loads an external jpeg from a folder. what i want is to have it so when the command to load the external jpeg is sent, an external preloader preloads it in the placeholder. this preloader will be generic so it can be applied to load before any image selected in any folder, for updating purposes. anyone know where to start with action script, or how to set it up,
View Replies !
View Related
Loading External Html Files With External Css Please Help
Hi people,
I'm new to this forum and new to ActionScript. I have not worked on AS1 or AS2 before so I just got started on AS3.
I'm trying to learn ActionScript 3 and I started experimenting with ideas and workinf examples.
What I'm trying to achieve is a website where the content shown is from external HTML files and external CSS.
My code was working up until trying loading the CSS. The error that I'm getting is "Call to a possibly undefined method URLLoader"
here is my code:
ActionScript Code:
import flash.display.MovieClip;
import flash.text.*;
import fl.transitions.*;
import fl.transitions.easing.*;
var bodyTextField:TextField = new TextField();
bodyTextField.x = 50;
bodyTextField.y = 300;
bodyTextField.width = 500;
bodyTextField.multiline = true;
bodyTextField.wordWrap = true;
bodyTextField.autoSize = TextFieldAutoSize.LEFT;
bodyTextField.selectable = false;
var textBox_mc:MovieClip = new MovieClip();
showContent("html_pages/home.html");
function showContent(paraString:String):void
{
var contentPage:String = paraString;
var myURLLoader:URLLoader = new URLLoader();
var myURLRequest:URLRequest = new URLRequest(contentPage);
var myCSSLoader:URLLoader = new URLloader();
var myCSSRequest:URLRequest = new URLRequest("html_pages/demo.css");
myCSSLoader.load(myCSSRequest);
myURLLoader.load(myURLRequest);
//myURLLoader.addEventListener(Event.COMPLETE, dataOK);
myCSSLoader.addEventListener(Event.COMPLETE, dataOK);
function dataOK(myevent:Event):void
{
var css:StyleSheet = new StyleSheet();
css.parseCSS(URLLoader(evt.target).data);
bodyTextField.styleSheet = css;
bodyTextField.htmlText = myURLLoader.data;
textBox_mc.addChild(bodyTextField);
stage.addChild(textBox_mc);
var myTransitionManager:TransitionManager = new TransitionManager(textBox_mc);
myTransitionManager.startTransition({type:Wipe, direction:Transition.IN, duration:0.5, easing:None.easeOut});
}
}
Can someone please have a look and tell me what I'm doing wrong? Thanks.
View Replies !
View Related
External Text In External Swf Not Loading In Main Swf
Hi. I'm kind of new to Flash, and am trying to make external text load into an external swf which is loaded into my main swf.
What I have is a swf file where I have buttons that load external text. I then loaded this swf into another main.swf and now the external text will not load. The code i have in the external.swf to load external text is this
but4272005.onRelease=function(){
loadVariablesNum ("4272005.txt","0");
}
but4282005.onRelease=function(){
loadVariablesNum ("4282005.txt","0");
}
but532005.onRelease=function(){
loadVariablesNum ("532005.txt","0");
}
This swf works by itself, but when i load it into the main.swf it doesn't.
I'm sure it has something to do with the "0", but I'm not sure what to put there to make it load correctly in the main swf.
The dynamic textbox i'm trying to load into is named "index_txt". The name of the loader in the main.swf is named "content". Any help would be appreciated.
View Replies !
View Related
Problems Loading An External .swf Inside An External .swf
Hey, I created a site using Kirupa's external .swf loading tutorial. Now in one of my externally loaded .swf's, I am loading another external .swf. I've gotten this to work fine, but the second external .swf (loaded into the first) contains buttons that will swap this second external .swf with another external .swf. I can't seem to get the AS references to the variables set up correctly in order to swap the swf's. It sounds rather confusing, so I've included the .fla's and .swf's below.
The file structure:
-band.swf load's profiles_main.swf
-The buttons in profiles_main.swf are trying to load chris.swf (swapping it entirely with profiles_main.swf)
If anyone has a few moments, I'd really appreciate the help.
View Replies !
View Related
Problems Loading An External .swf Inside An External .swf
Hiya, I created a site using Kirupa's external .swf loading tutorial. Now in one of my externally loaded .swf's, I am loading another external .swf. I've gotten this to work fine, but the second external .swf (loaded into the first) contains buttons that will swap this second external .swf with another external .swf. I can't seem to get the AS references to the variables set up correctly in order to swap the swf's. The initial .swf loads fine, but the button control gets complicated inside it. It sounds rather confusing, so I've included a link to the .fla's and .swf's below.
http://www.rta.ssxh.net/files.zip
The file structure:
-band.swf load's profiles_main.swf
-The buttons in profiles_main.swf are trying to load chris.swf (swapping it entirely with profiles_main.swf)
If anyone has a few moments, I'd really appreciate the help.
View Replies !
View Related
Loading External Files Within External File
Is there a way to load an external file from within an already loaded external file?
Example:
I want to do a section devoted to blog entries. So, I was wanting to externally load the dated references in one textbox on the right side, and when the user clicks on one date, it loads the referenced text file into the larger box next to it.
Any ideas of how to accomplish this?
Thanks!
bbbco
View Replies !
View Related
Loading External Images (from External Domains)
Hello kirupa users
I had a small problem in my latest work project where i wanted to load images from external domains.
The problem was that i did not know if i really need the checkPolicyFile set to true or if i really need to load the crossdomain.xml to tell flash player where the acces is.
As far as i know, in adobe as3 reference they stated that in order to load images from an external domain (a domain other than the one where the actual swf runs) you need a policy file or a security acces file in order to be able to do that.
My question is:
1: could i load an image from external domains without having to load some external file (or the crossdomain.xml file)?
2: if there is no possibility to load an image without the crossdomain policy why the checkPolicyFile method could take the value of false?
Thanks in advanced!
Regards.
View Replies !
View Related
External Text In External Swf Not Loading In Main Swf
Hi. I'm kind of new to Flash, and am trying to make external text load into an external swf which is loaded into my main swf.
What I have is a swf file where I have buttons that load external text. I then loaded this swf into another main.swf and now the external text will not load. The code i have in the external.swf to load external text is this
but4272005.onRelease=function(){
loadVariablesNum ("4272005.txt","0");
}
but4282005.onRelease=function(){
loadVariablesNum ("4282005.txt","0");
}
but532005.onRelease=function(){
loadVariablesNum ("532005.txt","0");
}
This swf works by itself, but when i load it into the main.swf it doesn't.
I'm sure it has something to do with the "0", but I'm not sure what to put there to make it load correctly in the main swf.
The dynamic textbox i'm trying to load into is named "index_txt". The name of the loader in the main.swf is named "content". Any help would be appreciated.
View Replies !
View Related
Problems Loading External CSS With External TXT FMX-2004
hi guys/gals. i'm not so new around here - this site has been a life saver several times, but i'm having trouble finding the answer to this problem i've encountered.
all of the files associated w/ this project are located here, http://www.ohmygraphics.com/test/groovesect/flash.
ok, here's what i'm trying to do.
i have a movie with a button that opens a window w/ a movie clip instance that is draggable. in this draggable movie clip is an external SWF file called "tester.swf". i've tried several times to have a dynamic text field that would load an external CSS file along with a TXT file.
see tester.swf. this is the same TXT w/ the CSS that i want loaded.
here, SITE1.SWF is the final movie w/ "tester.swf" loaded.
as you can see, i got it to load the external TXT file, but not the CSS.
i couldn't get the CSS to load in the SITE1.SWF file, so i thought that since it worked w/ the tester1.swf that i could load an external SWF file and have it work that way. but that didnt' work like i had hoped, which leads me to think that i've got the locations and everything else right in the AS.
i've also uploaded the two .fla files for you guys to look over to see the code. it's pretty simple really, i just don't know why it's not loading the CSS. i thought it might be something with having instances withing instances, but i really have no idea.
thanks in advance for all of your help. it's greatly appreciated.
View Replies !
View Related
Big MC Made Up Of Small MCs Not Reflecting Change Made To Small MC
Hi, I hope someone can help me. I have a large movie clip (screen size) that is made up of 30 small movie clips called 'element1'. I was hoping to load a small (screen size) external movie clip into this 'element1' movie clip and knock out the existing content. This it does, but because the large movie clip was made up of 30 movie clips I would have expected after the content of 'element1' was replaced with the external SWF file that the whole of the large movie clip (made up of the 30 small clips) would have changed to reflect the change in swapping over the targeted 'element1' movie clip. All that is happening is that only the targeted 'element1' is showing the swap. Do you have to refresh the screen or something?
Any help would be appreciated.
Cheers
View Replies !
View Related
External Swf Loading Into Target Movieclip Loading
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
View Replies !
View Related
Loading External Data Into An External Swf
I have a main interface where I'm loading an external swf's but I'm also trying to load text dynamically from a database from the external swf but the text will not show up,
but the text will load if it's in the main interface.
This is my code:
on (release) {
_level0.section = "about.swf";
_level200.play();
section = "contact";
loadVariablesNum("http://www.myurl.com/get_text.php", 0, "POST");
}
The swf will Load properly but the text won't.
Any help would be greatly appreciated.
ps.I hope what I'm asking for makes sense
View Replies !
View Related
Loading External Data Into An External Swf
I have a main interface where I'm loading an external swf's but I'm also trying to load text dynamically from a database from the external swf but the text will not show up,
but the text will load if it's in the main interface.
This is my code:
on (release) {
_level0.section = "about.swf";
_level200.play();
section = "contact";
loadVariablesNum("http://www.myurl.com/get_text.php", 0, "POST");
}
The swf will Load properly but the text won't.
Any help would be greatly appreciated.
ps.I hope what I'm asking for makes sense
View Replies !
View Related
Loading External Swfs From An External Swf
im building a site that uses a simple AS to load "contact us.swf" into the main movie. my question is how can i code it that from "contact us.swf i can load another external swf such as "form.swf"? i cant get it to load the form heres the code im using
from the mainmovie
on (release) {
_root.contents.loadMovie("contact us.swf");
in the contact movie
_root.contents.loadMovie("formswf");
any suggestions?
View Replies !
View Related
|