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




[FCS3] Interface Annoyance



This is driving me nuts.

I'm using CS3 and since I like a large screen I'm in the habit of docking everything and collapse/expand my libraries. I also keep my properties panel docked at the bottom. Before, when I opened the library panel, it used to show up over everything. Now, I don't know which wrong button I pressed but the bottom of it keeps getting covered by the properties panel. The only way I can have it on top of properties is if I undock properties, which isn't what I want. Can any gurus out there help me with this annoying issue? Thanks in advance.



FlashKit > Flash Help > Flash General Help
Posted on: 10-29-2007, 07:28 PM


View Complete Forum Thread with Replies

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

Key Lag Annoyance
hmmm... i never can seem to be able to avoid key lag in my games, like when you press a key, it takes a while. is theyre anyway to test purely WHETER OR NOT the key is pressed in flash, i know they'res a way because all of the other games dont seem to have that problem. any help?

{} Annoyance
Hi,

I have something very annoying going on in Flash. Everytime I want to type { or }, the ActionScript window simply unfocuses. It keeps doing that, so I can't type those characters. I usually open NotePad, type them there and copy them to Flash, but isn't there a better way to solve this ?

*Oh, right, I'm using Flash MX.

Probably Simple Annoyance
Hello!

I'm trying to figure out why when you publish a flash movie and then manually change the height pixels, it centres the stage in your web page. I've got a flash site with the html looking like this.

width="100%" height="950"

This is to take up the entire screen so I can animate all over the screen. What I've done is seperated the stage into 2 parts with a mask representing the bottom part. The idea was to extend the base on my stage as I needed more area for content and use javascript to tell flash to make the height either larger or smaller in pixels. Everything works so far however when I change the height to "750" The entire stage shifts up and the top of my movie is cut off.

I'm basically trying to accomplish what http://www.pdk.pl/index_feng.html has on their site however they are using frames and I want to avoid that.

After all this, the simple question is how do I keep the top of the movie at the top no matter what height I tell the flash to be in my html. I really want to avoid the scrollbar sitting there and a bunch of empty space at the bottom of the page if I only need 550 pixels in height for a specific page.

I am using Stage.scaleMode = "noScale"; to prevent the movie from scaling at 100% width.

Any help would be greatly appreciated.

.loadMovie Annoyance
Hi there

As you can see, that page has a loader movie clip that loads in each model home as you click on the buttons on the left hand side. Even when they are fully loaded, as you click from model to model you see a "flash" of the model index page it flashes for like a millisecond and then loads or pulls up the next model...

Is there anyway to have it go straight to the model page without flashing that page? or could I put something on the models.fla (the page that contains the loader clip) so that it shows a background or a blank page??

Thanks

As3 + Asynchronous = Annoyance
Hey!

I remember working with AMFPHP in AS2 and arguing with MANY flash developers who praised asynchronous stuff within flash. Granted its a nice way to do things but from a progmatical point of view its a nightmare...

Let me explain my situation and problem a bit more...

I want to use AMFPHP and wrap up the service communication in classes, so its all handled via external .as files, this way to do communication via Flash + PHP i only need to include a package instansiate the given class then send over a service request.

In an ideal world here is how i would imagine it going:


Code:
// I would have an internal default gateway incase you dont want to set one...
var serviceCommunicator:amfService = new amfService(my_gateway);

// Once the objects created, i would call a function "runService(arg1,arg2)" this
// would then ideally do the connection, run the service, then return out an
// object with the data retrieved from the service.
var serviceResult:Object = serviceCommunicator.runService(my_service, my_params);
Now the code above seems fairly logical and easy to use to me, that way you would wrap up alot of the functionality internally in the amfService class and all you need to do is run 2 lines to communicate with PHP...

However due to it being async, when you call run service it has to point the service to 2 return functions one for success one for error, that instantly means that you cant return anything worth while from the runService function as that just sets up the callback functions.

At this point i thought there MUST be a way to get my response without having to make a loader movieclip in flash or having to do some nasty global variables which dump the object when complete.

So im trying to think of ways to do this, i was thinking of maybe making a timer and having a while loop in the runService function to see if it has had a response (good or bad) then return out the relevent data that way. The timer could check a boolean flag internally to see if the operation has completed then return out, however im SURE that flash holds on while statements so i dont think i can do it that way. Then i thought about making an event that fired, but thats just going to go from one callback to another... Every way i think of doing it seems blocked by something...

So does anyone who knows what im going on about have any advice or ways they have made this process run all from actionscript?

I know this kinda goes against the point of it being asynchronous however i dont like mixing functionality and design, they *should* always be kept seperate, and the only easy way i can think of doing this is to make some looping movie clip which checks if the class has finished its communication, if it has then it triggers a function and trips a flag so everything else knows what to do, either way it seems illogical and a bit too much work for something simple...

Over to you guys!

[MX]small Annoyance
not really a huge deal, just a minor annoyance

ok i have my panel layout set and saved the way i want it

when i load flash up, all other panels are fine, but the library is NEVER there
i always have to pres F11 which pisses me right off
this happen to anyone else and if so, wtf?

A LoadMovie() Annoyance...
I have a simple swf on my pop station that checks the time and loads a swf depending on what time it is...That's the easy part. I debugged my movie by running it locally and changing my clock. Then when I put it on my site it doesn't load the first time the page does. If I hit refresh it loads the second time. Once It's loaded the next time it loads the wrong frame. Can anyone take a look and make a suggestion? The movie is in the top left hand corner of the site under the on the air now graphic.

http://97bht.com/http://97bht.com/

Thanks for your time!!

Movieclip Play Annoyance..
Id appreciate some help here, as Im fairly new..

I have made a small movieclip of a door that opens...

In the first frame I have put a stop action so that the door stays closed....no problem so far...

I want the movieclip to play on Mouseover...but I cant get it to work? I have tried "on rollover play" but nothing?

What am I missing? there must be an easy way to play a MC with a mouse action?

Thanks

The Mp3 Pause Annoyance... Some Info
Well, like many others, I ran into an mp3 the other day which no matter how much I edited would not loop cleanly in flash.

I was loading the mp3 dynamically, so .wav was not an easy option, and I really just wanted the sound to loop properly. I noticed that whenever I encoded the mp3, it would pad both the beginning and ending of the soundclip with a few milliseconds of silence. Some research into mp3 encoding told me that this miniscule empty data is used to compensate for the playback time of CD's (forgive me if that data is off the mark). This is great for playback of cd's, but it sucks for us flash programmers who need perfect, seamless music.

Well, to make a long story short, I figured out an imperfect fix which might work for you too.

I noticed that the amount of silence at the beginning of my mp3 file was exactly .025 seconds. So, instead of using a whole value for


ActionScript Code:
mySound.start(1, 9999)

i used

ActionScript Code:
mySound.start(.025, 9999)


and it made the sound quite a bit better, upgrading it to passing level.

I also do not know how frame rates and / or every individual mp3 file will respond to this method, but I'll leave that to you guys to figure out.



Hope this helps someone,

--EP

The Mp3 Pause Annoyance... Some Info
Well, like many others, I ran into an mp3 the other day which no matter how much I edited would not loop cleanly in flash.

I was loading the mp3 dynamically, so .wav was not an easy option, and I really just wanted the sound to loop properly. I noticed that whenever I encoded the mp3, it would pad both the beginning and ending of the soundclip with a few milliseconds of silence. Some research into mp3 encoding told me that this miniscule empty data is used to compensate for the playback time of CD's (forgive me if that data is off the mark). This is great for playback of cd's, but it sucks for us flash programmers who need perfect, seamless music.

Well, to make a long story short, I figured out an imperfect fix which might work for you too.

I noticed that the amount of silence at the beginning of my mp3 file was exactly .025 seconds. So, instead of using a whole value for


ActionScript Code:
mySound.start(1, 9999)

i used

ActionScript Code:
mySound.start(.025, 9999)


and it made the sound quite a bit better, upgrading it to passing level.

I also do not know how frame rates and / or every individual mp3 file will respond to this method, but I'll leave that to you guys to figure out.



Hope this helps someone,

--EP

Minor Annoyance.. No New Sound On Swords Way In... :(
Hi again. I have finally completed the sword comin out of the sheath with the "slink" sound effect. Now I have some more problems. I need the sword sound to play once on the way out then i need a sound to play while its out and i need to play a sound when the sword goes back in. Here, I will post the VERy useful code EstudioWorks gave me (this is on the first frame in a keyframe):

sworddrawn = new Sound();
sworddrawn.attachSound("sworddrawn2");
sworddrawn.stop();

emssword.onPress = function() {
startDrag(emssword, false, 100, 535, 700, 535);
sworddrawn.start();
}

emssword.onRelease = function() {
stopDrag();
sworddrawn.stop();
}
__________________________________________________ ________
And this is in the MC (the sword mc):________________

on(press) {
startDrag(emssword,false, 160, 580, 750, 580);
sworddrawn.Start();

}
on(release) {
stopDrag();
sworddrawn.Stop();
}

Now if you can help me please do i need it lol

Flash CS3 Actions Panel Annoyance
When I have my actions panel open, it will stay on top of all the other windows that open including the swf preview window. This is really annoying when I am look at the help, and trying to work on code at the same time, since the help window is covered, and I have to keep closing the actions panel to see the whole help window. my action panel is on the bottom of the interface, right above the properties.
And while I am on the topic of annoyances, is there a why to tell the help to only display AS2 stuff?

Russ

Button Inside Movieclip Annoyance
Hi

I have a page with a contact tab, on rollover the tab expands to reveal a hyperlink to an email address and a website. I have put an invisible button over the text but the buttons don't work! I know this is a common problem and I'v tried adapting advice iv found on tutorial pages and other forums but can't seem to adapt it to my file.

This is the code I have inside the MC that contains the button...

_root.othercontact_mc.zu_btn.onRelease = function() {
getURL ("mailto: zyzu_1115@126.com");
}

Please point me in the right direction for a good tutorial or show me where my code is going wrong.

Thanks a lot.

Quick Question About Rotated Container Clips, Minor Annoyance
Hello

An example of my annoyance: A vertical scrolling panel is added into a container clip then the container clip is rotated slightly. When scrolling the panel inside the rotated clip, the movement is far from smooth - very choppy, looks like it is shifting onto whole pixels. I've not been able to figure any kind of workaround for this problem, does anyone know what I mean?
I've tried drawing the scrolling content down to a bitmap and setting the smooth and pixelsnapping properties of it, and I've tried not actually rotating the container, but working out the start and end points of the scroll along the angle required and moving between those. It all looks a bit pants. If anyone has any techniques that may help this, could you let me know? Thanks!

Tyler

Closing Tabs And Moving Interface Interface
before i start HERE is the design i am working with,

What i want to do is when you click on a menu item i want to close the tabs that are allready open and move the interface across the screen to a different position and than open certain tabs (sections) at the new position.

What i want to know is is there a way of finding out which tabs are open and need to be closed and closing them and which are allready closed and bypassing them and than moving the interface to a different position.

If there is a way of doing this could anyone point me in the right direction of where to go to learn how?

I hope i am making some sense i am prettty new to flash and this is one of my first big adventures with flash.

any help would be greatly appreciated.

ancora

[fcs3]
Hello, novice here

Right the basic problem is this:

I have one Main.swf file and I’m importing symbols from a seperate.swf using the import for runtime sharing options. What I have in the Main.swf is a container symbol and in the separate.swf file I have a symbol containing a bmp that needs to scale up at runtime when it is imported by the Main.swf to fit the size of the container symbol. Do you know if this is this possible?

I have the importing/exporting part working fine, it is just the scaling that I can’t get to work. Any ideas

[Fcs3]
hi, ive been trying to make myself a portfolio using flash cs3, and so far everythings been running pretty smoothly, ive been following a tutorials by cartoonsmart.com, but ive started running into some trouble now, i created a function that tweens out a section off to the side when i click on a new section, but for some reason the tween refuses to work with certain sections...even tho the code for each section is identical...

heres the code:

frame one(the function)

Code:
function swapSections(){

if (sectionVar == "home"){
new mx.transitions.Tween(home_section, "_x", mx.transitions.easing.Regular.easeOut , 95.0, 800, 30, false);
}
if (sectionVar == "about"){
new mx.transitions.Tween(about_section, "_x", mx.transitions.easing.Regular.easeOut , 75, 800, 30, false);
}
if (sectionVar == "contact"){
new mx.transitions.Tween(contact_section, "_x", mx.transitions.easing.Regular.easeOut , 95, 800, 30, false);
}
if (sectionVar == "sigs"){
new mx.transitions.Tween(sigs_ection, "_x", mx.transitions.easing.Regular.easeOut , 75, 800, 30, false);
}
if (sectionVar == "sites"){
new mx.transitions.Tween(sites_section, "_x", mx.transitions.easing.Regular.easeOut , 95, 800, 30, false);
}

}
frame 50(home)

Code:
new mx.transitions.Tween(home_section, "_x", mx.transitions.easing.Regular.easeOut , -700, 95, 30, false);

// function called to move out the old section (this function is on frame 1)
swapSections();

//variable used in the function above to determine the current section
sectionVar = "home";

stop();
frame 60 (about me)

Code:
new mx.transitions.Tween(about_section, "_x", mx.transitions.easing.Regular.easeOut , -700, 75, 30, false);

// function called to move out the old section (this function is on frame 1)
swapSections();

//variable used in the function above to determine the current section
sectionVar = "about";
frame 70 (contact me)

Code:
new mx.transitions.Tween(contact_section, "_x", mx.transitions.easing.Regular.easeOut , -700, 95, 30, false);

// function called to move out the old section (this function is on frame 1)
swapSections();

//variable used in the function above to determine the current section
sectionVar = "contact";
frame 80 (sigs)

Code:
new mx.transitions.Tween(sigs_section, "_x", mx.transitions.easing.Regular.easeOut , -700, 95, 30, false);

// function called to move out the old section (this function is on frame 1)
swapSections();

//variable used in the function above to determine the current section
sectionVar = "sigs";

[fCS3] Why? Just Why?
Sorry about the unclearness of the title but that's the question i have been asking myself all day!

I am making a part in my flash game where you can select the level. I have made an input text box and set the var name to levelinput. Then i made a button and gave it this code:


Code:
on(release, keyPress"<Enter>"){
if(levelinput.toLowerCase eq "tutorial"){
gotoAndStop("Scene 2", "tutorialstart");
}else if(levelinput.toLowerCase eq "level1"){
gotoAndStop("Scene 3", "hsstart");
}else{
gotoAndStop("Scene 1", "invalidlvl");
}
}


for some reason i always get the invalidlvl frame. I would really appreciate some help guys, cos i haven't even done the main part of the game yet, and i don't like moving on while things don't work.


oh, btw, i made sure the frame labels are correct and used the script assist to confirm it. nothing wrong with the code... I followed a tut on this kind of thing and that didn't work either....

[FCS3] Actionscript 2 Or 3?
Hi

I've been learning flash for about a year, and have slowly been trying to get to grips with using actionscript (2). I normally grab bits of script from forums and tutorials and piece and adapt them to how I need.

Thing is, I really want to understand what I'm using and to be able to write my own script. With that in mind, am I best to forget the basic knowledge of AS2 and learn AS3? Or should I attempt to learn AS2 first, then AS3???

Also, if anyone could reccomend a book or tutorial that would be good to learn with, that would be great!!

Thanks
Wayne

[fCS3] Can't Add Actionscript To MC
Ok so i'm trying out fCS3, and I can't seem to add actionscript to MC's. I click on the MC, press the button with the arrow on the bottom pannel/right click then hit actions, and it says that I can't add actionscript to it. Am I pressing the right button or what? and also when I import/open something from F8 that already has actionscript it adds a panel with Actions - MC. and yes I am aware that fCS3 uses actionscript 3, is it that or what am i doing wrong? lol yes a very noob question. ty for any answers

[FCS3]How To Call External SWF's
I am creating an eLearning class using Flash CS3.

I would like to use basic controls to control the class (i.e. play, next, back). What I am trying to figure out is how to each new slide.

Example: At the main menu screen users have three different chapters they can go to, each chapter is a seperate .SWF file. How do I call this SWF so that it loads and plays, without it being in a seperate FLV playback window?

Anybody have any ideas on how to do this? I am sure it is possible, but I am new and ignorant.

I do not want to use the slide show application becaquse it only supports AS 2.

(FCS3) Combo Box Flickers, Why?
Hi, got a combobox inside a mc in a 1.swf that I import into 2.swf but there the combobox just flicker. It works fine when I test it using
´Test Movie´ in flash. And if I go straight to the directory and open 1.swf.

Any ideas?

And another newbie question how do I relabel a datagrid instance? (I am using a script from a mate and I need to relable the datagrid)

Help really appriciated!

B

[FCS3] Point-Roll?
does anyone know a good script for Point-roll that works cross-platform? i've created a point-roll in Flash CS3: hover over Flash movie and unfolding the pane. it needs to play in both IE and Safari/Firefox ? we got it to work in IE but not Safari/Firefox.

thanx much,
Sara
scsirain@yahoo.com

[FCS3] Tween Trouble In CS3
My Flash experience is in using Flash8, and I'm currently using CS3 for the first time. I am however using AS2.0, not 3.0.

I'm using several motion tweens between various keyframes in a layer of a movieclip. Each tween is from a keyframe with a symbol instance set at color: Alpha, 0% and the same symbol with color: Alpha, 100%. These appear to be functioning properly. Below that layer I have a layer with almost identical "static" symbols. The intended effect being part of the swf "fades in."

However, by the second frame as the alpha starts to tween in, the entire image (including the normal static layer) is washed out as if the tween layer has 100% opacity over the static fill layer.

I've done the exact same thing in the past using Flash8, so maybe I'm just forgetting something. Thanks for any help!

[FCS3] Dynamic Layers
How do I dynamically control which object is shown above or below another? I want to create a rotating menu, where icons are revolving around a vertical axis. So the icons in the foreground will eventually become icons in the background and thus their view will get obstructed by the icons coming into the fore.

I'm figuring that the actionscript is needed to dynamically assign assets to layers. How do I achieve this?

(I haven't touched flash in ages and this may not be the correct place to post this)

[FCS3] Including Php Links
I am working on a HTML/PHP site which uses php links to forward/include a refID. The links within the HTML have changed from standard HTML <a href="page.html"> to PHP <a href="<?writeLink('page.php')?> so the refID will always remain in the address bar for the contact.php page to pick up when relevant.

This is all fine, however I also use an animated Flash map to link to (for example) page.php. How can I update the standard getURL links in my Flash file to carry this RefID onwards?

The writelink code is:
<?
function writeLink($strLink)
{
echo $query_string;
$refId = $_GET["ref"];
if ($refId=="")
{
echo $strLink;
}
else if (parameterAlreadyExists()==true)
{
echo $strLink."?id=".$_GET["id"]."&ref=".$refId;
}
else
{
echo $strLink."?ref=".$refId;
}
}
function parameterAlreadyExists()
{
if ($_GET["id"]=="")
{

return false;
}
else
{

return true;
}

}

Not sure if I'm just being dumb, but I've spent hours trawling through various sites and Flash/PHP tutorials without finding the answer! Any help, as always, would be appreciated.

Class Exclusion In FCS3
Hi all :)

My question is related to the exclusion of classes during the compilation of a fla file (not using the Flex Builder !!!) using AS3. Simply, I'm searching a way to do the same as the exclude.xml using AS2. As I want to set a Document Class to my fla, I cannot use a describeType-solution or a solution
like that :(
Is there a way to do that ? I already launched a topic on Media-Box [FR] but it seems that isn't possible yet...

Best regards !

Flex And Fcs3 Not Playing Well Together
sorry for repost, can someone delete this?

Flex And Fcs3 Not Playing Well Together
i havent woked on any as3 projects in a few months but now am getting back at it with a new project although now fcs3 and flex dont want to play well together like they used to.

first problem is when i have a movieclip in fcs3 linked to a AS3 class and put another movieclip inside it (in fcs3) and give it a variable name and try to declare it in the AS3 class

Code:
public class Puzzle1 extends MovieClip{
public var myImg:MovieClip;
it gives me this error: 1151: A conflict exists with definition myImg in namespace internal.

my second problem is when i try to pass tat same Puzzle1 class to another class it wont let me

Code:
public var pGrid:PGrid = new PGrid(this);
it gives me this error: 1067: Implicit coercion of a value of type Class to an unrelated type game.p1uzzle1.
but if i pass it in as a MovieClip it works fine, this i know can not be right.

any ideas on what the problem could be?

[FCS3] Class Limit?
There are 77 classes in my project and around 30 of them are linked to MovieClips. If I do a size report it says that my Actionscript classes are 110296 bytes.

I am having a mysterious problem. I have a MovieClip, and I would like to link a class to it in the library.

But I get the following error:

The class or interface 'gui.screens.game.ContinueGame' could not be loaded.

The class at the moment is empty (see code below), although I have tried renaming, deleting and recreating it a few times.


Code:
class gui.screens.game.ContinueGame extends MovieClip {
public function ContinueGame() {

}
}
I have also tried linking the class to other MovieClips that have been successfully linked other classes before - which didn't work.

I have tried linking other classes I have used before to the MovieClip - which worked. So the problem lies with the linking of the specific class. Since I have tried renaming it, I'm wondering if there is you can only link a certain number of classes or something. Or I am missing something obvious and will kick myself when I find it.

[FCS3] Help: Animated Navigation Bar
i'm trying to create a nav toolbar of some sort like the one that was mentioned here.
being an actionscript newbie relying on kirupa tutorials i am stumped on a few items.

questions.

1. how do i make the buttons inside the scrolling mc or any animated mc to work.
2. i am able to swap the z order of the scrolling items using swapDepths using "onRelease"... how do i make it work on something like "onRollOver"?
3. is there a way to maintain the object spacing on the scrolling items while the focused item is enlarged?

...i know there was one more question in my head... i kinda forgot what it was. update this post when i remember it =]

any help would be appreciated.

thanks!

Logging On With Flash (FCS3.AS2)
i've looked on the site and it doesn't quite have what i need (great site btw)

anyway this is what im looking for.

actionscript 2 for;
a stand alone flash program
that several users can log on
and multiple accounts can be made
and it will save and remember where the user was if they log in again

basically i'm making a puzzle flash game

if they finish level 1 level 2 gets unlocked and level 3 after level 2 is complete.

i'm thinking of heading on the lines of

if the user logs on and plays the variables (level 1, level 2, level 3) change from false to true until they complete the previous level (with the exception of level 1 always being true)

then when logging on again if the name and password is the same as previously used then they will be able to resume from either level 1 2 or 3 (they will have to start from the beginning of the puzzle naturally, not from their last move)

so is there any way to do this without mySQL and without PHP? or do i have to use them? because i'm using a stand alone flash file and at most use a simple .txt or an .xml file.

also its preferred that all scripting done on the first frame and not on buttons and using instance names not the var box down in the bottom right hand corner.
(if not ill translate it on my own)

fast help will be greatly appreciated
thanks in advance!!

z~

PS im not a flash wiz or anything... i just know the basics...

[FCS3] Problems With Gotoandplay And GetURL?
I just started using Flash CS3 and am trying to do something seemingly very simple. All I want to do is loop Scene 2 and have the flash movie link to a certain web page. I managed to get it to loop Scene 2, but once I added the button with the link, it stopped looping. I'm not sure if I even have the link working either.

I made a mockup of my FLA. This is exactly how I do it in my real FLA.

Any help is appreciated

[fcs3-as2] Save Listbox To File...
Hi again,
Well, using AS2, because I just don`t know whats to great about AS3 above AS2 yet. I`m used to Delphi, so maybe AS3 would be better, but for now, it`s AS2

And to the question;
I`m making a little program. It contains lists witch can be edited (add/remove/edit-line). It`s holding information like programs/games/movies and stuff you`v got on your computer.

All the buttons are working, but I still need one more thing; save the lists to a .txt file(or .ini, or whatever).

How do I do this? Just a simple methode to save all the lines in a way that they can be read back again. (Need help with the read thing too..)
And is there any way to "hold" the information inside the flashfile as long as it`s running? Because, I`v got 5 areas witch loads on different keyframes (depending on what cathegory you click on in the main menu) and each time I switch to another place on the timeline and back again, the text is gone...
Would work to just save/load each time too...

Thanks in advance!

[FCS3]Simple Textbox Problem
Hey guys,

For some reason when i click in a multiline textbox the cursor appears on the 2nd line not the very top line. Does this happen to everyone or is there a way to fix this? Seems a bit unprofessional on my contact form...

Thx

[fCS3] How Do I Break Out Of A Movie Clip?
Ok, this is confusing.

I have made a button inside a movieclip. I have a applied actionscript to the button. The actionscript has an IF statement which, when true, should take me to a frame on the main timline that i have labeled "window". however, this doesn't work.

basically how can i get a button in a movieclip to take me to somewhere on the main timline?

[fCS3] Auto-Kern Query
What is auto-kern, and why has it stopped me from using vars in my input text boxes?

[Fcs3] Tricky Carousel Question...
hi...

Just a simple carousel based question, (it's tricky for me though). I was utilising the tutorial over at gotoandlearn. I'm trying to load a mc from the library in flash instead of an external movie via the xml file...


Code:
<icon image="img/frame7.png" tooltip="Funky" movie="funky.swf" />
^^^ is an example of a line of code in the xml file which loads an external movie into a mc called myLoader in the main flash movie.

Any ideas how to use a library item instead of an external movie. I've tried code:
//load movie from directory...
myLoader.attachMovie(t.movie);

whereby t.movie is the attribute movie in the xml file, (which I gave the linkage ID of "funky" instead of "funky.swf"). no luck though...

thanks in advance
Jeff

FCS3 - XML Content & Direct Access
Hi People,
I have a question regarding direct access to XML Data nodes. Please bear in mind I am building this application for an Online Advertisement so loading times are essential.

The first question to ask is: How much XML Data is acceptable to be loaded on the first frame? There will be about 100 different products, each with 6 attributes (Name, ImgPath, etc). Is this going to be too much? If yes, please read on...

I am building an application which will contain around 100 different products, I generally build XML applications by bringing all the data in at the beginning, putting it into Arrays and displaying it when necessary. This has served me well in the past and I would like to stick somewhat close to this for sanity's sake. I am hoping to reduce the amount of data brought in on the first frame to reduce loading time and make it easier for myself to debug, is it possible for me to access specific child nodes by a name that will be retreived from the users selection. I am hoping this will reduce loading times and make it easier for me arrange everything, as I will only have to data I need and can update it when necessary.

Any assistance greatly appreciated,
thanks in advance.

[FCS3] Updating Email Link
I bought a Flash kit site. I have made all the changes. Missing is how to access the code so I can add the correct email link. How do I do that?

[FCS3] Refer To Objects In Other Frames
Hey guys,

I have a text box in frame 2 with instance name "name2". I want this value to be equal to the textbox in frame 1, "username". How do I do this?

Thanks for the help,

escapexthexfate

[FCS3]Checking External SWF In Levels
Hello all.
I'm new to working with levels, and I'm trying to test which .swf is currently loaded into a certain level. Is there a way to do this?

What I'm attempting is to load content for a portfolio into the main swf. However, if the "home" content is already loaded and the "home" button is clicked, I don't want it to reload.

By the way, I'm using AS 2.0

Also, is there an easy way to split the scenes in a .fla into separate .fla's?

Thank you for any advice you can give me!

[FCS3] Popup Window Size Issue
Hi,

For some reason, the popup window link in my Flash website opens up a popup which doesn't behave to the window size rules I set.

The website is www.caveataudiens.net , click on the 'music' button, and then on the Jukebox button to see as example.

The Jukebox button has the following actionscript:

on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://www.caveataudiens.net/music/mp3player.html";
target_winName = "kirupa";
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}



and in my main actionscript layer I have:

stopAllSounds();

forum_btn.onRelease = function() {
getURL("http://www.flaccidsacks.co.uk/phpBB2/", "_blank");

}

music_btn.onRelease = function() {
gotoAndStop("music");
}

links_btn.onRelease = function() {
gotoAndStop("links");
}

about_btn.onRelease = function() {
gotoAndStop("about");
}

news_btn.onRelease = function() {
gotoAndStop("news");

}

Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{myWin.focus();};void(0);");
}

Can some kind soul help me figure out how to adjust the window size?

Many thanks

lyle

PS 30 seconds in, a brief anti-war logo flashes up, don't be startled.

[FCS3] Menu/Button Repeat Problem
Hi there, my name is Alex Collins, and i'm sure i will be coming to this forum very often in the future. I have been using flash for ages, but I don't know much actionscript. I was making a menu for my friend today, and I came accross a problem. I attched the .fla file and the .swf file, so you can have a look. Basically, when you rollover the menu bar thingy, its meant to come up with the movie clip (in the "over" state of the menu) and play it, but instead, it just plays it halfway, and repeats over and over. I have put in stop actions to try and stop it repeating, but to no avail. It only works fully when you hold the mouse down on it??? Can anyone help me? (please)

I use Flash CS3 and Windows XP.

Thanks
Alex

FLA < here
SWF < here

[FCS3] Firefox Not Displaying Loaded Images
BTW this is Flash CS3 Actionscript 2.0 though.
I have created a website, http://www.stephenkiers.com/, for a client and am now testing it live on the server after testing it on my local machines fine. The problem is that for some reason the images (contained in a xml document) won't display in firefox or safari. The flash document seems to load the image, it just won't display it. The more confusing part is it works fine in IE 7 on PC.
the code to load the images is below.
Sorry if it messy, most of it was written by me, and some is modified from anothers work....

Keyframe1

Code:
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {
////////////////////////////////////////////////////////
if (picturenumber == 1) {
picturenumber = numberofpictures;
gotoAndPlay("set_variable");
}
else if (picturenumber != 1) {
picturenumber -= 1;
gotoAndPlay("set_variable");
} ;
////////////////////////////////////////////////////////

} else if (Key.getCode() == Key.RIGHT) {

////////////////////////////////////////////////////////
if (picturenumber != numberofpictures) {
picturenumber += 1;
gotoAndPlay("set_variable");
}
else if (picturenumber == numberofpictures) {
picturenumber = 1;
gotoAndPlay("set_variable");
};
////////////////////////////////////////////////////////

}

};


numberofpictures = 50;
picturenumber = 1;
loadVariables("pictures.asp","");


Keyframe 30- used to confirm how many pictures there are:

Code:
if (picture1caption == "none") {numberofpictures -= 1};
if (picture2caption == "none") {numberofpictures -= 1};
if (picture3caption == "none") {numberofpictures -= 1};
if (picture4caption == "none") {numberofpictures -= 1};
if (picture5caption == "none") {numberofpictures -= 1};
if (picture6caption == "none") {numberofpictures -= 1};
if (picture7caption == "none") {numberofpictures -= 1};
if (picture8caption == "none") {numberofpictures -= 1};
if (picture9caption == "none") {numberofpictures -= 1};
if (picture10caption == "none") {numberofpictures -= 1};
if (picture11caption == "none") {numberofpictures -= 1};
if (picture12caption == "none") {numberofpictures -= 1};
if (picture13caption == "none") {numberofpictures -= 1};
if (picture14caption == "none") {numberofpictures -= 1};
if (picture15caption == "none") {numberofpictures -= 1};
if (picture16caption == "none") {numberofpictures -= 1};
if (picture17caption == "none") {numberofpictures -= 1};
if (picture18caption == "none") {numberofpictures -= 1};
if (picture19caption == "none") {numberofpictures -= 1};
if (picture20caption == "none") {numberofpictures -= 1};
if (picture21caption == "none") {numberofpictures -= 1};
if (picture22caption == "none") {numberofpictures -= 1};
if (picture23caption == "none") {numberofpictures -= 1};
if (picture24caption == "none") {numberofpictures -= 1};
if (picture25caption == "none") {numberofpictures -= 1};
if (picture26caption == "none") {numberofpictures -= 1};
if (picture27caption == "none") {numberofpictures -= 1};
if (picture28caption == "none") {numberofpictures -= 1};
if (picture29caption == "none") {numberofpictures -= 1};
if (picture20caption == "none") {numberofpictures -= 1};
if (picture31caption == "none") {numberofpictures -= 1};
if (picture32caption == "none") {numberofpictures -= 1};
if (picture33caption == "none") {numberofpictures -= 1};
if (picture34caption == "none") {numberofpictures -= 1};
if (picture35caption == "none") {numberofpictures -= 1};
if (picture36caption == "none") {numberofpictures -= 1};
if (picture37caption == "none") {numberofpictures -= 1};
if (picture38caption == "none") {numberofpictures -= 1};
if (picture39caption == "none") {numberofpictures -= 1};
if (picture40caption == "none") {numberofpictures -= 1};
if (picture41caption == "none") {numberofpictures -= 1};
if (picture42caption == "none") {numberofpictures -= 1};
if (picture43caption == "none") {numberofpictures -= 1};
if (picture44caption == "none") {numberofpictures -= 1};
if (picture45caption == "none") {numberofpictures -= 1};
if (picture46caption == "none") {numberofpictures -= 1};
if (picture47caption == "none") {numberofpictures -= 1};
if (picture48caption == "none") {numberofpictures -= 1};
if (picture49caption == "none") {numberofpictures -= 1};
if (picture50caption == "none") {numberofpictures -= 1};


Keyframe 31

Code:
if (picturenumber == 1) {src = picture1;srcname = picture1caption;}
else if (picturenumber == 2) {src = picture2;srcname = picture2caption;}
else if (picturenumber == 3) {src = picture3;srcname = picture3caption;}
else if (picturenumber == 4) {src = picture4;srcname = picture4caption;}
else if (picturenumber == 5) { src = picture5;srcname = picture5caption;}
else if (picturenumber == 6) {src = picture6;srcname = picture6caption;}
else if (picturenumber == 7) {src = picture7;srcname = picture7caption;}
else if (picturenumber == 8) {src = picture8;srcname = picture8caption;}
else if (picturenumber == 9) {src = picture9;srcname = picture9caption;}
else if (picturenumber == 10) {src = picture10;srcname = picture10caption;}
else if (picturenumber == 11) {src = picture11;srcname = picture11caption;}
else if (picturenumber == 12) {src = picture12;srcname = picture12caption;}
else if (picturenumber == 13) {src = picture13;srcname = picture13caption;}
else if (picturenumber == 14) {src = picture14;srcname = picture14caption;}
else if (picturenumber == 15) {src = picture15;srcname = picture15caption;}
else if (picturenumber == 16) {src = picture16;srcname = picture16caption;}
else if (picturenumber == 17) {src = picture17;srcname = picture17caption;}
else if (picturenumber == 18) {src = picture18;srcname = picture18caption;}
else if (picturenumber == 19) {src = picture19;srcname = picture19caption;}
else if (picturenumber == 20) {src = picture20;srcname = picture20caption;}
else if (picturenumber == 21) {src = picture21;srcname = picture21caption;}
else if (picturenumber == 22) {src = picture22;srcname = picture22caption;}
else if (picturenumber == 23) {src = picture23;srcname = picture23caption;}
else if (picturenumber == 24) {src = picture24;srcname = picture24caption;}
else if (picturenumber == 25) {src = picture25;srcname = picture25caption;}
else if (picturenumber == 26) {src = picture26;srcname = picture26caption;}
else if (picturenumber == 27) {src = picture27;srcname = picture27caption;}
else if (picturenumber == 28) {src = picture28;srcname = picture28caption;}
else if (picturenumber == 29) {src = picture29;srcname = picture29caption;}
else if (picturenumber == 30) {src = picture30;srcname = picture30caption;}
else if (picturenumber == 31) {src = picture31;srcname = picture31caption;}
else if (picturenumber == 32) {src = picture32;srcname = picture32caption;}
else if (picturenumber == 33) {src = picture33;srcname = picture33caption;}
else if (picturenumber == 34) {src = picture34;srcname = picture34caption;}
else if (picturenumber == 35) {src = picture35;srcname = picture35caption;}
else if (picturenumber == 36) {src = picture36;srcname = picture36caption;}
else if (picturenumber == 37) {src = picture37;srcname = picture37caption;}
else if (picturenumber == 38) {src = picture38;srcname = picture38caption;}
else if (picturenumber == 39) {src = picture39;srcname = picture39caption;}
else if (picturenumber == 40) {src = picture40;srcname = picture40caption;}
else if (picturenumber == 41) {src = picture41;srcname = picture41caption;}
else if (picturenumber == 42) {src = picture42;srcname = picture42caption;}
else if (picturenumber == 43) {src = picture43;srcname = picture43caption;}
else if (picturenumber == 44) {src = picture44;srcname = picture44caption;}
else if (picturenumber == 45) {src = picture45;srcname = picture45caption;}
else if (picturenumber == 46) {src = picture46;srcname = picture46caption;}
else if (picturenumber == 47) {src = picture47;srcname = picture47caption;}
else if (picturenumber == 48) {src = picture48;srcname = picture48caption;}
else if (picturenumber == 49) {src = picture49;srcname = picture49caption;}
else if (picturenumber == 50) {src = picture50;srcname = picture50caption;}





MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 5;
} else {
delete this.onEnterFrame;
}
};
};

my_mc = new MovieClipLoader();
preload = new Object();

my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
_root.pictures._alpha = 0;
_root.bar._visible = true;
_root.loadtext._visible = true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
_root.bar._width = (lBytes/tBytes) * _root.barwidth;
_root.loadtext.text = Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
//_root.pictures._alpha = 100;
_root.pictures.fadeIn();
_root.bar._visible = false;
_root.loadtext._visible = false;
trace(targetMC+" finished");
};
//default image

my_mc.loadClip(src, "_root.pictures");
_root.desctxt.text = srcname;


Keyframe 45

Code:
stop();


Please ask as many questions as needed, I would love to help you help me find an answer.

[FCS3] Load Movie Positioning Question
I am trying to play 2 flash movies on the screen at the same time. When the main movie begins to play it will trigger the second external movie to play on the page BUT this second movie is outside of the dimensions of the main flash movie on the page. Then when the 2nd movie is done playing it unloads itself.

Is this possible to do in flash? If so, can someone point me to a tutorial or shed some light on how this is accomplished.

I am wanting to accomplish this using some type of action script I am guessing. I can get the second movie to play but it just puts it within the main movie.

Please Help.

[FCS3] Problem With Multiple Sound Objects
Hi everyone, I'm having a problem regarding my sound objects:

I have a main application that plays two different sounds, a background music and a SFX. I have added a button that, when pressed, loads another swf called options.swf onto a higher level. This swf contains two volume sliders for each of these sounds so that I can control their volumes. Each volume slider is an instance of a movie clip I have created which contains a sound object called 'activeSound.' On options.swf I have the following code:

//this instance of Slider called musicVolume_mc controls the music volume
//musicSound is the sound object on level 0 that has the music attached to it
musicVolume_mc.activeSound = _level0.musicSound;

//this instance of Slider called sfxVolume_mc controls the SFX volume
//sfxSound is the sound object on level 0 that has the SFX attached to it
sfxVolume_mc.activeSound = _level0.sfxSound;

My problem however is that when I slide either slider both music and SFX get affected. They are supposed to act independently but they don't. I've had this problem before with sound objects and I don't know a solution to it. Any gurus out there who could help me with this? Thanks in advance.

[Fcs3] Opening Linked Pages In The Same Window As Swf
hi there!

I have a flash site in which I want to open a linked external page in the same window when the link button is clicked on. When I set actionscript to open using '_blank', the link will work but in a new window. When I set the actionscript to '_self', _parent', or '_top', the link will not work in in the same window. Is there a work around for this rather than creating all the external links in html?

Thanks!
Steve

[FCS3] [AS2] Line Distance To Enemy From Tank
Ok so basically im making a game that involves towers and enemys. Enemys walk through like a tower defense game and it works great, but I have a problem. I have each tower as a set range they can attack from such as 100 pixels. However, Its in circle formation and I need to find a way to make the instance "_root.line" which is simply a line as long as the distance from the tower to the enemy position.

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