ActionScript 2.0 :: Use XML Instead Of Updating Fla?
Mar 18, 2004
I try to create a dynamic web gallery in flash that feeds it's content from a XML DB, so it's easy to update and maintain the gallery (right?!). What I have, is the gallery specs in the flash movie itself:
// container dimensions
// is that even necessary?
movieW = 650;
movieH = 600;
[code]....
and then the gallery process - so how can I subsitute this for a XML DB?
View 4 Replies
Similar Posts:
Aug 18, 2009
I am just learning AS3, and have no idea whatsoever about the differences between 2 and 3. There is a bit of code from [URL] that I wanted to update to use AS3, but it was written in AS2. Here it is:
[Code]....
I get twelve total errors (there are six buttons with a slider next to them, and there are 2 types of errors). The first is: 1119: Access of possibly undefined property onPress through a reference with static type flash.display:SimpleButton. The other is 1120: Access of undefined property _root. The key parts of the code (I think) are the button names, and slider_mc., a little black square that slides up and down the height of the menu. All of the buttons are button symbols, each with a unique name. I read that to fix the 1119 error, I can convert them to movie clips, but then they no longer function as buttons (which is sort of the point).
View 2 Replies
Mar 16, 2009
I have a function where I load a xml into my project. Theproblem is that when I have edited the xml and run the functionagain to load the same updated xml, it just keeps on loading theold version. Is there a way to like delete history and start freshwith the load?
View 2 Replies
Jun 14, 2011
This may sound simple but it's not at all from what I can tell. Hell it may be impossible but I might as well ask...Anyways, what I'm trying to ask for is a way to update the images embedded in an FLA somehow without having to manually re-import each individual file every time they get changed on the hard drive. We have a massive project with a large amount of FLA files, and having to manually re-import all of the images every time new things are committed to the repository is going to get rediculous very fast.
View 3 Replies
Aug 6, 2011
I know there is a built-in update framework inside AIR but finding valid code samples for the latest versions proves to be hard. Some code for simple updating (assuming ActionScript 3,
View 1 Replies
Mar 22, 2012
So there are these two heads on one slide (dragRec), each has a normal state, roll over, and drag. Endpoint prints to a textbox on drag that displays a relative position, and threshold is set to show the percentage between the left end of the slider and Endpoint. When you drag Endpoint its text updates, however when threshold is moved no text appears.[code]...
View 1 Replies
May 24, 2011
I have a function running in the very top layer of my scene that will change the value of the variable currentAnchor to 1 or 2. the code below is running in a movieclip but the value is staying as 1 when i trace it in the movieclip, but changing between 1 and 2 in the very top layer of the scene.[code]
View 0 Replies
Mar 18, 2004
I try to create a dynamic web gallery in flash that feeds it's content from a XML DB, so it's easy to update and maintain the gallery (right?!). What I have, is the gallery specs in the flash movie itself:
// container dimensions
// is that even necessary?
movieW = 650;
movieH = 600;
[code]....
and then the gallery process - so how can I subsitute this for a XML DB?
View 4 Replies
Jan 25, 2007
Have an XML that holds variables in place of hard-coded values. Then create a Flash app that will populate the XML to be used via Flash app.Currently...I have a Flash app that brings in XML data, but we have to manually put in the data into the XML file. I would like to create another app that will allow people who don't want to get into the XML file to be able to input that data into a Flash GUI and click on a 'submit' button that will populate the XML file automatically.
View 1 Replies
Jan 28, 2009
I'm really wanting to incorporate this great floating text technique from levitated.net but updating the ActionScript for Flash Player 8 compatibility is beyond my knowledge. Can anyone lend a hand? Tnx.
[Code]...
View 2 Replies
Nov 2, 2009
I've made a website in Flash, it's the 1st time I've made a site with dynamic loading text.The text loads, that is fine, however, when I update the .txt file, the webpage does not update until I delete my internet history. This obviously no use as I can't expect returning visitors to delete their cache every time they visit.
View 4 Replies
Feb 10, 2011
how to simply make dynamic text update!I have a dynamic text box and I gave it an instance name of changeTxt I also have a var called changeRate. How do I get the dynamic text box to update?
changeTxt.addEventListener(Event,updateChangeRate) ;
function updateChangeRate():void {
changeRate=2;
trace(changeRate);
}
View 1 Replies
May 19, 2009
I am updating a movie created by a previous employer. It involves screen shots and voice overs.
There is a navigation bar at the bottom with scrubber, stop, next, etc.
I named the new screen shots the same as the old ones and imported them and everything works fine. But this doesn't seem to work with the voice overs. As soon as I save over an old mp3 with the new one, the nav bar no longer works.
View 3 Replies
Jul 31, 2009
Is there a way once a flash site is live, that my client can change the text or even the images? Even if it's by uploading to the server? If perhaps they were all predetermined in size ect.? Similar to how HTML calls images from a folder located on the server. I'm guessing something to do with PHP? Touching upon this briefly so understand flash uses PHP to communcate outside of the swf file to complete certain tasks.
View 1 Replies
Jul 17, 2008
I have a .fla file which is pulling in a document class. Within that main class document many other classes are being called like the code attached. my question is when I make a change to a .as file such as XaMLDiplomat.as, and then republish the .fla, should those changes update to the .swf? I am not seeing the changes I made to the external .as file, so that is the reason for this post.
View 4 Replies
Aug 22, 2007
I have a video player that is updated by manually updating the XML file that tells flash what videos to play.The videos are stored in a folder called videos. Is it possible to get it so when the user puts a new video into the video folder the XML is updated automatically?
View 4 Replies
Apr 12, 2011
Firstly i am not sure if this is the correct forum, basically i have updated my flash movie on my website, and the updates have taken effect in mozilla and google chrome, however in IE 7 & 8 the old flash movie still displays. I get this is down to the cache and i have tried several code snippets to correct this but nothing seems to make a difference.Is there anything that i can do with the flash code to force the browsers to reload the the movie each time they visit?
View 2 Replies
Aug 23, 2011
Flash, you can select an image in the library and update it's path to a different picture, in turn affecting anything on the stage that uses that image. Can this be done with ActionScript? I know you can export the bitmap, but how do I address this in AS without having an instance name?
View 5 Replies
Oct 19, 2011
I want to write a function that updates a string value, but doesn't return a value. In the snippit below, Id like to pass the variable "testString" into the function and change its value. When I do this however, the value does not change.
var testString:String = "this is the test string";
testFunction(testString);
function testFunction(newString:String):void{
[code].......
View 10 Replies
Dec 14, 2011
The code checks out and is working great but I just added a dumbed down version for referenceWhat is happening is:I am creatingar less:mcLessons = new mcLessons();addChild(less);mcLessons is a Movieclip I created and is located in my library with as3 linkage to a script (the one below).In the Library the textfield reads "lesson 1" and is supposed to change to "Basic Neccesaties(Part 1)" once loadedWhen it is loaded the text does not change. When I clip on a textfeild that has an eventListener, all the text is added.I trace the text field (before any textfield is clicked) and it reads "BasicNeccesaties(Part 1)" but on stage is still "lesson 1".
package com.afiadesign{
import flash.display.MovieClip;
import flash.events.MouseEvent;
[code]......
View 4 Replies
Dec 25, 2011
I would like to update the time delay for setIntervals from 3sec to 2sec and so on by deducting the timing everytime the hello is traced. I have also trace the timing variable that it is deducting in the output panel, however the setInterval doesn't update its time delay?
var timing:Number = 3000;
setInterval(showMessage,timing);
function showMessage()[code].....
View 6 Replies
Dec 13, 2010
I have external as3 classes but when I edit something like content_txt.text = 'something else' it doesn't even change on the flash app on the server.
Even when I change the background color of my flash app, republish it and put in on the server to replace the old one. Still the old one is displayed.
How can I get around this? cause it's very frustrating to learn and develop stuff that won't cooperate. I'm trying to have facebook integration if anyone's asking.
View 2 Replies
May 28, 2011
I'm resizing a chart and want to take a picture of it when all the children of that chart are done updating.
For example I'm drawing some stuff on the chart after the size changes. I've tried chaining a bunch of callLater() but I'm still running into problems on slow computers.
Raising an event when the last children has executed doesn't seem to work as it might take a while to draw (hence the callLaters).
Is there a best practice to find out when something is done updating?
View 1 Replies
Jul 28, 2011
I have a dynamic textfield on my stage with the instance name trackText.
I have declared public var trackText:TextField;.
When I trace trackText.text it gives me exactly what I expect but the actual text on the stage does not update.
public var trackText:TextField;
trackText.text = audioPlayer.currentSong.title;
trace("trackText = " + trackText.text);
// gives me what i expect "track 1" etc..
but the text on the stage still says "loading..."
View 2 Replies
Jan 14, 2009
When you make a shape object and add it to the stage i goes fine, but often when you then change the shape object, like adding another line to it, it won't show the changed version. You can for example have this:
ActionScript Code:
var line:Shape = new Shape;
line.graphics.lineStyle=(1,0xFFFFFF,0.5)
line.graphics.moveTo(10,10)
[Code]....
View 1 Replies
Aug 4, 2009
So I usually don't post in forums because I can usually find the answer to my question online. But I have been messing with this for days with no success.
Import AS2 version of swfaddress into flash movie... check. Place SWFAddress.js file into webpage... check. Call SWFAddress.setValue("home")... not check!
View 0 Replies
Sep 10, 2009
if I'm loading external data I'd just use an XML file and load it once. In this situation, the external data will be updated very periodically, and I'd like for the Flash app to grab the most recent data either on the update of the external data, or if that's not possible, every second or so.
View 4 Replies
Dec 24, 2009
I have a movie clip with motion in it. I'd like to duplicate this image, blur it, and mask it. I think I can do all of that, but I don't know how to update the blur so it will blur the moving elements in my movie clip.
how to constantly take a snapshot of a movieclip and blur it (while disposing of old snapshots)?
View 1 Replies
Jul 20, 2010
Having trouble changing a variable for an object path:Set-up initial path:
Code:
displaySlide="slide1";
Change the path/variable through user action:
[code].....
View 2 Replies
Feb 15, 2011
so I've been working on this project that uses about 10-15 frames of AS3. On each frame the 'total' variable is updated (added to). By the end, the user is supposed to be taken to another frame (1 of 2) based on the value of 'total'. I have used the trace() method and up to that point the 'total' variable appears to be updating properly, but then when I get to this page it ALWAYS directs them to frame 18 no matter what their total is. Is there an error in my code? (I assume so lol..)
Code:
stop();
fwdBtn.addEventListener(MouseEvent.CLICK, onClick15);
[code].....
View 4 Replies