ActionScript 2.0 :: Use Flash To Read ID3 Tags On Mp3's?
Dec 17, 2006Is it possible to use flash to read ID3 tags on mp3's?
View 3 RepliesIs it possible to use flash to read ID3 tags on mp3's?
View 3 RepliesIs there a way to read html tags from xml files as a text and then display them in a text box with htmlText?
I know one way of doing that is replacing anyother letter instead of "<" or ">", but the client will directly replace html text in the xml file
I have been trying to figure out how you could add in custom attribute tags that flash can recover.
EX:
<param name = "movie" value = "somefile.swf">
<embed src = "somefile.swf" width = "550" height = "400">
Except, that I would like to add a Custom tag, like "randNum" so that the tag user could input some number, or rather, a flash movie could generate a tag with a number already put in...Basically, heres a really basic version of the idea.There is a Flash Movie.In the movie, you can input text into a textfield.Upon finishing your message, you click a button "save".
The flash movie then:
1. Comes up with a random number unique to the message.
2. Assigns that number to a variable... "randNum".
3. Saves message as a xml file to the server as "filename" + randNum.
4. Outputs into a textfield a generated HTML tag that a user can post on myspace and such so that it will load in the flash movie.
Except... in the tag, there will be a custom attribute. If the random number variable "randNum" was 00112233, the custom attribute will be 00112233.
EX:
<embed src = "somefile.swf" width = "550" height = "400" randNum = "00112233">
So when the movie opens, it retrieves that randNum from the tag and can use it inside flash. How can this be done? Sorry this post was so long, but I wanted everyone to understand the concept.
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 RepliesAs the title says, suppose I have an hypothetical XML containing this:
[Code]....
I can check if a certain speech has a bg change by simply doing this:
if(bgs[i])
{
//true!
}
what should I compare in the case of sounds, I've tried many, like:
[Code]....
So I want to read http streams using flash tcp sockets. I do not really need the http header at all - all I need is body which contains flv. so how to read http response body into byte array using flash sockets?
View 1 Repliesfirst, I need to show an <hr/> tag after the description, its an rss widget so need to seperate with each rss post with a border or hr. Its not possible to make it manually because its came from xml. I'll give you the existing script with me.
second, I need to add utm tag after the urls to trace the clicks, this is actually I need to add after the links 'utm_source=rsswidget', you'll get an idea by seeing the script below
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
var xml:XML;
function onLoaded(e:Event):void
[Code]....
we use div tags in actionscript...
View 5 RepliesFirst, I'm having issues with loading ID3 tags. I can load the tags of the file currently playing, but how could you load the tags for a playlist that is selectable? The MP3 player runs on an XML file that holds the URLs to the MP3 files themselves. All other information is extracted from the ID3 tags. Do you have to load all of the MP3 files to get at their tags? Or can you JUST load the tags themselves? Will it slow down your stream? Etc...how best to build a playlist from ID3 tags.
Second, I'm having issues with the playlist buttons themselves. I need to build dynamic-text buttons that, upon clicking, will play that file. The play-on-click functionality I can do...but I can't seem to make them "clickable."
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'm importing an XML document into a flash movie. The XML is using HTML tags so that I can highlight certain words and use HTML links in the text field the data is being loaded into.
But the issue I'm having is that all of the < and > tags and all information within it being displayed within the text field.
The text field's html property is true. The text field's multiline property is true. In the XML document, the text that I'm having load into this text field is separated by the CDATA tag so that it doesn't get parsed out.
I just can't figure it out. Before I used the CDATA tag, I put all the necessary < and > tags in place, and I'm getting the same results.
I don't know why everything is being displayed even though I'm rendering this text as HTML.
I have XML written using PHP taken from a database, which flash then uses to print out iinto a flash file dynamic text box. It all works fine as required, apart from not rendering html tags properly within the textfield, such as <p> and <b>. Below is my php, wrapped in the CDATA tags:
[Code]......
the textfield (mytext) is obviously within movie clip - theMovie - movies. As i mentioned the text is getting printed out fine from the database, but it ends up being just one block of text without formatting, and the tags that should be html are being taken and written literally.
Is there anything glaringly obvious that I'm not including to make sure that <p> tags and <b> tags etc. are rendered correctly, rather than just writing them out as "<p>" in the textfield?
I have made a .swf file that scrolls boxes- these boxes willin the end contain products contained in a ASP database. Here isthe problem, I don't know how to get the Flash movie I have made toSince I don't know flash that well, I have made transparentbuttons to go over the scrolling boxes to open a URL with theaction scripting -----on (release) {getURL("http://www.myurl"); } This works finebut I would like the content in the scrolling boxes to changedepending upon items in an ASP database. In the database, there isan area to specify "featured" items, which are dynamically put onthe site in specified areas where tags(anchors) for the "featured"items are placed. What I think I should do is code the tag(anchor) for the"featured" item into my flash movie but I don't know how to dothis.
View 1 RepliesI am loading some content into a Flash Text Area component via an XML file, within the XML I am formating via HTML, problem is flash only seems to recognize some tags and not others. For example it has no problem with the <p>, <br>, <ul> tags, but refuses to recognize any image or anchor/link tags. here a sample of my XML
<pageText>
<![CDATA[
<html>
[code].....
[code]...
Above is my xml file which has no ending tag for the from tag, which gives an error.I need actionscript code to check if there is a broken tag and then fix it automatically.
I have the following code in AS3:
var str:String = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Lo<FONT COLOR="#0000FF">re<FONT FACE="GG Superscript">m</FONT></FONT><FONT FACE="GG Superscript"> Ip</FONT><FONT COLOR="#990000"><FONT FACE="GG
[Code]....
It seems htmlText is rearranging the html tags. Even though the output is the same, I need the original html back since I am making a text editor and the AFTER htmlText is messing up my tag calculations.
[Code]...
these are basically input fields, but for some reason they are passing all the html tag assigned to the flash textfields. (used to style the flash components) is there a quick way to kill that with either php or flash??
I'm experiencing problems with HTML tags within textfields (multiline textfields). HTML rendering is activated. Fonts are embedded for bold and regular Verdana. In AS3 I also have declared the field as html (instancename.htmlText = "tekst".Now I have all my html code in a sql database which load through php. The whole text loads including the bold, underlined and italic htmltext make up.The problem is that the text on line 1 shows as:"8: you must click ok" (<b>8:</b> you must click ok<br>)But the text on line 2 shows as:" : submitting" (<b>9:</b> thanks for submitting <br>)I have checked the html tags over and over and there is no fault in that.
View 3 Replies// Edit: The issue now appears to be confined to Safari for Windows.
Around the time Safari for Windows 4 came out I started hearing from users that wmode=transparent was no longer working in Safari.I have tried reducing interference by using tags as opposed to scripts to embed the Flash but with no success.An example is here: [url]... alternately embedded with script at http://hiv411.org/
All videos use wmode=transparent and are embedded via tags. All work fine in every browser I have except Safari.Code looks like so on safari.php
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="test" width="289" height="263" align="middle" id="test">[code].....
I dunno if any of you are familliar with Lightbox at all? I'd like to be able to call this from Flash. It works well in an "<a>" tag in HTML.As an example: <a href="gallerypics/Juniors2001.jpg" rel="lightbox" title="juniors 2001" >where I can use a rel and title tag to call the necessary scripts.Is there any way of including rel and title tags in flash along with the regular link?
View 3 RepliesI have spend my whole day trying to find a good way to access ID3 tags in AS3.0;In my project I am making a sound object and assigning it a URL: Then I stream the sound into a sound channel:[code]I want to read the ID3 tag somehow and display the artist name or anything in the ID3 tag, onto the screen.I Have the URL change through user input, and naturally I want to update all the information with the new ID3 tags information.[code]
View 9 RepliesI am trying to convert our all-flash website to HTML 5.But since so many users still use IE and other browsers that do not support HTML 5 yet,I am looking for some flash media players that can replace <audio> and <video>. My google skill does not yield good results.The flash media player should dispatch events specified at https:[url]..._audio_and_video_in_FireFox (or at least talk to javascript some how for those events).Do you know a flash media player that can easily be embedded inside <audio> or <video> and talks to javascript for events?
View 2 RepliesI'm importing text in from an xml file and i'm using htmlText to try to keep some styling with tags. I have both the regular and bold face font embedded, and the bolding works fine. The problem is that it ads spaces around the words in bold like a paragraph indent and then makes a line-break after them. What's going on, is there a way to fix?
fromxmlText.htmlText = theXML.contenttext;
If I pull the text in from a txt file it will work fine, but taking it out of an xml file causing funky formatting.
I usually manage to make my textFields work properly.I have this TextField that I inject HTML formatted text (contained in a XML file). For some reason, almost all my tags are ignored (<b>,<i>,<u>,<ul> and <li>). I can only get it to render <br /> tags properly. I could use a StyleSheet, but I don't think it would make my lists work...Here's how things are set up:
Text I inject:
<text>
<![CDATA[<b>Some bold text </b>and some normal text <br/><u>This text is underlined</u> normal text to compare<br/><i/>This text is italic</i>]]>[code].........
Edit: So I decided to test having no CDATA in my XML, and adding the <b> tag in my AS3 code. Didn't work either. I don't get how I can have my fonts correctly embed, but Flash refusing to use them.
I'd like to be able to call this from Flash. It works well in an "<a>" tag in HTML.As an example: <a href="gallerypics/Juniors2001.jpg" rel= "light box" title="juniors 2001" >where I can use a rel and title tag to call the necessary scripts.Is there any way of including rel and title tags in flash along with the regular link?
View 10 Repliesany resources that could help me learn how to emulate a spoiler tag type effect for flash text?I've looked at tree menus etc but seems a bit fussier than needed. What I have is a very large piece of text with differing sections, rather than have a user swamped by everything at once I'd like to hide the majority of it with a brief intro for each section. A [+] / [-] button would expand and collapse the extra information when required (pushing the rest of the content down ala a tree menu type thing).
View 3 RepliesI posted this in one of the other sub-forums before I realised this one was available. I am moving over to using the Flex based embed metadata tags to import assets into my Flash CS4 IDE based project. This is working very well but I have hit one small problem - how do you now create a pre-loader? I've done the usual google to look for a solution and found many Flex based solutions and tried them all out but they do not appear to work from within a CS4 IDE based project - even when tried out on a web page.
View 5 RepliesAm working on a flash component that is supposed to display some dynamic text which might include HTML formatting. This text is displayed in a label component (AS3), and i would want it to render correctly, like create a line break when <br> is inserted, but it doesn't!
So am wondering what the supported HTML tags in the label component, and in general all other flash components?
have an input text field in flash and when i send that data to php and that sends it on to my database it looks like the following in the database:
Code:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000033" LETTERSPACING="0" KERNING="0">Hello World</FONT></P></TEXTFORMAT>
[code]......
I'm trying to retrieve values that are embedded in the object tag on the HTML page. Is this possible? I've been trying to find how to do this, but all hits point out to how to embed flash in HTML and rarely do I find on which tells me how to retrieve data from HTML into flash.
Example:
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
[Code].....
How can I simply trace the value in flash??? Just for now, all I want to know is if I make a dynamic text box in flash, can it display the name of the .swf by reading the param?