Floating frame placing flash file
Wondering is someone can give me a hand here. I am placing a flash file into an existing page which has CSS. The flash file consistently goes to the upper left corner. The file is p;laced into a table so should stay there but the CSS for some reason takes over. Is there a way to show where it is placed with out disrupting the CSS too much?
Just in case you see something before I can find the answer here is the method used to place the flash file ...
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="512" height="288" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="scale" value="noscale">
<param name="salign" value="lt">
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=/support/TV/To yo_Fall2011_EN&autoPlay=true&autoRewind=true" />
<param name="swfversion" value="8,0,0,0">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="/Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="512" height="288">
<!--<![endif]-->
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="scale" value="noscale">
<param name="salign" value="lt">
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=/support/TV/To yo_Fall2011_EN&autoPlay=true&autoRewind=true" />
<param name="swfversion" value="8,0,0,0">
<param name="expressinstall" value="/Scripts/expressInstall.swf">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
Similar Messages
-
Need help placing Flash file in Captivate...
I have a few short animations I did in Flash that I want to put in Adobe Captivate. They place fine and play fine. But I wanted to know if it is possible to have the last frame of the animation show for the rest of the captivate slide. I'm using Captivate 6 and Flash Pro CS6. Thanks!
That depends mostly on what you did in the Flash file. You should ideally NOT fade out the animation at the end and it should terminate with a stop(); action inside the Flash file on its last frame. Have all of the animation on the main timeline in Flash so that it's not buried down inside a symbol, which would just continue to loop. Then in Captivate, don't use fade out there either.
-
HTML link to a Flash file frame
> This message is in MIME format. Since your mail reader
does not understand
this format, some or all of this message may not be legible.
--B_3299492325_1333456
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
Hi
I've got a client who has a HTML site on a laptop for a
presentation and
within this site he's wants a link that attaches to a AS2
.swf that I've
developed.
The thing is it he wants it to link to specific area of the
file and not to
play it all. How would I do this as he's just asked for the
specific address
of the area it needs to jump to.
Any help would be much appreciated bearing in mind my
ActionScript is pure
novice so a step by step would be handy.
thanks
--B_3299492325_1333456
Content-type: text/html;
charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>HTML link to a Flash file frame</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Calibri, Verdana, Helvetica,
Arial"><SPAN STYLE=3D'font-size:11pt=
'>Hi<BR>
I've got a client who has a HTML site on a laptop for a
presentation and wi=
thin this site he's wants a link that attaches to a AS2 .swf
that I've devel=
oped.<BR>
<BR>
The thing is it he wants it to link to specific area of the
file and not to=
play it all. How would I do this as he's just asked for the
specific addres=
s of the area it needs to jump to.<BR>
<BR>
Any help would be much appreciated bearing in mind my
ActionScript is pure =
novice so a step by step would be handy.<BR>
<BR>
thanks</SPAN></FONT>
</BODY>
</HTML>
--B_3299492325_1333456--What do you mean about opening a flash file? Do you want the
.fla file
to open in flash? Or is it a swf that you imported into
Director? Or
is it an exe that was published from flash? Or a website that
was
created with Flash?
If you are opening a .exe and you know the path to it, then
you can use
Director's built-in open command
open the moviePath&"flashFile.exe"
for most other things, I would use BuddyAPI. To open an exe,
baRunProgram(). To open a fla or swf, baOpenFile.
To make Director open a swf on the stage, import it and
simply tell the
button to go to that frame. -
Flash File placed in template not loading
I've created a simple flash banner to use on a website I'm
developing. This website is built off of a template, in which I
placed the flash file.
When I preview the template, it works wonderfully. Trouble
is, when I apply the template to all my pages, and then preview one
of those pages, the flash file is not loading.
Anyone have an idea what I'm doing wrong? Go to the web
address below to see the files:
www.vanhornconstruction.com/tempMake the link to the SWF a root relative one in the Template
page.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Zimmerman74" <[email protected]> wrote in
message
news:flljbb$efv$[email protected]..
> I've created a simple flash banner to use on a website
I'm developing.
> This
> website is built off of a template, in which I placed
the flash file.
>
> When I preview the template, it works wonderfully.
Trouble is, when I
> apply
> the template to all my pages, and then preview one of
those pages, the
> flash
> file is not loading.
>
> Anyone have an idea what I'm doing wrong? Go to the web
address below to
> see
> the files:
>
> www.vanhornconstruction.com/temp
> -
Placing an image on top of a flash file
Is there a way to keep a image on top of a flash file? When I
place it on top then publish the flash file jumps in front of the
pic when it plays.
What I am trying to do is place a border around the window. I
can't just shrink the flash file down because this great program
causes errors with the flash content.There is no way to keep an image on top of a Flash file.
Having said that, we do a couple things to get around that:
1: add the border to the flash file-- when we're creating
swfs for Breeze in Captivate or Flash itself, we add the highlight
or border there
2: Add the border to a file that rests behind the flash file
and make the flash file fit
It sounds as if you've tried the second, but with no success.
I 've never had a problem resizing swfs that I've imported into ppt
through Breeze Presenter. I sthat the issue you're having? -
Interactive layers over an interactive flash file
I've always been frustrated at the fact that dynamic text and
images pulled into flash have not been able to be spidered by the
search engines.
So, with a client site I'm developing, I'd like to try
something different. I'm wanting to create a flash file with
buttons that when clicked, open up the flash and create a blank
area in the design where a div layer can be placed on top of the
flash, positioned in such a way that it looks like it is part of
the flash itself. When you then click on a seperate button on the
flash, the div layer hides itself, and another div layer appears
according to the relevant section of the flash you have chosen.
I might not be explaining myself very well, but for anyone
following what I'm sayinig, has this been done before and does
anyone know how?
Cheers,
Guy BlombergWell the easiest way is to publish it to a swf and then perhaps load all of those dynamically.
The only other way I know is to select all the frames, copy frames, insert a new movieclip and then paste frames. This usually results in centering everything and you might not like that.
If you want to avoid that you should include a background layer the size of your stage. And then you can edit multiple frames, stretch the range makers to cover the entire thing, select all, and adjust the upper right corner to where you want it. (Assuming that you don't have things off stage.
Of course the best thing to do would have been to just made them all as movie clips from the beginning. Either in one FLA or in individual FLAs. So chalk it up to live and learn. -
How to centre a flash file in web browser
I tried this in the export menu, but nothing seemed to work?
I've placed the file in a table dreamweaver for now, but it looks
rubbish in Internet explorer it's too big, on mac it's fine and
centred. But ideally i'd like the page to centre automatically and
resize if the wndow is too small etc. is this possible through
Flash?
Thanks - OliOk, will try get onto that site.
this is our site:
Parkmill Flash Site
on all our macs it works great because our screens are set
1152 x 870 +, but most screens are set smaller i suppose and hence
the need for the site to shrink if the screen is set for example at
800 x 600 and so on.
havent a clue where to put code when it's suggested as the
reply above -
How to use as3 in flash cs3 to add dynamic text from a text file into a flash file
let me start out by saying today is my first day of scripting
in flash.
I have a text file text.txt
it contains
text1=hello world
can someone please show me how to display this text in a
flash file
i have been searching for this for hours and there are
solutions with flash mx and actionscript 2.0 but i would like to
see how to do this in as3.
just a simple frame that loads that file and displays it when
you test run the program
much apreciated
RCI'm not up on AS3 yet, but many things are still similar. You
need to use the LoadVars class to accomplish this, You can find
information this in Flahs Help>Actionscript>Actionscript
Language Reference>Actionscript classes.
rem: the text.txt file and the text.fla file must be in the
same directory.
The code will look something like this: -
Need Help To Extract Logo from Flash File .swf
I have an attached Flash file that is in
.swf format. There is a N64 logo within this file that I'm
trying to extract as a
.png with a transparent background. I've been able to open
it in a program called
Flash Decompiler Trillix and in the sub-menus it has the
logo listed as a frame.
This is about as far as I have gotten and I'm stuck. Perhaps
someone else knows how to do this a little easier. I just need to
find a way to extra the logo that already has a transparent
background and save it in
.png format.
Any help here would be hot." ;)
Logo Flash
File .swfHello,
I ran into a similar problem a few months ago. I have the
Sothink Flash Decompiler and what I did was turn the SWF back into
a FLA. I then opened it in Flash and then exported what I wanted as
a PNG image.
Decompilers can extract the actual image whether it be jpeg,
gif, png, etc. But when it's listed as a frame(as you mentioned
above) then the method above is probably the best way to get it.
Good luck -
WinCE Projector does not display flash file properly
Hi,
I built a projector application for loading flash files on a
Windows CE 5.0 based embedded device. I am using Flash player 7 for
WinCE5.0. The projector was built using embedded VC++ for an ARM
processor.
The basic idea of this flash application is content delivery.
So, this projector loads a container flash file stored locally on
the device. This container flash file communicates with a remote
server(webserver or FMS) to retrieve content (flash files, audio,
video, images, text etc.). Right now, I am trying to load a series
of flash files from the remote server - one by one - like a series
of ads.
The problem is that, the series of flash files loaded does
not display properly inside the main container file. I am using a
loader component in the main container flash file. All the flash
files loaded must play full screen. But some files do not play
fullscreen. It automatically shrinks to a smaller random size. This
behaviour does not repeat. It occurs randomly for any of the series
of files I am trying to load in the container flash.
When i tested the application on the desktop, it works fine.
But on the device, the loaded flash files shrink automatically. Can
someone explain why this is happening? Is this problem usually
associated with flash player on embedded devices?
I am stuck with this problem for a long time. I tired
different methods to get around it, but could not succeed. So I
would really appreciate it, if anyone can throw some light on this
issue and preferably provide a solution?
Thank you,
JothishankarI am using Flash Professional CS6.
It lets me edit all the symbols and bitmaps, and key frames.
However, it just publishes as a SWF a bit incorrectly. -
Placed .png files in look blurry in InDesign CS6 & output PDF
I'm brand new to InDesign...just learned it yesterday. I'm using CS6. However, I think I'm following best practices as I've watched many instructional videos and have a folder of images I'm using in the document which I place in the document using "File" -> "Place." I've both put them into frames that already exist (and used "Object" -> "Fitting" and often "Fit frame proportionally" but also other commands) as well as without a frame where I drag a window the size I'd like the file to be after I've loaded up my cursor using "File" -> "Place."
I'm at a loss as my files are 72 DPI and 144 DPI (I'm on a Mac and have checked them out both in Photoshop and using "Tools" -> "Inspector" in Preview) and I have NO idea why they look so terrible in both InDesign and my output pdf! I'm attaching both the files I'm placing and screenshots of what they look like in the output .PDF.
Thanks SO MUCH for any help anyone can give me--I'm working on an urgent project and must figure this out!This info was quite helpful--thanks everyone!
First of all, I'm not entirely sure I chose the right tool for this job, and advice on this would be welcome. I wanted a document of portfolio pages formatted sort of like a book, so I thought it would be better to use InDesign rather than something like Photoshop or Illustrator (I've learned these tools in the last year but haven't really used them to create documents). My primary goal, however, was to present this information both from my computer and on my website, and a secondary goal was for it to be able to print nicely. So I thought InDesign was the right choice. (I read this article from 2010: Adobe Photoshop vs. Illustrator vs. Indesign | Dream Infinity Studios / Chris Takakura | Art Direction + Design to get some guidance...hopefully most of it is still relevant.) Because of that I wasn't sure whether to use "Intent" -> "Print" or "Intent" -> "Web", so I went with web with a 1024 x 768 page size, hoping that will look OK for desktop (not professional) printing. What do people do when they want something to function in both domains? Not sure if that could have affected anything about the way these images were placed...
In terms of finding a solution:
1. I was using High Quality Display--it was more an issue with my output document. (Though strangely sometimes when I toggle between high-quality & typical displays, sometimes things that looked good when I was working on them in high quality, after toggling to typical and back, look horrid.)
2. It seemed at first that it might be an issue of the way I placed the files, e.g. I was positioning my cursor OUTSIDE any sort of field and dragging a square to the size I wanted my image to be. I'm wondering if it somehow reduced the image size because if I create the square using the "Rectangle Frame Tool" it seemed to work much better. I've also tried just dropping the file without the frame tool and resizing it that way, but my images are actually VERY long & wide, so that's difficult. I was also wondering the "fitting" option I chose may have been affecting the display...I've been trying "Fitting" -> "Fit Content Proportionally" lately.
3. I created some .pdfs of some of the pings from Omnigraffle, and that seemed to help, but that actually makes them look worse because there are screenshots within the OmniGraffle mock-up files which are washed out and pixelated and the text that was added on top stands out too much (see attached screenshot...the one on top is a PDF and the header and footer looks funny and the bottom is a PNG where at least everything looks consistent).
So though some files look better now (especially, ironically enough, the 72 DPI screenshot of Use Cases!), I can't figure out what process I should follow to get consistently good results. Because a) the mockup files look good when I first paste them, and b) they are longer and wider than the content area I'm using and I'm shrinking them significantly, I cannot figure out why I can't keep that level of detail after they've been shrunk to fit. I keep wondering if I'm placing image properly, shrinking them properly, or those Fitting settings properly... -
Embed flash file without using IFrame UI
Hi all,
Can any one tell me how i can embed flash file without using IFrame UI ?Hi
To run a flash file you will definetely need a platform for which you need a shockwave player or a simple browser window. From webdynpro, the purpose of making it run through a IFrame is at runtime, the frame acts as a window for the flash file to run. Hence its the direct option of running it. Otherwise, you need to use a external window to invoke it seperetely in a browser window to run the file.
If you have any specific issues, do let us know, or else its the best option @!
thanks
sathya -
How can I make a flash user interface with buttons to open up and navigate other flash files?
Hello I would like to make a user interface that will serve as a tool to load and unload other flash materials like a slideshow. I would like to make a kind of slideshow with Flash that opens up other flash files which could be around 10-15 slides (frames) long each. I would want to ask if there is any way to make a link between navigation and other slides easily. And if there are ways, what action codes should I use for this. Thank you very much.
All you need to do is load a swf into the main swf and target it with whatever controls you intend. If you are using AS3 then you could use the Loader class to load the swf and then target the Loader.content with your control buttons.
-
Flash file missing from page/layout difficulties
Aloha,
I'm working on posting a new site and have a few problems
that are holding me back! First, when tested online via DW, the
flash movie I have in center of page plays (and is placed)
perfectly. After uploading the page
http://reefcheckhawaii.org to
my server however, the flash file doesn't appear. However, it can
be accessed at
http://reefcheckhawaii.org/flashfiles/HOMEPAGE.swf
My tech support for the server said I had it in the wrong folder
and that I should move it "using code." Any recommendations on how
I can get the file placed where it should be to properly function?
My second difficulty as evident by the page posted, is with the
layout. I cannot seem to keep the banner image cells at the top of
the page aligned properly when I add the 4-row table on the right
hand bottom side of page. If I try to "remove table hts" before
adding the lower table, the banner image at top also gets botched
up! Please help, I'm stuck! Many thanks in advance!http://www.wsrestoration.com/Scripts/AC_RunActiveContent.js
This file is NOT on the server. That's why you do not see
your Flash.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"AAzz44" <[email protected]> wrote in
message
news:fjlb4d$3bp$[email protected]..
> Hi,
>
> Im also having the same problem. Actually things where
working great with
> the
> original site I built in Front Page, but I switched over
to Dreamweaver
> awhile
> back and finally updated my site. Ever since than I
can't get me Flash
> file to
> show. It works fine in the preview (in dreamwaver) but
not on the web. All
> the
> files are on the server and the coding looks ok. I can't
figure this one
> out
> and its driving me crazy.
>
> Here is my site:
>
>
http://www.wsrestoration.com/
>
> Mike
> -
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
This is the error message(s) I am receiving: "TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at index_fla::MainTimeline/Down3()"
import nl.demonsters.debugger.MonsterDebugger;
var d:MonsterDebugger=new MonsterDebugger(this);
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);
// loader is the loader for portfolio page swf
var loader:Loader;
var loader2:Loader;
var loader3:Loader;
var loader1:Loader;
// resize content
function resizeHandler(event:Event):void {
// resizes portfolio page to center
loader.x = (stage.stageWidth - loader.width) * .5;
loader.y = (stage.stageHeight - loader.height) * .5;
// resizes about page to center
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
/*loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;*/
addEventListener(Event.ENTER_FRAME, onEnterFrame,false, 0, true);
function onEnterFrame(ev:Event):void {
var requesterb:URLRequest=new URLRequest("carouselLoader.swf");
loader = null;
loader = new Loader();
loader.name ="carousel1"
//adds gallery.swf to stage at begining of movie
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requesterb);
} catch (error:SecurityError) {
trace(error);
addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
// stop gallery.swf from duplication over and over again on enter frame
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
//PORTFOLIO BUTTON
//adds eventlistner so that gallery.swf can be loaded
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
function Down(event:MouseEvent):void {
// re adds listener for contact.swf and about.swf
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
//unloads gallery.swf from enter frame if users presses portfolio button in nav
var requester:URLRequest=new URLRequest("carouselLoader.swf");
loader = null;
loader = new Loader();
loader.name ="carousel"
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
removeChild( getChildByName("about") );
removeChild( getChildByName("carousel1") );
// remove eventlistner and prevents duplication of gallery.swf
MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
//INFORMATION BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var requester:URLRequest=new URLRequest("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2.name ="contact"
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader2.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader2);
loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
//ABOUT BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var requester:URLRequest=new URLRequest("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3.name ="about"
loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader3.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader3);
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
removeChild( getChildByName("carousel") );
removeChild( getChildByName("carousel1") );
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
stop();Andrei1,
Thank you for the helpful advice. I made the changes as you suggested but I am receiving a #1009 error message even though my site is working the way I wan it to work. I would still like to fix the errors so that my site runs and error free. This is the error I am receiving:
"TypeError: Error #1009: Cannot access a property or method of a null object reference."
I'm sure this is not the best method to unload loaders and I am guessing this is why I am receiving the following error message.
loader.unload();
loader2.unload();
loader3.unload();
I also tried creating a function to unload the loader but received the same error message and my portfolio swf was not showing at all.
function killLoad():void{
try { loader.close(); loader2.close; loader3.close;} catch (e:*) {}
loader.unload(); loader2.unload(); loader3.unload();
I have a question regarding suggestion you made to set Mouse Event to "null". What does this do setting the MouseEvent do exactly? Also, since I've set the MouseEvent to null do I also have to set the loader to null? e.g.
---- Here is my updated code ----
// variable for external loaders
var loader:Loader;
var loader1:Loader;
var loader2:Loader;
var loader3:Loader;
// makes borders resize with browser size
function resizeHandler(event:Event):void {
// resizes portfolio page to center
loader.x = (stage.stageWidth - loader.width) * .5;
loader.y = (stage.stageHeight - loader.height) * .5;
// resizes about page to center
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
//adds gallery.swf to stage at begining of moviie
Down();
//PORTFOLIO BUTTON
//adds eventlistner so that gallery.swf can be loaded
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
function Down(event:MouseEvent = null):void {
// re adds listener for contact.swf and about.swf
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
//unloads gallery.swf from enter frame if users presses portfolio button in nav
var requester:URLRequest=new URLRequest("carouselLoader.swf");
loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requester);
} catch (error:SecurityError) {
trace(error);
this.addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
// sure this is not the best way to do this - but it is unload external swfs
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of gallery.swf
MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
//INFORMATION BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent = null):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var requester:URLRequest=new URLRequest("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader2.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader2);
loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
//ABOUT BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent = null):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var requester:URLRequest=new URLRequest("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader3.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader3);
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
stop();
Maybe you are looking for
-
Moved to a new computer PE will no longer support HD format
I just purchased a beast of a PC to handle my Samsung HD 1920 X 1080i video. I can plug it in and the system recognizes the card and also the unit, however when I go to the file to bring the data into PE it comes back with an error that the format i
-
I have made a widget with Dashcode. I have a list for access videos. It's fine on desktop. I place this widget in ibooks author and i can't see my list!! In dascode i have check Network access . Thanks.
-
Nokia N8 - Ram and preinstalled tones
Hi, I am a proud owner of the Nokia N8. I am happy with it. I just want to ask - which pre-installed software can I delete to beef up my Ram? Communicator? Etc.? I want to delete apps that I may or may not use that may help increase my ram. Currently
-
WiFi connection drops when I try to play video
This has been happening for months now. When I try to play video my WiFi connection gets dropped & it takes about 3 mins to pick up again. No problems on other web, YouTube is the main problem, but only because it's the site for so many vids. I've ha
-
Post Author: vandersee CA Forum: General Hello I'm stuck on what I'm sure should be a simple formula for selecting data using a parameter. I need to use one parameter to interrogate two fields. In this case I have two fields (company name and surnam