ActionScript 2.0 :: Flash - Instance Of The DateChooser Component Reads An Xml File Which Houses Info For Homework Assignments

Jun 30, 2004

the situation | an instance of the DateChooser component reads an xml file which houses info for homework assignments and their due dates. if there is a due date, make sure that date is highlighted on the DateChooser component. from what i've been told, the xml file stores urls which will tell if there is s/thing due on a particular date. the xml file | very simple, has an <activity> element with a 'date' attribute, i.e.

[Code]...

my remaining questions | What needs to happen as soon as the xml file is loaded? i.e. do i call a function which parses the xml data and puts it into an array? then the DateChooser component iterates thru the array looking for boolean values noting if there is an activity or not and if so, on which day. if it finds one, it sets its highlight property to true for that particular day. i'm setting up the xml file correctly.

View 11 Replies


Similar Posts:


Flash :: ActionScript 3.0 - DateChooser Component For CS3

Apr 15, 2009

Where and how do I get the datechooser for Flash CS3, AS3.0?

View 2 Replies

Actionscript :: Bind Event Listener With Flash DateChooser Component?

Nov 19, 2010

I'm new to flash, and using Macromedia flash 8.

I'd like to use in-built DateChooser component in my flash project.

So How do I bind an even handler on selection of any date? let's say I want to display selected date in another dynamic text element.

View 1 Replies

Data Integration :: Dynamic Text Instance - Displaying Info From PHP File

Mar 10, 2008

I have a dynamic text instance in Flash named dynamic_txt and I want it to display information from a php file. What command allows me to do this? Here is the code:

PHP
<?php print "dynamo_txt=DYNAMIC"; ?>
ActionScript (2.0)
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
//Here is Where I want the command that will allow Dynamo_TXT to display the String // From the PHP File
};
my_lv.load("cars.php");

View 2 Replies

Flex :: Composite MXML Component - Display File Info On Single Line

Aug 31, 2009

I'm trying componentize one of the pieces of UI in an AIR application that I'm developing in Flex. In this example, I want to display file information on a single line (which has an icon, some text/link and the size).

My code looks like this (component is called FileDisplay):
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="[URL]"><mx:Script>
<![CDATA[
public function set iconType(source:String):void {
this.ficon.source = source;
[Code] .....

However, when I do this, I get an error: Error #1009: Cannot access a property or method of a null object reference. This is because the child components of the FileDisplay are null (or at least they show up that way in the debugger). Am I supposed to be waiting for events indicating the child components were created? For now I can manually do everything in ActionScript in my main app (create a Canvas and add children to it) but how to separate the code more cleanly.

View 4 Replies

Professional :: Preventing Remote Url File Reads In Flash?

Oct 29, 2010

We have a Flash application provided by a vendor. It reads its parameters from an xml file on our web server's file system. However, it can also be spoofed to read its parameters from an xml file sitting on another domain's web server. At first we thought crossdomain.xml might be able to fix this, but we've researched it and understand the purpose of crossdomain.xml. It won't solve this issue.Are there any ways of enforcing that a Flash application reads its input file only from the same server where the Flash application was served? Or is the recommendation just to initialize variables within the Flash app, not relying on an external file.

View 3 Replies

ActionScript 3.0 :: URLRequest, URLLoader - DateChooser Component Is Not Supported?

Sep 3, 2009

I have written code to read an XML file by using URLRequest and URLLoader in ActionScript 3.0. Code is pasted below. This runs well in AS3.Problem I am facing is because I wrote this in AS3, I am not able to use the DateChooser component in another part of the flash module because it seems like DateChooser component is not supported in AS3. So I want to migrate my below AS3 code back to AS2.
 
**** Code in AS3 (I need help in writing equivalent code in AS2) :-
 var xmlText:XML ;var xmlReq:URLRequest = new URLRequest("myFile.xml");var xmlLoader:URLLoader = new URLLoader();

View 3 Replies

Flex :: Days To Have A Different Background-color In The DateChooser Component?

Sep 28, 2010

I have an Array of days. I want those days to have a different background-color in the DateChooser component, say red.

View 3 Replies

Data Integration :: Building An Events Calendar With The DateChooser Component

Sep 12, 2007

The AS2 DateChooser has just the functionality I need to build the events calendar that I have to build .. however .. while I know what to do in theory, I'm stumbling on (a) whether it will work and (b) syntax.

I want to display an instance of the DateChooser (myDate) and access the selectedDate property when the user selects a date. Then I need to pass it to the main events page preferably on the same page with something like this:

SELECT EventTitle. EventDescription, EventLink FROM Events
WHERE EventDate = MMColParam

MMColParam 1 myDate.selectedDate

The page itself is ASP. I am thinking I would probably define a variable and perhaps use LoadVars to load the selected date from Flash .. not something I have done before.

Perhsps something like

dim eventDate
eventDate = myDate.selectedDate

I'm sure that's not the syntax .. but I think that is the theory. I should be able to access the selectedDate property of the Date Chooser instance and feed the date into the query to select the events on that date and list them.

View 2 Replies

ActionScript 2.0 :: Global Include Directory - Upload It To Server With The Flash File Or Does It Compile The Flash File With The Included Info?

Sep 9, 2006

If you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?

View 2 Replies

ActionScript 2.0 :: Make A Links Box That Reads Data From A XML File?

Sep 26, 2005

I am trying to make a links box that reads data from a XML file and inturn generates all the buttons and when clicked on will open the specific page in a new browswer window.this is what I have so far: a box that reads the XML, makes individual buttons and a scroller to see all the links if there are more than what can be displayed. See example HERE. Here is the code for the actionscript...

PHP Code:[code]......

View 4 Replies

Flex :: DateChooser Component, 42 Days, Show Days Of Previous/next Month?

Jun 5, 2011

On the DateChooser component, it shows the days for only the current month... but i'd like to show some of the previous month's days and some of the next month's days.Is there a property to set on the DateChooser component to show 42 days. I mean, to show some of the previous month's days + the current month's days + some of the next month's days. I'm not sure what this is called...If you look at a typical month calendar, for example for June 2011 it shows:

S M T W Th F Sa
20 30 31 1 2 3 4
5 6 7 8 9 10 11

[code].....

Is there a property that I've overlooked which shows some of the days from the prev. month and next month in the current month view? Or would I need to extend the DateChooser component and override a method?

View 1 Replies

ActionScript 2.0 :: Make A Dynamic Scroller That Reads All Text From A Xml File?

Aug 15, 2007

how to make a dynamic scroller that reads all text from an xml file.

Kinda like a way to insert text into a movieclip without it having a set text field height..

View 5 Replies

Actionscript 3 :: Homework - Getting An Int In Another Frame

Dec 13, 2011

I am currently working on a casino game (for my school) but I am encountering a problem: var a:int //this part is in frame 1 a = 10000 money.text = ""+a //this part is working //this part is in another frame lost_BTN.addEventListener(MouseEvent.CLICK, lost) function lost (e:MouseEvent) { cash.text = ""+a -=50 //*1 (please see below)}

*1) Scene 1, Layer 'Layer 1', Frame 6, Line 36 1050: Cannot assign to a non-reference value.

*1) Scene 1, Layer 'Layer 1', Frame 6, Line 36 1067: Implicit coercion of a value of type String to an unrelated type Number.

*1) Scene 1, Layer 'Layer 1', Frame 6, Line 36 1067: Implicit coercion of a value of type Number to an unrelated type String. I cant seem to get the information out of 'a' in another frame.

View 2 Replies

ActionScript 3.0 :: Make A Flash Website For Assignments?

May 31, 2010

I need to make a flash website for one of my assignments, but whenever Im try and make something, none of my action script is compiled.Ive done up a test file that it 2 frames, with a stop(); function on the first frame, no other action script. I get no errors, however it just continues to loop through all the frames. Here's the .fla:

[URL]

Another interesting this is I can type gibberish into it and I dont get any compiler errors....its as if it doesnt even look at my actionscript. Even if i purposely put and error in, nothing at all...

It has to be something Im doing when working, as i can open up other files that Ive made in my class and publish them without this problem happening...I can even edit them a bit, but after a short while of editing (im not sure when) then suddenly this problem appears in them.

View 1 Replies

Flex :: Send Info From A 3 Component?

Aug 9, 2010

I'm using Alex Uhlmann's flip card class (Distortion Effects). I've got a card that has 3 faces. When the user clicks the button, it fires a change event, and in the main application, the change event calls a function, flipTo, that flips the card. The component is below:

[Code]...

View 1 Replies

Data Integration :: Xml File To Upload Info To Flash App

May 3, 2006

I'm using a xml file to upload info to a flash app. For the xml I used utf-8 encoding but I'm having a problem the "&" symbol isn't displaying rigth.

View 4 Replies

ActionScript 2.0 :: [FMX]Having Info From Database Displayed In Flash File?

Jan 31, 2004

if i have a a database how can i get info from it show up in a flash document in a dyanamic text box

View 3 Replies

ActionScript 2.0 :: [FMX] Having Info From Database Displayed In Flash File

Jan 31, 2004

if i have a a database how can i get info from it show up in a flash document in a dyanamic text box

View 3 Replies

Data Integration :: Web Services Component - Cannot Get Info Back

Jan 18, 2007

I am new to web services in flash. I am running Flash 8 and am attempting to use the Web Services component. I have defined my web service, bound to text fields on my form. Every thing works fine when I test the movie. Data is returned as it should. But when I put the movie on the web and I try to get data back, I get nothing.

View 2 Replies

ActionScript 1/2 :: Flash Reads The Xml, But Does Not Understand The Tag Php?

Sep 25, 2011

my flash reads the xml, but does not understand the tag php. I want to read my xml dynamically

code:
 
stop();
function randomOrder(targetArray)
{
var _loc2 = targetArray.length;

[Code]....

View 27 Replies

ActionScript 2.0 :: Php Generates Xml - Flash Reads

Aug 23, 2005

i'd like to know if this is possible: currently i have a file menu.xml which contains menu information 2 levels deep (main menu, sub menus). this i am reading into flash and generating the menu. i would like to change this process:

1. call a php script which creates the xml output and using headers sends that data back into flash. sending and loading vars is no problem.

2. use flash to generate the menu

[Code]...

View 1 Replies

ActionScript 3.0 :: Import Mp3 File Info To Be Shown Whilst File Is Playing?

Dec 2, 2010

Created an mp3 player that works fine, but i need the track name, artist name, track timer, to be shown aswell?and i dont have a clue how do go about doing this.

View 2 Replies

How Flash Reads The PHP Coding Which Was Generated From The MySQL Databas

Sep 25, 2009

how Flash reads the PHP coding which was generated from the MySQL database.Though, I was wondering if anyone can help me with this task and/or clear stuff up. All I want to do is grab a single video file, when on the video.php page.the video.php will have the parameter, video.php?id=____ and than the PHP coding in the header will grab the database info for that video. Though, do I have to create a separate page for the flash to grab that information?Like, I notice that for Flash to grab that info, PHP needs to set it up like so:

Code:

vid=test.flv&title=title...

and ect. Though, do I have to echo this part out, or do I have to send that PHP info and create a page from it, than have flash grab the information from that 2nd page?

View 2 Replies

ActionScript 2.0 :: Flash RSS Reader, That Reads ATOM Feeds?

May 4, 2006

I have a reader on my site, but it doesn't reader ATOM feeds?

View 1 Replies

Actionscript 3.0 :: How Flash Reads The PHP Coding Which Was Generated From The MySQL Database

Sep 25, 2009

how Flash reads the PHP coding which was generated from the MySQL database.Though, I was wondering if anyone can help me with this task and/or clear stuff up. All I want to do is grab a single video file, when on the video.php page. So, the video.php will have the parameter, video.php?id=____ and than the PHP coding in the header will grab the database info for that video. Though, do I have to create a separate page for the flash to grab that information?Like, I notice that for Flash to grab that info, PHP needs to set it up like so:

Code: Select allvid=test.flv&title=title...

and ect. Though, do I have to echo this part out, or do I have to send that PHP info and create a page from it, than have flash grab the information from that 2nd page?

View 1 Replies

Actionscript 3 :: Screen Reader Reads Flash In Google's Chrome But Not In Internet Explorer 8

Mar 12, 2010

The screen reader (JAWS) is able to read the textfield in flash on Google's Chrome but not in Internet Explorer 8. I'm using the latest version of swfobject.

View 1 Replies

ActionScript 3.0 :: Duplicate AddEventListener Assignments?

Oct 26, 2009

Is there any harm in registering an object with the same event and handler multiple times, without first removing the listener? It appears that Flash either overwrites the event subscription or ignores duplicates. What I'm trying to avoid is having to use if/else and boolean variables to make sure duplicate event subscriptions don't occur.

I've attached a sample fla... which I'm aware looks useless, though it illustrates my point. It loops through the timeline a few time and makes the addEventListener call a few times. Clicking on the button only calls the handler once, despite the multiple assignments. So it appears to be safe and Flash doesn't throw an error, I just wanted to know if there's some sort of garbage-collection-like issue

View 6 Replies

ActionScript 2.0 :: Use Variables With Array Assignments?

Jul 13, 2011

I searched this and other forums and could not seem to find an answer for this

i am attemting to define a variable and use that variable to assign array items to a text string[code]...

View 1 Replies

ActionScript 2.0 :: ScrollBar Dragger To Be Positioned In Relation To The Info._y As The User Scrolls Info?

Jun 24, 2010

I have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...

Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........

also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved