Externally Loaded Html In A Textbox
Yeah, another html-in-flash problem
I'm loading variables [containing html] from a php-file into my flash-movie...this is the script:
Code: theData = new LoadVars(); theData.load("http://www.somedomain.com/getdata.php"); theData.onLoad = function(succes){ if (succes){ textbox.htmlText = this.news0; } } Everything's fine , but here's the problem, when I enable the 'render as html'-button in the textbox its properties-inspector then the text isn't displayed inside of the textbox anymore
I'd be gratefull for anyone helping...
- Ruben
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 06-10-2004, 11:40 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
HTML And Externally Loaded Swfs
I have a Flash movie where I'm loading in external swfs. When I preview in Flash, it works fine. When I publish in HTML (from Flash), it works fine. When I try to embed my Flash movie into a different HTML page using Dreamweaver, the external files don't load. I've done this a hundred times in the past, but I'm having this problem with a few different Flash Movies -- Only the ones that load external content -- any ideas??
Using HTML Tags In Externally Loaded .txt File
Hey there,
This is an amazing site! I just registered so I could post my first question...
I am working in Flash MX2004 on a Mac running OS 10.3.9:
So I am loading an external .txt file into a Scrollable Dynamic Text Field, but I would like to include some HTML formatted text in the .txt file (for example, links, font colors, etc.).
I tried selecting the "Render text as HTML" button in the property manager in my main file, but this doesn't seem to be working. When the text file loads, I can see all the HTML code and no formatting is taking place.
Can anyone help a newbie Flash programmer?? I would very much appreciate it.
Thanks!!!
-Dig
Externally Loaded Dynamic Text Does Not Show In Html...
Hi. I'm new to this so don't be surprised if this is a stupid mistake. I went through a tutorial here called "Tutorial 34 - scrolling a text box II", in which text is read from a txt file into a dynamic text field. Everything worked fine.
The problem arises when I put the scroll box into a movie I was working on. It previews fine. It plays fine when uploaded (www.mysite.com/flash.swf). However when embedded into an HTML doc the movie doesn't show any text (www.mysite.com/flash.htm).
I wish I could discuss the code with you guys, but I have no script skills and pretty much copy-pasted the code. I have attached the files in the hope that someone will be able to look at them and tell me where I went wrong. Any help is most appreciated.
Having Problems With Externally Loaded Swfs When In HTML [renamed]
alright.
i've got a flash site that uses externally loaded .swfs to change the pages
(i.e. news.swf, shows.swf, merch.swf - that are loaded in when you press the corresponding button)
when i open the main .swf that the external .swf's are loaded into the site - it opens, animates and runs perfectly.
when i put the .swf into a HTML page (using Dreamweaver) the external movies stop loading at all.. when a button is clicked or when AS tells it to load a movie.
WHY IS THIS HAPPENING?
furthermore, there is an eCard that is used for the splash page. it's been done for weeks and has been online with people viewing it. it works perfectly where it's been online for the past few weeks AND works fine on my computer.
however NOW that i'm putting it into another HTML page to use it for a different splash page it's not loading external .swf files either!!! nothing was changed about the eCard, it's been done for weeks!!!!!
WHY IS THIS HAPPENING?
this is all completely new and out of left field. i've built SEVERAL flash sites using the exact same configuration and Dreamweaver.. and they've all been totally fine.
WHY IS THIS HAPPENING?
thanks,
mikey
Externally Loaded Text File With Html Tags
I was having a good amount of trouble getting externally loaded text (txt) to display properly when I used HTML tags (bold, italic, etc.), regardless of what other solutions I used in this forum. So when I found this information, I thought it might be useful to others searching the forum.
Problem:
HTML enabled text fields fail to display formatted text.
Reason:
When embedding a font, Flash does not include the entire font family automatically. Only the plain font is embedded without the bold and italic variants. Because of this, HTML formatting that uses bold or italic formatting may not display.
Solution:
If an HTML formatted text field uses a font that is not resident on the viewer's machine, then that font must be embedded in the SWF to properly display the text. If multiple styles of the font are used in the HTML formatting, then it's necessary to add a dynamic text field to "manage" the embedding of the entire font family. As long as the font is embedded in one text field, the rest of the movie can use it.
Is It Possible To Target An Externally Loaded Swf In An Html Text Field?
hi, ive loaded an external swf into an html text field. The swf itself contains an input field - designed so that the user's input is emailed on submission via a php script.
i havent been able to correctly target this swf, with the input being served up in the email as 'undefined'. I've a feeling this simply might not be possible, can anyone advise or shed any light?
Many thanks,
Pete
Special Character In Textfile Loaded Into HTML Dynamic Textbox
I have a textfile I am loading into a dynamic textbox. The textbox is set to render text as html.
all works fine except I can not get this character è to appear.
I have added it to the embed characters dialog box by pasting from notepad, I have also tried embedding the whole font.
I tried putting an Ascii code in my textfile /u00E8, it just shows the code.
I know I use %26 in my textfiles to represent the & symbol all the time
what sort of code is %26, is there one for è ?
how can I get this character to display?
By the way when I look at the character map for my font in windows the è is there.
thanks
mark
_root.main_mc.content_mc Is Diplayed Before Html Loaded In Textbox Plz Help
i got a html file which is loaded into dynamic textbox which instance name and var name is content_mc
everything is fine but before loading the html content the textbox display a text like _root.main_mc.content_mc and then it is loading.
i want that error should be removed.
i did some stuff like onEnterfame it's visible=false. onLoaded of html it's visible=true.
but no use in doing can any one say how to avoid that plzzzzzzzzzz
Buttons To Increase Or Decrease Font Size In Externally Loaded HTML Formatted TXT.
My MX movie loads external HTML formatted text from a var.txt file using loadvars().
Var.txt looks like this:
&varPresentation="'<'P ALIGN="LEFT"'>''<'FONT FACE="Verdana" size="11" color="#000000"'>''<'B'>'This is the text for the 'Presentation' window.'<'/B'>''<'/FONT'>''<'/P'>'"
txtbox.MC has this code added to it´s only instance:
Code:
onClipEvent (load){
TheText = _level0.txtLoader.varPresentation;
InstanceName_0.html = true;
InstanceName_0.htmlText=this.TheText;
}
It works fine, now i´m just trying to make a '+' button and a '-' button to dinamically increase or decrease font size in txtbox.MC.
The txt field is named InstanceName_0 so i created a '+' button and added a instance of it to txtbox.MC with this code:
Code:
on (release) {
this.InstanceName_0.htmlText.SIZE++;
}
And it does not work.
Any ideas?
[Edited by Effenberg0x0 on 07-19-2002 at 04:38 PM]
Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear
my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;
event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;
event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};
any help would be much appreciated
Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear
my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;
event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;
event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};
any help would be much appreciated
Externally Loading Swf Inside An Externally Loaded Swf
Hey,
So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.
Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!
How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work
Thanks alot.
Externally Loading Swf Inside An Externally Loaded Swf
Hey,
So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.
Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!
How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work
Thanks alot.
Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM
1. I have my navigation buttons in level0
2. When a button is pressed it loads an external .swf into the highest empty level
3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.
4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.
The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.
It works fine if you test it on its own. But not when loaded into a Movie Clip.
MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);
Do I have to refrence it differently? Because of where it is situated?
e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();
confesed!
Dynamic HTML Textbox Won't Display Flash Generated HTML?
I'll TRY to keep this simple... Keep in mind that the Hand Coded HTML works. It's the HTML that Flash writes that doesn't....
How I create the file:
------------------------
1st, I created a movie in Flash that has a HTML formated input box. So when I type things into that field, Flash automatically generates the HTML into the variable for the input box.
Next, I take that variable and display the HTML code in a dynamic text field. Then I copy and paste it into a text file, assign it a variable (myText=....), then I save it to my harddrive.
Got me so far?
The Problem
-------------------------
I have another movie that is just supposed to load the txt file and display the code in an Dynamic HTML text field. However... Flash can't seem to read the HTML that it creates? But it can read the HTML that I simplify and hand write. Does anyone know what I can do to use the Flash generated HTML?
Here is the code in the movie
----------------------------------------------
Code:
loadVarsText = new loadVars();
// load the text file
loadVarsText.load("scroller.txt");
// function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
// activate html
scroller.html = true;
// myText is var to put in the textfile
scroller.htmlText = this.myText;
} else {
trace("not loaded, try again!");
}
};
Below is what i'm loading into my movie. It's the HTML that Flash Generates from the input box, and below that is the HTML that I hand coded. HOWEVER I CAN'T GET THIS TO DISPLAY THE HTML CODE
FLASH CODE
-----------------------------
myText=<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000">* A hospital-acquired infection caused by methicillin-resistant Staphylococcus aureus or vancomycin-resistant Enterococcus can double the time a patient stays in the hospital</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000">* Infections in burn wounds account for 3 to 7of all infections in patients with burns, occurring most frequently in children, followed by the elderly</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000">* An analysis of post-surgical wound infections following head and neck surgery demonstrated an increase in the average hospitalization period from 14 days when wounds healed without complication, to 24 days when the wounds became infected.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000">* In a survey of 96 English hospitals, surgical site infections led to an additional hospital stay of 6.5 days, and the hospital costs were doubled.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000">* About 59of diabetic lower extremity amputations are proceeded by an infected foot ulcer; among people with diabetes (150 million globally), 15will experience a foot ulcer in their lifetime</FONT></P></TEXTFORMAT>
MY CODE
----------------------------------------------
myText=* A hospital-acquired infection caused by methicillin-resistant Staphylococcus aureus or vancomycin-resistant Enterococcus can double the time a patient stays in the hospital<br><br>* Infections in burn wounds account for 3 to 7% of all infections in patients with burns, occurring most frequently in children, followed by the elderly<br><br>* An analysis of post-surgical wound infections following head and neck surgery demonstrated an increase in the average hospitalization period from 14 days when wounds healed without complication, to 24 days when the wounds became infected.<br><br>* In a survey of 96 English hospitals, surgical site infections led to an additional hospital stay of 6.5 days, and the hospital costs were doubled.<br><br>* About 59% of diabetic lower extremity amputations are proceeded by an infected foot ulcer; among people with diabetes (150 million globally), 15% will experience a foot ulcer in their lifetime
Thanks in advance for any help you can give
Frequent-C
http://www.Freq-Fest.com
[Edited by Frequentc on 06-10-2002 at 05:06 PM]
Looping A Loaded An Externally Loaded Mp3
I was trying to loop an externally loaded mp3 and suceeded on my machine, but when I upload the swf and mp3, the function will not work in my browser (IE). I tried a relative path, as well as the absolute URL and neither worked. Here is the code I used to loop the externally loaded mp3:
loopSound = function () {
my_sound.loadSound("whisper.mp3", true);
};
my_sound = new Sound();
my_sound.loadSound("whisper.mp3", true);
my_sound.onSoundComplete = loopSound;
my_sound.setVolume(45);
Any help would be most appreciated, I have wasted a lot of time on this already.
Externally Loaded Swf Does Not Stay Loaded
Hello,
I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.
Any input onto why this would happen would be greatly appreciated.
I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.
EDIT
- I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?
Pop Up From Externally Loaded Swf
I have the main index .swf and inside that .swf I have another externally loaded .swf. In that swf though I have a link to a 3rd party website that I need to load in a new window. The standard code that i have been using is:
btn_Up.onRelease = function() {
getURL("javascript:Launch('http://www.somewepsite.com, 600,600)");
};
Where btn_Up is the button. But for some reason because the swf is embedded into another swf it doesnt work. Please help!
Externally Loaded FLV
In my SWF fie, I have an externally loaded FLV file.
I now want to add another FLV that will load and play automatically when the first one is finished.
I actually want the SWF to jump to a new scene when the first movie is done.
How can I do that/ what the actionscript?
Steven
Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.
Externally Loaded Swf
Hello all,
I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:
_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();
How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.
Ryan
HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum("<A href="http://www.geocities.com/krizinxgren/7UP.swf",0">http://www.geocities.com/krizinxgren/7UP.swf",0); please ignore the geocities address OK the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody
thanks all
K
HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum(http://www.geocities.com/krizinxgren/7UP.swf,0); please ignore the geocities address, the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody
thanks all
K
Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.
Externally Loaded Swf
Hello all,
I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:
_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();
How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.
Ryan
Externally Loaded Swf
This is probably covered somewhere, but I am loading an external .swf into my main movie and i am just wondering if the actionscript works in the external swf. I see what i am assuming are pages with an external load and most have a preloader. How does this work.
Using PHP In An Externally Loaded SWF
:?
I've constructed a site in Flash, using an external loader. The tutorials on this site are great, thanks. I've made a contact page that uses php script, which has full functionality when previewed OR viewed as an independent HTMP page. However, when I submit contact info from the live site, I never receive any email. Can anyone tell me why this is??
I've tried everything I can think of, and have allowed every file in site folder access through the Flash Player Control Panel. I followed Lee's tutorials for both external loaders and the php contact page extactly.
Thanks in advance for any help!
http://www.simplypilatesnashville.com
//targeting.from.externally.loaded .swf >[.x.]<
I have a movie called --frame.swf
in it i have a mc that loads external .swf's into it. called holder mc instance name "holder"
--
a button on the _root timeline of frame.swf tells the movie clip to play the timeline of the ext .swf after it has been rested on a stop action
--
on the end of the time line of the ext loaded .swf there is a line of code that basically asks if the variable
profile = 1 if it does it says load profile.swf into the mc called "holder" of the movie frame .swf
---
now heres where I have a peoblem how do i target the main timeline of frame to target the mc w/ the instance name of holder?
i tried
if (portfolio=1) {
_root.holder.loadMovie("portfolio.swf", "holder");
} else if (vision = 1) {
_root.holder.loadMovie("vision.swf", "holder");
}
if you can be of any help ...thanx!
GetBytesLoaded On An Externally Loaded .swf
I can't seem to get the bytes loaded of an external .swf which is being loaded into a movie clip instance.
I have the target, _root.holderMC1.holderMC2 and place the external .swf into holderMC2 via
_root.holderMC1.holderMC2.loadMovie("http://url.com/some.swf", some_level);
I then do
if (_root.holderMC1.holderMC2.getBytesLoaded()==_root .holderMC1.holderMC2.getBytesTotal()){
gotoAndStop("remove_cover");
}else{
//loop
}
However, when the timeline gets to 'remove_cover', the items aren't loaded. They come in quickly, but they're clearly not fully loaded.
I think getBytesLoaded is measuring whether holderMC2 is loaded (it's only about 4 bytes) and moves on when it detects that it has. However, the actual external .swf has not loaded fully.
I've done some testing, trying to use the actual name of the .swf being loaded (eg. ...holderMC2.somename.swf), but it comes up zero as do a few other combinations.
Anyway, that's what I think the problem is, maybe it isn't, but how do I get the bytes loaded of an external swf being loaded into a movie clip instance? Does the level it's loaded make a difference if you're referring to it with _root?
How Do I Position A .swf Loaded Externally
Hi, I'm loading some external .swf movies into my main movie as menu items. It's all working great except that I can't seem to be able to position them without using an empty container. Is there any way of loadin an external .swf movie and giving it it's x y position without using containers?
Loader For Externally Loaded .jpg/.mp3
im loading .jpg and .mp3 files into a flash 'shell' movie.
they load into a movie clip called 'dropzone' and i was wondering if you can have a loader progress bar on .jpgs or .mp3s without them being in a .swf file.
Postioning Externally Loaded Mc's
Hi can anyone tell me how to position an exteranlly loaded swf.
I am using MX and the loadmovienum function what else do I add to position it where ever I want?
Controlling Loaded Swf's Externally
i posted this in scripting - backend, and didn't receive any replies. probably because it seemed to be the wrong forum. here it is again, verbatim. also, i'm using flash mx.
---
ok, this is the deal. i'm designing a site and basically what i want to happen is when a section is clicked, i want the previous section to animate out, and the other to animate in. also, i'm loading the sections into a movie clip, using loadmovie.
what i want to happen, ideally, is when a section is clicked, it changes the value of a variable, and then proceeds to play the swf that has been loaded into the movieclip. when it reaches the end of the timeline, i have an function checking the value of the variable (which is located in the main swf), and loading the appropriate swf file.
so, basically, what i'm having trouble with, is controlling the timeline of the loaded movie clip with a button located in a clip in the main swf. i was wondering if this is possible, and also if the function i created to check the value of the variable (for the sections) and also the variable can be passed into the loaded swf file also.
help would be very appreciated, and keep in mind, i'm fairly new to flash. thanks.
Controlling An Externally Loaded Swf
Can anyone help? I have a swf file that I have brought into my main movie using the loadMovie action (it is targeted to a blank movieClip called 'placeholder')
Does anyone know how I can control this loaded movie clip from a button on the main timeline?
When the button is pressed I want the loaded swf to begin playing at Frame X, and when it reaches frame Y, it tells the main movie to goto Scene2. (I think I know how to do the last bit! I'm just struggling with the first bit!!)
Any help/ideas would be much appreciated!!
Ta! :O)
How To Position Externally Loaded Swf?
I'm putting together a porfolio site of my video and DVD work, and since the images and video clips are pretty big, I am trying to load each one seperately with the loadMovie command.
The only way I can get the images to load in the appropriate place is by making the swf identical dimensions and adjusting the placement within it, so that when it loads into the main site, it is in the proper place.
My questions are: Does this make the exported swf bigger for each image? Is there a way to place it using actionscript so that I can make each image/video swf exaclty the dimansions of the pic/video?
My current script is:
on (press) {
loadMovieNum("IIT.swf",1);
}
Thanks,
Sara
Printing An Externally Loaded Swf.
I have an external swf that is loaded into the main movie. The swf contains a print button to print it's contents. Using this script:
PHP Code:
on (release) {
getURL("print:", "/loader.karta");
}
Where loader is the mc instance name that the swf is loaded into and karta is the instance name of the mc in the swf that i want to print.
When I try to print the dialog shows print all or print pages 1-15. What I want is for it to just make it possible to preint the specific mc...
THANKS!
Stopping An Externally Loaded MP3
Here is my code thus far.
on (rollover) {
myinstance = new Sound();
// load sound, set streaming to true:
myinstance.loadSound("my.mp3", true);
}
how do I make this stop on a rollout?
thanks
Sizing Externally Loaded Swf
(Flash MX)
Hi,
I have following script to load an external swf (or jpg) to the stage. I would like to size that swf ("themovie.swf") to 400 width, 300 height. I tried adding "_width=400, _height=300" after "_x=0, _y=0", but somehow it doesn't work. The swf is still wider than 400.
How can I size it how I want it to be? Thanx for your help!
PHP Code:
function load_jpg_or_swf(targetMC, jpgURL) {
targetMC.loadMovie(jpgURL);
attachMovie("loader", "loadMC", 1000);
loadMC.loadtarget = targetMC;
loadMC.onEnterFrame = is_loaded_results;
}
function is_loaded_results() {
LoadedBytes = this.loadtarget.getBytesLoaded();
TotalBytes = this.loadtarget.getBytesTotal();
Percent = LoadedBytes/TotalBytes*100;
Kb = Math.round(TotalBytes/1024);
if (Percent<9.5) {
this.displaypercentage = Math.round(Percent)+"% van "+kb+" Kb geladen";
} else {
this.displaypercentage = Math.round(Percent)+"% van "+kb+" Kb geladen";
}
if (LoadedBytes == TotalBytes && LoadedBytes>0) {
this.removeMovieClip();
}
}
this.createEmptyMovieClip("picture", 1);
yourJPGurl = "themovie.swf";
load_jpg_or_swf(picture, yourJPGurl, _x=0, _y=0);
stop();
Repositioning An Externally Loaded Swf
When I load an external swf file using the following code....
loadMovie(""blah.swf","_level2");
How do I then target that loaded movie so I can reposition it soemwhere else on the stage ? Does it have a reference name ?
Cheers
Thanks in advance
Remove An Externally Loaded Swf?
i am trying to remove an external swf from my main movie. it doesnt want to go away! does anyone know how to do this? i tried to use:
on (press) {
_root.contents.unloadMovie();
}
but it didnt work. it just made the move get stuck.
here is what it looks like now:
http://www.braddockdesign.com/kirupa...moveMovie.html
i am attaching the file here:
http://www.braddockdesign.com/kirupa...emoveMovie.zip
thanks for any help!
Duplicate Swf Loaded Externally
hello, i'm loading an external swf into mc, with metod:
loadMovie("example.swf", mc1.mc2);
how to copy this swf into another mc? ex. into mc3. I want it copied becouse i'm loading another swf file into mc2. i'dont want to use loadMovie one more time becouse it will be downloaded again,
Staus Bar For Externally Loaded MP3's
using MX 2004,
I'm loading some MP3's that are called from an xml file. Im wondering if there is a way I can show the status of songs loading because they take a good 10 - 15 seconds. Is there some code that I could plug in for this? I have looked at some tutorials and stuff, but didnt see any that fit what I need specifically.
Thanks
Using An Externally Loaded CSS File
I'm trying to use an external CSS file. It's loading fine, but the text shows no signs of being styled.
I read somewhere that if the text is loaded before the CSS file then the CSS file won't affect the text. Is that true? If so, how can I guarantee the CSS file will load before I load the text?
Externally Loaded SWF Not Centering
Hi all,
I'm having yet another problem with an externally loaded movie. The photo scroller movie shows up fine when you get to the Artwork section of my site but it doesn't appear centered like I want to. I tried moving the container clip in the FLA file and that worked out ok. I can see that the external movie is centered fine. However, when I view the updated movie on the internet, the external movie appears way off.
Help!!!!! This is making me mad.
How To Autosize A Externally Loaded Swf
How do you change the size of a externally loaded swf into a container movie clip?
What I have is a swf that i am loading into a container in anohter movie, however the loaded swf is larger than my container. I want to load this into the container but it remains the same as its original size
Is there a way to make it resize?
How To Get A Variable From An Externally Loaded Swf
Quick question guys -
I'm making an archive for a tri-weekly comic strip. I'm loading external swfs (the strips) into a main swf. It's all working pretty well, but I'm trying to get my next and previous comic buttons to work. To do this, I want to get the name of the strip swf and use it as a variable I can add or subtract 1 from so that the next strip loads appropriatly.
For example:
IN "1.swf":
ActionScript:
code: j = _root.loadStrip._url.substr(_url.lastIndexOf("/")+1).split(".")[0];
and in "Comic.swf":
ActionScript:
code: loadMovie("1.swf",_root.loadStrip);
trace(j);
"1.swf" loads fine into "Comic.swf", but the trace comes back as "undefined", telling me that the variable from "1.swf" is not loading into "Comic.swf" appropriately.
Any idea why?
Thanks guys!!!
Instance A Externally Loaded .SWF
I'm creating a site in which my menu items are loaded externally
using loadMovieNum.
Is there anyway I can give an external .swf an instance name
once it is loaded? I need to do this because when the external
.swf is loaded..........it shows up but I cant apply the function
???????.onRelease = function() {
if (nextMovie != "print.swf") {
nextMovie = "print.swf";
_level2.gotoAndPlay("outro");
}
};
??????? would normally be the instance
I tried this since it was loaded on level 3:
_level3.onRelease = function() {
if (nextMovie != "print.swf") {
nextMovie = "print.swf";
_level2.gotoAndPlay("outro");
}
};
Any help would be greatly appreciated and I will submit the
finished site to flashkit. Thanks.
-----joe
No Sound On Externally Loaded Swf
Hi can someone help.
I created the volume slider sound bar from Kirupa's tutorial, and i want it to load in my flash site.
so i created a container swf with instance "blankhost" and loaded my sound swf into the host clip.
But although the swf appears, it doesn't play any sound once i click it.
I'm really new to AS, so i have no idea what's going.
Can someone help please?
ok i think i have an idea why its not working now, but i dont know how to fix the problem.
the sound.swf dynamically loads the sound.mp3 file.
so if i externally load the sound.swf should that work, or would i have to also load the sound.mp3, even tho the sound.swf loads the sound?
|