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




[Resolved][MX04] Telling Actionscript To Affect Outside Symbols



fixed problem



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-17-2008, 01:41 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Buttons Affect Other Symbols (as2)
I have a series of buttons that when rolled over I want some text to highlight.

First, I need to know if the text has to be a symbol with an instance name to get this done.

Second I can't find the code to even begin making my buttons change another symbol

[MX04]changing Variable Without Telling It To
i have an mc (base) that when clicked on generates another mc(unit) and you can control that newly generated mc with the arrow keys. but everytime i click the base mc the next unit that comes out moves faster.. any ideas why?

PHP Code:



radius=10;
var number = 1;
power = 2;
function Move(){
    if(Key.isDown(Key.LEFT)){
        _root["unit"+number]._x-=power;
        _root["unit"+number].gotoAndStop(2);
    }
    else
    if(Key.isDown(Key.RIGHT)){
        _root["unit"+number]._x+=power;
        _root["unit"+number].gotoAndStop(4);
    }
    else
    if(Key.isDown(Key.UP)){
        _root["unit"+number]._y-=power;
        _root["unit"+number].gotoAndStop(1);
    }
    else
    if(Key.isDown(Key.DOWN)){
        _root["unit"+number]._y+=power;
        _root["unit"+number].gotoAndStop(5);
    }
}
base.onPress=function(){
    number++;
    MainT.duplicateMovieClip("unit"+number, number);
    _root["unit"+number]._x = base._x;
    _root["unit"+number]._y = base._y;
    _root["unit"+number].onEnterFrame = function(){
        Move();
        if(rock.hitTest(this._x, this._y+radius, true))this._y-=power;
        if(rock.hitTest(this._x, this._y-radius, true))this._y+=power;
           if(rock.hitTest(this._x-radius, this._y, true))this._x+=power;
        if(rock.hitTest(this._x+radius, this._y, true))this._x-=power;
    }

}

Does Actionscript Affect When Using Different Browser?
hello....
I have the trouble i dono what happens.....
I just finish my website by using Mac.

I use actionscript for my button-enter

ActionScript Code:
on  (release)  {
 address  =  "http://www.wan-derland.com/main.html";
 target_winName  =  "Welcome to wan-derland";
 width  =  800;
 height  =  500;
 toolbar  =  0;
 location  =  0;
 directories  =  0;
 status  =  0;
 menubar  =  0;
 scrollbars  =  0;
 resizable  =  0;
 openWinCentre(address,  target_winName,  width, height,  toolbar,   location,  directories,  status, menubar,  scrollbars,  resizable);
}
When i use SAFARI to view my website. it works fine( I can enter the site by clicking the enter) but if i open with Internt Explorer, the button won't work at all.

Here is the link
http://www.wan-derland.com

Does anyone know what may cause this problem?
I use flash MX to do the website.


thanks a lot

:::::actionscript Telling Music And Graphic To Start
I bet this question has been asked a million times.

ok...you have an on and off button to play a music loop.

Ithe main timeline I have movies spread over 20 frames each. at a certain point to make it easy for myself.
I have a movie which displays an 'on and off button audio button' as well as a graphic equaliser. this works fine you press the button and the music loops; as well as the graphic eq moving.
The same as flash kit use (ish)
In the main time line a put a music movie outside of the screen. on frame one of this movie it has a stop command. the music plays on frame 5 and is told to play 99999 times.

Why is it that in the main timeline with another action, I tell the movie to play music and graphic; it only plays music and stops on 1 frame of the graphic?

telltarget audiosound
goto and play 2 (which is where all the little squares start going up and down.

This is driving me out of my mind. I have named all movies as instances and everything seems to work accept this initial graphic start. you press the audio on/off button and the music stops and press it again and the graphic works fine?????????


Scott

[MX04] Preload All Symbols? Help
Greetings.

I have created a flash movie that runs very well until you try to view it online.

It is made up of 2 scenes. The first is the loader, the second is the movie.

For some reason, my loader brings in the entire sound track and the main timeline, but all of my movie clip symbols are left to load when they are reached on the timeline, which throws the entire project out of sync.

Do I have to make invisible instances of every movie clip symbol on the first frame of the timeline? or is there an easier way to have ALL of my symbols load in BEFORE the movie starts playing?

[MX04] Finding A Symbol Within 2 Other Symbols
I have a symbol called man, which has within him 4 different frames. Each frame has a different symbol on it, which relates to his various states.

1 -> Idle
2 -> Walking
3 -> Attacking
4 -> Death

Frame 3, manAttack has within it another symbol, which is sword.

So, I have man -> manAttack -> sword

Now, back out on the stage I have another symbol called itemSword. What I'm trying to do is have it so that when man touches itemSword the symbol sword goes to it's second frame.

What I can't figure out how to do is find the symbol sword. I know how I would change the frame of man, or itemSword, but I can't find out how to access sword, since it's buried inside of 2 other symbols.

What is the correct code to put on itemSword that will tell sword to go to and stop on it's second frame?

For the curious, I'm trying to find an easy way for me to be able to have a weapon that can be changed. For example the first frame of sword could be a regular sword, where frame 2 could be a sword that is twice as long, or even just have different colors. If I can get this to work, I could apply this to other things, such as clothing.

I should note that this is all a learning exercise, so blindly posting a bunch of code, while nice, won't help me much. So if you could answer this question, or provide other ways in doing this with an explanation that would be great.

How To Get Actionscript From Symbols ?
How can I get actionscript code from a symbol I created using the flash gui ?

For example, I draw a green rectangle with text inside.

I would like to have the matching actionscript code

new rectangle();
color= green;
text = "blabla"

thanks

Greek Symbols For ActionScript?
Can Actionscript handle these greek characters? like Pi, delta, etc....


like these in this url...

http://www.vinini.com/greek.html



it seems to me that flash cant handle them, if it can tell me how i need to use them for some scripting. thanks.

Swapping Symbols Using Actionscript?
When i click my button, i want (using actionscript) image1_mc to change to image2_mc, when clicked again image2_mc to swap back to image1_mc... and so on.

Graphic Symbols And Actionscript
Hi

I'm trying to change certain properties of a graphic symbol such as alpha using actionscript, but isn't working. Can this actually be done with graphics or do they have to be converted to movieclips?

Instances, Symbols & Actionscript
Ok guys, it seems I'm missing something fundamental here.

I want to create symbols (movie clips) that contain certain ActionScript for onClipEvent(load) and onClipEvent(onEnterFrame).

I have trouble understanding how script could be attached to a symbol so that all instances of that symbol contain that script.

If I create a new movie clip symbol A and write the load and onenterframe event scripts for it, the next copies of A that I drag and drop onto the scene DO NOT have the script.

The way I want it is that I have symbol A in the library and when I drop it from there to the scene, it already contains the code for the load and onenterframe clip events. How can it be done ?

Swapping Symbols With Actionscript
I pretty much want it to,
When you press the key SPACE it swaps symbol "A" for Symbol "B". I also need this for collision with symbol "C"

Swapping Symbols Using ActionScript?
I want to be able to swap one symbol for another, exactly like you can in flash by selecting 'swap symbol' at the bottom left of your screen when a symbol is selected, only I want to do it via actionscript...

Is It Possible To Swap Symbols W/ ActionScript?
hi,

can i use actionscript in a button to swap symbols in a specific frame?
if so what would the code look like?

thx,
j

Using Actionscript To Move Symbols To The Top Of The Stack
Hello there, great to find a good 'Flash' help site.
I was wondering if it is possible, using Actionscript,to rearrange the order of symbols in a stack. I want to make a certain movie clip move to the top of the stack using actionscript in the movie clip itself. Cheers!

How Do I Rotate Text Symbols W/actionscript?
Hi all,
I'm trying to rotate a duplicated movieclip instance that contains some dynamic text. This is for use in a custom text effect (like rotating the characters as fly in or something.)

I'm using the setProperty("text1", _rotation, 45); etc, but it just makes the mc disappear.

I couldn't find anything on this... Does anyone have any useful insight on this?

Thanks!

=-Arlo

Big Chunky Symbols Animated In Actionscript?
Ok I'm total actionscript newbie, so I'm hoping there's a solution here.

please refer to:

www.jmrcreative.com/wmc/construction.html


Is there script to make things move, as in, instead of motion tweens. And, will this scripting improve speed and flow?

The two big chunky symbols that turn circuitiously in the left-hand side; can they be written in actionscript?

I dunno---------I wish artwork wasn't a sacrifice to animation problems....

Much thanks!

zievfret
zievfretheiligenstein@yahoo.com

Actionscript To Optimize And Turn 200 Images Into Symbols
Hi folx -
Does anyone know ofa place where a guy could find utility actionscripts to do this? I've imported 200 bitmaps which sit in one layer, frame by frame. You know. I'd like a script to go frame by frame, do "break apart" then "optimize (a specified %)", then "group" then "create symbol". Is there a place where you think I could look where someone has written similar actionscripts? OR... if one of you could get me started on the loop and some parts inside the loop. I do write VB and serverside VBscript and some javascript so if you got me started I could figure the rest out... thanks!!! I'm just curious about if this kind of coding is even possible with ActionScript (doing things like optimizing an image or turning one into a symbol)?
Thanks!
Scott

Help: Use Actionscript 2 To Manage On Stage Movieclip Symbols
I'm developing a site which I want to display certain number of moviclip symbols which are already in stage. Let's say they're named "holder1", "holder2",..."holder15".
As a result of a query to a database if I have 2 results I would like to display only "holder1" and "holder2".
One of the solutions I've thought is to use a switch case routine, that depending on the number of results of the query display the number of "holders", but imagine the amount of code this would require.
Is there a better way to do this ?
Thanks
lmvalenzuela

One Mask Masking Different Nested Elements Across Several Symbols Via Actionscript?
It appears that I can't assign one mask to a number of different symbols at the same time via actionscript.

I want to be able to take a masking layer and apply it to a layer within a number (10) duplicated symbols.

Is this even possible?

Thank you in advance!

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.

Resolved
Thanx all

Resolved
Resolved

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

[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.

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

[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"]);
}
?>

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!

[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;
}
}

[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.

Random Number [Resolved]
Whats wrong with this?

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

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

[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?

[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.

[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

[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

[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..

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!

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.

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

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

Editing Graphic Symbols By Copying And Pasting To Make Slightly Dif Symbols
Hi!

I am using flash to create moving people symbols. I created a "singular person" symbol and saved it, I then copyed a few to make a "bunch of people" symbol, when I go to edit these copyed and pasted symbols each saved symbol changes. Also I am saving them as graphic symbols at the moment.

thanks,

Helen

[MX04] ActionScript
Ok...so I'm trying to build my portfolio site in Flash. One of the problems I have been having is with a frame in particular that contains a 2 pieces - both for a magazine layout (2 page spread + continuing article) which has 2 2 page spreads. What I want to happen is when you roll over one it gets bigger. And when you roll off of it, it gets smaller. I got this to work. BUT when i test the movie and I click to view my next piece in the portfolio...WHAT IS STILL SHOWING?! My magazine spread!

I tried to use this.swapDepths(2). I don't really know much about actionscript. I was just told that this would solve my problems. And it didn't. Any help, would be greatly appreciated!! so PLEASE HELP!

Kari

[MX04] Actionscript Help
Hi there,

Since ive started using actionscript ive always had the same problem that comes up time and time again. Locating items.

_root. is the base of your application
_parent. is one level up
_child. is one level down

but how do you located an item which is neither of these.

i.e. i always try _root.mc1.mc2.mc3(1);

but never works. Can anyone help.

Thanks in advance

[MX04] Actionscript Help
I would like to know more about switch function. In my project, I have:

1. 'Input Text' type textbox with 'input' as the instance name.
2. Another Input 'Text type' textbox with 'output' as instance name.
3 Button with 'okay' as instance name.

Now what I want to do is: user would enter 'a', 'b' or 'c' in the textbox - 'input' and when the button 'okay' is pressed the textbox 'output' will show
i) if the supplied text is 'a', 'output' will show 'You type 'A'
ii) if the supplied text is 'b', 'output' will show 'You type 'B'
iii) if the supplied text is 'c', 'output' will show 'You type 'C'.

Can anyone help?

[mx04] Can I Do This W/actionscript Only?
I have a menu I'm trying to make, and it's in the shape of a windmill. I've got the rotation set up like I want and that's working fine, but because it's suppost to look as if it's at an agle, it doesn't look right while it is rotating. here is the swf
http://img41.imageshack.us/my.php?im...42000921zg.jpg
I have it set up like this:
I have it as a moveclip called wind1, on the stage with the instance name full_wind.
Inside the wind1 movieclip are the 4 fanblade movie clips called blade_1, blade_2, blade_3 and blade_4.
There is also text in the blade_1 movie clip, and ther will be on each of the blades eventually.
frame 1 of the main movie has the rotation actionscript on it.

So what I'd like to do is this,
as the blades rotate, I'd like them to shrink or stretch as the reach a certain position in there rotation cycle so as to add a bit of perspective to it. when the blades reach the top right and bottom left position they need to shrink a bit, and when they reach the top left and bottom right they need to stretch back, but smoothly.
I'm not sure if I should be using hittest or _scale here.
I'd like to do this with actionscript if possible, I don't like the result of frame by frame animation for this.
I'm learning actionscript, so alot this doesnt make sense to me.

[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

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?

Copyright © 2005-08 www.BigResource.com, All rights reserved