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








How To Hide Screens On A Mac -- Resolved


How to hide a darn screen (MX Pro Screen) on a mac with no right click capability.

Can't believe I can not find this anywhere

In case anyone else runs into this

control click!




FlashKit > Flash Help > Flash MX
Posted on: 11-10-2004, 02:15 PM


View Complete Forum Thread with Replies

Sponsored Links:

[MX Pro] Hide All Screens?
Hi all,

I have a flash form application file developed in Flash MX Pro 2004 that has over 200 static screens and I see no end in sight of its continued expansion.

I need a way to simplify my screen navigation scripts if I'm going to continue with this tool.

What I have are literally dozens upon dozens of nested screens that I'm trying to hide with snipets that look like thus:


Code:
on(load)
{
// button to navigate back to application root
btn_app.onRelease=function():Void
{
var x:String="navigate: App Root";
trace(x);

_root.ATHENA.WebRoot.WebFunc.WebType.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvMenu.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvHome.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvMice.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvProjects.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvGenetics.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvReqRoot.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvReqRoot.WebInvReqMenu.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvReqRoot.WebInvReqSum.visible=false;
_root.ATHENA.WebRoot.WebFunc.WebInvRoot.WebInvReqRoot.WebInvReqMoveRoot.visible=false;

//etc etc etc

_root.ATHENA.Home.visible=true;
_root.ATHENA.RootMenu.visible=true;
}
}


As you can see, I'm trying to create a button that sits on a root screen for a given section that will take the user back to the application's _root

What I want:


Code:
on(load)
{
// button to navigate back to application root
btn_app.onRelease=function():Void
{
var x:String="navigate: App Root";
trace(x);

_global.visible=false;

_root.ATHENA.Home.visible=true;
_root.ATHENA.RootMenu.visible=true;
}
}


Essentially what I'm asking for is a code snipet that will make all screens in the clip invisible without having to discretely reference them, then rebuild the visible screen path.

Any help would be greatly appriciated. Thanks in advance!

--Oukachiru

View Replies !    View Related
Sweep Through And Hide All Screens?
I am trying to find out a more efficient way to sweep through a form app and hide all screens on program start then to individually type each screen name to be hidden. I have about 40 screens in the app, and more to be added.

TIA for any help you can offer.

View Replies !    View Related
Function That Hide Ny Screens/forms
Hi all


I am working with a form projekt in flash 8 and is looking for a way
to create a funtion that hide all my screens when i release a button.

exsample:

Mybutton

--------- hide screen1, screen2,


I want this because using the behavior mode write a lot of code like this:

on (click) {

// Hide Screen behavior
if((this._parent.screen1 != undefined) && (this._parent.screen1 != null))
{
this._parent.screen1.setVisible(false);
}
// End Hide Screen behavior

}


any ideas

Flemming

View Replies !    View Related
Switch Between (and Hide) Movieclips As Screens/sections
I have 1 movieclip with 4 buttons on it called screen1. I want it so that when i click on one of the buttons it hides that screen and goes to the selected screen. How would be the best way to go about this.

I have something like this in place but it only seems to be going to th next screen not the screen i select. For instance if i click on 4 it always goes to 2.

As you can seen i have 5 screens on the stage,


Code:

public function init():void {
screen1.visible=true;
screen2.visible=false;
screen3.visible=false;
screen4.visible=false;
screen5.visible=false;

with (screen1) {
sp1Btn.addEventListener(MouseEvent.CLICK, selectScreen);
sp2Btn.addEventListener(MouseEvent.CLICK, selectScreen);
vpBtn.addEventListener(MouseEvent.CLICK, selectScreen);
hpBtn.addEventListener(MouseEvent.CLICK, selectScreen);
}
with (screen2) {
// screen 2 contents
}
with (screen3) {
// screen 3 contents
}
with (screen4) {
// screen 4 contents
}
with (screen5) {
// screen 5 contents

}

}

public function selectScreen (e:MouseEvent):void {

for (var i:int = 1; i <= lastScreenNum; i++) {
this["screen" + i].visible = false;
}

this["screen" + ++screenNum].visible = true;
}

View Replies !    View Related
Resolved
? ... I am having a strange problem. Whenever I access the Stage.width or Stage.height within the test environment, I receive a value 4 pixels less than I should...However, when I run the same movie in a standalone player, I receive the right width and height. Whats up with this and how do I fix it because its messing me up? Thanks.


-----just discovered Stage.scaleMode -- thanks anyway... if there is another way Id like to hear it too. thanks again.

View Replies !    View Related
Streaming BUG Still Not Resolved For MAC?
Hi all

I just downloaded the new updated Flash Player for MAC.

And it still downloads the whole mp3 if it was started and then waits until its downloaded and then only starts the next chosen mp3 stream.

Works perfectly on PC!!!!

I've done this with scripting (sound object).

I'm working on MAC OS X 10.1.5

AND can anyone tell me how I can find out what version of Flash Player is installed on Internet Explorer on Mac OS 10.1?

Thanks

View Replies !    View Related
[Any] How To Evaluate Less Than 1? [resolved]
Hi there,

If i have the basic easing script:

x += (targetX -x )/speed;

When it reaches targetX (close enough), i want to check to see if the distance is less than 1 pixel.

If course i could do trig for movement, but this is not possible on say.... colours in a colortransform.

If im on pixel 0 and my target is 100, i want to stop the event firing on 99.

if (x > targetX-1)

works but then what confuses me is the opposite way

If im on pixel 100 and my target is 1 then the above rule does not work, i could have 1000,0000 lines of code for every possible location but im sure theres a more elgant way :P

if (x < targetX+1)

What Math function (if any) returns a distance regardless of + or -?

If you could show me a tiny line of code to show it id be grateful.

Thanks.

View Replies !    View Related
Preloader: ALMOST Resolved
OK, the resolved problem with my preloader in this thread:

http://board.flashkit.com/board/showthread.php?t=750154

has just created a new one.

My preloader mc has 10 frames, each with an animated movieclip. I also have an animated MC that should play constantly across the 10 frames during the loading process.

When the preloader mc enters a new frame, it should play one mc, then gotoAndStop(10); another mc. When the movie clip moves to the next frame, the gotoandStop(10); mc should start playing, and another mc gotoandStop(10);

The gotoAndStop(10); script works, but the play(): doesn’t. None of the animated mcs will play, including the animated mc that should play constantly, that is until the loading is 100% finished, and then everything plays.

When I had the original script, everything worked as it should, but there was a lag when the preloader mc moved to the next frame and all animated mcs hesitated. Why did the new script interfere with the execution of the animated mcs inside the preloader mc

View Replies !    View Related
[resolved] Why The XML Is Not Reloading?
HI!
I have build a simple flash application to try to make changes to an xml and save it. The application has two buttons: load xml - that loads the xml and write xml - that saves whatever is in the textbox to the xml. Then when pressing load xml again, it should load the modified xml.

You can see the file here: http://www.lisag.xtreemhost.com/try/try.html

It works fine on localhost, but as I uploaded it to the sever it doesn't work!
Please help!


flash code:
Code:

var myLoader:URLLoader = new URLLoader;
var xml:XML;
var myRequest:URLRequest;

load_btn.addEventListener(MouseEvent.CLICK,onLoadClick);
write_btn.addEventListener(MouseEvent.CLICK,onWriteClick);

function onLoadClick(e:MouseEvent):void{
   //trace("started loading");
   myLoader.load(new URLRequest("content.xml"));
   myLoader.addEventListener(Event.COMPLETE, onLoadComplete);
}

function onWriteClick(e:MouseEvent):void{
   xml = XML(ta.text);
   
   myRequest  = new URLRequest("sendMessage.php");
   myRequest.data = xml;
   myRequest.contentType = "text/xml";
   myRequest.method = URLRequestMethod.POST;
   myLoader = new URLLoader();
   myLoader.dataFormat  = URLLoaderDataFormat.TEXT;
   //myLoader.addEventListener(Event.COMPLETE, onLoadComplete);
   myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
   myLoader.load(myRequest);
}



function onLoadComplete(e:Event):void{
   trace("loading complete");
   xml = XML(myLoader.data);
   ta.text = xml;
}

function onIOError(e:IOErrorEvent):void{
   trace("error");
}

php code:
Code:

<?php
if (isset($GLOBALS["HTTP_RAW_POST_DATA"])){
//    $xml = xmldoc($GLOBALS["HTTP_RAW_POST_DATA"]);
    $xml = "<?xml version='1.0' encoding='UTF-8'?>".$GLOBALS["HTTP_RAW_POST_DATA"];
    $file = fopen("content.xml","wb");
    fwrite($file, $xml);
    fclose($file);
    //echo("<status>File saved.</status>");
    echo($GLOBALS["HTTP_RAW_POST_DATA"]);
}
?>

View Replies !    View Related
[nearly Resolved] If Statment Problem
i figured out how to have more than one condition in an if statement, but my code still doesn't work, can someone help please?
code: onClipEvent (load) {
if (letterboxz._visible == true && letterboxl._visible == true && letterboxa._visible == true && letterboxt._visible == true && letterboxa2._visible == true && letterboxn._visible == true) {
this._visible = true;
} else {
this._visible = false;
}
}

View Replies !    View Related
[not Actually Resolved] Timer For Video...
sorry, i thought id got it working but oops . so i started a new thread cause i didnt think many people would check one marked as resolved.
please view this thread to see what im on about.
what happened was that i had to type in a bit of a longer path for the timer to show up (as the example was a dummy and the real thing is a bit more complex).
now the total time shows up as its supposed to when viewing the projector, BUT...the elapsed time comes up with NaN:N instead of the numbers.
does anyone know what this is and how i get it to show real numbers?
cheers.

View Replies !    View Related
Random Number [Resolved]
Whats wrong with this?

on (release) {
number = Math.round (Math.random(13)+1);
}

View Replies !    View Related
Rectangle Outline?(RESOLVED)
Hi quick question,
I am drawin a rectangle on the stage with a linier gradient.
how can i draw it with out the out line i cant find an option to get rid of it.
thank you
(flash pro 8)

Ok ,i turned the alpha all the way down, you can 86 this post, thanks
Ty

View Replies !    View Related
[F8] LoadVars == Undefined ? [RESOLVED]
Hi,

I've got a LoadVars object that has issues with one of its parameters. This is for a dynamic image gallery that's mostly complete. All of my code works fine, except for when I put the php script I'm calling on my web server. Then one (and only one) of my variables comes back as undefined.

Here's the code:


Code:
var picVars:LoadVars = new LoadVars();
var gall:String = "gallery1";

picVars.onLoad = function(success){
if (success){
parseFiles(picVars.returnFiles,picVars.widths,picVars.heights);
trace(returnFiles); // returns "undefined"
trace(widths); // returns a string of numbers
trace(heights); // returns a string of numbers
}
else{
error = "ERROR WITH LOADVARS";
}
};
picVars.load("../getImages.php?gall=" + gall);


So as you can see, all but one of my LoadVars variables returns the correct data. picVars.returnFiles traces as undefined. And as I said, it works fine when I run it locally.

Also, if I navigate directly to my script, PHP prints the correct data, so it's not a server-side issue. The proper string it returns is:

returnFiles=8.jpg|9.jpg|1.jpg|2.jpg|3.jpg|5.jpg|6. jpg|7.jpg|4.jpg|&widths=47|47|39|39|40|24|48|40|53 |&heights=36|36|36|36|36|36|36|36|36|

Just a big string of image names and dimensions.

This is especially puzzling since "success" is obviously coming back as true. Anyone have any ideas?

View Replies !    View Related
[CS3] I Will Loose My Job If I Dont Get This Resolved Help
Hello Awesome flashers

I have a banner with a selected amount of images that i want to scroll across the screen and then fade out. I want the animation to loop continously but flawlessly loop with no banner gap. Please help.
I will email any files across if some one can help.

View Replies !    View Related
[resolved]simple Textchat
For the life of me i cant find the SO for the simple chat app sample.

I have modded it and have 4 rooms
To connect to a room my rtmp is:
client_nc.connect("rtmp:/" + mpt + "chat/" + result_lv.roomID, _global.myName);

On the server i have
applications/chat/main.asc
applications/chat/1/
applications/chat/2/
applications/chat/3/
applications/chat/4/

So i am presumming that the SO will be stored in each of these folders.

This dosn't seem to be the case.
The SO is definetly being stored somewhere because when i leave and enter go back into the room the text is there.
I reload the full site go back inot the room the text is there.
i have also checked locally with no SO found.

Anyone.
//----------------------------------resolved--------------------------//
fso where temp

View Replies !    View Related
[resolved]ComboBox SetStyle
i cant style up my combobox, it doesnt work and also it does not give me any error, and what i want is setting the text color white and bold and maybe changing the font but not now, anyway this is the code im using:

Code:

var cbUserformat = new TextFormat();
cbUserformat.bold = true;
cbUserformat.color = 0xFF0000;
cbUserformat.size = 10;
cbCountry.setStyle("textFormat", cbUserformat);


cbCountry is the name of the combobox can anyone point me out what im doing wrong or give me any help?

thanks in advance

View Replies !    View Related
[resolved] Xml Image Gallery
If I use this code for every thumbnail transitions work ...How would I make this AS easier for me ?

Code:

import mx.transitions.Tween;
import mx.transitions.easing.*;
//Gallery panel
panel.onRollOver = panelOver;
function panelOver() {
   this.onEnterFrame = scrollPanel;
   delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
   if (_xmouse < b.xMin || _xmouse > b.xMax || _ymouse < b.yMin || _ymouse > b.yMax) {
      this.onRollOver = panelOver;
      delete this.onEnterFrame;
   }
   if (panel._x >= 42) {
      panel._x = 42;
   }
   if (panel._x <= -1870) {
      panel._x = -1870;
   }
   var xdist = _xmouse - 400;
   panel._x += Math.round(-xdist / 11);
}

panel.s1.onRollOver = function() {
panel.s1.swapDepths(this.getNextHighestDepth());
new Tween(panel.s1, '_xscale', Elastic.easeOut, panel.s1._xscale, 100, 1, true);
new Tween(panel.s1, '_yscale', Elastic.easeOut, panel.s1._yscale, 100, 1, true);
};
panel.s1.onRollOut = function() {
new Tween(panel.s1, '_xscale', Elastic.easeOut, panel.s1._xscale, 50, 1, true);
new Tween(panel.s1, '_yscale', Elastic.easeOut, panel.s1._yscale, 50, 1, true);
};
panel.s1.onRelease = function() {
holder.loadMovie('images/l1.jpg');
};
panel.s2.onRollOver = function() {
panel.s2.swapDepths(this.getNextHighestDepth());
new Tween(panel.s2, '_xscale', Elastic.easeOut, panel.s2._xscale, 100, 1, true);
new Tween(panel.s2, '_yscale', Elastic.easeOut, panel.s2._yscale, 100, 1, true);
};
panel.s2.onRollOut = function() {
new Tween(panel.s2, '_xscale', Elastic.easeOut, panel.s2._xscale, 50, 1, true);
new Tween(panel.s2, '_yscale', Elastic.easeOut, panel.s2._yscale, 50, 1, true);
};
panel.s2.onRelease = function() {
holder.loadMovie('images/l2.jpg');
};
panel.s3.onRollOver = function() {
panel.s3.swapDepths(this.getNextHighestDepth());
new Tween(panel.s3, '_xscale', Elastic.easeOut, panel.s3._xscale, 100, 1, true);
new Tween(panel.s3, '_yscale', Elastic.easeOut, panel.s3._yscale, 100, 1, true);
};
panel.s3.onRollOut = function() {
new Tween(panel.s3, '_xscale', Elastic.easeOut, panel.s3._xscale, 50, 1, true);
new Tween(panel.s3, '_yscale', Elastic.easeOut, panel.s3._yscale, 50, 1, true);
};
panel.s3.onRelease = function() {
holder.loadMovie('images/l3.jpg');
};
panel.s4.onRollOver = function() {
panel.s4.swapDepths(this.getNextHighestDepth());
new Tween(panel.s4, '_xscale', Elastic.easeOut, panel.s4._xscale, 100, 1, true);
new Tween(panel.s4, '_yscale', Elastic.easeOut, panel.s4._yscale, 100, 1, true);
};
panel.s4.onRollOut = function() {
new Tween(panel.s4, '_xscale', Elastic.easeOut, panel.s4._xscale, 50, 1, true);
new Tween(panel.s4, '_yscale', Elastic.easeOut, panel.s4._yscale, 50, 1, true);
};
panel.s4.onRelease = function() {
holder.loadMovie('images/l4.jpg');
};
panel.s5.onRollOver = function() {
panel.s5.swapDepths(this.getNextHighestDepth());
new Tween(panel.s5, '_xscale', Elastic.easeOut, panel.s5._xscale, 100, 1, true);
new Tween(panel.s5, '_yscale', Elastic.easeOut, panel.s5._yscale, 100, 1, true);
};
panel.s5.onRollOut = function() {
new Tween(panel.s5, '_xscale', Elastic.easeOut, panel.s5._xscale, 50, 1, true);
new Tween(panel.s5, '_yscale', Elastic.easeOut, panel.s5._yscale, 50, 1, true);
};
panel.s5.onRelease = function() {
holder.loadMovie('images/l5.jpg');
};
panel.s6.onRollOver = function() {
panel.s6.swapDepths(this.getNextHighestDepth());
new Tween(panel.s6, '_xscale', Elastic.easeOut, panel.s6._xscale, 100, 1, true);
new Tween(panel.s6, '_yscale', Elastic.easeOut, panel.s6._yscale, 100, 1, true);
};
panel.s6.onRollOut = function() {
new Tween(panel.s6, '_xscale', Elastic.easeOut, panel.s6._xscale, 50, 1, true);
new Tween(panel.s6, '_yscale', Elastic.easeOut, panel.s6._yscale, 50, 1, true);
};panel.s6.onRelease = function() {
holder.loadMovie('images/l6.jpg');
};
panel.s7.onRollOver = function() {
panel.s7.swapDepths(this.getNextHighestDepth());
new Tween(panel.s7, '_xscale', Elastic.easeOut, panel.s7._xscale, 100, 1, true);
new Tween(panel.s7, '_yscale', Elastic.easeOut, panel.s7._yscale, 100, 1, true);
};
panel.s7.onRollOut = function() {
new Tween(panel.s7, '_xscale', Elastic.easeOut, panel.s7._xscale, 50, 1, true);
new Tween(panel.s7, '_yscale', Elastic.easeOut, panel.s7._yscale, 50, 1, true);
};
panel.s7.onRelease = function() {
holder.loadMovie('images/l7.jpg');
};
panel.s8.onRollOver = function() {
panel.s8.swapDepths(this.getNextHighestDepth());
new Tween(panel.s8, '_xscale', Elastic.easeOut, panel.s8._xscale, 100, 1, true);
new Tween(panel.s8, '_yscale', Elastic.easeOut, panel.s8._yscale, 100, 1, true);
};
panel.s8.onRollOut = function() {
new Tween(panel.s8, '_xscale', Elastic.easeOut, panel.s8._xscale, 50, 1, true);
new Tween(panel.s8, '_yscale', Elastic.easeOut, panel.s8._yscale, 50, 1, true);
};
panel.s8.onRelease = function() {
holder.loadMovie('images/l8.jpg');
};
panel.s9.onRollOver = function() {
panel.s9.swapDepths(this.getNextHighestDepth());
new Tween(panel.s9, '_xscale', Elastic.easeOut, panel.s9._xscale, 100, 1, true);
new Tween(panel.s9, '_yscale', Elastic.easeOut, panel.s9._yscale, 100, 1, true);
};
panel.s9.onRollOut = function() {
new Tween(panel.s9, '_xscale', Elastic.easeOut, panel.s9._xscale, 50, 1, true);
new Tween(panel.s9, '_yscale', Elastic.easeOut, panel.s9._yscale, 50, 1, true);
};
panel.s9.onRelease = function() {
holder.loadMovie('images/l9.jpg');
};
panel.s10.onRollOver = function() {
panel.s10.swapDepths(this.getNextHighestDepth());
new Tween(panel.s10, '_xscale', Elastic.easeOut, panel.s10._xscale, 100, 1, true);
new Tween(panel.s10, '_yscale', Elastic.easeOut, panel.s10._yscale, 100, 1, true);
};
panel.s10.onRollOut = function() {
new Tween(panel.s10, '_xscale', Elastic.easeOut, panel.s10._xscale, 50, 1, true);
new Tween(panel.s10, '_yscale', Elastic.easeOut, panel.s10._yscale, 50, 1, true);
};
panel.s10.onRelease = function() {
holder.loadMovie('images/l10.jpg');
};
panel.s11.onRollOver = function() {
panel.s11.swapDepths(this.getNextHighestDepth());
new Tween(panel.s11, '_xscale', Elastic.easeOut, panel.s11._xscale, 100, 1, true);
new Tween(panel.s11, '_yscale', Elastic.easeOut, panel.s11._yscale, 100, 1, true);
};
panel.s11.onRollOut = function() {
new Tween(panel.s11, '_xscale', Elastic.easeOut, panel.s11._xscale, 50, 1, true);
new Tween(panel.s11, '_yscale', Elastic.easeOut, panel.s11._yscale, 50, 1, true);
};
panel.s11.onRelease = function() {
holder.loadMovie('images/l11.jpg');
};
panel.s12.onRollOver = function() {
panel.s12.swapDepths(this.getNextHighestDepth());
new Tween(panel.s12, '_xscale', Elastic.easeOut, panel.s12._xscale, 100, 1, true);
new Tween(panel.s12, '_yscale', Elastic.easeOut, panel.s12._yscale, 100, 1, true);
};
panel.s12.onRollOut = function() {
new Tween(panel.s12, '_xscale', Elastic.easeOut, panel.s12._xscale, 50, 1, true);
new Tween(panel.s12, '_yscale', Elastic.easeOut, panel.s12._yscale, 50, 1, true);
};
panel.s12.onRelease = function() {
holder.loadMovie('images/l12.jpg');
};
panel.s13.onRollOver = function() {
panel.s13.swapDepths(this.getNextHighestDepth());
new Tween(panel.s13, '_xscale', Elastic.easeOut, panel.s13._xscale, 100, 1, true);
new Tween(panel.s13, '_yscale', Elastic.easeOut, panel.s13._yscale, 100, 1, true);
};
panel.s13.onRollOut = function() {
new Tween(panel.s13, '_xscale', Elastic.easeOut, panel.s13._xscale, 50, 1, true);
new Tween(panel.s13, '_yscale', Elastic.easeOut, panel.s13._yscale, 50, 1, true);
};
panel.s13.onRelease = function() {
holder.loadMovie('images/l13.jpg');
};
panel.s14.onRollOver = function() {
panel.s14.swapDepths(this.getNextHighestDepth());
new Tween(panel.s14, '_xscale', Elastic.easeOut, panel.s14._xscale, 100, 1, true);
new Tween(panel.s14, '_yscale', Elastic.easeOut, panel.s14._yscale, 100, 1, true);
};
panel.s14.onRollOut = function() {
new Tween(panel.s14, '_xscale', Elastic.easeOut, panel.s14._xscale, 50, 1, true);
new Tween(panel.s14, '_yscale', Elastic.easeOut, panel.s14._yscale, 50, 1, true);
};
panel.s14.onRelease = function() {
holder.loadMovie('images/l14.jpg');
};
panel.s15.onRollOver = function() {
panel.s15.swapDepths(this.getNextHighestDepth());
new Tween(panel.s15, '_xscale', Elastic.easeOut, panel.s15._xscale, 100, 1, true);
new Tween(panel.s15, '_yscale', Elastic.easeOut, panel.s15._yscale, 100, 1, true);
};
panel.s15.onRollOut = function() {
new Tween(panel.s15, '_xscale', Elastic.easeOut, panel.s15._xscale, 50, 1, true);
new Tween(panel.s15, '_yscale', Elastic.easeOut, panel.s15._yscale, 50, 1, true);
};
panel.s15.onRelease = function() {
holder.loadMovie('images/l15.jpg');
};
panel.s16.onRollOver = function() {
panel.s16.swapDepths(this.getNextHighestDepth());
new Tween(panel.s16, '_xscale', Elastic.easeOut, panel.s16._xscale, 100, 1, true);
new Tween(panel.s16, '_yscale', Elastic.easeOut, panel.s16._yscale, 100, 1, true);
};
panel.s16.onRollOut = function() {
new Tween(panel.s16, '_xscale', Elastic.easeOut, panel.s16._xscale, 50, 1, true);
new Tween(panel.s16, '_yscale', Elastic.easeOut, panel.s16._yscale, 50, 1, true);
};
panel.s16.onRelease = function() {
holder.loadMovie('images/l16.jpg');
};
panel.s17.onRollOver = function() {
panel.s17.swapDepths(this.getNextHighestDepth());
new Tween(panel.s17, '_xscale', Elastic.easeOut, panel.s17._xscale, 100, 1, true);
new Tween(panel.s17, '_yscale', Elastic.easeOut, panel.s17._yscale, 100, 1, true);
};
panel.s17.onRollOut = function() {
new Tween(panel.s17, '_xscale', Elastic.easeOut, panel.s17._xscale, 50, 1, true);
new Tween(panel.s17, '_yscale', Elastic.easeOut, panel.s17._yscale, 50, 1, true);
};
panel.s17.onRelease = function() {
holder.loadMovie('images/l17.jpg');
};
panel.s18.onRollOver = function() {
panel.s18.swapDepths(this.getNextHighestDepth());
new Tween(panel.s18, '_xscale', Elastic.easeOut, panel.s18._xscale, 100, 1, true);
new Tween(panel.s18, '_yscale', Elastic.easeOut, panel.s18._yscale, 100, 1, true);
};
panel.s18.onRollOut = function() {
new Tween(panel.s18, '_xscale', Elastic.easeOut, panel.s18._xscale, 50, 1, true);
new Tween(panel.s18, '_yscale', Elastic.easeOut, panel.s18._yscale, 50, 1, true);
};
panel.s18.onRelease = function() {
holder.loadMovie('images/l18.jpg');
};
panel.s19.onRollOver = function() {
panel.s19.swapDepths(this.getNextHighestDepth());
new Tween(panel.s19, '_xscale', Elastic.easeOut, panel.s19._xscale, 100, 1, true);
new Tween(panel.s19, '_yscale', Elastic.easeOut, panel.s19._yscale, 100, 1, true);
};
panel.s19.onRollOut = function() {
new Tween(panel.s19, '_xscale', Elastic.easeOut, panel.s19._xscale, 50, 1, true);
new Tween(panel.s19, '_yscale', Elastic.easeOut, panel.s19._yscale, 50, 1, true);
};
panel.s19.onRelease = function() {
holder.loadMovie('images/l19.jpg');
};



this is suppose to be a slim down version of the above AS, and if I use this AS the transitions don't work, thumbnail panel scrolls but you are unable to select any of the thumbnail images.
Code:

import mx.transitions.Tween;
import mx.transitions.easing.*;
//Loads the xml
var xml:XML = new XML();
xml.ignoreWhite = true;
var url:Array = new Array();
var captions:Array = new Array();
var whoIsOn:Number;
xml.onLoad = function() {
   var photo:Array = this.firstChild.childNodes;
   for (i = 0; i < photo.length; i++) {
      url.push(photo[i].attributes.url);
      captions.push(photo[i].attributes.caption);
   }
   holder.loadMovie(url[0]);
   caption.text = captions[0];
   whoIsOn = 0;
};
xml.load("image.xml");

//Gallery panel
panel.onRollOver = panelOver;
function panelOver() {
   this.onEnterFrame = scrollPanel;
   delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
   if (_xmouse < b.xMin || _xmouse > b.xMax || _ymouse < b.yMin || _ymouse > b.yMax) {
      this.onRollOver = panelOver;
      delete this.onEnterFrame;
   }
   if (panel._x >= 42) {
      panel._x = 42;
   }
   if (panel._x <= -1870) {
      panel._x = -1870;
   }
   var xdist = _xmouse - 400;
   panel._x += Math.round(-xdist / 11);
}
function myFunction(imgNum, scaleNum) {
   this['panel']['s' + imgNum].swapDepths(this.getNextHighestDepth());
   new Tween(this['panel']['s' + imgNum], '_xscale', Elastic.easeOut, this['panel']['s' + imgNum]._xscale, scaleNum, 1, true);
   new Tween(this['panel']['s' + imgNum], '_yscale', Elastic.easeOut, this['panel']['s' + imgNum]._yscale, scaleNum, 1, true);
}


I'M SURE SOMEONE COULD HELP ME OUT WITH WHAT I`M MISSING..OR..DOING WRONG..

View Replies !    View Related
WIN XP And 2000 Issue With Flash/swf Resolved?
Has anyone found a solution to the stuttering problem with CD Roms on Win XP and 2000 machines? Please help if you have the solution!

Thanks!

View Replies !    View Related
Resolved File Unexpected Error
Edited - we do not allow discussion of illegal use in any way here. consider this your first and only warning. Further such posts will result in a ban from Flashkit - david p.

View Replies !    View Related
Multilanguage - Unicode - Formatting (NOT RESOLVED)
I pushed by accident the 'resolve' for my previous thread... So, now i'm asking again for your help...
Dzjoepke.

hi,

I need to include multilanguage support in my flash-project. I looked at 2 tutorials about this and it works (with ATF-8 documents). Those tutorials were :
http://www.flashkit.com/tutorials/Ac...-772/index.php
and
http://www.macromedia.com/support/f...lization04.html

Now i have one problem : I want to give my text some kind of formatting (bold, cursive, bigger, smaller and underline)
Is this possible? And if not, is there another solution to my problem (multilanguage + formatting)
Thanks

View Replies !    View Related
RESOLVED - Co Ordinates For Plotting A Circle
hello

can anyone give me the equations for plotting the coordinates of a circle. i want to move a clip around in an ellipse.

cheers

Vince

/edit found it

View Replies !    View Related
[resolved] If You Have A TempInit Line 7 Error, Read Here
Good Day,

I don't know how many of you will run into this, but lets say hypothetically you're converting an as2 file to an as3, and you get a crazy error like this:

"tempInit line7 1084:colon blah blah blah"

To solve this, as I just found out, check your stage clips for names that start with and only contain a single space. Rename the clip and then its back into high gear once more.

happy coding,

Plasnid

View Replies !    View Related
Has Communication Between Iframe Javascript And Flash Been Resolved?
I have an inline frame that I want to pass a variable using javascript to a flash movie outside of the frame. I have tried using the parent target object to no avail.

Has anyone gotten this to work?

These are some of the things I have tried.

parent.frame[1].myFlash.SetVariable("showNav", sendText);

parent.document.myFlash.SetVariable("showNav", sendText);

top.frame[1].myFlash.SetVariable("showNav", sendText);

window.parent.myFlash.SetVariable("showNav", sendText);

I have searched all day and not found the answer yet. What I have learned is that IE 5.5 has some browser restrictions for JS in iframe because of exploits.

Did they take out JS support in iframes?

View Replies !    View Related
Resolved: Taking Forever To Build/compile
By taking forever, I mean to say the flash presentation takes 2-4 minutes to compile instead of 30-50 seconds.

I'm using Flash 8, OS X 10.4.3. At some point my .fla file started taking f o r e v e r to compile. I changed nothing, added nothing big. The only thing I did was add radiobutton components. I removed them. I also went throughout the document and removed all the actionscript. Nothing. I don't remember if the long compile time happened after or before the components.

The document is all vector, one font embedded throughout (Futura). The only effect is a drop shadow below a button using stepped vector objects - I could try removing this object. I'm not using an "effect" because I am targeting Flash 6.

Images are loaded via xml - not embedded.

4 frames

Any ideas?

Thanks,

John

View Replies !    View Related
Small Problem With A Little Class Wating To Be Resolved
Hey there!

Well this is my first post here I think and my first class ever!

Here is what I am trying to acheive with a class and drawing API

http://www.funkadelik.com/dev/flash/stu ... curve2.swf
http://www.funkadelik.com/dev/flash/stu ... curve2.fla

and this is the class based on the fla that doesn't work:

http://www.funkadelik.com//dev/flash/st ... vedLink.as

So basicaly:

Code:

var link:CurvedLink = new CurvedLink(55,150,211,300,30)

doesn't produce any results:(

I've spent quite a bit on this one that's why I'm posting here out of despair!

If someone could help with this! thanks!

Phunk

View Replies !    View Related
[Resolved]Issues With Dynamic Image Fading And FlashVars
I am using a lovely piece of AS code that grabs images from an external folder and randomly displays them, one at a time, fading in, holding static then fading out.

I have managed to make the holding time controllable via HTML FlashVars and I am attempting to do the same with the fading in/out speed.

Below is the code I am using:


Code:
createEmptyMovieClip("my_mc", 0);

var fadeSpeed = 1;

var myName:String = "banner";
var myExt:String = ".jpg";
var myNum:Number = 1;
var lastNum:Number = 1;
var nextFade:Boolean = false;
var picFadeIn:Boolean = false;
var isDone:Boolean = false;
var doHold:Boolean = false;
i = 0;

function timePics() {
doHold = false;
var myInt = setInterval(holdPic, (holdLength*1000));
function holdPic() {
nextFade = true;
clearInterval(myInt);
}
}
function getPics() {
lastNum = myNum;
myNum = Math.floor(Math.random()*numberOfFiles+1);
if (myNum == lastNum) {
if (myNum<=1) {
myNum += 1;
} else {
myNum -= 1;
}
}
my_mc.loadMovie("images/banners/"+myName+myNum+myExt, myNum+".jpg");
my_mc._alpha = 0;
picFadeIn = true;
nextFade = false;
i++;
my_mc._x += ((Stage.width-my_mc.width)/2);
}
getPics();
onEnterFrame = function () {
if (picFadeIn == true) {
if (my_mc._alpha<100) {
my_mc._alpha += fadeSpeed;
} else {
picFadeIn = false;
doHold = true;
}
}
if (doHold == true) {
timePics();
} else {
if (nextFade == true) {
if (my_mc._alpha>=0) {
my_mc._alpha -= fadeSpeed;
} else {
getPics();
}
}
}
};


The issue is with the variable fadeSpeed. Through some testing, I have found that if I set this variable via HTML FlashVars, the flash loads the first image at a determined alpha value and will not fade, it stays put.

I can only assume that this variable needs to constantly be changed within the AS and as such, setting it in the FlashVar stops its value from changing, equaling a static image.

Can anyone come up with a way for me to allow this variable to be controlled and not break the dynamic image fading?

Thankyou

Edit - the solution was simple in the end

Code:
var fade;
var fadeSpeed = fade*1;

View Replies !    View Related
Mouse Hide Or Not To Hide? That Is The Question
Hello again,

Pls could you tell me if there is anyway of controlling the coordinates of the mouse hide feature.

For example if i wanted it to confine to a certain area then reapear outside that area, how can it be done?

I thank you all big time

View Replies !    View Related
How Do I Hide Then Show Then Hide
look at this flash I made when you turn on the power the screen pops up using on mouse click visible

so how do I hide it?
http://www.myemer.com/cam/index.htm
sorry I forgot to include the link


my server seems also to be having problems
thats why my footer wouldnt load

any other tips

thanks
[Edited by nickname88 on 04-09-2002 at 12:43 AM]

View Replies !    View Related
[Resolved]Flash Video Tutorial "error Opening URL"
Hey guys, I am following Lee's flash video tutorial and all is working fine except... when I upload the .flv to my server, select 'test movie' from the menu, it no longer works. Instead it's giving me this error - "Error opening URL".

I know what you're thinking... YES, I use the absolute path, http://www.mydomain.com/flv/video.flv. And YES, my server has it's MIME settings correctly configured to play FLV files. I even tried to plug in the test video URL in my code, and that wouldn't work either:

ns.play("http://www.helpexamples.com/flash/video/water.flv");

I triple checked for typos in my code, and I can't seem to find any.

Here is what I have:

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("http://www.helpexamples.com/flash/video/water.flv");

Any Ideas? If it helps, I'm using Flash CS3 with ActionScript 2.0.

THANKS!!

-Elliot

View Replies !    View Related
Where Has The "Mark Resolved" Link Gone?
just wondering... can't seem to find it anywhere.... and i hate to leave resolved issues just hanging around in here...

View Replies !    View Related
Two Screens At Once
Here's a slippery one.

I'm creating a flash interface with two screens which both exhibit large portfolio images.

For instance, if someone clicks 'logo' in the menu, a large image of the logo would appear on the screen on the left. If they then clicked 'letterhead'in the menu, the letterhead would appear in the screen on the right.

I think I know how to create ONE of these screens: using the timeline, placing the images at various frames then linking to them, etc.

BUT, how can I do two screens at once? If one screen calls for the timeline to jump to a certain frame, but the other screen wants to jump to another, is this possible? The goal is for the two screens to act independently, but be visible at the same time.

Whew!

thanks,
TS

View Replies !    View Related
Help With Screens...
Hi all, I'm new to Flash MX2004 Pro and struggling with ActionScript, although I've used MX and earlier versions from a design point of view for several years. I'm experimenting with Presentation screens to create an eLearning interface and trying to code a ComboBox listing several slides which are children of the main slide which contains the navigation I found the code below which works with the (now commented out) trace but refuses to work with the next line which AFAIK is the correct navigation code can anyone point me in the right direction here. I dont' have a very good math background and coding is comming very slow for me so please be gentle (if only someone would write an ActionScripting for complete Morons book)

myComboBoxListener = new Object ();
myComboBoxListener.change = function (eventObj)
{
var eventSource = eventObj.target;
var trheSelectedItem = eventSource.selectedItem;
var theSelectedItemLabel = theSelectedItem.label;
//trace(theSelectedItemLabel);
myMain.gotoSlide(theSelectedItemLabel)

}
mtComboBox.addEventListener ("change", myComboBoxListener);

View Replies !    View Related
Mx Screens
Using screens in mx professional for the first time.
Within these screens I am using simple timeline animations.
I cannot stop all screen animations, child and parent, running together at runtime. Infact despite carefully following all macromedia instruction, navigation between screens seems impossible.
I have scoured macromedia help and on demand seminars, and the ability to simply navigate seems to be a cornerstone of the screens tool, so I do not want to get involved with writting complex action script if I can help it.
I must be missing something obvious; The file I am working on is at www.brandzero.com/flashproblem (and needs to be downloaded and saved as an fla file of course)if anyone has the time to have a look.
thank you
Ian

View Replies !    View Related
Red Screens?
Hi all

My apologies if this is a silly question. I did perform a search before asking. But nothing appears to address this issue. I seem to be having trouble locating things related to this using Google, so it must either be a rare thing that seldom happens or I'm just odd.

What is it that causes Flash playback to present a "red screen" from time to time? Low resources on the PC? Errors in the Flash output?

Cheers... Rick

View Replies !    View Related
Help With Screens
I am using screens for a presentation .On some slides I use loader to load external swf files. My problem is that the external swf file starts playing before the particular slide has loaded. This is also happening with swf files that i have imported into the library and used on slides. Is there a way to delya the swf file palying until the slide is loaded.

View Replies !    View Related
Who Uses 'screens'
The screens feature looks inviting, too good to be true in fact. I'm worried about getting trapped in a linear environment. Your thoughts? Experiences?

View Replies !    View Related
Screens
I am working on getting together a simple online demo, but this time around I am trying to incorporate flash. Mostly because of the nice transitions between screens.

Here is my problem, I am trying to have several "screens" that are essentially stills create inside of Photoshop. I have set it up so that the first screen fades in, but the second screen (that is supposed reveal when the first screen is clicked) is already loaded on top and the first page and the first page fades in on top of it. The second screen is marked as hidden, but it obviously still showing. Can someone please tell me how to fix this?

My goal is to have several screens, maybe a half dozen, (a couple of which will have video files embedded) that you can navigate through. I am fairly new to Flash so I appreciate any help! I am using Flash MX Pro 2004

View Replies !    View Related
Screens?
I've been having trouble with a Flash Video Gallery and I recently found this tutorial at Macromedia:
http://www.macromedia.com/devnet/mx/...dshowcase.html

The only trouble is, he's using SCREENS which I've never used before? They don't seem to be jiving with my preloader either.

Anyone have experience with SCREENS or a decent Flash Video Gallery?

Thanks.

View Replies !    View Related
Screens?
I've been having trouble with a Flash Video Gallery and I recently found this tutorial at Macromedia:
http://www.macromedia.com/devnet/mx/...dshowcase.html

The only trouble is, he's using SCREENS which I've never used before? They don't seem to be jiving with my preloader either.

Anyone have experience with SCREENS or a decent Flash Video Gallery?

Thanks.

View Replies !    View Related
Do You Use Screens?
Just checkin around to see who's using Forms/Screens versus the standard flash document type.

View Replies !    View Related
9 Screens In 1
Hello Ultrashock!!!

If you're willing to help me please reply and i'll tell you my problem.


P.S. How can I upload pictures from my own computer into the ultrshock forum?

View Replies !    View Related
Loading Screens
I've seen lots of different loading screens. I'm new to flash, so could someone tell me how to make a basic loading screen?

View Replies !    View Related
Zoom Up And Down Screens
Hi All

Ok ...please help

I have actionscript for a zoom up and zoom down screen for 2 screens....problem is i have four screens
therefore i need the alpha effect and tween effect to occur between all 4 screens
ie. when one is clicked the other 3 fade and that one zooms up ...can anyone out there let me know the actionscript that shoudl be added to the following scripting to allow this

buttons are named cohesively

ie

button 1
button 2
button 3
button 4

heres the coding:

1st frame of button:

on (release) {
if (_root.Button2.Played) {
_root.Button2.play("Backward");
}
_alpha = 100;
_root.Button2._alpha = 50;
gotoAndPlay ("Forward");
}



another layer

stop();
Played=false;


10th frame:

on(release){
gotoAndPlay("Backward");
_root.Button2._alpha=100;
}



another layer

stop();
Played=true;


last frame:

gotoAndPlay(1);



Thanks

j

View Replies !    View Related
Loading Screens
How do i make em, and when i learn how do you make the percentage? plz help

View Replies !    View Related
Loading Screens
How can I make my flash movie have a loding screen without bluffing it with a pretend one.


Andrew

View Replies !    View Related
Loading Screens
help me... i need to know how to make a loading screen... any help would be useful.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved