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




(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



FlashKit > Flash Help > Flash General Help
Posted on: 07-19-2007, 04:34 PM


View Complete Forum Thread with Replies

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

How To Create Flickers?
Hi all, I'm new to Flash, so plz help me. Can someone plz show me how to create vertical lines that's flashing? Here is how it looks like http://www.johnnyle.com
Many thanks

Flash Swf Flickers
i havea small flash .swf in a html page no frameset every time you roll over a link in the html page the flash.swf flckers please helpthanks

Swf Flickers When Loaded Through Other Swf
Hi there,

I'm importing 2 swf and 1 flv with the following code:

var mcloader:MovieClipLoader = new MovieClipLoader ();
var mcloader_Listener:Object = new Object ();
_global.loaderCounter = 0;
var mcsToLoad:Array = ["divine.swf", "divine_logo.swf", "divinelogo.flv"];
var mcsToLoadInto:Array = ["mainHolder", "logoHolder", "tpHolder"];
function loadingSequence (_m) {
while (_m < mcsToLoad.length) {
mcloader.loadClip (mcsToLoad[_m],mcsToLoadInto[_m]);
_m++;
}
}
loadingSequence (0);
mcloader_Listener.onLoadInit = function () {
loaderCounter++;
if (loaderCounter >= 3) {
mcloader.removeListener (mcloader_Listener);
}
};
mcloader.addListener (mcloader_Listener);


It loads the main one (divine.swf) ok, but the second one appears as a distorted flv file (red and black) that flickers, and the flv doesnt appear at all -

Actually when i test the divine_logo.swf on its own with the flash player, one out two times it does that flickering thing.

Can the file be corrupted?
is my code wrong?
help?

thank you in advance!

Movieclip Flickers
On Frame 1, I have loaded a movieclip, through actionscript, that acts as the background.  

On Frame 2, I have a setInterval that waits for a dynamic text to change its value.  

When the swf file plays the background flickers, but I don't think it is due to the SetInterval.  Any suggestions?

Swapdepths - Image Flickers
Just a little, small (maybe easy) question.
I'm trying to make a kind of a 3d movement.
Therefor, I use the swapdepths thing. And here comes the problem. Object1 disappears completely behind object2, but when it comes in front of object2, it starts to flicker. How can I stop the flickering?
Help needed.

Thx!

ps.: If you don't understand what I mean, check http://www.geocities.com/neofantasypalace

Cursor Flickers When Placed Over A Button
I have made a header with buttons in flash for a site. When i use the site the cursor does not changes its shape into handshape cursor depicting a link or button but flickers between an arrow cursor and hand cursor. I am not being able to understand the reason behind it.

It would be nice if someone can guide me through.

Thanks!

Flash Flickers On Macs
Im making a site that contains some flash content and everything works perfect on PC's but I looked at the site on my friends mac and the flash content flickers when ever he scrolls or moves the mouse over the navigation, why does it do this? and how can I fix it?

View Site

CS3, AS2: SWF Flickers When Using ExternalInterface.call
Hello,

I have a bug that I can't put my finger on. I'm using ExternalInterface to retrieve the file path of an FLV from a JS function. Then the FLV plays in my flash movie.

Everything works perfectly except that as soon as the call is made, the entire swf flickers.

I'm pasting what I think is the relevant code below. If anyone can help, this is a pretty urgent request... I'm stumped and behind deadline already! Thanks in advance


PHP Code:



var result="";
import flash.external.ExternalInterface;
function getTextFromJavaScript(str:String):Void {
    received_ti.text = "From JavaScript: "+str;
}

ExternalInterface.addCallback("getClipPath",this,getTextFromJavaScript);

function clickSend(eventObj:Object):Void {
    var jsArgument:String = sending_combo.value+" "+sending_ti.text;
    result = ExternalInterface.call("getClipPath", jsArgument, keyLocation[randLocation]);
    
    nsResult.play(result);
    nsResult.pause();
    
    // create a preload interval to check load progress every 1 millisecond
    myInterval = setInterval(checkBytesLoaded, 1, nsResult);
}



function checkBytesLoaded(nsResult)
{
    // calculate percentage of video that has downloaded
    pctLoaded = Math.round(nsResult.bytesLoaded / nsResult.bytesTotal * 100);

    if (pctLoaded>= 100)    {
        
        // play video from the beginning
        nsEntrance.pause(true);
        nsResult.seek(0);
        nsResult.play(result);
        resultObject_inst.gotoAndPlay("fadeIn");
        giveUp_button.enabled = false;
        send_button.enabled = false;
        sending_ti.enabled = false;
        sending_ti._alpha = 75;
        sending_combo.enabled = false;
        sending_combo._alpha = 75;
        // clear interval
        clearInterval(myInterval);
    }
}

send_button.addEventListener("click",clickSend);

Dynamic Text Flickers
Does anyone have any idea how to prevent dynamic text flickering when moved along the x axis?

I've tried different fonts and high framerates, but it still flickers.

Thanks

Dynamic Loading An Mc Flickers At Pos X=1,y=1
hi, my problem is, that i load a jpg with a loader and when the image is available the image is shown at the location 1/1

i can set it in the loader routine onLoadInit to the destination coordinate to invisible but i see the image before on 1,1 coordinates and this makes a kind of flicker that i do not want.

in my opinion the reason for this is that a dynamic loaded mc gets initialized and so it comes to display at 1,1

wht can i do to prevent this?

thanks, anitaki

Published Swf File Flickers. Why?
Hi all, We are publishing a Swf file in Adobe cs3 and it flickers permanently when opened. What can we do to avoid this? Please advise.

Object Flickers On Mouse Over & Out?
ActionScript Code:
btn0.addEventListener(MouseEvent.MOUSE_OVER, moveHoverOver);btn0.addEventListener(MouseEvent.MOUSE_OUT, moveHoverOut);private function moveHoverOver(event:MouseEvent):void{                trace("MOUSE IS OVER");    this.buttonMode = true;    btnHover.x = event.currentTarget.x;    btnHover.y = event.currentTarget.y;            }        private function moveHoverOut(event:MouseEvent):void{                trace("MOUSE IS OUT");    btnHover.x = -500;    btnHover.y = -500;            }
It traces both MOUSE IS OVER & MOUSE IS OUT (constantly, btw) when you roll over or roll out. What gives?

All Im trying to do is bring a little box (btnHover) over each button when they roll over and take it off when they roll out. If I change event.currentTarget.x; to a number, the flickering stops.

Dynamic Text Flickers As It Moves
Hi,

I have a dynamically created dynamic textfield. It uses a font which is stored in the library, and embedfonts is set to true. antiAliasType is set to "advanced".

When I move the textField along the x-axis it flickers. The motion is jerky.

My framerate is hovering between 28 and 30, so I don't think that's the problem.

I have tried several fonts and they all flicker in the same way.

Any ideas?

_ymouse To Control _mc But Last Frame Flickers
I want to use _mouse to control the playhead - this is my code

var playback:Number;
onEnterFrame = function () {
if (playback>=_ymouse) {
wave_mc.nextFrame();
}
if (playback<=_ymouse) {
wave_mc.prevFrame();
}
if (playback == _ymouse) {
wave_mc.stop();
}

playback = _ymouse;
};

how ever if the mc gets to the last frame it flickers to the frame before and back to last one - rather than just stay on the last frame.

on the last frame of the mc I have put a stop() but it does not help.

can anyone explain and stop it

I have enclosed a fla if that helps to see

many thanks
I have so much to learn ... but people here have really helped me learn

Flash Movie Flickers When Return To Frame1
I have a flash movie that plays once you click the submit button. The elements in the last frame match up with those in the first. However once the the movie gets the the end (frame 135) and gotoStop on frame 1 theres a flicker. Any way of avoiding this?

You will see that after it says "thank you. youve been added to the mailing list" the flicker happens.

Ive included the original fla (only 411kb unzipped) as well as a link the the swf.

Custom Cursor Flickers Like A Short-circuiting LED.
I have created a custom cursor script which uses the mouse.Hide command as well as startDrag(). When I move the cursor around it flickers terribly. How do I remedy this?





























Edited: 01/07/2009 at 02:35:56 AM by Chosin Won

[Flash8] Dynamic Texts Flickers And Can't Solve It
Hi guys,

I googled for 4 hours and read most of the posts that came up when searched for different tags I thought would match, and still have no answer. My problem is the following:

I have a dynamic text field that loads some text and a variable that counts down days, months (for an event lets suppose). It worked perfectly the first time I tested it, then cleaned up the code and that's when the problems started. You can see it here.

A crippled, ugly version with a different code (that does not work for the countdown) is still standing here. I've reached a point where I just give up. HELP!!!

oh!!! btw, here's the code:


Code:
var text1 = "
just a bunch of text

and so on
";
var text2 = "
for after varying one

";

var fecha_actual = new Date();
var monthfield = 12-fecha_actual.getMonth();
var dayfield = 34-fecha_actual.getDate();
var hourfield = 23-fecha_actual.getHours();
var minutefield = 60-fecha_actual.getMinutes();
var secondfield = 60-fecha_actual.getSeconds();

var difference:String = "
"+monthfield+" meses, "+dayfield+" dias, "+hourfield+" horas, "+minutefield+" minutos, "+secondfield+" segundos.
";

main_text.text = text1.concat(difference,text2);
where fecha_actual is the current time and difference is the string holding the varying text.

Any idea on how to solve this?? PLEASE!!!

THANK YOU BEFOREHAND!!!!!!

Tweener ... When Tween Completes, Object Flickers
I have a simple motion tween I've created using tweener that incorporates blur and beziers, but when the tween finishes, the object that was tweened will occasionally flicker. Does anyone know what would be causing this? I have the object tweening to a rounded x and y position.

You can view my example here:

http://www.sostv.com/testing/tweener/

Might need to refresh a few times to have it flicker.

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

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

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