ActionScript 2.0 :: Monthly Calendar That Does Not Use External Variables
Dec 19, 2004
I'm working with Flash MX 2004. I have a funtional monthly calendar that does not use external variables - all variables are contained within the timeline. I am now trying to control it with external variables using:[code]The InitialMonthVisable variable is used to define which month is visable first using dec=december, jan=january, etc. This is needed because the first month visable will not always be the current month.There is a movieclip on the main timeline with 12 labelled frames (dec, jan, feb, etc) and uses the IntialMonthVisable variable in the first frame:[code]The movieclip then goes and plays the specified month. This works fine when the variable is defined within the movie, but the movieclip does not play the specified month using the external variable.
View 2 Replies
Similar Posts:
Oct 28, 2011
I had an assessment i need to finish as my test for flash developer vacancy...i need to create a function that convert date Gregorian calendar to Hijri calendar in flashis that possible?I've search through google, but still doesnt find anything useful yet.
View 3 Replies
Mar 28, 2004
I have to set up an list of events in sort of a calendar format. I'm trying to figure out how I should bring in the data.The data will be stored in a mySQL database. Should I just bring it straight into flash with PHP, or should I use PHP to convert it to XML and then bring it to flash?
View 1 Replies
Feb 20, 2008
I would like to know if there is a way to create a calendar page on my site that will display the free Google Calendar? I have embedded code in a Myspace site before and it worked well, but have no experience with the IFrame code that Google Calendar uses. fyi- I just bought Flash a month ago and have been editing a template that I purchased to be my new website.
View 1 Replies
Jun 18, 2008
First time poster and new to the board. I have been asked to solve a difficult problem and am seeking guidance in completing the task. Basically, to give you an overview, I need to build a custom tracker that counts how many clicks per month a particular link(s) is/are hit within a website I built. I used Flash (ActionScript 2.0)and XML to build the website along with pulling in external swf files as needed. I have an idea of how to create the MySQL table using myPHPAdmin. I know I want to build an actionScript class to pull into the core swf that holds a majority of the functionality, and to create a PHP file that will pass the info to the simple MySQL database AND send an email out on the last day of each month with the totals from the database. Then I need to reset the database to 0 for each link that we are tracking on the 1st of every month.
My goal is to make it as reusable as possible in case I am asked to follow any more links within the site for documentation. Does anyone have some good documentation, examples, or reference links to point me towards? I have an idea of what I want to do, but I'd also like some other people's input on how they would possible move forward in completing this task.
View 4 Replies
Nov 2, 2008
I have a flash program which uses asp to work with amicrosoft access database and Im trying to find the best way toupdate information at a specific time. I have time and date storedin a record in the database and would like to have the flashprogram update some text when this time and date is reached. Sothis could be hourly,daily,weekly or monthly.Would it be best to use the timer event or is there a betterway to do this? I think the timer event would be useful forrefreshing every hour, however im not so sure about thedaily,weekly and monthly options. If I was to refresh theinformation every week or month, would I leave timer running for awhole month or is there are better way to do it?
View 4 Replies
Sep 6, 2005
I am trying to create a monthly calender that will display highlighted dates when something has been scheduled for that day, and will display a rollout of the scheduled event when the date is clicked.
I have writen enough of the code to get a resizable calender on the screen with current month, year and the days of the week header. how to get the actual days to display with the with schedeuled dates highlighted and clickable.
View 2 Replies
Aug 5, 2010
I am currently working for a highscore system for my games website. and i have written the code for that. it only displays 1- players. i want to display overall top players when i click on top players url and want to display the monthly top 10 players when i click on monthly top players url.How to do this. i am trying since 2 days. i am struck at this point. kindly do look into this. the code as follows. For reference kindly look inot this. i need like this.[URL]
<?php
include_once("_data.php");
$game_name = "test";
$db_table = "newhs_" . $game_name;
[Code].....
View 1 Replies
Oct 16, 2009
I have created a conversation/script class for a game, but I need help with one little thing. I'm loading the scripts from external XML files, and I want to insert variables like player name, item names etc to the XML, like this.
Code:
<DIALOG SPEAKER="Brian">
<LINE>Are you sure, {playerName}?</LINE>
</DIALOG>
[Code]...
View 3 Replies
Dec 19, 2004
I'm working with Flash MX 2004. I have a funtional monthly calendar that does not use external variables - all variables are contained within the timeline. I am now trying to control it with external variables using:
loadVariablesNum("visualControl.txt",0);
The contents of the text file are:
&InitialMonthVisable=dec&
[code]....
View 3 Replies
Feb 20, 2009
I am trying to control some of the global variables in my script through an external text file.I have a variable called "_global.scrollOrNot", which determines whether I want flash to use the text window with a scroll-bar or the one without a scroll-bar. I am trying to control that through an external text-file called "ScrollCommand.txt". Here is my code:
the external txt states:
&sb1WindowScroll=yes
frame1:
_global.scrollOrNot;
[code]....
this is were I have a problem. It will always choose "MCtextFeldSB1noscroll". I have tested the whole thing with other variables, which were not changed by any LoadVars function and it works just fine then. As soon as I change the variable using the LoadVars function it will not work any more.
View 2 Replies
Feb 4, 2009
I have a flash form. When the send button is pressed, I need to access a php file from another server that sends the email. I need to access the php file like this: [URL], writing the 2 variables, var1 and var2 in the link. I tried like this:
Code:
var sendData:LoadVars = new LoadVars();
link = "[URL]" + value1 + "&var2=" + value2;
sendData.load(link);
This works when I test my file from Flash. But when I upload it to a server, it doesn't work anymore. Why is that?
View 1 Replies
Aug 12, 2009
When loading an external SWF file, can you actually use some of the variables from the loaded SWF file in the parent SWF file?
View 1 Replies
Jan 26, 2004
I had a question about loading external variables. Is it possible to load external variables from a different server other than the one that the flash site is hosted on?And if so, what would that command look like?For instance, if you load a variable from the site's own server it might look like this;loadText.load("TEXT1.txt");Would loading it from a different server look something like this;
View 1 Replies
Jan 29, 2003
Okay i have a problem where I am reading an ASP page into my flash. It works fine when I am reading into the dynamic text fields but when I want to use a variable for something in the actual flash nothing is working.I am reading a Database and everything is working just great, except that there are no more records to read! I have a variable named last which is displayed during the last record set so that i could use it to end the display of the records.I tried setting it up in an if statement...
if (last =="yes")
{
counter = 0;
}
my program pretty much just ignores this statement but when i read the variable last into a dynamic text field on the last record set it will display yes
View 4 Replies
May 31, 2007
I'm using LoadVars (results_lv below) to load variables from an ASP page, returned as follows: option1=4&option2=5&option3=32&option4=... etc. etc.
There are a different number of "options" returned each time, depending on the query sent to the script. I have access to the number of options ahead of time, but still don't know how to loop through them...
So... How on earth do I loop through these variables?!? Basically I'd be thrilled to be able to do this:
trace(results_lv.option1);
trace(results_lv.option2);
trace(results_lv.option3);
and so on, until they've all been traced.
View 2 Replies
Dec 11, 2007
accesing the movieclips/function/contents of a extenal swf.I used movieclip loader to load the swf.i have two files.. preview.swf and main.swf preview.swf loads an xml and renders its content. the xmlpath is embedded in preview.swf. when i play the file directly, it seems to load the content. however when i load preview.swf into main.swf with a moviecliploader, it does not load or render the xml.i cant even access the functions / variables in the file preview.swf.
View 3 Replies
Jun 23, 2008
I have an MovieClip on Stage with instance name main_mc. I am loading an external game.swf in that main_mc. I want to access variables of root through game.swf. I have used loadMovie() to load the external swf.
View 5 Replies
Jan 13, 2002
I want to load an additional movie into a first one (using loadmovie), and this one has to use variables from an external file (like data from a mysql database or whatever)If I only load the additional swf without the first one everything works fine, but if I try to play the whole thing it ist not.
View 5 Replies
Mar 4, 2011
I have a php page which outputs the following:
DisplayValue=%3cfont+face%3d%27Arial%27+color%3d%2 7%23FFFFFF%27+size%3d%2730%27%3eGambling+Hotline+1
[code].....
View 1 Replies
Mar 2, 2004
WHy o why in the world doesnt this work? I've done this quite a few times at home on my PC, but now I'm on-site with a client who has nothing but Macs. "Sure, no problem" I told my AD, "I can do that...".I'm trying to load variables from an external .txt file into Flash MX and this is the code I'm using:
links = new LoadVars();
links.load("assignLinks.txt");
links.onLoad = function(success){
[code].....
View 10 Replies
Dec 22, 2003
I understanding how to add, multiply, etc. external, standalone numerical variables:
var salBase = new LoadVars();
salBase.Sal = new Number();
salBase.MA = new Number();
[code]....
View 4 Replies
Sep 30, 2004
I have an mp3player that loads an external mp3 file and plays. It works just fine if the url/location is hardcoded in the swf file. However, I need to be able to have the url passed to the flash externally so that a number of users may utilize this single swf build.
Example:
Current location need to be filename.mp3 or [URL]. However, I need this location to be edited per use of the swf. In php i know I could call it such as:
$myLocation = "123";
[URL]
or
$myLocation = "[URL]";
(The "123" is what changes for each page use)
Here is the code i have that is working just fine. Until I need to use a full url that changes for each page the swf is use on.
onClipEvent (load) {
if (playing!=true) {
playing=true;
soundIsLoaded=1
myMusic=new Sound();
myMusic.loadSound("myMusic.mp3",true)
}}
Limitations:
1. Because of the server set up, I am always required to call items using full absolute urls/paths.
2. php, cfm, xml etc are not available for use with this. -- the goal is to be able to give an webmaster a copy of the swf and the code to embed it on their html page... and that's it.
View 7 Replies
Aug 14, 2009
I have a class to load some XML and build the data into an array but I can't get the timeline to see the array. [code]...
View 4 Replies
Jul 2, 2010
I'm trying to debug my movie, but the variables in the debugger are greyed out and I can't expand them. It also doesn't show the progress through the code. I think it's related to having loaded an external swf.
View 1 Replies
Jan 23, 2011
How to load variables from an external source? For example, Lets say I have a movieclip that contains 6 keyframes, and I want flash to load the proper keyframe when the main swf is opened. Flash knows what the proper keyframe is, because that variable is stored in a MySQL database, or txt file, or xml file, or whatever. Also, how could i have flash write to an external file, so that i can save the changes.
View 2 Replies
Apr 1, 2012
I have created a loader class that retrieves variables from an external text file. I call the loader class and all works well but I cannot figure out how to retrieve and use the variables in the Main class.
[Code]...
View 3 Replies
Dec 10, 2007
My flash project is structured as follows, with the nested external swfs being loaded to clip holders using loadMovie():
home.swf
|--sponsors.swf
|--educators.swf
In home.swf, I've defined a text box with instance name contentWindow_txt, and assigned its path to _root.cw_txt. Now, when I type the following anywhere in home.swf:
Code:
_root.cw_txt.htmlText = "testing!";
The dynamic text box contentWindow_txt will display "testing!" when the swf loads. Unfortunately, when I make the same call in sponsors.swf, I get nothing. Is there something about external swfs or variable inheritance I don't know?
View 9 Replies
Oct 14, 2009
I've been attempting to load an external .swf within a parent .swf. The problem is that the external .swf requires additional variables to pull it's content from a database. This code of course works just fine if the .swf doesn't contain any additional variables or if it's requesting an image.
Is it possible to do this using the GET method, or is there an alternate method while using Loader()?
parent.php as3:
ActionScript Code:
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("gallery.swf?xmlUrl=http://localhost/gallery/api/rest/get_gallery/1/json"));
The external .swf is obviously gallery.swf while the variable that is necessary for it to function is [URL]
View 3 Replies
Oct 14, 2009
I am doing the website for this artist...so she has the permission to post this html code on her page but we are doing a full flash website and I want this swf file to load inside the main.swf..but I cannot wrap my head around how to get it to go with the ?wid variable attached.I have tried numerous combinations.URL...ABOVE is the link i am trying to get to load into my main.swf file and play the way it plays here.URl...
View 0 Replies