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




Loading Extrnal SWF/ Instance Prob



Hi all, At the moment i'm trying to load and eternal swf into another, one which has objects and other things.
My problem is that, when it loads with a "instance" on the movie clip, all other object on screen have little function/responce.

Without "instance" the movie is all singing and dancing but no objects.

Here is the code im using to load the external movie.

loadMovie("game.swf", bgnew);

Have a look at the file i have included (14k), hope sombody can make sence of it all.

Many thanks

ORANGE900




View Complete Forum Thread with Replies

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

Loading Extrnal Movie
iv just recently been making a flash profile and i want to add some old movies i made last year into in
the old movies are online and i want to be able to play them in my new profile thing.
iv been trying to get the load movie from url to work, but im not that good with action script.
all i can manage to do is when you click, it opens a new browser and plays the clip but its not sized propperly, but i am wanting it to play in my new profile.

any help, thanks

SwapDepth Multi-instance Prob...
Hey i have a RPG game in the making, and i have a character who can walk in 8 directions.

I can do hitTests etc...

but when i found this TUT on swapDepths i was amazed!

so i gave it a go. worked fine on same instance (or _root)

but cant get it to work through diff. instaces;
eg.
instance called "world" has the character in and an object1.
instance called "stuff" has an object2.

all have
"
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
"
but the depth only works on "object1" not "object2"

PLEASE HELP!

SwapDepth Multi-instance Prob...
Hey i have a RPG game in the making, and i have a character who can walk in 8 directions.

I can do hitTests etc...

but when i found this TUT on swapDepths i was amazed!

so i gave it a go. worked fine on same instance (or _root)

but cant get it to work through diff. instaces;
eg.
instance called "world" has the character in and an object1.
instance called "stuff" has an object2.

all have
"
onClipEvent (enterFrame) {
this.swapDepths(this._y);
}
"
but the depth only works on "object1" not "object2"

PLEASE HELP!

Preloader For .jpg In Extrnal .swf
Hello chaps!
I have this problem. I have preloader - very simple thing. It works in mine file . But than I want to load gallery ( external.swf ) which will load photos. Now the deal is that I want to have preloader for the photos. I did it but have no idea where the issue is. It doesn't work.

here is the code:

Code:
//Gets the percent loaded and assigns it to the variable x
var x = _root.getBytesLoaded()/_root.getBytesTotal()*100;
//Scales the FillBar to the percent loaded
FillBar._xscale = x;
//Rounds the percent and displays it in the text box
loaded = Math.round(x) + "%";
//If the movie is loaded, play
if (x>=100) {
_root.play();
}
It works on the main movie when the website start.
Is there a path issue?
I don't know where shoul I place the preloader ( it is as movie clip ) - on the timeline of gallery scene or on the timeline of gallery.swf

Please help!

Thank you

[MX] Help With 'transitions Between Extrnal SWF' Tutorial - Please
Hey everyone,

The tuorial is here - http://www.kirupa.com/developer/mx2004/transitions2.htm

I am usong the tutorial model to make a gallery section which has different image sets that I want to transition between. I went through the tutorial and got everything to work, BUT - when I load the movies into another parent movie, the buttons don't work properly. Whichever image set I load first is the only image set that loads; both buttons load whichever set I chose first.

Should the script in the tutorial work even if I load it into another movie? Do I need tochange references? I am using Flash MX. I really put some time into banging my head against a wall on this trying to figure out what I was doing wrong so I finally posted, I hope you can help-

Thanks
Krishna

I uploaded the SWFs and FLAs here http://mrkrishna.com/flash/swfs.zip
movie is the main parent movie
images is the gallery movie that controls the transition movie, it loades into 'movie'. WHen you run just the 'images.swf', increase the window size to the right to reveal the buttons
images1 and images 2 are the image sets that load into images

thanks again

Transitions Between Extrnal SWFs
Ive been going through some of the great tutorials on Kirupa to try and make a flash site of my own.

Unfortunatly, ive hit a slight snag, and wondered if anyone could help me.

Ive created buttons simular to Complex Button RollOver/RollOut Effects and my current script is (inside a mc):

stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
_root.navOver.gotoAndStop(1);
play();
};
this.onRollOut = function() {
rewind = true;
};
this.onRelease = function() {
getURL("http://www.kirupa.com", "_blank");
};Im wanting to insert the following code on the 'onRelease' function above which is taken from the Transitions Between Extrnal SWFs tutorial.:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "understanding";
container.loadMovie("understanding.swf");
} else if (_root.currMovie != "understanding") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "understanding";
container.play();
}
}
}

Does anyone know a way to adapt this??

Its the last part of my site that needs doing....please help.

Please.

[MX] Help With 'transitions Between Extrnal SWF' Tutorial - Please
Hey everyone,

The tuorial is here - http://www.kirupa.com/developer/mx2004/transitions2.htm

I am usong the tutorial model to make a gallery section which has different image sets that I want to transition between. I went through the tutorial and got everything to work, BUT - when I load the movies into another parent movie, the buttons don't work properly. Whichever image set I load first is the only image set that loads; both buttons load whichever set I chose first.

Should the script in the tutorial work even if I load it into another movie? Do I need tochange references? I am using Flash MX. I really put some time into banging my head against a wall on this trying to figure out what I was doing wrong so I finally posted, I hope you can help-

Thanks
Krishna

I uploaded the SWFs and FLAs here http://mrkrishna.com/flash/swfs.zip
movie is the main parent movie
images is the gallery movie that controls the transition movie, it loades into 'movie'. WHen you run just the 'images.swf', increase the window size to the right to reveal the buttons
images1 and images 2 are the image sets that load into images

thanks again

Load An Extrnal .txt File To Text Field
this should be really easy and i've tried to follow the Flash Help section but i can't get it working. all i want to do is have an empty text field that i can load text into from external text files.

this can't be all that hard - i guess i'm just missing a step somewhere. any help would be great! thanks

Clint

__________________________
http://www.clintbalcom.com

Moving Extrnal Movie Acroos Stage
I am trying to load an external movie to the stage, then have it scroll up the stage. I can get it to load, but I can't get it to scroll. Here is the code:

_root.createEmptyMovieClip("intro", 2);
intro._x = 0;
intro._y = 100;

intro.loadMovie("intro.swf");
_root.theFileToLoad="text/Intro.txt";

speed = 1;
intro._x += speed;

Any help would be appreciated
Thanks
Rick

Attempting To Load Extrnal Xml Into Mc Text Field On Rollover
I might be making a simple mistake, I am pretty new to actionscript and am scavanging code from all over the place to create the effect I am after. But I guess that is the best way to learn.

What I am trying to do is take some data from xml and put it into a movie clip (linkage name of butTemp) text field (with the instance name of but_txt). the xml is very simple. It is basically <nav><but text="Contact"></but></nav>

the code for actionscript I will attach, and it is a working model I am basing on Swinburns tutorial. This all works, but what I want to do and am mashing my head over is trying to turn the mcbutton with the instance name into a roll-over with an up-over-and out state. I cant for the life of me to get the text to appear in the text field only in the over state. I have tried the onRollOver seemingly several hundred different ways and find myself pleading for your advice.

Thanks









Attach Code

myXML=new XML();
myXML.ignoreWhite=true;
myXML.onLoad=function(ok){
if(ok){
allData=this.firstChild.childNodes;
for(i=0;i<allData.length;i++){
newBut=_root.attachMovie('butTemp','but'+i,i)
newBut._y=50;
newBut._x=(i*120)+50;
newBut.but_txt.text=allData[i].attributes.text
}
}else{
trace('error');
}
}
myXML.load('nav.xml');

Ext. Swf Loading Prob..
hi...

my main movie which is LEVEL 0 has an interface in which I have sections cut out of. In one of those sections, I have a holderMC placed in a layer beneath it. I need the ext swf to load in that holderMC so you will see the rest of the main interface. If I load into level 1, then it will load ON TOP OF the interface, and I cannot have that..

any suggestions..

Loading Prob
Well, to load a movie FRoM another movie I put the two swfs in the same folder. Then I goto on of the movies fla and i made a button with the action of : on (release) {
_root.contents.loadMovie("Home.swf");
}

Where the movie with the button (main) loads the movie home. When I click on the button, nothing loads. IN OTHER WORDS, how do I made a button load another movie?

Loading Prob
Well, to load a movie FRoM another movie I put the two swfs in the same folder. Then I goto on of the movies fla and i made a button with the action of : on (release) {
_root.contents.loadMovie("Home.swf");
}

Where the movie with the button (main) loads the movie home. When I click on the button, nothing loads. IN OTHER WORDS, how do I made a button load another movie?

Loading Movie Prob Again.
I've got this project on and have to get it done ASAP. I just have this main swf movie playing. When I click on a certain link, i want to load an external swf movie. Well, i've used the load movie function (flash 5), level 0 and it does start playing the movie. Now the problem comes when i want to place the movie in the center or resize etc. Could someone tell me an easy way? I checked the help file and they were referring to AS and i'm a noob...
So anyone out there mercy enough, HELP !!!

Dynamic Txt Loading Prob :(
Ok, getting a dynamic text box to load info when the site loads. i got the imgs to load with onclipevent(load) then the code to set the pic choice
The onclipevent (load) is attached to the logo :-D.
i have no clue how to load the txt...thx in adv
Wkndplaya™

Online Loading Bar Prob
i currently have a site that's used to display artists and their pics. when a picture is loading a loading bar appears to show the progress. my problem is: the loading bar appears but sometimes it doesn't show any progress, only shows up blank, then disappears when the pictures loading in. it happens around half the time, but this works perfectly offline, i only noticed the problem when i put it live. anybody have any clue whats going on? you can view the site by going here www.peoplesarthall.com and seeing for yourself. the sites not finished yet, so go easy on the critism. currently only me and joanne dunne have any pictures

Prob In Loading External .swf
hey all,

thnx 4 checking my post...

I need to load an external .swf to my first frame of my existing main .fla file....The prob i face is ..i am able to load that .swf file but its keeps on looping ( as that .swf has a looping scripting )....i even tried stop(); on the frame script.... still not working .. As soon as the loaded .swf finishes it should move to the second frame of my main .fla file..... can any one help me ....please ... i here by attach the .fla file of the swf file which needs to be loaded to the main .fla's first frame....

thank you in advance........

Prob' W/loading External Swf
i have 4 swf files in a folder below the www folder-
main.swf (with 3 buttons)
2.swf
3.swf
4.swf

in the www i have the html file that loads the main swf witch is pointing to the folder below itself - ...value= "folder/main.swf"...

in the browser the main swf loads, but when i press any of the buttons
the other swf files do not load.

the code for the buttons are like this-

ActionScript Code:
btn.onRelease=function(){ 
      mymc.loadMovie("2.swf");
}

anyone know why this doesn't work?
thanks

Prob Loading Arrays From XML
I have come across an odd problem. I am making a large scale database (if you can call it that...) by loading information from an XML file into flash. I am using arrays to store the different data and a listbox to select which item that a person may wish to view. Unfortunately the first item that I load will load the name but will not load in data into the arrays... I was wondering what the problem may be?

Heres the code!

//Load xml
var Progs = new XML();
Progs.ignoreWhite = true;
Progs.load("Programs.xml");
//Declare the arrays to hold data
var details = [na]
var web = [na]
var name = [na]
var cat = [na]
var image = [na]

//if load works
Progs.onLoad = function(success) {
if (success) {
//repeat as many times as there are nodes in xml
for (i=0; i<Progs.childNodes.length; i++)
{

//add item to list and add parts to arrays
list.addItem (this.childNodes[i].attributes.name, i);
details.push (this.childNodes[i].attributes.description)
web.push (this.childNodes[i].attributes.web)
cat.push (this.childNodes[i].attributes.category)
image.push (this.childNodes[i].attributes.picture)
list.sortItemsBy ("label", asc)
}
}
};

list.setSelectedIndex(0);

//If the Scrollbar Changes
function Change (c){
//Set all the textfields
textbox = c.getSelectedItem().label;
scroller.text = details[c.getSelectedItem().data];
link = "<a href='"+ web[c.getSelectedItem().data] +"'>" + web[c.getSelectedItem().data] + "</a>";
categories = cat[c.getSelectedItem().data];
}


Thank you for any help that you can give me!

Loading External Swf Prob.
i'm working in falshmx 2004 and getting problem in loading external swf (loaded.swf) file into container (movie clip)
below is attachment of the file...plz help if u can. i need it (proper actionscript code) to complete my project.
thanks!

below is the attachment of my files.

Prob In Loading External .swf
hey all,

thnx 4 checking my post...

I need to load an external .swf to my first frame of my existing main .fla file....The prob i face is ..i am able to load that .swf file but its keeps on looping ( as that .swf has a looping scripting )....i even tried stop(); on the frame script.... still not working .. As soon as the loaded .swf finishes it should move to the second frame of my main .fla file..... can any one help me ....please ... i here by attach the .fla file(zipped) of the swf file which needs to be loaded to the main .fla's first frame....

thank you in advance

Loading Text Prob.
Ello...

I've created a flash with kirupa's Sliding Menu tutorial...In one of the content, it supposed to load an external movie clip that will load external text with image & css-formatted as in Flash 8 sample (TextExhancements).

All content loaded properly when the external mc tested alone...
h'ever the text can't be seen when the mc incorporated with the sliding menu...only image and scrollbar (for the text) are loaded.

I've check the colour used & its ok

Any help ?
Thanks in advance

Prob Loading Arrays From XML
I have come across an odd problem. I am making a large scale database (if you can call it that...) by loading information from an XML file into flash. I am using arrays to store the different data and a listbox to select which item that a person may wish to view. Unfortunately the first item that I load will load the name but will not load in data into the arrays... I was wondering what the problem may be?

Heres the code!

//Load xml
var Progs = new XML();
Progs.ignoreWhite = true;
Progs.load("Programs.xml");
//Declare the arrays to hold data
var details = [na]
var web = [na]
var name = [na]
var cat = [na]
var image = [na]

//if load works
Progs.onLoad = function(success) {
if (success) {
//repeat as many times as there are nodes in xml
for (i=0; i<Progs.childNodes.length; i++)
{

//add item to list and add parts to arrays
list.addItem (this.childNodes[i].attributes.name, i);
details.push (this.childNodes[i].attributes.description)
web.push (this.childNodes[i].attributes.web)
cat.push (this.childNodes[i].attributes.category)
image.push (this.childNodes[i].attributes.picture)
list.sortItemsBy ("label", asc)
}
}
};

list.setSelectedIndex(0);

//If the Scrollbar Changes
function Change (c){
//Set all the textfields
textbox = c.getSelectedItem().label;
scroller.text = details[c.getSelectedItem().data];
link = "<a href='"+ web[c.getSelectedItem().data] +"'>" + web[c.getSelectedItem().data] + "</a>";
categories = cat[c.getSelectedItem().data];
}


Thank you for any help that you can give me!

Loading External Swf Prob On Mac
I hope someone else here can help...I am loading an swf into level1 using getBytesLoaded() etc. it works great when I test the page on a pc using IE but stalls on the mac running IE.

anyone else get this?

R

Loading Text File Prob
Urrmmm.. i can't seems to load in an external text file from another directory.

My movies need to load a text file. Initially the text file and .swf are in the same directory and it works fine.

Then i shifted the text file into a new directory. the swf don't load the text file anymore even after changing the loadVariable to include the directory path.

Any idea anyone?

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

External Swf Loading Prob.....nothing Loads HELP PLZ
(THIS IS NOT A DOUBLE POST!)I had some problems posting before, i dont know why this wont upload the file...Ok Ive done all i could and im relying on somebody here to find the solution... There is a button on the top that says "contact" and has the action: on(release){loadMovie("contact.swf","mc_contact"); }
But when i publish it in html and i preview it, it does NOTHING....Please help

[F8] Going Insane /// Loading External Swf Prob.
Hey guys, i am working on a gallery and when i load an swf from a thumb into an empty movieclip, it acts wierd. take a look here:

http://linodesigns.com/test/print.html

only the first 3 thumbs are working right now, click on the second thumb (loads the problem swf). when u click it once it plays like its supposed to, but click on it 2,3, or more consecutively and it seems like it loads over itself.

I've tried the unload method, doesnt work. I dont think i need to use it because its being loading into an empty movie clip so it replaces the previous.

heres the code for the thumbnail:

on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {


this._parent._parent.images_mc.loadMovie("works/workJpegs/print02.swf");
this._parent._parent.images_mc._alpha = 0;
}

[F8] Going Insane /// Loading External Swf Prob.
Hey guys, i am working on a gallery and when i load an swf from a thumb into an empty movieclip, it acts wierd. take a look here:

http://linodesigns.com/test/print.html

only the first 3 thumbs are working right now, click on the second thumb (loads the problem swf). when u click it once it plays like its supposed to, but click on it 2,3, or more consecutively and it seems like it loads over itself.

I've tried the unload method, doesnt work. I dont think i need to use it because its being loading into an empty movie clip so it replaces the previous.

heres the code for the thumbnail:

on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {


this._parent._parent.images_mc.loadMovie("works/workJpegs/print02.swf");
this._parent._parent.images_mc._alpha = 0;
}

Loading Unloading Swfs Prob/s
hi, i've been checking out loading/unloading external swfs tutorials and so far, i haven't found one that works (or i haven't found one i understood....newbie, by the way).

here's the prob: i have a main.swf and when i click a button, i can load a mangallery.swf on a target/empty MC on it....

the maingallery.swf has another target/MC on it, which loads either a gallery1.swf and a gallery2.swf when a button is clicked on the maingallery.swf

the gallery.swf ALONE works, but when it's loaded on the main.swf.... the gallery1.swf and gallery2.swf don't load.

maingallery.swf , gallery1.swf and gallery2.swf all work when played on seperate players, but don't work when used together...

i read somewhere about levels...anyone want to explain, please?

another problem is.....

maingallery.swf loads gallery1.swf and gallery2.swf.....but doesn't unload them. so, if i click gallery1.swf first....then gallery.swf i can still see gallery1.swf under gallery2.swf

help, please?

Prob Loading Array In A Movieclip
i creat a loop that generate MCs (MC1, MC2, MC3,...) in that movie i fill the textfield call curso whit _root.catalog["object" + i][2]; where i=1. This MC1 on release open a movieclip call "readmore", that have five text fields to fill : curso, titulo, data...

i try doing the same readmore.curta.text = _root.catalog["object" + i][2];
readmore.titulo.text = _root.catalog["object" + i][3];
readmore.data.text = _root.catalog["object" + i][4];

But i cant call catalog.object1 in readmore movie clip(1 because is MC1, i need to do the same do MC2, MC3...)

I creat the array and the loop in root timeline.

------------------------------------
catalog = new LoadVars();
// Load the vars from the external Php file
catalog.load("http://localhost/teste/Select.php");
catalog.onLoad = function(success) {
_root.object1 = catalog.getBytesTotal();
for (this.a=1; this.a<=5; this.a++) {
// Create an array (ObjectN) for each object in the catalog
catalog["object"+this.a] = catalog["noticias"+(this.a)].split("|");
selected = 1;
//test var that i will need late to run the vector
delete (this["noticias"+this.a]);
}
///tryng repeat the movie clip that need to receved the var from catalog.object
for (var i = 1; i<=3; i++) {

//RFCCLIP barn help - thanks

rfcClip = mc.duplicateMovieClip("mc"+i, i, {_x:0, _y:67*i});
rfcClip.curta.text = _root.catalog["object"+i][2];
rfcClip.data.text = _root.catalog["object"+i][1];
rfcClip.titulo.text = _root.catalog["object"+i][0];
x=i;

}
};
-------------------------


i cant get comunication. I think to creat agaun the same array inside the movie readmore but i dont now if he is call by mc1 our the others MC (like MC2 MC3,etc...). how i can tell to the new "READMORE".

if i can do name=["mc"+i] can i do the oppose it and creat a var whit the value of i?.

By action script can i know the name of a movieclip ?

and sorry my bad english

Loading Windows From Flash Prob
HI

I'm trying to load a pop up window from Flash using:

this call from the Flash movie

getURL("javascriptpenNewWindow('myurl.html','thewin','toolbar=no,location=no ,scrolling=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes ,width=400,height=250,top=20,left=20')");

together with this in the page that embeds the movie:

<script language="JavaScript">
function openNewWindow(URLtoOpen, thewin, windowFeatures)
{
newWindow=window.open(URLtoOpen, thewin, windowFeatures);
}
</script>

This works fine but I have other pages that I want to call from the Flash movie and load into the same window. What I find though is that the popup loses focus and dissappears behind the original window when called for the second time.

Is there any way of ensuring that every time it's called it focuses in front of everything. Unfortunately I can't use "onLoad=self.focus()" in the destination file because I can't amend the files in question. Is there a solution that would work with existing code I have?

Thanks for any ideas!!

Urgent Prob Variables Not Loading
my variables loaded fine (from a webpage on a server) when I tested the movie (pressing ctrl+enter) in Flash. But when I test the movie in windows by double clicking the swf the variables aren't loading!

major problem as I have a deadline tomorrow. pls help

Loading Vars Then Checking Them Prob
okie dokie, first problem. im loading a variable from an asp file. "total" . no problem. now i want to save that variable incase it changes, so i say myTotal = total . simple enough. well IT DONT FREAKIN WORK!

i've tried set(myTotal, total)

set(myTotal, eval(total))

BTW there are two dynamic textfields on the stage with the same variable names.
so i tried

myTotal.text = total.text

all of the above generate absolute NOTHING for myTotal.


so i thought, hmmmm ill load the variable twice as two different variable names : total & total2. cool that works.

now
if total != total2 {
do stuff here
}


ok, i have dynamic text boxes with the var names total & total2 so when the data changes i can EASILY see that total2 and total are NOT FREAKIN EQUAL, however the script 'do stuff here' NEVER EXECUTES. EVER!

help me before i put my face through my monitor.

Loading External .txt File Prob
My coworker came up to me this morning and said "on our website...the text shows up on my computer but not Jane's?" I asked another co-worker who worked on the site and he said it was a browser issue..

Heres the deal, it doesnt show up on IE 5.0..the only thing displayed is <P ALIGN=left> which is strange cuz that tag isnt even in the .txt file! The only html tag thats in the .txt file is a <FONT> tag...

But sure enough when he updated the browser to IE 5.1 it showed up.

Is this really a browser problem or a Flash issue?

Instance Names...changing...or Addressing Txt Field Instance Based On Instance Of Mc
i'm creating a mail form, that has a text effect which displays the type of info to be entered in each input box. To create this effect, i had to assign the variable name txt to the input boxes as well as the instance name txtBox. each of these text fields is contained within a movieclip, each with a unique instance name. what i need to do, is somehow assign a value/variable to each text field to pass to PHP to generate an email. I have always used components for contact forms so i'm not sure how to make the switch, AND.. the script i use for my contact form is an EXTERNAL AS file. (i use a customized version of a contact form from www.actionscript-toolbox.com [which apparently is no longer Flash related site])

ok.. this is hard to explain..... so bear with me....
If my original mail form component instance names were: tiName, tiEmail, tiSubject and taMsg (ti for textInput and ta for textArea)
and my current instance names for the mc's which CONTAIN the input boxes (with txtBox textfield instance inside them) are: name_txt, email_txt, subject_txt & comments_txt...

how would i pass/convert the users input text in each movieclip's txtBox, into the original instance name for my mail form so i can continue to use the form/PHP i have been using??

OR....

how do i take the values input by the user in each txtBox (i.e name_txt.txtBox.insertedTextFromUser or name_txt.txt, email_txt.txtBox.insertedTextFromUser or email_txt.txt) and send them to a new PHP script to send mail??

please keep in mind i am PHP retarded... hence why i re-use the same form over and over..

thanks in advance for any help. it's greatly appreciated...

if you're confused about my problem, please let me know... i'm having a difficult time explaining....

Loading Dynamic Text Font Prob.
When I load a text file into a dynamic text field I always get a default font even after I change the font type in the properties window.
Is it possible to asign a font to a dynamic text field???

Using Flash MX running on a MAC trying to use Futura in loaded text field.

H E L P PLEASE!
thanks

Loading Dynamic Text Font Prob.
When I load a text file into a dynamic text field I always get a default font even after I change the font type in the properties window.
Is it possible to asign a font to a dynamic text field???

Using Flash MX running on a MAC trying to use Futura in loaded text field.

H E L P PLEASE!
thanks

MX Loading External Text Scroll Bar Prob
I am loading external html into a text box that has a scrollBar component attached to it. When the user changes pages it loads new text into the text box. However if they had scrolled down on the previous page the scrollbar remembers its previous position. Is there anyway to get it to default to the top of the text?

Starnge Prob Loading Vars With Html <p>***</p>
Hello, i have a strange prob. I am loading some vars to Flash and i notice that when i have a field with <p>****</p> (html break) the vars do not load.

I am putting the vars in an Array. Without the <p> my array traces fine: ******,*****,*****, etc etc. but if i put the <p> in the text of a field at my DB my Array will trace: ,,,,,*****,*****,**** (not tracing that field)

Those first "," ? where do they came from?

Why is this?

Many thks,
Mário

Prob Loading External Swf In Main Stage
I'm using CS3 and AS2. I never had this problem with flash 8, so I'm not sure if I'm overlooking something new in CS3. anyway, I have my main movie, and I have an empty vid clip that I use to load external swf files into when a user clicks on a button or something. sounds pretty simple, but for some odd reason my external swf doesn't load completely. I have text and an image, both as graphic symbols, and only the text will load. as well, strangely enough I have another flash movie that loads an external swf, but in this case the it will only load the graphic and not the text. I can't imagine what is causing this. I hope someone has come across this before and knows what i'm doing wrong. if necessary I will post my fla file, but lets see if we can solve this without doing so. thanks!









Attach Code

on (release) {
_root.content.loadMovie("content/home.swf");
}

Prob Loading External Swfs Into Multiple Placeholders
Hi, can you help? I'm making a website in flash where I have my main hompeage movie on level0 and the other links as external swfs inside the main homepage swf inside placeholders where external swfs are smaller than the main homepage thus you can still see the nav and logo

I've tried loading the movie into a placeholder empty movieclip which seemed to work on the surface but trying to go between the links repeatedly to check usability, to begin with they loaded the correct swf and in the right place, but after a few more goes between pages they just started to not appear and they couldn't cope so I applied some ginga logic

I decided to make more layers and put an empty mc in each an loaded each swf into itwith this code

_root.placeholderA.LoadMovieNum("clients.swf",1);

each on a separate level other than 0

with an instance name especially for that swf and six seperate empty movieclips to put my swfs into so they couldn't all be loading into the same one cos I thought it could be the prob, they are all seperate and on different layers but I can't seem to get anywhere, the links don't work at all, all I get is the homepage!!

Does anyone know why and how to fix it? please!!!

Help!

Prob Loading External Swf In Main Stage. Bugs?
here is the zip with all the files needed: url removed. solved :P

I'm using CS3 and AS2. I never had this problem with flash 8, so I'm not sure if I'm overlooking something new in CS3. anyway, I have my main movie, and I have an empty vid clip that I use to load external swf files into when a user clicks on a button or something. sounds pretty simple, but for some odd reason my external swf doesn't load completely. I have text and an image, both as graphic symbols, and only the text will load. I can't imagine what is causing this. I hope someone has come across this before and knows what i'm doing wrong. I have a feeling this is a bug in CS3, because I find it has trouble loading images that are inside an external swf, despite that swf file if opened alone, will show the images and text.

For Loop Prob - Loading And Fading External Images
I am trying to get a bunch of external jpgs to fade out one by one using the following code. Unfortunately, I simply can't get my head around where I am going wrong. I can either get the last (ie top) image to fade or all of them at once. I can't figure out how to address them one by one.


If anyone has any suggestions I'd appreciate it. Thanks, code is pasted below.


ActionScript Code:
var maxPics = 9;
loadEmUp();
function loadEmUp(){
for(i=1; i<=maxPics; i++){
newPic = _root.createEmptyMovieClip("m"+i, 10+i);
trace(newPic);
thePic = newPic.loadMovie('images/img'+i+'.jpg');
newPic.ivar=i;
trace(this.newPic.ivar);
fadeAway(this.newPic);
}
}

function fadeAway(thisOne){

onEnterFrame = function(){
if(thisOne._alpha > 0){
thisOne._alpha -=5;
}

}
}

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!!!

How? Loading Seperate Music Player .swf Into Main Site Prob.
hey all!

Ok something that I still don't really understand, have tried to modify afew flas but with no luck.
Anyhow to the point. I have a main fla file with all my content in it and a litlte music player that plays 3 to 4 external swfs with music &animated LEDs in it. Anyways right now the music player itself is built into my main fla file. I would like to move the player a little bit so its coordinates change.However obviously when i do this and test movie the external music swfs that load have little LED moving animations and the 2 files just dont match up, so they load into the wrong area. I also tried to move the LED elements exactly the same amount as i did with changes in the main fla in moving the music player graphics but still not working. Do you think these files are working with "tell targetting" or? Im sorry im awful with code so..

Any good and simple tutorials for a numb nut like me would be appreciated on this topic so i can understand whats really going on here. Normal logic doesnt seem to be getting me all that far.

Tks!

Img Ratings Site, Loader Component Not Loading All Imgs Cause Of Permissions Prob?
hi everyone, i'm new to this.

i've just started developing in flash, this is my first "big" (semi-complicated) site. it's a site for an art project, where there are a bunch of images of myself that visitors can rate. it uses php & mysql along with flash.

everything is working fine except the loader component. it was working fine at first. i don't know what's changed. but suddenly maybe half of the images aren't loading because there's an error:

Forbidden
You don't have permission to access /~ratherorangish/rateADan/resources/mainImages/danSmile3.jpg on this server.

(danSmile3.jpg being an image that has just failed to load.)

the site is at:
http://raptor.slc.edu/~ratherorangish/rateADan/

and you can download the .fla file at:
http://raptor.slc.edu/~ratherorangish/rateADan/source/

i tried to comment my code as much as possible. most of it is in frame 1 of the actions layer.
if anyone could help me, i'd be extremely extremely appreciative.
thanks so much,
-- dan [ratherorangish]

Img Ratings Site, Loader Component Not Loading All Imgs Cause Of Permissions Prob?
hi everyone, i'm new to this.

i've just started developing in flash, this is my first "big" (semi-complicated) site. it's a site for an art project, where there are a bunch of images of myself that visitors can rate. it uses php & mysql along with flash.

everything is working fine except the loader component. it was working fine at first. i don't know what's changed. but suddenly maybe half of the images aren't loading because there's an error (i noticed this from safari's activity monitor):

Forbidden
You don't have permission to access /~ratherorangish/rateADan/resources/mainImages/danSmile3.jpg on this server.

(danSmile3.jpg being an image that has just failed to load.)

the site is at:
http://raptor.slc.edu/~ratherorangish/rateADan/

and you can download the .fla file at:
http://raptor.slc.edu/~ratherorangish/rateADan/source/

i tried to comment my code as much as possible. most of it is in frame 1 of the actions layer.
if anyone could help me, i'd be extremely extremely appreciative.
thanks so much,
-- dan [ratherorangish]

Instance Loading...
Is there a way you can load instnaces form the library? To explain further: Currently I have to place the laser instance in my movie(hidden) so I can use it when the ship fires. Problem is with everything I have in the game (enemies, obstacles) I have about 15 objects placed around the outside of the movie (all hidden) so they are loaded when it starts. This doesn't seem very practical or effecient to me. Is there a way I can just load insatnces when I need them instead of always having them hidden within the movie? A frame at the beginning with all the elements on it maybe? Any thoughts?

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