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




Browser-dependent Preloaderproblem



Hi!

I have a homesite at www.helleaalto.info and it´s partially flash with preloaders. The problem is that the preloaders hang on at least some versions of explorer on Mac as well as older Netscapes, for example 4.7 on PC.

Is there anyone out there who has had the same kind of problems? Have you figured out any possible reasons?
And if you find another browser that it doesn´t work on, please report! I´d really like to know if you find any others...

The code i´m using is as follows:


1st frame:

loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
if (loadedbytes == totalbytes) {
gotoAndPlay("main", 1);
}


2nd frame:

loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentLoaded = Math.round((loadedbytes/totalbytes)*100);
bar._xscale = percentloaded;


3rd frame:

if (loadedbytes == totalbytes) {
gotoAndStop("main", 1);
} else {
gotoAndPlay("preloaderloop");
}



With the aformentioned browsers, the preloader stops at the 2nd frame... irritating. What could be wrong with the code? Or is this a known bug or something?

Thanks in advance...
Ville.



FlashKit > Flash Help > Flash MX
Posted on: 11-25-2002, 08:14 AM


View Complete Forum Thread with Replies

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

Is Asfunction Browser Dependent
I'm coding a bunch of dynamic, html-enabled text fields with asfunction calls embeded:


Code:
myText = "<p align='center'><font color='#0099FF'><u><A HREF="asfunction:s2Open">Click here to continue.</u></font></a></p>"
Everything's working fine in IE...do i need to worry about other broswer versions? pc-platform only, thankfully.

thankx
--steve...

Speed Is Browser *&* CPU Dependent?
I've got a function with a lineTo going on which is being called using setInterval . The movie's fps is set to 50, interval is set to 1.

When I preview it as an SWF I get the speed I want, yet when I do it through html, it's really slow.

Any ideas?

Browser Dependent Object Centering
I seen alot in many sites. Full screen flash site with objects in the site centering or their predestined position as browser scales.
anyone have a sample for this?

thanks alot.

Dependent Combo's
Hello,

I am trying to create an application in which values of 2nd combo depends in selection of 1st combo.
1st combo > instance name "maincb"
> properties > data:carArray, foodArray, drinkArray
labels: car,food,drink

2nd combo> instance name "subcb"

AS on 1st frame:
carArray = new Array("car01", "car02", "car03");
foodArray = new Array("food01", "food02", "food03");
drinkArray = new Array("drink01", "drink02", "drink03");
function setcombo(subcb) {
subcb.removeAll();
var subcbvar = maincb.selectedItem().data;
for (i=0; i<subcbvar.length; i++) {
subcb.addItem(subcbvar[i], subcbvar[i]);
}
}

this was an example available on somesite.. and it was for flashmx not for Pro version. and I am using Pro.

Please let me know where I am going wring.

Thanks.
Wasim.

Dependent ComboBox
Hi,
I have a little problem regarding combobox, I have 4 combobox dependent to other combobox something like this. First combobox populate from MSSQL using asp?
But my problem is how can I populate the 2nd combo box with selected item in combo box 1?

1st combo
Island

2nd combo
Province

3rd combo
City/Municipality

4th combo
Street

Please help...
Thank you and God Bless....

[F8] GMT Dependent Variables
Hi.

I'm thinking about creating a background image for my website which changes due to the time of the day. EG: in the morning it is blue, noon it is white, afternoon it is red, dusk it is grey, night it is black.

Would anyone know how i'll might be able to tackle this ???

Thanks!

Dependent Combobox's F8
I have tried this script from OReilly ActionScript Cookbook with no luck. Should I be using event Listeners instead? Or placing the combo boxes on the stage?
Any assistance would be awesome!!

FSelectableListClass.prototype.makeDependent = function(multiDataProvider, master) {
master.setChangeHandler("updateView", this);
this.multiDataProvider = multiDataProvider;
this.master = master;
};
FSelectableListClass.prototype.updateView = function() {
var selectedIndex = this.master.getSelectedIndex();
var dp = this.multiDataProvider[selectedIndex];
this.setDataProvider(dp);
};
//create comboboxes
_root.attachMovie("FComboBoxSymbol","myComboBox1", 1);
//myComboBox1._x = 100;
//myComboBox1._y = 100;
_root.attachMovie("FComboBoxSymbol","myComboBox2", 2,{_x:150});
//create mater menu's data provider array to populate the menu
items1 = ["a", "b", "c"];
myComboBox1.setDataProvider(items1);
//create the multiDataProvider array
items2 = new Array();
items2.push(["1 a", "2 a", "3 a"]);
items2.push(["1 b", "2 b", "3 b"]);
items2.push(["1 c", "2 c", "3 c"]);
//call the makeDependent() method from item1 to item2
myComboBox2.makeDependent(items2, myComboBox1);

function newOnChange(masterMenu) {
masterMenu.updateView();
}
myComboBox1.setChangeHandler("newOnChange");

Dependent ComboBox
Hi,
I have a little problem regarding combobox, I have 4 combobox dependent to other combobox something like this. First combobox populate from MSSQL using asp?
But my problem is how can I put populate the 2nd combo box with selected item in combo box 1?

1st combo
Island

2nd combo
Province

3rd combo
City/Municipality

4th combo
Street

Please help...
Thank you and God Bless....

Dependent ComboBox
Hi,
I have a little problem regarding combobox, I have 4 combobox dependent to other combobox something like this. First combobox populate from MSSQL using asp?
But my problem is how can I put populate the 2nd combo box with selected item in combo box 1?

1st combo
Island

2nd combo
Province

3rd combo
City/Municipality

4th combo
Street

Please help...
Thank you and God Bless....

Time Dependent Help
I could really use some help with some time dependent actionscript. I'm having a problem figuring out what inequalities to use in my if statements. This is what I have:
onClipEvent (enterFrame) {
time=new Date(); // time object
var seconds = time.getSeconds()
var minutes = time.getMinutes()
var hours = time.getHours()
if (hours>=8 && hours<=9) {
do something;
}
if (hours>=9 && hours<=10) {
do something else;
}
}

Of course, this doesn't work because hours isn't accurate enough. How do I get a measurement that will do something for the hour between 8 and 9 and do something else for the hour between 9 and 10. Any help would be greatly appreciated.
Thanks.

Redirecting To Frame Dependent On Value From ASP
Right, the problem that i'm having is that I want to redirect in Flash to 1 of 2 frames depending on the result of an ASP query.

For example the ASP is going to give me an answer of Yes or No, if it is yes then I want my Flash file to start playing Scene 2 but if it is no then I want my flash file to start playing Scene 1.

I've loaded the variables in from the asp page and can get it so that 1 of the above scenario's works but never both together.

Does anybody have any idea or is this the impossible?

Dependent Button States
Hi
Making a new navigation system and have become a little unstuck.
Each button has a rollOver, Out and Clicked state which works fine.
I want it so that when you click 1 button, then click another the first reverts back to its original state with (blue to white) transition.

I need something like if a button is clicked and another is already down then make down button play 'revert fade' mx fla attached if anyone can help.

Thanks
+

XML Dependent Button Functionality
So I want to use this very simple XML file and use it to create some buttons and their labels. I want each button to have the same functionality, that when you click it, a dynamic text box is populated with the label of the button.

Catch is, I need the button components to be pulled dynamically with actionscript, so no instances of the button component can be on the stage.

Right now when I click any of the buttons it populates with option 4.

Banging my head on the desk with this one, any help/advice is appreciated.

Here's the code:

XML file
<?xml version="1.0"?>
<menu name="example">
<DBbutton name="option 1" />
<DBbutton name="option 2"/>
<DBbutton name="option 3"/>
<DBbutton name="option 4"/>
</menu>

actionscript (only thing on the stage is a dynamic text box called options box, and "Button" is the name of the component button in the library)

loadButtons = function(container, name, depth, node_xml) {

var curr_node;
var curr_item;
var curr_menu = container.createEmptyMovieClip(name, depth)

for (var i=0; i<node_xml.childNodes.length; i++) {

curr_item = curr_menu.attachMovie("Button","item"+i+"_mc", depth+i);
curr_node = node_xml.childNodes[i];
curr_item.label= curr_node.attributes.name;
curr_item._y = i*40;

// set behavoir for each button
var button_listener = new Object();
button_listener.click = function(evtObj:Object){
optionsBox.text = curr_item.label;
};
curr_item.addEventListener("click", button_listener);

curr_item.setSize(300,24);
} // end loop
}//end loadButtons


menu_xml = new XML();
menu_xml.load("options.xml");
menu_xml.ignoreWhite= true;
menu_xml.onLoad = function(ok) {
loadButtons(_root,"mainmenu_mc", 1, menu_xml.firstChild);
}

stop();

Problem In IE - Dependent On Path To The .swf
Hey All,

I try not to post questions unless I can't find the answer anywhere else, and I find myself in that situation now. I've searched Microsoft and I've searched these forums for posts from others with the same problem.....and no, it's not about the gray border showing up around my embedded flash when viewing in IE! lol I already have that one covered.

I have a page on my site that allows users to link to us. The page offers banner ads in both animated gif and flash formats, and the code to put these banners onto users' own web pages is also offered. You can view the page here:

http://www.reallivesports.com/linkUs_banners.html

All the flash banners are is a looping animation and the functionality of opening a web page when the user clicks the animation (using the simple getURL function).

Now, I've done some testing and found that everything works fine in browsers like Firefox. Microsoft IE, however, does not open the webpage when the animation is clicked....at least not with the code I'm offering my users. It seems that it WILL work in IE if the .swf file is located locally to the .html page that is calling it. However, if the .html page is pulling the .swf file from an external domain, the animation will show up, but the clicking functionality will not work. I hope I'm being clear in my wording. Lemme give you the 2 examples just in case:

EXAMPLE 1 - My site is www.mysite.com and the source path for the banner is http://www.reallivesports.com/rls_480x60.swf
RESULT - Animation shows up, but clicking on it does nothing.

EXAMPLE 2 - My site is www.mysite.com and I have the .swf for the banner on my server, so my source path to it is local. Simply, rls_480x60.swf
RESULT - Animation shows up, and clicking on it takes me to the appropriate web page.

So....yeah. Any insight anyone may offer would be greatly appreciated. My apologies if this is a very newbie question, but I'm still learning!

Ed

Setting Time-dependent Greetings.
Hi everyone,

I've got a movieclip with a dynamic text box called "time" on my stage, which gets the time, day, date and year. That part works perfect. The code for the movieclip if you're interested is....

onClipEvent (load){

// Arrays for Month and Week Days.

mon = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","O ct","Nov","Dec"];
weekdays = ["Sunday","Monday","Tuesday","Wednesday","Thursday" ,"Friday","Saturday"];
}
onClipEvent (enterFrame){

// Working out Day, Date and Year display.

now = new Date()
nDay = weekdays[now.getDay()]
nMonth = mon[now.getMonth()]
nDate = now.getDate()
nYear = now.getFullYear()

// Time display. Displays hours, minutes and seconds in 24 hours time format.

myTime = new Date();
nSeconds = myTime.getSeconds();
nMinutes = myTime.getMinutes();
nHours = myTime.getHours();

// Sets 24 hour format on the hours display.

if (hours>=13) {
nHours = nHours-12;
}

//if the minutes are a single digit, for example 7 minutes past the hour then add a 0 infront of the minute making it 07 minutes.

if (length(nMinutes) == 1) {
nMinutes = "0"+nMinutes;
}

//if the seconds are a single digit, for example 7 seconds then add a 0 infron it the second making it 07 seconds.

if (length(nSeconds) == 1) {
nSeconds = "0"+nSeconds;
}

//nTime is the dynamic text instance name.

nTime = nHours+":"+nMinutes+":"+nSeconds+" l "+nDay+" l "+nMonth+" "+nDate+", "+nYear;
}



ANYWAY....on with the show.

I'd like to have a movieclip, for example "greeting" that says GOOD MORNING, GOOD AFTERNOON or GOOD EVENING dependent upon the current time.

Can anyone give me any pointers??!!

Thanks.

Dependent ListBoxes Problem
Hi, here is my problem. I have two listboxes and want to "connect" them: by selecting something in the first listbox, specific options should appear in the second that change according to the selection in the first listbox.

Any suggestions please? (or actionscript code or techniques?)

Thanks

Dependent Button States
Wondering if anyone could help...

I'm developing a flash game based on the UK TV show 'Blockbusters' to use as a teaching aid with my students.

I'm trying to find a way of changing a button's colour *after* it has been
hit to either white or blue, depending upon which team has answered a question (there are 20 of these buttons - see attached screenshot). I imagine that I will need to use radio buttons or similar to determine which team is currently selected, but am struggling to find a way to implement it all...

Any ideas / help would be much appreciated.

Cheers,
RnR

Server Dependent CSV Parsing
Hi. I've got a Flash site that uses a loadvars object to load a csv file that I then parse into arrays. The swf works great locally and on two hosts I have tested it on. However, I can't get it to work on the host server I own (er..rent). The HTML file, swf and csv are all stored on the same level and I've even included a policy file just in case. Additionally, I have changed the path to the csv in the Flash file several times to see if that was the issue.
I created a trace that indicates my data is loading, but the functionality isn't working, leading me to believe the parsing is at issue. Any ideas why this file would work fine on two other servers but bomb on a third?? I'm completely stumped.
Thanks a bunch.
jap

Setting Time-dependent Greetings.
Hi everyone,

I've got a movieclip with a dynamic text box called "time" on my stage, which gets the time, day, date and year. That part works perfect. The code for the movieclip if you're interested is....

onClipEvent (load){

// Arrays for Month and Week Days.

mon = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","O ct","Nov","Dec"];
weekdays = ["Sunday","Monday","Tuesday","Wednesday","Thursday" ,"Friday","Saturday"];
}
onClipEvent (enterFrame){

// Working out Day, Date and Year display.

now = new Date()
nDay = weekdays[now.getDay()]
nMonth = mon[now.getMonth()]
nDate = now.getDate()
nYear = now.getFullYear()

// Time display. Displays hours, minutes and seconds in 24 hours time format.

myTime = new Date();
nSeconds = myTime.getSeconds();
nMinutes = myTime.getMinutes();
nHours = myTime.getHours();

// Sets 24 hour format on the hours display.

if (hours>=13) {
nHours = nHours-12;
}

//if the minutes are a single digit, for example 7 minutes past the hour then add a 0 infront of the minute making it 07 minutes.

if (length(nMinutes) == 1) {
nMinutes = "0"+nMinutes;
}

//if the seconds are a single digit, for example 7 seconds then add a 0 infron it the second making it 07 seconds.

if (length(nSeconds) == 1) {
nSeconds = "0"+nSeconds;
}

//nTime is the dynamic text instance name.

nTime = nHours+":"+nMinutes+":"+nSeconds+" l "+nDay+" l "+nMonth+" "+nDate+", "+nYear;
}



ANYWAY....on with the show.

I'd like to have a movieclip, for example "greeting" that says GOOD MORNING, GOOD AFTERNOON or GOOD EVENING dependent upon the current time.

Can anyone give me any pointers??!!

Thanks.

Dependent ListBoxes Problem
Hi, here is my problem. I have two listboxes and want to "connect" them: by selecting something in the first listbox, specific options should appear in the second that change according to the selection in the first listbox.

Any suggestions please? (or actionscript code or techniques?)

Thanks

Banner Dependent On Page
I am running a site, www.projectcafe.org, using Drupal. I am curious how I would implement a flash banner that would be different on the index page then all the other pages.

Bascially, how do I tell Flash to display a certain movie clip depending on what URL the .SWF is being displayed at?

Thanks for any help!

Loading Content Dependent On VAR's
Ok, it's kind of a basic question. I'm pretty sure I have it right, but just wanted to check if this is the correct way to do this.

I have a series of buttons, each sets the ProductID var to its model # then sends the movie to play a frame with this:

loadMovie(('_global.ProductID'+'.jpg'), "img_container_mc.img_container");

If the variable is set to - SB156
using this code, will it load - SB156.jpg?

Dependent Files When Shipping Flash.ocx
Hi All,

Is it okay to just ship flash.ocx (Flash MX control) to run an SWF created in Flash MX. Are there any dependent files?

Some time back when i investigated, i found that the flash6 player setup also had other dependent files like w95inf16.dll,w95inf32.dll, advpack.dll.

Are these files really needed?

Regards,
Shalin

Dependent Files Message Box - Sigh
I finally talked my employer into getting Dreamweaver. However, I have one issue using it.

I use it for all of my files - css, html, javascript, etc . . . Every time I edit the css file it wants to save a dependent file. ( an image I reference in the stylesheet ). The prompt comes up every single time.

Is there any preference I can set so that it will stop prompting me? I have looked and cannot seem to find it. Any help would be greatly appreciated.

Jim

Dependent List/combo Boxes
I would like some help on how I would code the choices in a combo box to trigger a list of items to display either in a list box or in another combo box. The each of the data items displayed would then have to be linked to a url.

For example.

In the combo box there would be the selections "fruit, vegtables, drinks"

If you selected fruit in the list box it would output "apples, oranges, pears, etc"

Apples would link to a website on apples. Oranges would link to a website on oranges. And pears would link to a website on pairs.

Let me known if you need more information. A detailed explanation would be greatly appreciated please.

How Do I Goto A Frame Dependent On Time Of Day
Hey all,

Preety sure what I want to do is rather simple, I'm just not a pro just yet at Flash. Basically what I want to do is havy my homepage display an animation dependent on the time of day. So what I want to do is send the user to a specific frame on the timeline dependent on what time of day it is. What would the actionscript look like? Any help would be much appreciated.

Wave Size Dependent On Mouse?
Hi, I dont remember where I've seen this feature, but I've seen a feature where you enter a page which is devided horizontally by a line, and then when the mouse pointer is moved over this line it moves in a wave-like fashion? Anyone knows how this is done? I know how to make a simple sine wave but I dont know how to make its waves' sizes dependent on where the mouse is?

pls help

HitTest Action Dependent On _global
Same objective, different question...... In a previous thread, I asked how I could check a variable with a hitTest. I figured out how to check the variable, but it didn't solve my problem. I need the hitTest to act according to which _global variable is set.

I need the hitTest to do something similar to this:

Code:
onClipEvent (enterframe) {

if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if(global_one)
this.doOneThing();
} else {
this.prevFrame();
}
if(global_two)
this.doSomeThingDifferent();
} else {
this.prevFrame();
}
}
It seems as if it would be as simple as above, but nothing I try will work. Any suggestions?

Flash Actions Dependent Upon PHP Vars
Hello,
For a while now I've tried to get flash to send PHP data, and then back again to flash. Finally with that bit a success, my next step is back in the hands of flash. Basically depending upon the data PHP sends to Flash, (or that flash reads from the PHP's "echo") I want flash to compare that data and go play a certain keyframe. I'll show the code below, but my basic algorithm is thus:

1. Flash presents the user with an input text field, dynamic text field, and a button on the 1st keyframe.
2a. The user enters in data, presses the button.
2b. PHP receives the input
2c. PHP echo's the variable such that flash can read it. ( echo "read=" . $variable_test; )
3. The dynamic text field displays the inputted data.

This part works allright. The problem comes with flash trying to compare the data.

In flash I have 3 keyframes.
The 1st keyframe has the interface that the user is presented with as I mentioned before.

The 2nd keyframe has a static txt field that says "Frame 2" with the same dynamic text field in the first key frame.

The 3rd keyframe has a static txt field that says "Frame 3" with the same dynamic text field in the first key frame.

(There is a "stop();" action on all of these frames.)
The button on the first key frame has this code:

on( release )
{
loadVariablesNum( "test.php", 0, "POST" );
}

Now, Here I think lies the problem. I have this bit of comparison code:

if( read == 2 )
{
gotoAndPlay( 2 );
}
else if( read == 3 )
{
gotoAndPlay( 3 );
}


And I've literally tried placing it everywhere. But to no avail.

Basically all I want is that when the user (me, just for test purposes) enters "2" into the Input Text Field on the first keyframe of flash, it should immediatley throw me to the 2nd keyframe of my timeline. If I typed in 3 in the Input text field, it should throw me to the 3rd key frame.

The closest I've gotten was clicking the button, having my dynamic txt field on the 1st keyframe display my input, and when I clicked the button again, it went to the appropriate keyframe.


I'd apprecaite any assistance, really, and can provide a file in necessary. It all seems so simple enough and I'll probably kick myself later for it.

Thanks!

Sound Dependent On Html Page...
I have a header flash animation that holds the site navigation and a cool 2 second animation with sound. I only want the sound clip to play on the homepage, however, since hearing it with every click makes me want to smash my keyboard into my monitor. Any idea how to do this?

Thanks.

FLVs And XML - Date/Time Dependent
I am stuck. I figured out that this site is not a live enviroment, rather using FLVs for certain days of the week - and the office is even all dark after 6PM. Looks like they have an FLV library loading clips for specific days and also for the time of day. I am trying to do the same but I am stuck on my CS3 code. I think my problem resolves here:

var CurrentDate = GetPHL_date();

It doesn't seem to retrieve date - videos won't load! IS it because this site might be used in conjunction with FCS?

To see what I'm trying to do, please visit this site:

www.customedialabs.com

Any help you can offer - I would be most appreciative.

Jerry

Display Time That's Dependent Upon Timeline
Hello all!
This is my first post here and I figure what better way to join a new community than with a question. Am I right? (that's not the question....the next one is)

Okay. I'm working on a project where I need to display a time (let's say 3pm even if the computer's clock is not 3pm) that will change according to the time line...not actual time. (the further down the time line the time changes accordingly )My animation is running at 12 fps so 12 second will not actually be going by in the displayed time....it'll be longer... I'm wondering if someone could shed some light on how I would go about doing this without having to write the time in per frame that it changes....

Thanks for your time and happy to be here.

Flex

Problem Loading A Swf With Dependent Files
I have one swf that I want to load inside another swf. The "child" swf has a number of dependent files (classes, images, XML). When I run the child swf on its own, everything is fine. However, when I try to load it into the parent swf, I get the following (unspecific, unhelpful) error:

Cannot access a property or method of a null object reference at Main()

Main() is my main class for the child swf. I don't even know where to begin to look, since I don't get any errors when I run the swf independently. Any suggestions?

Timer Interval Is Dependent On FrameRate?
Hey,

I have a game, and in it, I have a timer that fires 30 times every second. I want to increase stage.frameRate, while still keeping the timer firing at 30 times every second.

I thought that since the timer's interval is in milliseconds, it would run independently of the frame rate - but when I increase stage.frameRate, the number of times that the timer fires per second is decreased. How would I increase stage.frameRate while still keeping the timer constant?

I've attached a .fla to better illustrate my problem.

Thanks!

EDIT: It appears that the timer, firing 30 times per second, only works well when the frameRate is divisible by 30. I guess that's because the event only occurs on the closest actual frame to the specified millisecond time? I, however, still need the timer to run 30 times per second, even when the frameRate is something like 40.

Button Action Dependent On Condition
here's the scenario:

I want a button to have different actions (such as launching different URLs) depending on which current external swf is loaded. I figure I need to use if statements coupled with variables assigned by the swfs, but I'm just not sure how to do it. Could anyone please help this actionscript newbie out?

Function Dependent On 2 Variables Problem
I'm making an interactive chemistry education page and I have a problem.
The user drags different elements onto a scale which displays the weight of the element.
Based on the weight, the user enters the name of the element into a text field and hits enter or presses an enter button.
If the answer is correct then "Correct" is displayed.
If wrong, then "Try Again" is displayed.
I have everything working except for the part where the user enters the name of the element and recieves the feedback....
I've tried setting a variable to equal the name of the element currently on the scale and setting another variable for the input text field and then comparing the 2...
But no matter what I type into the text field I only get the "Try Again" response...
Please help...

FLV Dependent On Root Time Line?
Hi. I'm making a promo cd for a band. I have a video section thats giving me some problems. The project is setup as follows;

On the main time line are 4 buttons and a MC. the buttons correspond to 4 different frames on the MC for separate sections, info, music, pics, video. When the MC hits the video page it calls a function from the main time line to initialize a video. The video will show up play for about a frame and then stop.

I tried a couple of FLVs and same results. I thought it might had to do with my root time line being only one frame and having a stop(); on it. I noticed in lees tutorials he doesn't stop the main time line.

I also have another mc on the main time line that isn't the 4 framed navigation one. It is a looped clip which calls a function continuously from the main time lines code for dynamic effects. I inserted the ns.play(); in to that loop thinking the .play() needed to be repeated and it just looped the video on that one frame.

any help ideas would be greatly appreciated

-Thanks

Can You Make Functions That Are Dependent On Screen Resolution?
Is there a way to write this in actionscript? (for a button)...


If (screen resolution is greater than or equal to 800x600)
Carry out function A
Else
Carry out function B

Is The Speed Of The Flash Movie Machine Dependent ?
hi there,

I am making a Web site intro in Flash 6 it is under 400 kb , I have

been using a PIV , the animation is v smooth and perfect on my PC but

when I am using it on some other low end PC (even a P III) the

animation gets v v slow. what do I do ???? My animation frame rate is

30fps.

Looking forward for yr resposes,

Thanking you.

[F8] Problem: Scalling Several Dependent Of Eachother MovieClips
Hi, all!

Maybe someone can help me. I am trying to do a row of objects that scales:

Click to see the example here

My trouble is that while moving the cursor from one object to another I can see green background, but it shouldn't be visible. The objects should completely fit together.

I have 4 objects, each 1/5 of stage length and an empty space to the right which is 1/5. When one object scales it should be 2/5, taking it from the empty space. While one object scales to 2/5 all other objects should maintain 1/5, but if they are to the right from scaling object, they should move to the right.

Every of 4 objects has following code:
code:
onClipEvent (load) {
this.InitMovie();
}
onClipEvent (enterFrame){
this.HandleMovie();
}


Those functions are described in the first frame as following:
code:
var speed =0.2;
MovieClip.prototype.InitMovie = function() {
this.f_scale=this._xscale;
this.f_pos=this._x;
};

MovieClip.prototype.HandleMovie = function() {
step = speed*(200-this._xscale);
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if(this._xscale<200){
this._xscale += speed*(200-this._xscale);
}
} else {
if(this._xscale>this.f_scale){
this._xscale -= speed*(this._xscale-100);
}
}
};
MovieClip.prototype.HandleAllMovies = function() {
img2._x=img1._x+img1._width;
img3._x=img2._x+img2._width;
img4._x=img3._x+img3._width;
};


Where the last function HandleAllMovies used by a separate movieclip, controlling all 4 scaling movieclips:
code:
onClipEvent (enterFrame) {
HandleAllMovies();
}


My question is what am I doing wrong, why can I see green background, what to do to make the movies be close to each other for all times?

Month/Date Dependent Flash Movie
The task set before me sounds easy - but I haven't found one example or tutorial regarding this.

Basically I would like to set up a flash movie with ten frames. Each frame would be reflective of the date that needs to be shown to the viewer. So for example if frame number 3 was inteneded to be shown to viewers on August 1, 2008. Then the movie goes to that frame and stops - not revealing any of the other frames. If the date is August 15th, then it would go to the fourth frame which is set up to be shown on that particualy date and after. Then on frame 5, it would be for Septemeber 1. Frame 5 would show for 15 days - then it would go to frame six afterwards... and so...

Wow! If anyone could point me in the right direction I would be forever in your debt.

Thanking you in advance.

Jerry ~ Philadelphia, PA

Function Calls Dependent On Order Of Layers?
In this case, I have an initialization function definition on one layer and a call to it (in Frame 1 of the main timeline). On another layer I have a function definition that creates a mouse listener (also Frame 1). When the Init layer is on top, the Init function won't successfully call the Mouse Listener function. When I reverse the order of the layers, the call works and everything functions fine. I can't find an explanation of what's going on here or how to understand what makes one arrangement work and the other not. Little help?

Digital Clock Dependent On Central Source
Hi all,

I'm building a digital clock for my school's website. Our school's clock system isn't synchronized to a central system, so we find our individual classroom clocks being inconsistent with one another over time. A typical Internet clock pulls its time from the local computer. Is there a source and/or way to have this information retrieved from a more central, worldly source, whereby the time is taken from a reliable source outside the school?

Thanks for your help!

Jeff

Flash Video In Popup, Dependent On Selection On Website
I have a client - his business is catalog/internet sales of fine dolls and collectibles. On his website, each product has its own page, with photo and information. What he wants is to add a link which, when clicked, will open a new window that displays a short video that shows off the product.

What I need to know is this: would it be easier/more efficient to create a "viewer app" via Flash, that calls the video via XML, or would it be easier/more efficient to just create Flash video that is called using a server-side script like PHP?

thanks!

(Pardon the double-post, but I'm not sure exactly where to put this question.)

How To Change Color Of Nested Movieclip Dependent On Loaded External Swf
Greetings! I am making a Flash website. Each "page" is loaded using the mx.controls.Loader. My navigation menu is simple: when you hover over the link, the text instantly changes white, and a colored box appears behind the text. This is the code (only two buttons) :

Code:
//LOADER
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
mcLoader.loadClip("home.swf",myLoader);

// Include MC Tween
#include "mc_tween2.as"

//Assign BreadCrumb Functions and Load External Movies
home_bn.onRelease = function () {
mcLoader.loadClip("home.swf",myLoader);
}

events_bn.onRelease = function () {
mcLoader.loadClip("events.swf",myLoader);
}

}
QUESTION: How do I make all the colored boxes in the buttons change color depending upon what "page" is being viewed.
Please note that I have tried making the buttons as Movieclips, with the colored boxes as child movieclips, then using the colorto AS, but it does not work...

Does anyone have a suggestion?

Assign XML Node Values Dependent On "id" Attribute In The XML File...
Here is what I am needing to do:
I have anywhere from 8-20 MCs (objects) on a screen. Each may or may not be visible, and each will be in a different location, independent of other MCs. The XML will assign values (X,Y, alpha, rotation, loadMovie, color, etc.) to each clip.

I know how to hard code each MC to the XMLNode in the file, but am wanting to have the id attribute ("id=object1", "id=object2", etc.) to determine which nodes/children to pull values from. IE, my MC called "quoteOfTheDay", I want to read the values from the XML node with the id="quoteOfTheDay". And so on...

Does anyone have an idea how to do this? I'm thinking a loop that pulls all attributes named id, or something?

anyone...

thanks


my XML
////////////////////////////////////////////
<objects backgroundImage="bg1.jpg" >
<object id="object1">
<visible>1</visible>
<xPos>80</xPos>
<yPos>40</yPos>
<alpha>80</alpha>
<textContent>Number 1</textContent>
</object >
<object id="object2">
<visible>1</visible>
<xPos>400</xPos>
<yPos>40</yPos>
<alpha>20</alpha>
<textContent>Number 2</textContent>
</object >
<object id="object3">
<visible>1</visible>
<xPos>500</xPos>
<yPos>130</yPos>
<alpha>80</alpha>
<textContent>Number 3</textContent>
</object >

</objects>

////////////////////////////////////////////

How Do I Force File Refresh. (flash Dependent File)
I use "loadvars" to get the dynamic info for a flash homepage from a ".txt" file. How can I force browsers to download a fresh copy of ".txt" files every access?

Make "Say" Button Frame Dependent
I have a Flash movie with 300 frames that have different words in them. I need the "Say" button to say each word, in its frame.
I could make 300 duplicates of the button and attach 300 different mp3s, but is their a simpler way?

brettabrown@sbcglobal.net

Dynamic Text Box - Width Dependent On Text
Hey'a if I have a dynamic textbox named 'myText' and have this kind of code..

ActionScript Code:
myText.text = "I want to stretch the text box dependent on the text";


At the moment all I can see is 'I' - I want the textbox to stretch based on how much text is in it, and not to go to a new line - So the one line just keeps gettin bigger.

Whats the code please ?

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