C# :: Identifying Click Tags Names Used By An Swf File?
Feb 24, 2011How can I read the click tags names used by a flash file?
View 1 RepliesHow can I read the click tags names used by a flash file?
View 1 RepliesI have an xml and it has items, you can trace the items in Flash, but how do I call them to allow me to identify that object getting clicked on the stage?
e.g. Item 1.2- how can I identify it in Flash?
<?xml version="1.0" encoding="UTF-8"?>
<menus>
<menu id="1">
[Code].....
im making a nightclub directory site in flash mx....and once the viewer searches on the search scene the results are listed from my mysql database using PHP, and the venue name is a hyperlink to another scene in flash that shows the rest of the information about the venue including movie clips and pictures too..also in the database. i got the 1st part but now im having trouble with the venue name , which is the hyperlink going to the contact scene in flash basically in a nut shell how can i do ex: [URL]
i got this part done now when u click on one of the venue names on this site it goes to a contact page....this is what i am trynna do...so all the info is coming from a database......and what do i change the urls of the listings in the database too... if u want i can email the flash scene to u....send email...
I have HTML file, I changed its extension to .XML.I'd like to convert HTML tags to valid XML document using AS3.
View 6 RepliesBasically, I have a XML file similar to:
<Main><Event><Name>Blah</Name>
<Event><Name>Blah2</Name><Event>
<Name>Blah3</Name>
...
</Event></Event></Event></Main>
Yeah, to some extent it's poor design. But the idea I'm going for is that any Event has the potential to compromise of other Events and this idea kinda loops. How to do this?
Was just how to add tags to an xml file through a flash app. I basically want to build a flash application with a save button at the end. So when you click save, the new data is added to my xml file.
I know how to load an xml file...
What I'm most concerned about are the line breaks in the xml file. Because I don't want everything to be written in one line.
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes. What am i doing wrong?
[Code]...
I made a scrollbar in action script §3 all from scratch and loaded an external text file edited in text Wrangler to display in the field, and sudden all my HTMl tags are not responding though added htmText to it. Well, the only tag responding is the link tag, the rest no, like bold, or italic or colors.
View 1 RepliesFor some reason, my XML code below is loading EVERYTHING in the XML file including the tags, unicode...everything.
[Code]...
I dont know if anyone has hit the wall with this. I am trying to dynamically load a HTML page into a textfield and I want to use <img src='something.jpeg'>, but it does not work.Everything else seems to be loaded on the page but the image. No Errors nothing but no image neither
View 14 RepliesI'm trying to load text from an xml file with some html tags in it but its not working.
When I add <br/>
I get this error
Code:
TypeError: Error #1095: XML parser failure: Unterminated attribute.
at ProfileSammy/::xmlLoaded()
at
[Code].....
I'm trying to load text from an xml file with some html tags in it but its not working.
When I add <br/>
I get the error
Code:
TypeError: Error #1095: XML parser failure: Unterminated attribute.
at ProfileSammy/::xmlLoaded()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
I need a counter click button that can storage every click on a txt file or something..
View 1 Replieswhen the embedFonts is removed, it works perfectly as expect. Otherwise when an image is clicked, it selects the whole text around it. Alternatively can anyone suggest a method to style dynamic textfields instead of using html?
View 1 RepliesI get the error "Access of undefined property menu_bar" when menu_bar is an instance name directly on the main timeline. I'm not sure how I would call it in the other class. It also isn't exported for actionscript is that the problem?
I have it imported to my document class as:
var mouseClicks:MouseClicks = new MouseClicks();
addChild(mouseClicks);
Then the class looks like this:
Code:
package{
import flash.display.MovieClip;
import flash.events.*;
[Code]....
I have an AS3 application which seems to be leaking memory slowly while running. I've been looking for a profiler for Flex 2 / AS3 and haven't been able to find one yet, in fact I saw posts from people at Adobe saying they were working on it but no release in the short term!
Does anyone have any more news on this, or more usefully have any information on a profiler or other way it is possible to find memory allocation and usage during runtime of an AS3 application? It would really help me to identify what areas of my application are leaking memory.
I am trying to produce an auto check on the synchronizing process between XML values (string based by nature) and object properties.
E.g. if the property on the instance is of
Code:
public var isThere:Boolean
public var anum:Number
the code should know the type and adjust the property value
Code:
isThere = Boolean(xmlValue)
anum = Number(xmlValue)
Its all swell apart from Arrays, which mainly are identified as 'object'.
Anyone know the best check to differ between Array and Object?
I have 16 layers of movieclips (one in each layer), each has been given the instance name, "line1" through to "line 16". I'm trying to figure out how to hide all of them through actionscript, so far, my code is:
for(x=1; x<17; x++){
line[x]._visible = false;
}
but for some reason, it doesn't hide all the instances. I've tried typing it in seperatly, (line1._visible = false; , line2._visible = false; , etc...) and it works, but for some reason, when I use the for loop, it doesn't work..
I've been scouring the web to see how to do this, and now I'm not even sure it's possible. However, it seems there must be way. What I want to do is create a function that will take x,y coordinates and tell me what MovieClip or Sprite is at that location. I want it to happen automatically, without any MouseEvents or anything like that.
View 8 RepliesI have 16 layers of movieclips (one in each layer), each has been given the instance name, "line1" through to "line 16". I'm trying to figure out how to hide all of them through actionscript, so far, my code is:
for(x=1; x<17; x++){
line[x]._visible = false;
}
but for some reason, it doesn't hide all the instances. I've tried typing it in seperatly, (line1._visible = false; , line2._visible = false; , etc...) and it works, but for some reason, when I use the for loop, it doesn't work...what am I doing wrong?
I've calling file names from an XML document, for example: <file>thisGraphicab.swf</file> Then when I call the graphic, the graphic with the matching file name does not exist, but similar named files do exist. For example: thisGraphicab does not exist but thisGraphicbb does exist. Flash will load the thisGraphicbb.swf file in place of the file actually called.
Is there a way to remedy this? I want flash to fail when the file requested does not exist. When you type the name graphics/thisGraphicab.swf into the browser address bar, the file name is changed by the browser to be thisGraphicbb.swf, and it displays, but here again I need it to fail when something like this happens. I know this seems odd, but there's more to it in the end. Anyway, this is what I need to take care of now.
If it's possible for Flash to read an XML file and look for element names rather than using myXML.firstChild.firstChild.firstChild; etc? So say I have the following:
Code:
<music><song>Song 1</song>
</music><food>
<curry>Tikka</curry>
</food>
Rather than using "firstChild.nextSibling" etc to navigate itself to the Food element, is there a way to just have something like "find the food element in the XML and return its childNodes"? It makes more sense to me this way because then it doesn't matter how you structure your XML file. And if you change the XML structure later on.. you don't then have to update the Flash as well. My reason for this is i'm using Expression Engine CMS and want to pull the data from that into Flash.
If I have a swf file, is it possible to retrieve object names and types (some kind of reflection) somehow?
View 1 RepliesI want to know "is it possible to get the files names into an array from a specific path".
The flow go like this..
When i open the swf file --> browse the specific folder -> read the file names into an array --> show the file names.
I'm trying to do some restructing of a flash codebase, and I was wondering if anyone could clarify something for me as I'm unsure whether what I'm trying to do goes against a fundamental priciple of flash development or I'm being confused by the Flash CS4 user interface(I've got a java development background, so some of the interaction between fla files and the like is somewhat difficult at times to get my head around). I've done several searches but can't seem to find any similar problems, apologies if any exist.
Basically, I want to restructure my codebase and move my fla files around by putting them at a different location in the directory structure.
Existing structure:
basecompany namecomponent name
where fla files are stored in base, and code is stored in company namecomponent name, and code in said location is in the company name.component name package.
What I want to do is move my fla files from base to component name for each individual project. The actual location of the code is unchanged, but the fla files no longer compile, giving me a 5001 error - package name does not reflect location. I'm assuming that this is because the relative location is different - as far as the fla file is concerned, the code it is referencing is located at component name, not company namecomponent name. Is it possible to make the CS4 publisher understand that the fla file is not at the root of the package structure, and if so how?
i need to read the jpg folder which read the files inside the folder then send the file names into flash so that i can load the respective .jpg file when the user clicks a button for it...i've got the scripting done for the php part where the script reads the folder and echo out the file names...now the question is... how do i get these file names in flash? i know using the loadVars object... but i want these file names to be loaded into an array if flash... cos the buttons that direct to the jpg files are dynamic... i'm thinking of using a 2-dimensional array.. one column to store a number reference and the other column to store the jpg file name...
View 2 Repliesi'm building a photography website... i need to read the jpg folder which read the files inside the folder then send the file names into flash so that i can load the respective .jpg file when the user clicks a button for it... i've got the scripting done for the php part where the script reads the folder and echo out the file names... now the question is... how do i get these file names in flash? i know using the loadVars object... but i want these file names to be loaded into an array if flash... cos the buttons that direct to the jpg files are dynamic... i'm thinking of using a 2-dimensional array.. one column to store a number reference and the other column to store the jpg file name... do i create an array in php and send it into flash(dunno whether issit possible) OR send the "&fName=$fName&...&" string and then split it into the 2D array in flash...?
View 2 RepliesI am creating a selection of checkboxes that are supplied from XML. These checkboxes are to provide additional details to a background picture and therefore they each have a unique name and an eventlistener to add the extra details to the background picture. Depending on other buttons clicked on the stage, the list of checkboxes could change for the same background picture. I have a selection of 5 different background pictures all of which have a different list of checkboxes. I therefore want to load the checkboxes dynamically. When a button is clicked to change the background picture, I want to remove all the checkboxes associated with that picture and display a new set for the new picture.
[Code]...
I want to identify specific strings in a text box from user input to add to a score variable, like so -
[Code]...
The example given adds 1 to the score, but if a user adds a space then a second word the text box views it as a whole and not individual words, resulting in no values added to the score variable.The problem lies with the whole text box being viewed as one entire string. Instead, I want to split it up so word1 will add 1 to the score, word2 will add 1 to the score, etc.
I want to do something where I collect functions to be invoked later when a certain condition is met. E.g.
function doSomething(someArg:Object):void {
if (conditionIsFalse){
operationsToDoWhenConditionIsTrue.push(function(){
doSomething(someArg);
[Code]...
Basically if doSomething is called twice, I only want operationsToDoWhenConditionIsTrue to hold the most recent invocation. Obviously since the invocations are wrapped in function(){} all the functions are the same. Is there any way I can accomplish what I want?