Swfs Not Previewing As Intended
I have created some swfs for someone to be included in their site. When I preview them and also when i have placed them in an html page and posted them for their review, they preview correctly. When the developer inserted them into their site -- I believe they are using some kind of administrative area to upload the different swfs into the site -- some of them seemed to be scaled so that elements that are off the stage and should not be seen, are now visible. I believe that this is an error on their end, and they have scaled these swfs, but is there anything i can do to control that on my end? I just want to have an answer if they come back to me with questions. Also, in some cases, some of the swfs also now have transparent backgrounds, which they should not have, but this is not as big of an issue. I did read a little about why this may be happening, but also is there anything i can do to control that, rather than them having control over this.. Any thoughts would be appreciated.thanks!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Backend Guru's (no Pun Intended)
Okie well I finally have some money laying around so I don't have to be cheap and google all my information. So the question is what are some books I should get? I would like to get something that even a beginnner could understand.I'm not exactly sure of what's best to use with flash? I've heard so many things about people using XML,PHP,MySQL.
Which Path To Choose (no Pun Intended)
hiya,
i'm still experimenting with my navigation
http://www.gotoandlearn.com/forum/viewtopic.php?t=8875
now one thing i noticed, was that my animation is not smooth, and now i wonder how i should proceed to make a swf which is a pleasure to look at.
i have MC Tween installed and i have four .pngs which i BezierSlideTo (with easeOutElastic) and ScaleTo (with easeOutElasticfrom 25 to 100 percent) from off screen to the middle. they each have a live dropshadow filter applied and in the background i have the full browser flash function from the tutorials running
Code:
import flash.display.BitmapData;
main._x = Stage.width/2;
main._y = Stage.height/2;
var tile:BitmapData = BitmapData.loadBitmap("tile");
function fillBG() {
this.beginBitmapFill(tile);
this.moveTo(0, 0);
this.lineTo(Stage.width, 0);
this.lineTo(Stage.width, Stage.height);
this.lineTo(0, Stage.height);
this.lineTo(0, 0);
this.endFill();
}
fillBG();
var stageL:Object = new Object();
stageL.onResize = function(){
fillBG();
main._x = Stage.width/2;
main._y = Stage.height/2;
}
Stage.addListener(stageL);
the onRelease check on the button is on the main timeline; but there is nothing else running in my swf. the framerate is at 31.
still the movements are not smooth as they should be.
how can i prevent the movie from chopping out?
drop the live dropshadow filters and create the dropshadows in photoshop?
drop the check for onResize?
don't try to animate 4 .pngs to scaleTo and BezierSlideTo with easeOutElastic?
how can i simulate 'fast' movement of largish .pngs? make a fake movement motion blur and show it between the start and the end point of the .pngs animation?
whats the processor hog here?
or is it just my computer? prolly flash isn't build for moving images around, is it?
here is my experiment:
http://www.staatsakt.de/test/staatsakt.html
click on the typewriter after the .swf is loaded.
any ideas?
i really appreciate you help.
cheers,
dual
External Swf Larger Than Intended
I am trying to load an external swf into a movie clip loader that I sized to be exactly the same. When I test the movie, however, the movie is playing much larger than I intended it to. I added a script to the external movie to prevent it from scaling, and it worked when I test it. But once again, when I test my main swf it was still the same - too large?
:?
[HELP] Pop-Up Window Code Not Working As Intended
Platform: FLASH MX
I have searched through the Forums and have been unable to succesffully locate a solution to my problem. It is as follows:
I'm currently having a problem with my Pop-Up Window code. I am experiencing consistency issues and/or failiure to implement features as followed:
On a windows Internet Explorer 5.0/5.5 machine:
The pop up window appears without bars as determined (chromeless). BUT it includes a 10-15 pixel margin in the left and top DESPITE a value of top/left of zero.
On a mac osX Internet Explorer 5.2 machine:
The window opens as a new window WITH status/scroll/explorer bars BUT it recognizes the 0 top/left border. In other words, it doesn't open up as a chromeless window.
I use the get url function on a button as follows:
on (release) {
getURL ("javascript:NewWindow=window.open('images_FS/DJorion-back-fs.gif','newWin3','width=580,height=499,left=0,top =0,toolbar=No,location=No,scrollbars=Auto,status=N o,resizable=Yes,fullscreen=No'); NewWindow.focus(); void(0);");
}
The code in the HTML file that loads the SWF is as follows:
function openNewWindow(URLtoOpen, windowName, windowFeatures)
{
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>
The sample SWF can be viewed at: http://www.lotuscreative.com
I would like to: (1) make this pop up window consistent across platforms, and (2) remove the margins from the pop up windows.
I have refrained from using button/pop up window generators because they seem overly complicated and superfluous for my needs.
Can anyone please assist me?
I will check this thread as well as can be reached at bleah000@hotmail.com
Thank you.
Buton Rollovers Not Behaving As Intended
Hello.
go here: www.forestsaver.com/new/main.html
What I have here is a set of flash movies, arranged in a table cell that stretches to fit the browser window. Each movie contains a button (actually a MC) that animates when the user rolls over it, and returns to the off state when the user rolls off. This works if you move your mouse slow enough, but if you are moving quickly, only the rollover response is registered and the button gets stuck in the up position. I've exhausted my knowledge of how to remedy this. You can download the .fla from www.plutonomy.org/button.zip to see my current set up. Any advice on this? Should I be setting variables? Is there a simple workaround that I haven't thought of? Thanks for your help.
Sincerely,
Lou
Problems /w A Simple AS 3.0 File Intended To Move A Cursor
I finally got it to stop giving me errors, but it's still not working. The cursor is simply not responding to any keyboard input. I'm sure it's an easy fix, I guess I'm just missing some crucial aspect. All help is greatly appreciated, thank you.
ActionScript Code:
package
{
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class Move extends MovieClip
{
public function hearKey (yourEvent:KeyboardEvent):void
{
stage.addEventListener(KeyboardEvent.KEY_DOWN, hearKey);
var cursor_mc;
if (yourEvent.keyCode==Keyboard.RIGHT)
{
cursor_mc.x+=5;
}
if (yourEvent.keyCode==Keyboard.LEFT)
{
cursor_mc.x-=5;
}
if (cursor_mc.x<0)
{
cursor_mc.x=0;
}
if (cursor_mc.x>400)
{
cursor_mc.x=400;
}
}
}
}
Previewing On Mac
Im, soo confused, i have never done as before and i am sooo confused, i cant get the tutorial to work. And i did everthing it says but i am confused about how to preview it on a mac. any one know!
This is the tutorial
Previewing In MX
ok when i do a test movie/show streaming, everything works but
what i need to know is, how fast is cable when translated into bytes so that i can input that info inthere. that way i can test this movie file i have there on a simulated cable connection, not 56k
n e help is appreciated. thank you
Previewing On Mac
Im, soo confused, i have never done as before and i am sooo confused, i cant get the tutorial to work. And i did everthing it says but i am confused about how to preview it on a mac. any one know!
This is the tutorial
Actionscript Not Previewing
So I'm using Flash MX for OS X and I'm trying some tutorials, and when I try to play movie or test movie, the actionscript doesn't work, but when I actually export the .swf, it plays fine. What gives?
Anyone else have this problem? Any suggestions?
Error When Previewing
Every time i preview my preloader and intro in Flash MX, It opens up a new internet explorer page, the computer freezes, then i get an error saying:
A script in the movie is causing Macromedia Flash Player 6 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?
I have never seen anything like that before. do you have any ideas what might be causing it?
any help would be appreciated.
Thanks
BUFFALO
Previewing In Firefox
Anyone else having troubles doing this? I have it as my default browser. When I hit the ctrl-F12 firefox opens the html but the flash never loads. The address reads:
file:///E:%5CClients%5CFree%20Range%5CDuck%20Hunt%5Css-models.html
Funny thing is if I drag and drop the html file into the browser window it works just fine. The address line for the same file dropped in reads:
file:///E:/Clients/Free%20Range/Duck%20Hunt/ss-models.html
How do I get Flash to write the address in a way Firefox likes?
Previewing Scenes
Can anybody tell me how to only preview the scene i'm working with, and not the others when working with multiable scenes.
//dasphatman
Previewing Problems
I'm not sure what happened. It worked awhile ago but now it doesn't. When I try to preview my scene, the loading bar goes half way to preview it and closes, then the whole program closes down. What should I do?
Previewing .swf In IEv6
Hello,
I am previewing the Flash MX 2004 published html with an imbeded .swf in IEv6. The problem is that ever time I preview the file, IE displays a warning "To help protect your security, Internet Exlorer has restricted this file from showing active conent that could access your computer. Click here for options...". I then click for options and choose "Allow Blocked Content," followed by clicking "Yes" on the warning dialogue box.
This is extremly annoying since I preview my Flash projects frequently. Is there a way to allow Flash to launch the html file without the warning? I have not been able to locate any option that would allow me to do this.
Thanks,
Mperla
Previewing .FLA File
Hi,
I suddenly have problems previewing my .FLA files (by using the control panel 'play' button or pressing 'enter' on the keyboard). Only 2 or 3 keyframes are played and then the preview stops. I have tried deleting the preferences file, repairing permissions and reinstalling Flash, but the problem persists. Any ideas ?
Many thanks for any help/advice.
Garry
Previewing In Flash MX - How?
OK, I am new to Flash and I really like the tutorials. I started with Video Basics Part I and everything is clear to me except previewing the movie.
I got three questions:
1) how do I preview what I made?
2) I did use the option 'test movie' which is in the control menu but then I hear the audio but no video. The video itself shows OK in a FLV player.
3) Why aren't the 'play', 'rewind' and 'Go to end' options available in the Control menu?
Error When Previewing Movie
Every time i preview my preloader and intro in Flash MX, It opens up a new internet explorer page, the computer freezes, then i get an error saying:
A script in the movie is causing Macromedia Flash Player 6 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?
I have never seen anything like that before. do you have any ideas what might be causing it?
any help would be appreciated.
Thanks
BUFFALO
Error When Previewing Movie
Every time i preview my preloader and intro in Flash MX, It opens up a new internet explorer page, the computer freezes, then i get an error saying:
A script in the movie is causing Macromedia Flash Player 6 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?
I have never seen anything like that before. do you have any ideas what might be causing it?
any help would be appreciated.
Thanks
BUFFALO
Error Messages When Previewing....
Hello, I was having a problem when I was previewing a movie in flash. I created an shape in Illustrator then saved it as a PNG-24 file and then imported it into Flash. I added a motion tween to it and basically had the shape rotate, but for some funny reason its telling me that the preview can only be done in Flash 5, why is that? I'm using MX. Thanks.
Symbol=FLabel, Layer=Class Methods, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 0
Symbol=FLabel, Layer=Class Methods, Frame=1: Line 62: You must export your movie as Flash 6 to use this action.
#endinitclip
WARNING: This movie uses features that are not supported in the Flash 5 player
Symbol=FLabel, Layer=Label Asset, Frame=1: Flash MX Text Field Instance Name
Symbol=FUIComponent, Layer=Actions: Class, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 0
Symbol=FUIComponent, Layer=Actions: Class, Frame=1: Line 349: You must export your movie as Flash 6 to use this action.
#endinitclip
Symbol= ScrollBar, Layer=Actions : Class, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 1
Symbol= ScrollBar, Layer=Actions : Class, Frame=1: Line 369: You must export your movie as Flash 6 to use this action.
#endinitclip
Symbol= ComboBox, Layer=Actions : Class, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 3
Symbol= ComboBox, Layer=Actions : Class, Frame=1: Line 478: You must export your movie as Flash 6 to use this action.
#endinitclip
Symbol=FScrollSelectList, Layer=Methods, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 2
Symbol=FScrollSelectList, Layer=Methods, Frame=1: Line 184: You must export your movie as Flash 6 to use this action.
#endinitclip
Symbol= FSelectableList, Layer=Methods, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 1
Symbol= FSelectableList, Layer=Methods, Frame=1: Line 354: You must export your movie as Flash 6 to use this action.
#endinitclip
Symbol=DataProvider, Layer=Layer 1, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 0
Symbol=DataProvider, Layer=Layer 1, Frame=1: Line 109: You must export your movie as Flash 6 to use this action.
#endinitclip
Symbol=FSelectableItem, Layer=Methods, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 2
Symbol=FSelectableItem, Layer=Methods, Frame=1: Line 185: You must export your movie as Flash 6 to use this action.
#endinitclip
Symbol=FComboBoxItem, Layer=Methods, Frame=1: Line 1: You must export your movie as Flash 6 to use this action.
#initclip 3
Symbol=FComboBoxItem, Layer=Methods, Frame=1: Line 24: You must export your movie as Flash 6 to use this action.
#endinitclip
Previewing/navigation Probs
Hi
I'm having some general preview problems. I can't work out if it's a bug or my programming....
In my main movie I have an empty movie clip into which an external swf loads. I have added a preloader comand to the external swf (see code below) and that works well when I test it separately, using the 'show streaming' option. When I test the overall site, however, the streaming of the external swf does not work and the external swf seems to stop at the end of the preloader, before it gets to any content. any ideas?
preloader code on external swf:
1st frame:
percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
myOutput.text = percent + "% is loaded";
2nd frame
if (percent == 100){
gotoAndPlay(2);
}else{
gotoAndPlay(1);
}
link to swf file code:
_root.mtclip.loadMovie("school9.swf")
As a further problem, I seem to have an extra 21KB of invisible content on frame one of all my movies which I can't get rid of no matter how much I delete. Is this a bug? I'm aware that there is a bug with overall filesize flas with MX but this seems to affect frame 1 of every movie I do and as it comes up in the banfdwidth profiler I'm nervous that it'll end up on the final site....
thanks in advance for your help guys!!
Previewing At Different Modem Speeds
Hey all,
A Flash Newbie here, trying to work out if it's possible to preview your movie at different modem speeds.
I've got a broadband connection so it flys through on a flash preview with show streaming clicked.
Just wondering how long it will take on say a 56k modem.
If anyones got the time to help me out, I would be stoked.
Cheers,
Hobbonz
Previewing Sound On The Stage
I'm using Flash 5.
On some .fla files that I have downloaded I can move the playhead and hear the sounds play on each frame it moves over.
However, when I do this on .fla files I create I don't here any sounds. I am trying to lip sync some animation and it would be alot easier to do this if I could preview on the stage instead of having to Test Movie.
Speed Scroll + Previewing
I am controlling a scrolling movie with the script below, but have no idea how to stop it from going off the stage completely and to control the speed so that it scrolls faster the closer your mouse goes to the edge of the movie?
onEnterFrame = function(){
if(_root._xmouse < 50){
scroll_the_group(1);
}else if (_root._xmouse > 500){
scroll_the_group(-1);
}
}
function scroll_the_group(aDir){
scroll_group._x = scroll_group._x + 10 * aDir;
}
One more thing thats probably simple; Im in flash mx, pc, how can I stop my movie scaling up every time I preview it (ie when I ctrl+enter)It is the right size if I publish it according to the settings ive chosen- is there a way of making these the default?
thanks in advance
Previewing Site In Browser
Hi, I've just switched from being a PC user to an Apple lover.
However, I have a small problem in that when I try to preview my swfs in the browser from within Flash (File -> Publish Preview -> HTML) it opens Dreamweaver instead.
Does anyone know how to set it so that my files open in Safari or IE as default please?
Thanks
pinK
Previewing Preloader Problem
Helloo,
I have a slight problem with one of my flash movies. I've tried adding both kirupa's one-frame-preloader and another, 2-frame preloader, but when I preview it, I can't get it to run the preloader. I hit Ctrl+Enter which runs the movie, and then Ctrl+Enter again to 'reload' it, but i just get a blank screen. If i view the bandwidth graph thing I can see it loading, but it's on frame 0, not frame 1, so my preloader doesn't appear. Any suggestions?
hT
Good When Testing - Bad When Previewing -Why?
I'm loading a .swf with "loadMovie" into a .fla and then I'm trying to change, from the loaded swf, _alpha of a movieClip delared in the root of the fla. I use : _root.myMovieClip._alpha=value; and it works when testing the movie directly in the flash player but not when previewing it in the browsers ( any browsers).
Does anyone have an explanation for this?
Thanks
Previewing Preloader Problem
Helloo,
I have a slight problem with one of my flash movies. I've tried adding both kirupa's one-frame-preloader and another, 2-frame preloader, but when I preview it, I can't get it to run the preloader. I hit Ctrl+Enter which runs the movie, and then Ctrl+Enter again to 'reload' it, but i just get a blank screen. If i view the bandwidth graph thing I can see it loading, but it's on frame 0, not frame 1, so my preloader doesn't appear. Any suggestions?
hT
Previewing In Browser Problem
When testing my movie in a browser window it always has a half a inch of stage showing all around and never fills the browser window completely. I changed my html publish settings to 100% and changed my scale mode to NO_SCALE. I tried everything is there a reason why my flash movie does not fill the browser completely?
Elements From Stage Disappear When Previewing
I have a very simple graphical effect using a mask and some text. It looks great on the stage but disappears when I preview or publish.
Can anyone tell me what I might be doing wrong?
Thanks.
Previewing Flash Button In Dreamweaver
When I insert the Flash Button/Movie into the Dreamweaver doc and preview in browser, I only see a placeholder.
I created a simple Flash "movie" with some dynamic text functioning as a button layered over the animation.
It previews fine in flash, and when I play the animation in the Dreamweaver document it looks fine but when I try to preview it in the browser from the Dreamweaver document all I see is a Flash placeholder. Is this something that will change when the page is published or is there something else I should try?
Flash 7 Audio Does Not Stop When Previewing
In FlashMX pro, I have a layer with audio. When I hit play (controller) to preview the audio within Flash it plays. When I hit stop (controller)it continues to play. I cannot stop it unless I go to >control>mute sounds.
???
Test Previewing .swf Files. Maybe Easy To Answer
I have made a flash file that loads various other flash files into it.
Most of them are big files so they have their own preloaders.
I use Flash MX and with ctrl+enter I can preview a file. When I press ctrl+enter again I have the option to load/preview the file at a slow loading rate which imitates users accessing the file off the internet.
HOWEVER, when I preview the main flash file (main.swf) and load another file into it (info.swf) inside the previewer, the later file doesn't imitate the slow internet connection thingy. I want to test all the flash files (including the loaded ones) under a slow transfer rate inside the the main flash movie. How can I do this? Is there any program which has this function?
Please give me a reply even if you aren't that sure! Thanks a lot
_Totyetoskate webmaster
KeyBoard Events Default To CS3 Hotkeys While Previewing
I am trying to make a simple game that uses WASD. I can set up the coding fine, but whenever I preview it only W & D work, because CS3 takes the A & S keys as commands to switch to the Subselection and Ink Bottle tools instead..
How do I make my game recognize the pressed keys without CS3 stealing them?
Flv Skin Only Shows When Previewing Html Locally
When I import FLV into a flash file then publish to HTML, I have no problem seeing the video (WITH skin controls) in a browser but only when opening the html file directly (ie: double clicking html file in windows explorer). But when I view the html through our file system http:/etc etc (running an apache server) the video plays but there are no controls. I'm guessing something is filtering the controls out for some reason? If so how do I get around this? I've tried using the preset skins and also uploading skin to our server and using an http path, doesn't help.
The bigger picture is that I want video to play in our web pages, without the "click to activate" thing and also so our javascript navigation flyouts display over top of the flash (not beneath). I can get all these things to work for *normal* swf/html files but not flash video. It seems to be a completely different beast... Thought I'd mention this too, as solving the skin problem is just one obstacle on the way to solving this wider objective.
Text Justified In Flash MX But Left Align When Previewing?
Hi,
I have a paragraph (static text) which is fully justified in Flash but when I preview in browser or just with the SWF file, the text is left justified. I'm using a true type font.
Can someone help, please?
Newbie here.
Thanks,
Luke
Previewing Site Works Fine In Netscape And IE But Pop-up Error Message With AOL
I was previewing a site I made in different browsers and on different computers. It worked fine in Netscape and Explorer. However, when I previewd the site in AOL I get an interesting pop-up window. It says:
An error has occured in the script on this page:
Line 12
Character 1
Object expected
Code 0
Anyone know what this is about and how to I fix this problem? I am not sure what it is referencing so I am not sure how to fix it.
Thanks
Dave
Previewing The Movie, The Code MovieClip.getDepth Provoke [type Function] Message
I've created several movies using duplicatemovie, each one with a determined depth, as it's demanded.
Then I simply used: trace(copiedmovie1.getDepht)in a frame after
these movies were created.
In the preview, the trace window displays this message
[type Function]
I don't understand what I'm doing wrong. I supposed to obtain the integer asociated with this movie duplication.
Loading SWFs Into FLAs And Making The SWFs Transparent HELP
I have a set of buttons inside a movieclip, inside a movie clip (if that makes sense).
When the buttons are clicked I need them to load a content .swf file into frame 2 at at specified position (x=20, y=140)
I also need the .swf being loaded in to have a transparent background.
How can I achieve this?
I cannot include the .fla files for your perusal because the KirupaForum uploader can't upload bigger than 2mb and my zip file is 5.28mb or something like that.
Loading SWFs Into FLAs And Making The SWFs Transparent HELP
I have a set of buttons inside a movieclip, inside a movie clip (if that makes sense).
When the buttons are clicked I need them to load a content .swf file into frame 2 at at specified position (x=20, y=140)
I also need the .swf being loaded in to have a transparent background.
How can I achieve this?
I cannot include the .fla files for your perusal because the KirupaForum uploader can't upload bigger than 2mb and my zip file is 5.28mb or something like that.
Loading External Swfs Into Externally Loaded Swfs.
ive got some buttons on my main timeline that im using to load external swfs into an empty mc. the buttons are coded with the following:
on(release){
if(_root.currMovie == undefined){
_root.currMovie = "1";
emptyMC1.loadMovie("1.swf);
} else if (_root.currMovie != "1") {
if (emptyMC1._currentframe >=
emptyMC1.midframe) {
_root.currMovie = "1";
emptyMC1.play();
}
}
}
1.swf also has some buttons that load external swfs into a second empty mc. those buttons are coded with the following:
on(release){
if(this.currMovie == undefined){
this.currMovie = "2";
emptyMC2.loadMovie("2.swf");
} else if (this.currMovie != "2") {
if (emptyMC2._currentframe >=
emptyMC2.midframe) {
this.currMovie = "2";
emptyMC2.play();
}
}
}
1.swf loads into emptyMC1 ok, and 2.swf loads into emptyMC2 ok.
when i press any of the buttons on the main timeline, the outro animation of 1.swf plays correctly, but the outro animation of 2.swf does not. is there a way to the buttons so that the emptyMC's unload sequentially?
Navigation Through Flash Site, Old .swfs Remain Behind New .swfs
need to unload the .swf files, not sure how to do this. All my swf interlace with each other
heres the code
Code:
stop();
about.buttonMode = true;
contact.buttonMode = true;
portfolio.buttonMode = true;
var ldr:Loader;
about.addEventListener(MouseEvent.ROLL_OVER, overAbout);
about.addEventListener(MouseEvent.ROLL_OUT, outAbout);
about.addEventListener(MouseEvent.MOUSE_DOWN, downAbout);
function overAbout(MouseEvent):void{
about.gotoAndPlay(2);
}
function outAbout(MouseEvent):void{
about.gotoAndStop(1);
}
function downAbout(MouseEvent):void{
/*var request:Loader = new Loader();
request.load(new URLRequest ("AboutMe.swf"));
loadMC.addChild(request)
*/
var request:Loader = new Loader();
request.load(new URLRequest ("AboutMe.swf"));
loadMC.addChild(request)
gotoAndStop(2);
}
portfolio.addEventListener(MouseEvent.ROLL_OVER, overPortfolio);
portfolio.addEventListener(MouseEvent.ROLL_OUT, outPortfolio);
portfolio.addEventListener(MouseEvent.MOUSE_DOWN, downPortfolio);
function downPortfolio(MouseEvent):void{
var request:Loader = new Loader();
request.load(new URLRequest ("Portfolio.swf"));
loadMC.addChild(request)
gotoAndStop(2);
}
function overPortfolio(MouseEvent):void{
portfolio.gotoAndPlay(2);
}
function outPortfolio(MouseEvent):void{
portfolio.gotoAndStop(1);
}
contact.addEventListener(MouseEvent.ROLL_OVER, overContact);
contact.addEventListener(MouseEvent.ROLL_OUT, outContact);
contact.addEventListener(MouseEvent.MOUSE_DOWN, downContact);
function downContact(MouseEvent):void{
var request:Loader = new Loader();
request.load(new URLRequest ("Contact.swf"));
loadMC.addChild(request)
gotoAndStop(2);
}
function overContact(MouseEvent):void{
contact.gotoAndPlay(2);
}
function outContact(MouseEvent):void{
contact.gotoAndStop(1);
}
any help would be excellent!
Loading Swfs Into Swfs: Undesireable Result
Situation:
I am using one swf to import other swfs dynamically based on user input (menu with buttons that are dynamically configured once the SWF has loaded).
I built the framework/base (I will refer to this as mainframe.swf) movie in Flash, I then built the populating SWFS in Swish Max (they will be called ad.swf).
When I load the swish max movies into the flash, they show up in the right location and everything, but if the imported movie (ad.swf) has items/shapes that over hang the bounds of the movie, the show up in the framework swf.
and example can be seen here, the issue is in the second ad (CFP):
https://fieldnet3.massmutual.com/fnm...ig002-temp.xml
I want to restrict the visible area of the loaded movie to the original movie that is it populating ( I replace a content holder.swf with ad.swf using a loadMovie). In the movie I am loading int the framework, I have created a white mask to block anything outside of the grey box. This just proves to obscure the buttons, title etc. in the mainframe.swf
The buttons are loaded dynamically as movie clips and I have assigned them to a level 10 levels above the movieclip that holds the ads, this doesn't seem to make them take precedence....
Any one have any ideas on how I can make the movie clip on the edges or make the buttons raise up?
Code availabe as needed.
Allen
Loading/Unloading - Swfs Inside Of Swfs
Here we go...
---------------------------------------------
I have a main.swf.
Main.swf contains 4 buttons(about, portfolio, contact, clients).
These for buttons call in external swfs(ex. portfolio.swf) into an empty movie clip on the main.swf stage.
inside portfolio.swf are three more buttons(print, web, logos)
When you click on one of these buttons they need to call in another external swf(web.swf) and also remove itself(portfolio.swf)
---------------------------------------------
That is where I run into my problem.
this is the code i am using for the original buttons on the main.swf:
Code:
function initMovieLoad(path) {
movieToBeLoaded = path;
if(!initializedExternalMovies) {
initializedExternalMovies = true;
loadNewMovie();
} else {
target.gotoAndPlay('midpoint');
}
}
_global.loadNewMovie = function() {
target.unloadMovie();
target.loadMovie(movieToBeLoaded);
target._y=-130;
target._x= -160;
}
var mc:MovieClip = this.createEmptyMovieClip('target', this.getNextHighestDepth());
initMovieLoad('intro.swf');
this.homeBTN.onRelease = function() {
initMovieLoad('home.swf');
}
this.aboutBTN.onRelease = function() {
initMovieLoad('about.swf');
}
this.portfolioBTN.onRelease = function() {
initMovieLoad('portfolio.swf');
}
this.clientsBTN.onRelease = function() {
initMovieLoad('clients.swf');
}
this.contactBTN.onRelease = function() {
initMovieLoad('contact.swf');
}
I thought I could just place this code inside the portfolio.swf and boom, everything would be set. but it didnt work.
I need to know how to call from the main.swf that web button inside of the portfolio.swf to bring in the web.swf
Any ideas would help at this point. THX
Preloading .swfs AND The .swfs They Call
Hello. I'm using a preloader on my website, the first .swf of which loads another .swf into a movieclip. The preloader only checks to see if the 1st .swf is loaded, and not the called .swf, which interferes with the timing, depending on how fast or slow the user's connection is.
So, how do I make a preloader which accounts for the loading of .swf files called by the _root swf?
Here is my preloading technique:
frame 1:
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay("start");
}
frame 2:
gotoAndPlay(1);
frame 3:
this frame is labeled "start
frame 4: [loads the other .swf]
this.createEmptyMovieClip("main", 999);
loadMovie("main.swf", main);
Multiple External Swfs With Other Swfs In Them
Hey guys,
I am probably the newest guy here to use flash so please bear with me.
I am making a site for myself and my buddies. Well I want to have a music player on the site at all times. All im going to do for now is just play one mp3 so its not that complicated but while reading Kirupa's tuturial about adding music it said that you need to have more than one swf for the player to work.
My question is...how can I load multiple swfs in one main swf.
so this is what i want:
music player loaded at all times, and other swfs loaded whenever a person navigates through the site.
please help me out.
Thanks in advance.
p.s.Sorry if this is a dumb or simple question.
|