Stuck Up With Cache Issue
Hi I recently intiated in a project where the user will be scrolling through a slide show and when they click a particular image they will be taken to another frame where they will be able to view the details of the product in the right and in left a 360 degree view of the product will be displayedand the user can view all the products by clicking next and previous button on topeverything works perfect for me buti am having a big issue with the 360 degree rotationwhere when the user enters the first product the he will be able to view the its corresponding product and its details, but when they when they click the next or previous button the details of the product changes but the same product remains there ie the product one remains there it does not change to its corresponding product vieweach time the user has been forced to reload the page to view the corresponding productI have displayed below the xml codeIt will be very much helpful if some can sort this out Quote:
xmlData = new XML();xmlData.ignoreWhite = true;xmlData.onLoad = loadXML;xmlData.load("racer/showcase.xml");previous.onRelease = function (){ prevImg();};next.onRelease = function (){ nextImg(); };
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-13-2009, 03:36 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Cache Issue
I have a flash movie that plays an animation while loading another swf in the background to the user's cache. This works nicely, as when the animation has finished playing the 2nd movie is ready to go. I've ran into one issue tho. If the 2nd movie isn't quite 100% loaded by the time it trys to load it into the main window, it will start loading again at 0%. Is there a work-around anyone knows about to this issue?
Cache Issue
hi,
i have tried following the kirupa tutorial on solving cache problems, but it doesn't seem to work.
I have a main html page with a flash button on it. Once you click on it, it opens a pop up window with a swf in it. What i am trying to do is to force tha pop up window to reload everytime poeple come back on it, as i have a preloader animation, etc.... but it keeps on loading the swf stored on the cache.
Should the code be:
myIdentifier=Math.round(Math.random()*10000);
loadMovie("content.swf?uniq="+myIdentifier,1);
content being the swf loaded in the pop up?
many thx
Cache And .swf File Issue
**********//////// As usual 10 minutes after posting a question on the forum the I find the answer..........
"loadMovieNum" instead of "loadMovie" seems to work, when using the variable.
Don't no why yet, so any comments appreciated.////////************
I am building an image intensive website, to cut download time I have split the movie, and am using the "loadmovie" function to access the seperate sections of the site.
The problem I am having is that when I upload the movie to the server the .swf files are getting cached, I have a suspicion that that may even be happening on the server. This is preventing me from updating the various sections of the movie.
To prevent the caching I'm trying to place a random variable on in this manner.....
on(release){
rn = Math.round(Math.random()*1000000);
loadMovie("new_movie.swf?="+rn,0); // doesn't work
//loadMovie("new_movie.swf?=3",0); // works (not random though)
}
Am I going about solving this problem the right way? and if so, can anyone tell me where my code is faulty?
T.I.A.
LoadVars IE Cache Issue
I have created a flash chat that uses loadvars, PHP, and MySQL. It works "perfectly" in Netscape, but IE seems to cling to old variables and won't let go - even if I empty the cache (physically) and restart the browser.
The more detailed explanation:
At startup, a php loadVars returns the "current_message_id," the database index of the latest chat message. Flash then adds 1 to that variable and sets out looking for the next message, etc.
In IE, when you go away and come back, the "current_message_id" is the one from your last visit, so the last chat replays before your eyes before you can join in. And if the database has been emptied, it just sits there and your new messages do not submit correctly. None of this happens in Netscape.
Sorry to be so long winded, but I guess the real question is: is there a way to guarantee that loadVars will return a fresh result, not a cached result?
Site Cache Issue
I've been working on a site that is composed of flash (a flash movie essentially). However, whenever I update it and try to view it, the browser uses the cached version instead of the new. This wouldn't be a problem if only I were to view it, but this isn't the case. Is there any way to either prevent the movie from being saved, or to ensure it is reloaded every time it is viewed?
Cache Issue :SWF File
Hi Everybody,
I want to refresh my .swf without clearing the cache or files. As we all know that just refresh doesn't work. So after quite a bit of searching i got some code here:
http://www.kirupa.com/developer/acti...icks/cache.htm
But i tried that without any luck. Does that work in all cases. And i am not sure if i am doing it corrrectly. What i did is - i created a New Blank file and on first frame i added this
myIdentifier=Math.round(Math.random()*10000);
loadMovie("myfile.swf?uniq="+myIdentifier,1);
It does embed myfile.swf but refresh still doesn't work. Is there any other method of achieving this thing.
Thanx.
Menu Script Issue AS2.0 ... Really Stuck
Im using a component from http://emehmedovic.com
this is a menu system, the email link works as do the url links.
however i cannont get the menu to work with gotoAndPlay and
fscommand.
if someone has the patience to look through the code that would be awesome
as im really stuck. If you need the fla i will post it.
Code:
//
// This symbol contains Menu Component, skin elements and sample code;
// as a convenient way to get you started right away.
//
import xm.components.MenuProperties;
import xm.components.MenuComponent;
MovieClip.prototype.useHandCursor = ture;
Button.prototype.useHandCursor = true;
stop();
// Menubar
var menu:MenuComponent;
menu.menuProperties = new MenuProperties({itemSymbol: "Vertigo: MenubarItem", textFormats: [new TextFormat("_sans", fontSize, 0xFFFFFF), new TextFormat("_sans", fontSize, 0xE1E4EC), new TextFormat("_sans", fontSize, 0x666666)], itemSpacing: 4, itemLeftMargin: 4, itemRightMargin: 4, itemTopMargin: 1, itemBottomMargin: 1, spawnOffsetY: 2});
menu.spawnMenuProperties = new MenuProperties({vertical: true, separatorSymbol: "Vertigo: PulldownSeparator", itemSymbol: "Vertigo: PulldownItem", backgroundSymbol: "Vertigo: PulldownPane", textFormats: [new TextFormat("_sans", fontSize, 0x444444), new TextFormat("_sans", fontSize, 0x000000), null, new TextFormat("_sans", fontSize, 0x7D7EB0)], itemLeftMargin: 10, itemRightMargin: 10, leftMargin: 5, rightMargin: 5});
// Menu Actions
var fontSize:Number = 11;
function toggleContrast(Void):Void {
trace("toggleContrast");
}
function setTextSize(p_n:Number):Void {
fontSize = n = Math.min(25, Math.max(9, p_n));
var p:MenuProperties = menu.menuProperties;
var pp:MenuProperties = menu.spawnMenuProperties;
p.textFormats[0].size =
p.textFormats[1].size =
p.textFormats[2].size =
p.textFormats[3].size =
pp.textFormats[0].size =
pp.textFormats[1].size =
pp.textFormats[2].size =
pp.textFormats[3].size = p_n;
menu.draw();
}
function increaseTextSize(Void):Void {
setTextSize(fontSize + 1);
}
function decreaseTextSize(Void):Void {
setTextSize(fontSize - 1);
}
function normalTextSize(Void):Void {
setTextSize(11);
}
// Menu Definition
function open(p_url:String):Void {
getURL(p_url);
}
function (goto) {
gotoAndPlay("mapmain");
}
function(quit)
{
fscommand("quit");
}
/*
Menu Item Object:
caption:String
enabled:Boolean
symbol:Number (predefined: 0 - none, 1 - check, 2 - radio)
char:String (predefined: MenuComponent.checkChar, MenuComponent.radioChar)
shortcut:String
// Item Handler: m.apply(o, a))
m:Function (function)
o:Object (thisObject)
a:Array (argumentsArray)
menuProperties:MenuProperties (overrides menuProperties)
spawnMenuProperties:MenuProperties (overrides spawnMenuProperties)
pulldown:Array (array of menu items for a child menu)
(or)
separator:Boolean
*/
var stateMenu:Array = [
{caption:"Canberra", enabled: false},
{caption:"New South Wales", enabled: false},
{caption:"Northern Territory", enabled: false},
{caption:"Queensland", enabled: false},
{caption:"Tasmainia", enabled: false},
{caption:"Victoria", enabled: true},
{caption:"Western Australia", enabled: false}
]
var contactsMenu:Array = [
{caption:"Phone. 9330 0922", enabled: false},
{separator: true},
{caption:"Email", enabled: true, m: open, a: ["mailto:vur.com"] }
]
var linksMenu:Array = [
{caption: "VicUrban Website", m: open, a: ["http://www.vicurban.com.au/"]},
{caption: "mapmain", m: goto},
{separator: true},
{caption: "Undefined", enabled: false, m: open, a: ["http://"]},
{separator: true},
{caption: "Undefined", m: open, a: ["http://.com/"]}
];
var item_ts_inc:Object;
var item_ts_dec:Object;
var item_ts_nor:Object;
var textsizeMenu:Array = [
item_ts_inc = {caption: "Increase Text Size", shortcut: "Ctrl++", m: increaseTextSize },
item_ts_dec = {caption: "Decrease Text Size", shortcut: "Ctrl+-", m: decreaseTextSize },
{separator: true},
item_ts_nor = {caption: "Normal Text Size", shortcut: "Ctrl+0", m: normalTextSize }
];
var viewMenu:Array = [
{caption: "Text Size", pulldown: textsizeMenu},
{separator: true},
{caption: "High Contrast", symbol: 1, shortcut: "Ctrl+J", m: toggleContrast},
{separator: true},
{caption: "Zoom In", enabled: false },
{caption: "Zoom Out", enabled: false },
{caption: "100%", enabled: false, symbol: 2 },
{separator: true},
{caption: "Exit", enabled: true, m: quit}
];
menu.items = [
{caption: "File", pulldown: viewMenu},
{caption: "State", pulldown: stateMenu},
{caption: "Updates", pulldown: linksMenu},
{caption: "Contacts", pulldown: contactsMenu}
];
// Listeners
function beforeSpawn(Void):Void {
item_ts_inc.enabled = fontSize < 25;
item_ts_dec.enabled = fontSize > 9;
item_ts_nor.enabled = fontSize != 11;
}
menu.addEventListener("beforeSpawn", this);
// Set text size and draw menu
setTextSize(fontSize);
Java Session ID Cache Issue
Greetings and salutations intrepid problem solver.................................
I was able to load XML Java variables across a network, however I am now being met with a problem in that the jsessionid can not be passes, flash is sending its own, or it is cached.
Please note this is NOT a crossdomain policy file issue as Java is replying. This is not a flash 8 network access issue. It is a cache issue in dealing with session id I am sending to the java server, here is url:
Code:
http://noneofyourbusiness.Simple9LineServlet;jsession=529327FDD906F090503AD2EACD7FCD06?line0=1&line1=1&line2=1&line3=1&line4=1&line5=1&line6=1&line7=1&line8=1&gs=coralslots&pId=5"
And yes we have appended all manner of date/time/random numbers to this to prevent caching...............no bannana!
HELP WOULD BE REPAID WITH GRATEFUL NODS, RESPECT AND KNOWING WINKS.
cheers,
sam
Cache Issue, Not The Typical Question Tho.
First of all hello, I am new here as well as being new to Flash/Actionscript.
The problem at hand. I have a meter and a gauge that need to read XML constantly to update. Of course I ran into the cache problem, which I fixed easily enough by using CacheManager by Paul Newman. It does the append datestamp and random number trick.
Works great, but now the cache gets filled up fairly quick, especially with multiple objects polling the XML, making the browser slow and unresponsive.
I have a feeling I could fix this issue, for me anyway since I am running the server, with an XMLSocket connection, but I like it not being tied to port as I want to release this freely to anyone.
Anyone have any ideas besides the meta refresh tags in HTML? Those don't seem to work in I.E.
Ideas would be most welcome!
Thanks
GetHours Flash Cache Issue AS3.0
hello,
I am trying to get time from user`s PC,
and change contents depending on if it`s day or night.
the following code works perfectly when I preview within flash.
it updates everthing when an event occurs.
BUT it only works first time when I open it from HTML,
unless I clear browser`s cash.
Code:
var nowStat:String;
stage.root.addEventListener(Event.ADDED, getTime);
function getTime(e:Event):void
{
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
nowStat = "day";
trace(nowStat);
}else {
nowStat = "night";
trace(nowStat);
}
}
cab anybody help me?
P.S. I`m using AS 3.0
Thank you.
Cache Issue With Load External Jpg
Question to all when you load a jpg with the loadMovie() function
Does it stay in the users cache once it is loaded?
If you removeMovieClip(); which will remove the jpg inside it and if you load the same jpg into another emptyMovieClip() will it load in straight away or does it have to load all over again because it's gone out of the cache????????????
GetHours Flash Cache Issue AS3.0
hello,
I am trying to get time from user`s PC,
and change contents depending on if it`s day or night.
the following code works perfectly when I preview within flash.
it updates everthing when an event occurs.
BUT it only works first time when I open it from HTML,
unless I clear browser`s cash.
Code:
var nowStat:String;
stage.root.addEventListener(Event.ADDED, getTime);
function getTime(e:Event):void
{
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
nowStat = "day";
trace(nowStat);
}else {
nowStat = "night";
trace(nowStat);
}
}
can anybody help me?
P.S. I`m using AS 3.0
Thank you.
GetHours Flash Cache Issue AS3.0
hello,
I am trying to get time from user`s PC,
and change contents depending on if it`s day or night.
the following code works perfectly when I preview within flash.
it updates everthing when an event occurs.
BUT it only works first time when I open it from HTML,
unless I clear browser`s cash.
Code:
var nowStat:String;
stage.root.addEventListener(Event.ADDED, getTime);
function getTime(e:Event):void
{
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
nowStat = "day";
trace(nowStat);
}else {
nowStat = "night";
trace(nowStat);
}
}
can anybody help me?
P.S. I`m using AS 3.0
Thank you.
GetHours Flash Cache Issue AS3.0
hello,
I am trying to get time from user`s PC,
and change contents depending on if it`s day or night.
the following code works perfectly when I preview within flash.
it updates everthing when an event occurs.
BUT it only works first time when I open it from HTML,
unless I clear browser`s cash.
Code:
var nowStat:String;
stage.root.addEventListener(Event.ADDED, getTime);
function getTime(e:Event):void
{
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
nowStat = "day";
trace(nowStat);
}else {
nowStat = "night";
trace(nowStat);
}
}
can anybody help me?
P.S. I`m using AS 3.0
Thank you.
[F8] Flash Page Index Issue - Im Stuck
Im making a flash website, the site is a gaming clan for a james bond theme.
http://mi6-licensedtokill.com
site info :
heads = are links to member page
content (to be added) = inside the golden border on the dossier material
right side (to be added) = other links to be placed there.
as you see its got animation to it, the title brightens and stuff, on a loop in main scene, and so far the gun keeps firing every double loop of the scene. (its imbedded movie is double the frames of the main scene 1)
The issue is, i want the gun to only animate once every time a person enters the site (and on refreshes), but i dont want to stop the main scene, coz then it would stop the title effect. - note every time the movie plays through it has 2 text effect and 1 gun animation.
so once again
I want to be able to stop the gun animation from appearing on the second and consequent scene loops til a refresh or they re-enter the index. ... how do i go about this?
.....................
other issue :
I want a music file to then play the second the glass shatters in the first and only planned gun animation, and then that file of music would continue to loop.
.......
thanks if you understand and have some help
-nick
Local Connection Or Browser Cache Issue?
Hi,
I posted this in the backend and scripting forum but not many replies so I am doing the dreaded....... cross post, sorry. I seem to be stuck on this...
FlashMX AS1.0...
I created a newreader movie that is populated by a textfile. I also created an admin movie to modify the textfile with a bit of PHP. The theory is to update the textfile for the newsreader movie from the admin, making editing the original newsreader.fla unnecessary.However, I would like to update the information without a browser refresh. I thought I might run into some browser cacheing issues when trying to update the data real time, so my idea was to use the localConnection method to update the newsreader with the content that is being saved to the textfile. I thought this would be a workaround for the browser cacheing the old textfile contents. This works fine locally, but when tested from a browser, the localConnection idea doesn't seem to work. In other admin demo's, after the user saves the info, I just provide a link to the textfile to update the browser cache. When refreshing the browser, the content is updated. I would like to find a way to do this in a real time situation. Here is a link to a small tutorial I tried to write using this method.....
http://ntdesigns.net/tutorial/NewsManager.html
Any suggestion appreciated.
Regards
NTD
Weird Flash AS2/3 Hardrive Cache Issue
Hi Guys,
Lately since the start of my dev work with CS3 I ve been getting the weirdest stuff happening, and it is starting to hamper my performance and sometimes even throw me way off course.
It happens with the trace function.
Sometimes when I change a trace function within my classes to check for a value I get the same value as previously traced for.
For example Test 1: I trace the value burger
trace("BURGER IS "+burger) // Outputs BURGER IS YUM
Test 2: trace the value of burger but change the trace string
trace("WHOS YOUR DADDY "+burger) // Outputs BURGER IS YUM
It seems that a version of the swf is precached into my hardrive for easy compiling, but somehow is not updating when I change it. It is not for any stupid reason like I didnt save or something. I had some associates come over to my desk and showed them and they are convinced as I am that it some kind of bug.
Anyways I was wondering if anyone here has come accross this...and did they manage to solve it.
Thanks guys.
Browser Cache And Data Load Issue
Hi there....
I have a flash 8 movie that uses amfphp/flash remoting. I have written various AS classes and such to assign my data to things like text fields, loaders and so on.
Now i have a movie that when I load it with a clear brwoser cache (replicated the behavior in both firefox and safari and win firefox), my movie works as it should. Now if i refresh the page, and view again, some of my data does not load. The odd thing is that it is not ALL of the data that does not load. Just some of it. Now if I clear the browser cache and reload the movie, all works again! Of course until the movie is reloaded again.
has anyone else experienced behavior like this before? It is driving me mad!
PC Versus MAC Loadmovie Flash Projector Built-in Cache Issue
I made a swf with a loadmovie action
it loads a jpg, unloads it, and later on reloads it... but it is not the same file. it has been updated on the server side...
it works fine on my mac, and the projector works fine...
it doesn't work on my PC.... GRRRR
the .exe reloads the same jpg, even though it has been updated on the server side....
It doesn't work on my PC in a Explorer... double GRRRR
And this is before using a web browser... and for the projector use
(i'm aware of the browser cache issue and i m actualy using loadMovie ("http://mywebite.com/image.jpg?1")
i actually like this methode, for browser issues... even though i do not really understand it ...
this is the first time i encounter a difference of behavior between MAC and PC using flash... (i divorced with Java because of this)
What should I do ??? i tryed to use removeMovieClip but it doesn't seems to help...
My MAC and my PC use the same network, same router, no proxi,
I came up with a feeling that... but i might be completly wrong...
As it is hard to think that there is such a thing as a cache in the swf projector...
I wonder if it doesn't happen because the swf behaves like it is inside M$ explorer browser while you open it on a PC... the Operative Systeme interface of the PC seems to be run by explorer ... ???
I tryed to take it of the PC, and windows doesn't run anymore...
[MX04] Loading Dynamic Jpgs With Fade--cache Issue
hello. i'm using flash mx and working on this photographers website and have cut and pasted and tweeked a little code to load jpgs dynamically with a fade transition between the outgoing and incoming jpg. problem is that the first time you go to the site the images aren't cached and so the images don't fade in the first time. i would like to change that so everything fades accordingly.
my guess is that i need some kind of getBytesTotal() script to make sure that each image gets downloaded to the users cache first before it fades in.
but i'm not sure how to append the code i have with that script. i'm still definitely trying to grasp this stuff and am more of a copy/paste/tweaker of script than a write my own (although i'm working on it). any help would of course be greatly appreciated.
the website can be viewed here: www.ericpercher.com
and here is the script i'm working with:
jpgArray = new Array("images/image_0.jpg", "images/image_1.jpg", etc.)
//create two MovieClips that will hold the loaded files
this.createEmptyMovieClip("target1",1)
target1._x = 14;
target1._y = 76;
this.createEmptyMovieClip("target2",2)
target2._x = 14;
target2._y = 76;
//load first movie into clip 1 to start with the first image
target1.loadMovie(jpgArray[0]);
//set target 2s alpha to 0 so it can fade in
target2._alpha = 0;
activeTarget = target1;
currentIndex = 0
this.onEnterFrame = function() {
if (obj1._alpha > 0) {
obj1._alpha -= 10;
}
if (obj2._alpha < 100) {
obj2._alpha += 10;
}
};
button_0.onRelease = function() {
gotoAndStop( "dis0" );
if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}
obj2.loadMovie(jpgArray[0])
obj1.onEnterFrame = function () {
if (this._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
};
then i have multiple buttons (button_1, _2, etc) which use the code directly above and load the next image in the array. thank you.
Load Jpegs In MC Stuck Stuck Stuck
ok i'm sure this is in another thread if someone wants to point me in the right direction i'd appreciate it.
question is.
i have a button that will load a jpeg into a mc. did that.
how do i get the jpeg to center and resize to my mc? mc is 300 x 480......
the site is for an art porfolio and this button/action will be repeated throughout the site
new to FLASH MX & actionscripting and it's driving me over the edge..................
[EDIT/CyanBlue]
Moved to the Flash MX ActionScript forum
Please state what your working environment is and
please post in the right forum
[/EDIT]
I'm Stuck, Probably Simple...but Stuck
alright i'm making an entire site in flash.
i have my main timeline that i have label on, that i'm trying to get my button to go to.
here's the deal:
main timeline -> movielcip -> movieclip (button inside this clip)
on the button inside this movieclip i have all my actionscripting (rollover, rollover and on release)
now on release i have: gotoAndPlay("_level0", "news");
news is my frame label on my main timeline, also frame 101.
but when i click on this button it does nothing, just sits there. hmmm.....
thanks.
MX:Cache - Please Cache The Images
Hello,
I load jpegs into a MC for a photography website. The images should cache in the browser (plenty of space allocated) but they do not. The images are loaded by replacing the previous image in the MC - so if I want to view a previous image I must load it into the MC again.
However, this should not be a problem from what I understand.
I use a Mac and IE 5 - I know it works on a PC!!
Does anybody else know of any issues relating to non-caching on a Mac??
Thanks in advance for your help.
Osc
Argggg IE Why.....wtf? Cache? No-cache?
http://www.walrusdogblues.com/colouringBook/?pageId=2
first time you view it in IE it should be fine (with crayon box in top left)
after that it renders but not the crayons....
if you cleare cache it works
Ive got pragma-nocache tags....
and im appending a date to the swf url to make each request unique but its still seems to be cacheing...because if you clear cache the crayons show up fine
It works in FF, works in Opera....but the damn crayons wont show in IE unless you clear your cache each time....
please anyone know why? im going crazy
errr I guess this should be in serverside if a mod would move it
Cache Cache Why Wont You Go Away
I have a client side dynamic graph whose values will change in the graph but the actually bars do not. It seems as though the graph writes over the old one. I'm thinking the prob is with the cache but do not know what to do about fixing that.
I tried setting no cache or the timestamp to an earlier date forcing it to clear the cache in the meta tab but that didn't work. I really do not know what to do, and would appreciate any help advice work arounds. Thank you
[CS3] Still Having Clock Time Zone Issue---and Dynamic Text Box Issue
I'm trying to do a clock that displays another time zone. The problem I'm having is that instead of running on a 12 hour clock, its on a 24hr one.
any insight as to how I can change the time?
Currently the clock is displaying
23:00p-Jul.22
I want it to display 11:00p-Jul.22
var dayText:String;
var dateText:String;
var monthText:String;
var AmPm:String;
_root.onEnterFrame = function() {
var myDateate = new Date();
//var sec:Number = myDate.getSeconds();
var min:Number = myDate.getMinutes();
var hour:Number = myDate.getHours();
var day:Number = myDate.getDay();
var date:Number = myDate.getDate();
var month:Number = myDate.getMonth();
//var year:Number = myDate.getFullYear();
//sec = sec<10 ? "0"+sec : sec;
min = min<10 ? "0"+min : min;
//AM/PM
if (hour>12) {
hour = hour-12;
AmPm = "p";
} else {
AmPm = "a";
}
//day
if(date == 1 || date == 21 || date == 31) {
dateText = date+"";
} else if(date == 2 || date == 22) {
dateText = date+"";
} else if(date == 3 || date == 23) {
dateText = date+"";
} else {
dateText = date+"";
}
//month
if (month == 0) {
monthText = "jan";
} else if (month == 1) {
monthText = "feb";
} else if (month == 2) {
monthText = "mar";
} else if (month == 3) {
monthText = "apr";
} else if (month == 4) {
monthText = "may";
} else if (month == 5) {
monthText = "jun";
} else if (month == 6) {
monthText = "jul";
} else if (month == 7) {
monthText = "aug";
} else if (month == 8) {
monthText = "sep";
} else if (month == 9) {
monthText = "oct";
} else if (month == 10) {
monthText = "nov";
} else if (month == 11) {
monthText = "dec";
}
//display
dateDisplay.text = hour+":"+min+ AmPm + "-" + monthText+"."+ dateText;
};
Um......................stuck
Hello
i am very new to flash and i have just heared about Actionscripting. goodness gracious me! staright over my head!
i was just playing around and seeing what i could do, so i tried to insert a date/time using a dynamic text box.
i know that i have to set the text box with the variable 'now_display'. i also know that i have to add:
onClipEvent (enterFrame) {
now = new Date()
now_display = now.toString()
}
to an instance of the movie. but i don't understand how. i right mouse click on the text box to select 'Action' but i can't have an 'onClipEvent' unless the text box has been converted to a movie clip, but when i do that, the option to add the variable 'now_display' disappears.
Also, i don't know how to add: now = new Date()
now_display = now.toString()
}
what do i select to add it? i can't find an action where i can add that text without little extra symbol (e.g. ; or /* etc)
please help!!!
adam
Help I'm Stuck
can somebody check out this site http://www.lane.com/index2.asp
once the site has loaded you will see a vertical scrolling picture bar, scrolls vertically according to mouse location.
Can someone tell me where i can find an in depth tutorial on this effect.
Many thanks
Phil
I'm Stuck You Try......
Okay my clients site http://www.cityclublife.com has a form to fill out so people fill it out and hit submit. a html page then pops up and tells the visitor that their info has been sent only it dosn't send it to my clients e-mail address.
I've done this many times for many clients but can't seem to get this one to work.
HELP PLEASE
HELP I'm Stuck
I have a menu with 3 links to other external flash files, each containing 3 different sections/frame labels.
this is the layout:
I have an index.html (with embedded index.swf) and portfolio.html (with embedded portfolio.swf)
I want the menu in the index.swf - which consists of three links (2d |3d |flash) to correspond to the 3 different sections/labels inside the portfolio.swf (2d, 3d, and flash)
how can I make this work with actionscript? PLEASE HELP!
PS: I don't need the loadmovie script, only what I described above. thanks a million.
[Edited by samige on 08-27-2001 at 04:31 AM]
STUCK...............................please Help
Hi,
Can anyone help with this...?
If I have a button located within in a movie clip, is there a way i can add a goto action whose target frame is in the MAIN TIMELINE rather than in the movie clip's timeline?
also, is there any way of adding a line of actionscript to a number of different buttons at once without having to go thru and type it out over and over?
many thanks in advance,
J
Im Stuck... Need Some Help Here...
ok
i got 2 .wav's i want to play in sequence.
i put each .wav within a movieclip
i play the first movieclip wit no prob but the second one just wont play.
it seems that within first movieclip every action i add or every sound i place AFTER frame 3 just wont work.
so what i need help wit is:
how do i make the second movieclip play right after the first movieclip has stopped?
(im hoping someone that knows actionscript or somethin would help me wit this)
thx
I'm Stuck
hy everyone,
i am making a web site and i need a hand.
i have a very width picture and i want to use the mouse to make the pictures moves left or rigth depends where the mouse goes.
* the picture is inside a strip.
thank you.
I'am Still Stuck
someone can suggest how can i make this:
how can i move the picture like this
http://www.center-of-the-world.com
the picture is in the wellcome page.
100000 thank u if someone can help me
Help I Am Stuck
I magine if you please;
I have a main stage that has 6 buttons on it , these link to a window mc that has win "max" and win "min"which obviously change the state of the window.My problem is one particular window opens external swf files within it.I am using an instance of my window mc called gallery which works fine. When the window loads it has
win="blank";
oldWin="blank";
startLoad="false";
movie="showreel1.swf";
stop();
This sets the varibles and loads up the swf and showreel 1 works.What i need to know is what action would i have to put on the button to load up a different swf?
i tried this
on (press) {
(content.gotoAndStop("hide"));
}
on (release) {
gotoAndPlay (1);
win = "blank";
oldWin = "blank";
startLoad = false;
movie = "showreel2.swf";
stop ();
}
the on press works but the rest will not i thought it would be a case of ressetting the variables at the beginning of the gallerymc but things are getting to heavy for the brain and therefore i am stuck!!
please help
Help I Am Stuck
I magine if you please;
I have a main stage that has 6 buttons on it , these link to a window mc that has win "max" and win "min"which obviously change the state of the window.My problem is one particular window opens external swf files within it.I am using an instance of my window mc called gallery which works fine. When the window loads it has
win="blank";
oldWin="blank";
startLoad="false";
movie="showreel1.swf";
stop();
This sets the varibles and loads up the swf and showreel 1 works.What i need to know is what action would i have to put on the button to load up a different swf?
i tried this
on (press) {
(content.gotoAndStop("hide"));
}
on (release) {
gotoAndPlay (1);
win = "blank";
oldWin = "blank";
startLoad = false;
movie = "showreel2.swf";
stop ();
}
the on press works but the rest will not i thought it would be a case of ressetting the variables at the beginning of the gallerymc but things are getting to heavy for the brain and therefore i am stuck!!
please help
Stuck
i'm making a new site.. how do u do the dragging into one spot then somthing will load. Like this http://www.theory7.com/splash1024.html
with the floopys
[Edited by RedAbode on 05-16-2002 at 06:46 PM]
Any One How To Do This I'M STUCK
Hello!!
I have a flash presentation (projector) that is to be used by travelling sales people.
They need to be able to launch the presentaion on their laptop before the meet their customer and fill in their name. then when they start the presentation, at certain points the customers name will be displayed.
Is this possible? Any one know what the actionscript would be?
I presume it will be using dynamic text although i'm not sure!
any help would be great!!!!
Thanx in advance :O)
Please Help I'M STUCK
Hello!!
I have a flash presentation (projector) that is to be used by travelling sales people.
They need to be able to launch the presentaion on their laptop before the meet their customer and fill in their name. then when they start the presentation, at certain points the customers name will be displayed.
Is this possible? Any one know what the actionscript would be?
I presume it will be using dynamic text although i'm not sure!
any help would be great!!!!
Thanx in advance :O)
Help I'm Stuck
I have a button that is nested in a movie clip which is set on the main stage, this button is supposed to load another movie clip on to the main satage as well, but I can't get it to work, I have tried attachmovie, loadmovie, emptymovieclip, and nothing seems to work.
Help me please...
Something I Always Get Stuck On....
I keep running into this same problem and I always think I know the answer, but it turns out I don't. And I know it's something simple I'm missing.
Basically I want to know how to tell Flash to check if two are things are true before it's allowed to move on.
I thought I could do this by putting two if statements within each other, like:
if (something here is true) {
if (this is true too) {
gotoandPlay(whatever)
}
}
But apparently that doesn't do it. What am I missing?
Please Help Me(I'm Stuck)
No need to tell you what I tried doing because I know it's not working. Here is what I want to do:
I have an image that I turned into a button on "scene1". I want this button to link to "scene2" on release.
How do I get that done?
Thanks very much for your help.
Please Help Me (I'm Stuck)
Thank you very much for you help.
Here is the problem,I have a scene that has several animated symbols and the scene is looped. HOW DO I STOP A SYMBOL FROM LOOPING WHILETHE OTHERS ARE LOOPING? I want every other symbol to loop apart from this one.
You Help Is Very Much Appreciated.
Cornelius
I Am Stuck
Hi alllll
i don't know how to resolve this. i don't write script coz i don't know how. if u tell me the easy and fast way to learn it, i would be thankful!
---------------------------------------------------------
I have this script i would like to add links to it,
they are four buttons, but i can't add that script link the buttons with the url ..how can i do that?
Michelle
here is the script:
fscommand("allowscale",false);
fscommand("trapallkeys",true);
// dichiariamo i valori di acc e smorzamento dei movieclip(s) che
// comporranno il nostro menu
MovieClip.prototype.acc = 3.9
MovieClip.prototype.smorz = 1.22
// ACTION FOR THE BUTTON
MovieClip.prototype.DoSomething = function(theClip){
trace("nome: " + theClip._name)
trace("valore: " + theClip.mov.txt)
// here you can add your script for the button action...
}
// label sui bottoni
nomi = new Array("E-Cards","Media","Fan Club","NEWS");
loghi = new Array("cubo","triangolo","ottagono","sfera");
max = 3
// creo il menu
for(i=1;i<=max;i++){
duplicateMovieClip("_root.menu0","menu"+i,i)
myMenu = _root["menu"+i]
myMenu.mov.txt = nomi[i]
myMenu.attachMovie(loghi[i],"logo" + i,(5000+i))
myLogo = eval("_root.menu" + i + ".logo" + i)
myLogo._x = -76
newColor = new getColor(myMenu);
}
_root.menu0.attachMovie("cubo","cubo",(7000+1))
_root.menu0.cubo._x = -76
// coloro i menu in modo differente
function getColor(what){
inizio += (255/nomi.length)/3
colore = new Color(eval(what))
alex = new Object();
alex = colore.getTransform();
alex.rb += inizio
alex.gb += inizio
alex.bb += inizio
colore.setTransform(alex)
}
Please Help Me (I'm Stuck)
How do I make a graphic or an movie clip play only once within the scene while the rest of the animation is looping?
I tried putting a [stop] action in the layer containing the clip but the entire scene stops and fail to loop.
Also I put a [stop] action within the movie clip object but this had no effect. I scene was still looping with everything in it.
When I save the object as an image, it doesn't allow action scripting within that oject, only in the layer.
Please Help Me!
Thank You Very Much!!
Cornelius
Really Stuck
I am trying to put in the code for a gearshift effect where ppl can navigate the site by changing into diff gears in which ever order., by dragging the gearshift . themselves. i tried all kinds of code from examples ive seen but nothing works..
http://users.bigpond.com/cmeany/LAMBOFLASH3.fla
is where my thing is at right now and it's been like that for a week ((((
Need help please.
Please, Please Help Me, Im Stuck
Well I have this fan page I have been working on, saddly I am stuck on the Lyrics page. I want the flash page to have the titles of the songs on one side, and in the other side when you click on the song name for the song lyrics to appear there. Please help me out as I am on the last stages of desperation. Yes I am a newby.
Thank you for anyone that reads this, or helps me out.
I'm Stuck
I am using Flash MX.
----------------------
I created an input text field in the middle of the stage.
...and this is where i need help.
How would a user type something in (their name), and when they pressed enter, their name would appear in the next frame??
In a nutshell, i would like to know how to go to the next frame when the enter key is pressed, and how to get their name shown.
whew! any help is appreciated.
I Am Seriously Stuck
Please Help. Below is my code. As is it will search the arrays (which are much larger) and return the first item that matches exactly the input (name). I am trying to get this to search to search even if the input is only a couple letters and return all results.
i can answer any other questions: chosenson@excite.com
**************code******************code********** *******code******************
Scene 1
actions for frame 1
muni = ["AGAWAM","ALFRED","AMESBURY","ARLINGTON","ATTLEBOR O","AUBURN SEWER DISTRICT",
"AUGUSTA WATER DISTRICT","AVON","BANGOR","BAR HARBOR"];
state = [ "MA ","ME ","MA ","MA ","MA ","ME ","ME ","CT ","ME ","ME"];
locate = ["HANGING FILE ",
"HANGING FILE ","HANGING FILE ","HANGING FILE ","HANGING FILE ",
"HANGING FILE ","HANGING FILE ","HANGING FILE ","RED ROPE ",
"HANGING FILE "];
actions for frame 1
stop();
actions for buton
on (release) {
i = 0;
while (name != muni && i != muni.length){
if(name == muni ){
}
i++;
}
_root.createTextField("file_loc",100,330,130,300,3 00);
file_loc.multiline = true;
file_loc.wordWrap = true;
file_loc.border = false;
myformat = new TextFormat();
myformat.color = 0x010283;
myformat.bullet = false;
myformat.size = 18;
if(muni == null){
file_loc.text = "The file *"+ name+"* appears to not be located on the premises. Please check your spelling to try again. Thank You."
}
else{
file_loc.text = "You have searched for "+ muni +", "+state +". It is a "+locate +".";
}
file_loc.setTextFormat(myformat);
}
**************code******************code********** *******co
|