Both main movie and external swf preloader - confusion!
Hi there!
I have a webite with my main movie (88kb) and an external swf
soundloop (1mb). I made a preloader, but it only loaded the main
movie, meaning that after the intro, the soundloop would not start.
I loaded the soundloop onto level 1, and then tried to make a
preloader with this code (I thoguht it worked but it really was a
total guess).
stop();
this.onEnterFrame = function() {
bl = _level1.getBytesLoaded()+this.getBytesLoaded();
bt = _level1.getBytesTotal()+this.getBytesTotal();
if (bt<=0) {
bt = 99;
bar.gotoAndStop(Math.floor((bl/bt)*100));
if ((bl == bt) && (bt>0)) {
delete this.onEnterFrame;
gotoAndPlay("Intro", 1);
Now when I test the movie, everything loads, but when the
soundloop is loaded after the intro, the preloader movie clip
appears and starts playing and repeating itself!
How on earth do I get rid of this?! You can see the problem
here:-
http://www.vanitee.co.uk/princess.swf
Thanks in advance
Please! Still in great need of help. Have tried all sorts
=(
Similar Messages
-
External swf. preloader blues
Hiya,
I've just finished a website which is nearly ready to go
live, all except the preloader. I need to have external swfs
preload before running, and after going through a few tutorials and
threads, I'm pretty sure that my website is constructed in such a
way as to make it difficult to impliment the tutorials into my
work.
I've attached 2 fla. files (the main parent and one of the
external files. ), and would be really greatful if someone could
take a look at them and let me know how I could create a preloader
for the exteranl files (in the attachement's case the
"visual.fla").
Thanks a million for your time.
...Probably obvious, but the visual.swf is launched when the
"visual" button is pressed on the main home.swf.
Cheers!
http://www.yousendit.com/transfer.php?action=download&ufid=B95706E71E2DB94E&rcpt=goodwalla [email protected]did you manage to do this?
If yes, then please let me know how you did it, cause I also
want this
10x -
Cannot install Yosemite. Keeps telling me that both my internal and external
drives are backing up with TIme Machine. Any suggestions?Is it actively backing up, or are you encountering a dialog stating that Yosemite cannot be installed because the disk is being used for Time Machine backups?
Read OS X: Cannot install on a volume used by Time Machine for backups
If for some reason you have a folder called Backups.backupdb at the root level of the hard disk on which you want to install Yosemite, move it to the Trash. -
I have lost all audio on both my internal and external speakers.
I have lost audio on both my internal and external speakers. I have checked the System Preferences when my external speakers are plugged in it is acknowledged. When using internal speakers they are also acknowledged. Sound volume on Preferences is on and fully high. The sound buttons on the keyboard do not work and the sound level is now locked in at full sound and cannot be adjusted using the keys. The System Preferences shows that Mute is now checked and I cannot uncheck it. What should I do to get my sound back both internally and externally?
Repair permissions & restart.
Check your settings in the Audio Midi app which is located in the Utilities folder.
http://support.apple.com/kb/TS1574 Troubleshooting issues with no audio from built-in speakers on Macs
Trick/Tip: Open up GarageBand if installed then, open a program (optional).
Quit out of the GarageBand app.
=====================
Repairing the mysteriously muted Mac
The background on the issue is that there’s a small sensor switch inside the headphone port. When you insert a headphone jack, the sensor understands what's what and changes the sound output setting to Headphones. If you insert a jack for digital audio output, the device changes to Digital Out. When you remove the jack completely, it should read Internal Speakers.
The spirits tell me that there’s a very good chance that you recently had something jacked into this port—a set of headphones or a cable leading to powered speakers, for example. When you removed the jack, something in the port prevented the sensor from tripping correctly. That’s why you see Digital Out instead of internal Speakers.
The solution is to force the sensor to do its job. The safest way to do that is to simply run a jack in and out of the port a few times. Much of the time, this takes care of the problem by correctly tripping the sensor. If that doesn’t work, there may be gunk in the port. Before turning to more invasive techniques, get a can of compressed air, attach the small tube that fits the nozzle, and blast a few shots of air into the port. With any luck, that should dislodge the gunk and the port will operate as it should.
If that doesn’t work, find a foam-tipped swab that fits (electronics shops generally carry them), dip it in rubbing alcohol, and gently insert it into the headphone port in an attempt to wipe away any stubborn gunk. I recommend foam rather than cotton swabs because the cotton variety might leave threads behind. (This same technique works well with misbehaving headphone ports on devices such as iOS devices.)
It's possible that gunk has nothing to do with it. Rather, it may be that the switch just needs a subtle nudge. If a jack or swab doesn't work, I've heard of people successfully resetting it with a deft poke of a toothpick.
http://www.macworld.com/article/2031146/repairing-the-mysteriously-muted-mac.htm l -
i can't import any photos. 'Could not copy to requested location' is the given but i have tried importing to both hard drive and external drive. Help please ?
Most likely, the "requested location" where you are trying to copy files to does not have WRITE permission, and so you need to change the permissions.
-
Basic / Scheduling dates are calculated for both main orders and Collective
How the Basic / Scheduling dates are calculated for both main orders and Collective orders?
when in master data we have given different value of in house production time for both the orders.Hi,
The basic dates are calculated from the data mentioned in the Material Master - In-house production time days, either lot size dependent or lot size independent.
The scheduled dates are calculated from the timings maintained in the routing.
In the configuration for Scheduling parameters for the order type - Adjust scheduling - the dates can be adjusted.
Kindly revert back if you need any further clarifications.
Warm regards,
Umesh Poojari -
Audio sounds damaged. I have tried with both built in and external speakers.
Audio sounds damaged. I have tried with both built in and external speakers. I think its a problem with a driver or something.
Try a PRAM reset:
http://support.apple.com/kb/HT1379
Ciao. -
How can I install a trial version of cs6 on both main station and portable?
How can I install a trial version of cs6 on both main station and portable?
Run the installer on both computers? If this is not what you are looking for can you please provide a few more details regarding your inquiry?
-
Problem with volume handle and external SWF
Hello I'm having 2 problems.
The first is that when loading an external swf in my main SWF I get this in the output window:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::list_1/frame1()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at audio_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::MainTimeline/frame1()
But it still works. Its an mp3 player.
The other problem is that the loaded SWF has a volume controller. When I test the external SWF by itself it works fine. When I load it on my main SWF when I start to drag the handle on my volume slider and MOUSE_UP outside the handle it still keep dragging the handle.
The code of my main SWF is:
import caurina.transitions.*;
var _currentCategory:String = "";
var percent:String = "";
var loader = new Loader();
loader.name="videoLoader";
loadermc.visible=false;
cat.addEventListener(MouseEvent.MOUSE_OVER, onOverCat);
cat.addEventListener(MouseEvent.MOUSE_OUT, onOutCat);
cat.addEventListener(MouseEvent.CLICK, onClickCat);
btnback.addEventListener(MouseEvent.MOUSE_OVER, onOverCat);
btnback.addEventListener(MouseEvent.MOUSE_OUT, onOutCat);
btnback.addEventListener(MouseEvent.CLICK, onClickBack);
cat.buttonMode = true;
btnback.buttonMode = false;
btnback.visible = false;
function onOverCat(e:MouseEvent):void{
Tweener.addTween(e.target, {alpha:.5 , time:.5});
function onOutCat(e:MouseEvent):void{
Tweener.addTween(e.target, {alpha:.25 , time:.5});
function onClickBack(e:MouseEvent):void{
loader.unloadAndStop();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
lcontent.visible = false;
cat.visible = true;
Tweener.addTween(cat, {alpha:1, time:1});
btnback.buttonMode = false;
btnback.visible = false;
cat.buttonMode = true;
toptxt.text = "SELECCIONE UNA CATEGORIA"
function onClickCat(e:MouseEvent):void{
lcontent.visible=true;
cat.buttonMode = false;
Tweener.addTween(cat, {alpha:0, time:1, onComplete:function(){
cat.visible = false;
btnback.buttonMode = true;
btnback.visible = true;
loaderTweenIn(e.target.name);
function loaderTweenIn (c:String):void{
var category:String = c+".swf";
trace(category);
loader.load(new URLRequest(category));
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, movieLoaded);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, movieProgress);
function ioErrorHandler(e:IOErrorEvent):void{
trace("ioErrorHanlder: "+e);
function movieLoaded(e:Event):void{
trace("The movie has loaded");
lcontent.addChild(loader);
loadermc.visible=false;
function movieProgress(e:ProgressEvent):void{
loadermc.visible = true;
// percent=String(Math.floor(e.bytesLoaded / e.bytesTotal * 100)) + "%";
trace("The movie is loading "+Math.floor(e.bytesLoaded / e.bytesTotal * 100));
The code on my external SWF is:
import caurina.transitions.*;
volume_mc.slider_mc.buttonMode = true;
var myXML:XML;
var thb:Thbs;
var myThumbs:XMLList;
var totalThumbs:Number;
var thumbHeight:Number=50;
var i:uint = 0;
var preloader:LoaderAnim;
var yCounter:Number = 0;
var container:MovieClip;
var musicReq:URLRequest;
var music:Sound = new Sound();
var sc:SoundChannel;
var currentSound:Sound = music;
var pos:Number;
var songPlaying:Boolean = false;
var songlist:XMLList;
var currentIndex:Number = 0;
mc_sound.mute.visible=false;
var xmlLoader:URLLoader = new URLLoader();
///////////////////////////PLAYLIST//////////////////
function initMediaPlayer(e:Event):void{
myXML = new XML(xmlLoader.data);
myThumbs = myXML.*;
totalThumbs = myThumbs.length();
trace("The total thumbs are "+totalThumbs);
createContainer();
callThumbs();
xmlLoader.load(new URLRequest("audio.xml"));
function createContainer():void{
container = new MovieClip();
list.ch.addChild(container);
container.y = 0;
container.x = 0;
container.buttonMode = true;
function onOver(e:MouseEvent):void{
var t:Loader = Loader(e.target);
Tweener.addTween(t, {alpha:.5, time:1});
function onOut(e:MouseEvent):void{
var t:Loader = Loader(e.target);
Tweener.addTween(t, {alpha:1, time:1});
function callThumbs():void{
var thumbURL = myThumbs[i].@thumb;
var thumbTitle:String = myThumbs[i].@title;
var thumbDesc:String = myThumbs[i];
trace("Loading "+thumbURL);
trace("Title "+thumbTitle);
trace("Desc "+thumbDesc);
var thumbLoader = new Loader();
thumbLoader.load(new URLRequest(thumbURL));
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
thumbLoader.name=i;
thumbLoader.x=5;
thumbLoader.y=5;
thb = new Thbs();
container.addChild(thb);
thb.thb_title.htmlText = thumbTitle;
thb.thb_desc.autoSize = TextFieldAutoSize.LEFT;
thb.thb_desc.htmlText = thumbDesc;
thb.y = (thumbHeight+2)*yCounter;
preloader = new LoaderAnim();
preloader.x = thb.x + 20;
preloader.y = thb.y+ 20;
container.addChild(preloader);
yCounter++;
function thumbLoaded(e:Event):void{
var thbx:Loader = Loader(e.target.loader);
thb.addChild(thbx);
thbx.addEventListener(MouseEvent.MOUSE_OVER, onOver);
thbx.addEventListener(MouseEvent.MOUSE_OUT, onOut);
container.removeChild(preloader);
i++;
if (i<totalThumbs){
callThumbs();
if (i==totalThumbs){
startAudio();
xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
///////////////////////////////////////AUDIO//////////////////////////
function startAudio():void{
songlist = myXML.*;;//this is the same as myXML.*;
trace("This is the first song "+songlist[0].@song);
musicReq = new URLRequest(songlist[0].@song);
music.load(musicReq);
sc = music.play();
sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
next_btn.addEventListener(MouseEvent.CLICK, nextSong);
prev_btn.addEventListener(MouseEvent.CLICK, prevSong);
pause_btn.addEventListener(MouseEvent.CLICK,pauseSong);
stop_btn.addEventListener(MouseEvent.CLICK,stopSong);
function nextSong(e:Event):void
if (currentIndex < (songlist.length() - 1))
currentIndex++;
else
currentIndex = 0;
var nextReq:URLRequest = new URLRequest(songlist[currentIndex].@song);
var nextTitle:Sound = new Sound(nextReq);
sc.stop();
sc = nextTitle.play();
songPlaying = true;
currentSound = nextTitle;
sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
function prevSong(e:Event):void
if (currentIndex > 0)
currentIndex--;
else
currentIndex = songlist.length() - 1;
var nextReq:URLRequest = new URLRequest(songlist[currentIndex].@song);
var prevTitle:Sound = new Sound(nextReq);
sc.stop();
sc = prevTitle.play();
songPlaying = true;
currentSound = prevTitle;
sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
function pauseSong(e:Event):void
pos = sc.position;
sc.stop();
songPlaying = false;
play_btn.addEventListener(MouseEvent.CLICK,playSong);
function playSong(e:Event):void
if(songPlaying == false)
sc = currentSound.play(pos);
sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
songPlaying = true;
play_btn.removeEventListener(MouseEvent.CLICK,playSong);
function stopSong(e:Event):void
sc.stop();
pos = 0;
songPlaying = false;
play_btn.addEventListener(MouseEvent.CLICK,playSong);
///////////////////////////////VOLUME/////////////////////////////
var xOffset:Number;
var xMin:Number = 0;
var xMax:Number = volume_mc.track.width;
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_DOWN, sliderDown);
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
stage.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
function sliderDown(e:MouseEvent):void{
stage.addEventListener(MouseEvent.MOUSE_MOVE, sliderMove);
xOffset = mouseX - volume_mc.slider_mc.x;
function sliderUp(e:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, sliderMove);
function sliderMove(e:MouseEvent):void{
volume_mc.slider_mc.x = mouseX - xOffset;
if(volume_mc.slider_mc.x<=xMin){
volume_mc.slider_mc.x = xMin;
if(volume_mc.slider_mc.x>=xMax){
volume_mc.slider_mc.x = xMax;
var vol:Number = volume_mc.slider_mc.x*.01;
var st:SoundTransform = new SoundTransform(vol,0);
sc.soundTransform = st;
trace("The volume is "+vol);
if(vol==0){
mc_sound.mute.visible=true;
}else{
mc_sound.mute.visible=false;
e.updateAfterEvent();I found the solution.
-
Hi,
Does somebody knows what is happening?
I'm using the mcLoader class to load all my external swf
files, everything worket perfectly until I decided to use
flvPlayBack on one of those external files. If the player is on my
main stage it works great and if I run directly the loaded swf it
also works, but now when i run the external swf through the
mcLoader the player doesn't appears.
my mcLoader code:
var mcLoader01:MovieClipLoader = new MovieClipLoader();
mcLoader01.loadClip("clientes/targetTrade.swf",mcConatiner);
The flvPlayer should be on the second frame of this
targetTrade.swf ("click to watch the video")
thanks,
PeterHi,
You said swfs are Flash 8. Did you also set them to
Actionscript 2? If it's
Actionscript 3, that may be the problem. You may be
interested in looking at the
Flash Video templates I have at:
http://www.deansdirectortutorials.com/FlashVideo/
regards
Dean
Director Next Roadmap Survey
http://www.deansdirectortutorials.com/survey/DirectorRoadmap/
Director Lecturer / Consultant / Director Enthusiast
http://www.deansdirectortutorials.com/
http://www.multimediacreative.com.au
email: [email protected] -
Hello!
I have some problem with vars. The situation is the same I wrote here Re: External swf
I have public var (for example ZZZ) in code of MAIN.swf (main class is Main.as), and I want to access it from code of loaded EXTERNAL.swf.
But nothing helps, flash says:
there is no ZZZ in code of Main
there is no ZZZ on stage.root
there is no ZZZ in any parents.
But if a have ZZZ in code of EXTERNAL, and want to access it from MAIN, (the reverse situation), ZZZ is easily found.Worked that:
I should pass to EXTERNAL
this
as exact pass, and then
ExactPass.ZZZ
would be found
in External:
public var GAME_MAIN_CODE:*;
in Main:
EXTERNAL.GAME_MAIN_CODE = this;
Thank you for help! -
Pause Main Movie while external FLV is streamed
Hey i was wondering if it's possible to pause the main movie,
while - through the flv playback component - an external flv is
beeing streamed. once the flv-video has played through the main
video should continue playing.
is that possible? if so, can anybody show me how?
thx in advance
PhilIf all of your assets are on the main timeline of the swf
(i.e. you don't need to stop specific MovieClip instances--just the
main timeline), then it's not too hard. You just need to issue a
stop() action when you want to "pause" the main timeline. I don't
know your setup, so you might want to pause while the video is
buffering, or when the user clicks the play button (it seems to me
that you'd just put a stop() action on the frame where your
FLVPlayback component lives, right?). Then, listen for the
"complete" event to fire from the FLVPlayback component to resume
playback. Before I can offer some sample code, can you tell me
which version of the FLVPlayback component you're using? AS2 or
AS3? -
I'm loading an external SWF to use as a "skin" (no components
are involved, only MovieClips). The external SWF contains a number
of MovieClips, each exported for Actionscript and with an
associated class. One of these classes is, for example, called
"Thing1".
I'm successfully loading the SWF using Loader, etc. - I'm
also setting its ApplicationDomain to that same one as the loading
SWF. I can then successfully create an instance of Thing1 and add
it to a child MovieClip of the loading SWF. All is good.. the
problem occurs when I try to add an event listener to the instance
of Thing1 - the event doesn't trigger.
Here are some curious facts: IF Thing1 consists only of
graphics, ie. no child MovieClips, then the event DOES trigger.
Also, if I add an event listener, not to a child of Thing1, but to
a child of a child of Thing1, then it works. BUT, a mouse event
added to the stage of that MovieClip doesn't trigger.
There seems to be some problem with mouse events bubbling
across the "boundary" between Thing1 and the loading SWF.
Anyone??Ha.. in the process of preparing simplified code, I figured
out the problem. I'm developing locally, and I was loading the
external SWF via localhost, eg.
http://localhost/skin.swf. If
I instead load skin.swf, the problem disappears (I was using
localhost because I'm also loading data via PHP scripts). Thank you
kglad, for indirectly helping me find the solution ;) -
I would like to automatically load an external swf inside an existing empty mc (or a new one) and load/unload different external swf on several button click fuctions. I've read the other posts, but none that quite facilitates accomplishing this.
This is what I have, I know it's messy- but I've been trying so many different methods until its probably loaded with irrelevant functions!
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("homepage.swf"); myLoader.load(url);
myLoader.x=477;
myLoader.y=0;
/* Click to Load/Unload SWF or Image from a URL.
Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
Instructions:
1. Replace "http://www.helpexamples.com/flash/images/image1.jpg" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
var fl_Loader:Loader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad:Boolean = true;
function fl_ClickToLoadUnloadSWF(event:MouseEvent):void
if(fl_ToLoad)
fl_Loader = new Loader();
fl_Loader.load(new URLRequest("homepage.swf"));
fl_Loader.x=477;
fl_Loader.y=0;
removeChild(myLoader);
removeChild(fl_Loader_2);
removeChild(fl_Loader_3);
removeChild(fl_Loader_4
addChild(fl_Loader);
else
fl_Loader.unload();
removeChild(fl_Loader);
removeChild(myLoader);
removeChild(fl_Loader_2);
removeChild(fl_Loader_3);
removeChild(fl_Loader_4);
fl_Loader = null;
// Toggle whether you want to load or unload the SWF
fl_ToLoad = !fl_ToLoad;
/* Click to Load/Unload SWF or Image from a URL.
Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
Instructions:
1. Replace "http://www.helpexamples.com/flash/images/image1.jpg" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
movieClip_2.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_2);
var fl_Loader_2:Loader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad_2:Boolean = true;
function fl_ClickToLoadUnloadSWF_2(event:MouseEvent):void
if(fl_ToLoad_2)
fl_Loader_2 = new Loader();
fl_Loader_2.load(new URLRequest("portfolio.swf"));
fl_Loader_2.x=477;
fl_Loader_2.y=0;
removeChild(myLoader);
removeChild(fl_Loader);
removeChild(fl_Loader_3);
removeChild(fl_Loader_4);
addChild(fl_Loader_2);
else
fl_Loader_2.unload();
removeChild(fl_Loader_2);
removeChild(fl_Loader);
removeChild(fl_Loader_3);
removeChild(fl_Loader_4);
fl_Loader_2 = null;
// Toggle whether you want to load or unload the SWF
fl_ToLoad_2 = !fl_ToLoad_2;
/* Click to Load/Unload SWF or Image from a URL.
Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
Instructions:
1. Replace "http://www.helpexamples.com/flash/images/image1.jpg" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
movieClip_3.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_3);
var fl_Loader_3:Loader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad_3:Boolean = true;
function fl_ClickToLoadUnloadSWF_3(event:MouseEvent):void
if(fl_ToLoad_3)
fl_Loader_3 = new Loader();
fl_Loader_3.load(new URLRequest("about.swf"));
fl_Loader_3.x=477;
fl_Loader_3.y=0;
removeChild(myLoader);
removeChild(fl_Loader_2);
removeChild(fl_Loader);
removeChild(fl_Loader_4);
addChild(fl_Loader_3);
else
fl_Loader_3.unload();
removeChild(fl_Loader_3);
removeChild(fl_Loader_2);
removeChild(fl_Loader);
removeChild(fl_Loader_4);
fl_Loader_3 = null;
// Toggle whether you want to load or unload the SWF
fl_ToLoad_3 = !fl_ToLoad_3;
/* Click to Load/Unload SWF or Image from a URL.
Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
Instructions:
1. Replace "http://www.helpexamples.com/flash/images/image1.jpg" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
movieClip_4.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_4);
var fl_Loader_4:Loader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad_4:Boolean = true;
function fl_ClickToLoadUnloadSWF_4(event:MouseEvent):void
if(fl_ToLoad_4)
fl_Loader_4 = new Loader();
fl_Loader_4.load(new URLRequest("contact.swf"));
fl_Loader_4.x=477;
fl_Loader_4.y=0;
removeChild(myLoader);
removeChild(fl_Loader_2);
removeChild(fl_Loader_3);
removeChild(fl_Loader);
addChild(fl_Loader_4);
else
fl_Loader_4.unload();
removeChild(fl_Loader_4);
removeChild(fl_Loader_2);
removeChild(fl_Loader_3);
removeChild(fl_Loader);
fl_Loader_4 = null;
// Toggle whether you want to load or unload the SWF
fl_ToLoad_4 = !fl_ToLoad_4;Kglad I read up on that but it's still not stopping.I'm publishing for fp 10 and have tried several different variations including:
function gofolio (e:MouseEvent):void{
imageLoader.load(navfolio);
addChild(imageLoader);
imageLoader.unloadAndStop(true);
folio_btn.addEventListener(MouseEvent.CLICK, gofolio);
function goabout (e:MouseEvent):void{
imageLoader.load(navabout);
addChild(imageLoader);
imageLoader.unloadAndStop(true);
removeChild(imageLoader)
imageLoader=null
about_btn.addEventListener(MouseEvent.CLICK, goabout);
....still not working. -
Hyperlinks and External SWF Files
I am building a site for the company I work for and within
the main flash CS3 document for the site I have a portfolio gallery
with 8 sections. I created a flash file for each category and made
a swf file where I loaded them in my main flash document. They each
have their own layer and on their layer I placed a loader component
for each movie so the gallery will show up when I click on that
specific button.
My problem is that in some of the galleries I want to direct
my viewers to another place within another swf file.
Example: If I have a picture displaying a piece of artwork
and I have another piece of artwork that relates to it and I want
to see that also.
How do I create that link to go to another place in another
movie (swf file). Is this even possible? Help me please.
I am using actionscript 2.0 I have attached a temporary site
address for a better idea of what I need help with. Go to the
portfolio section.
http://manganinc.pieper.com/piepert/index.htm
null">nullproblem solved. Solution? Redo the entire f&%#ing thing. For what ever reason, it now works.
Thanks anyways.
James
Maybe you are looking for
-
Hi I have an InDesign layout that contains multiple boxes, which all have style sheets applied to them. There are a lot of unused styles on this layout too so these have been organised into folders. When I close it and re-open the document, it create
-
Ios 8.3 will not allow me to add a contact to group message
ios 8.3 will not allow me to add a contact to group message. When I touch "Details" on a group message (says "Group MMS" at the top), THERE IS NO OPTION TO ADD CONTACT. Why not? iPhone 6.
-
Transferring Itunes library to external HD EMPTY library
I was following these exact instructions http://support.apple.com/kb/HT1364 but when the itunes library was completely consolidated I went back and deleted my Entire MUSIC folder in my computer. I verified that everything was copied correctly and wen
-
Hi, I have new Mavericks Keynote. Suddenly, I cannot paste objects and have them align on other slides - paste in place. If I copy a large photo that hangs off the edge of the page, it will paste fully centered on another slide. What's up?
-
Saving images back to LR5 from PSCC
I have noticed that when saving images back into LR5 after editing them in PSCC that the images are darker and more contrasty than they were in PSCC. This is when I either merge to 32 bit HDR and save it back into LR for further editing or merge to 3