[Flashcoders] Help loading xml in html embed tag
Loading XML in the HTML Embed Tag What I am doing: I have a dynamic MP3 player that I need to play a single MP3 per swf. I need to load XML file from a link in the html embed tag, this way I can use the same player for different XML files that call out each MP3 from dynamic locations. How it works now: Right now I am loading the XML with the path coded into an action script file. // playlist variables private var playlistURL:String = "playlist.xml"; private var playlistObj:jwPlaylist; private var playlistArray:Array; What I need help with: I need to create a flashvar that will load in the XML dynamically from a link in the Embed tag. How do I get the action script to detect and load the variable in the Embed tag? I am looking for the code that you put in the ebed tag and the code that accepts it in the actionscript file. I just need a small push in the right direction. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Help loading xml in html embed tag
Thanks Abdul But I am not sure I know how to do that. Can you give me an idea of what that would look like. Sorry I am a total noob and I am treading water if you know what I mean. I really appreciate any help you can give me in solving this dynamic linking problem. Matt Abdul Qabiz <[EMAIL PROTECTED]> wrote: Why don't you pass the path of XML to SWF using FlashVars. When SWF loads, it would have variable available, you dont need to detect or do anything else. Yeah, you need to make sure you pass the path. -abdul On 6/12/06, Matt Mc wrote: > > Loading XML in the HTML Embed Tag > > What I am doing: > I have a dynamic MP3 player that I need to play a single MP3 per swf. I > need to load XML file from a link in the html embed tag, this way I can use > the same player for different XML files that call out each MP3 from dynamic > locations. > > How it works now: > Right now I am loading the XML with the path coded into an action script > file. > > // playlist variables > private var playlistURL:String = "playlist.xml"; > private var playlistObj:jwPlaylist; > private var playlistArray:Array; > > What I need help with: > > I need to create a flashvar that will load in the XML dynamically from a > link in the Embed tag. > > How do I get the action script to detect and load the variable in the > Embed tag? > > I am looking for the code that you put in the ebed tag and the code that > accepts it in the actionscript file. > > > I just need a small push in the right direction. > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Help loading xml in html embed tag
All the resources I get tell me how to put a flashvar into an embed tag but not the syntax for bringing the variable into my Action Script Document. I have been working on this for almost a week now and I know it is simple because everyone keeps telling me so. If I can't get this I am dead. here is my embed tag: http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"; width="300" height="46" id="NoxPlayer" align="middle"> http://www.macromedia.com/go/getflashplayer"; /> here is how they get the xml document now. private var playlistURL:String = "playlist.xml"; private var playlistObj:jwPlaylist; private var playlistArray:Array; How do I make this get the playlist.xml link from the embed tag. I can't seem to get the syntax right or something because I can't get this to work. If anyone can give me a detaild response or steer me to a tutorial that will show me the syntax to use in the action script document. Not the first frame of the FLA Thanks If you want to look at the files let me know I will post them. It is an mp3 player but my boss wants to add the xml with dynamic links __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Help loading xml in html embed tag
elibol <[EMAIL PROTECTED]> I really appreciate you guys helping. For some reason it is still not working. I am going to load a zip file of the project. I just need this playlist to be dynamic to make my boss happy before I get canned. he knows I am not an actionscripter but he seems to think this is easy. Perhaps it has something to do with the way the files are set up. It works just fine untill I try to load a variable. I know it is their because I tested it in a text box. If anyone can help That would be great. I have a feeling I will be up all night again. Matthew McLemore __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Help loading xml in html embed tag
Right now the file is relative to the swf. The problem is i need it to link to files that may not be relative. The actuall xml doc will be on a completely difference server. So The MP3 player which is now relative to the files needs to accept the Flashvar so it does not need to be relative. I have made sure the links are correct that is not the problem. Also the SWF accepts the Flashvar so this is not the problem. It is getting this to work. (Or it may be something else in the document that I have completely overlooked. My day is almost done and I have read every tutorial I can find and still have made no headway. I feel like pulling my hair out.LOL private var playlistURL:String = _root.xmlURL; __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash coders content degrading
Hello I am a Noob, I have a noobie question that cannot be answered on the noob list. I know it is a noob question because I have been told on this list that it is. But even though I have tried all suggestions I still can not get an mp3 player to get it's xml list through a Flashvar in the embed tag. Please use your Action Script Super Powers to help me solve this problem. You will save my life, and I will love you for ever. I have a deal The first one who can help me fix this problem will forever in my eyes be known as the Champion of the 2006 International Flash Coders Content Degrading Debate. I have the files all neatly bundled up in a zip file. I have a readme describing my problem I have checked all my links (twice) to make sure they all work. send me an email [EMAIL PROTECTED] and I will send you the files if you think you are a real ninja. Help Guru's!!! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash coders content degrading
Not to worry Mark others were helpful. No need to commit yourself.LOL GIve me a link to a better forum for my question if you have one. When I parsed out the info it was hard to get an answer. So I spent some time to make a neat package so if someone did want to help I could send it and it would be as clean as possible. Sorry if I still don't meet your standards of list behavior. Bottom line is if someone gets stuck they are going to find help where they can. To tell you the truth I would post just about any place to be able to get an answer just so I can go to sleep one night this week. Some of us are not action scripting for fun. We are working in the real world, I am a designer I am learning flash and can make my way around the flash design environment just fine. If I knew enough about action scripting not to need help (noob) than I wouldn't really need this list now would I. Also if the Noob list wasn't so Noob I could get my problem solved their without getting spurned by an elitist. The truth about this board is that most people are helpfull and those are the people that I have come in contact with. Well untill Mark made his post. Have a Nice Day Mark. Matthew Mark Winterhalder <[EMAIL PROTECTED]> wrote: On 6/13/06, Merrill, Jason wrote: > Perfect example of what we are talking about: While we're at it, a general piece of advice: "I have the files all neatly bundled up in a zip file. I have a readme describing my problem I have checked all my links (twice) to make sure they all work. send me an email [EMAIL PROTECTED] and I will send you the files if you think you are a real ninja." The first part looks pretty good, with a readme and everything zipped neatly together. Bonus points for comments in the code, traces where they could be helpful with extra comments what they trace. Where it goes wrong is when it gets to the emailing part -- I don't know how others feel about this, but for me the threshold is /much/ higher than simply downloading a linked zip. The reason for this is that I would feel like I would be making a commitment, before even knowing what I was getting myself into. Been there, done that -- what I got was the most horrible code I had ever seen, ripped somewhere off the web with variable names in a language neither me nor the help-seeker could understand, _root and on( clipEvent ) all over it. After a while I figured it was easier to rewrite it, which took me only half an hour but didn't save me from dozens of follow up questions, some of which I had already answered, others were unrelated, and the rest he answered himself only minutes after sending. So, just post a link. If somebody wants to help s/he will look at it and let you know if there is a solution. A link also means I can look into it when I come across it and have a few minutes to spare, instead of waiting for a reply that might come the next day when I don't have the time. Since I'm already ranting about off-list issues, some other things I have encountered in the past: Please, if you seek help, don't take threads off-list unless asked. Somebody suggesting something here most likely doesn't want to be your personal help desk from then on, not by mail, and definitely not via IM (even if we have the same mother-tongue that doesn't mean you're my new best friend, it's really not that an uncommon language, thank you). Keep it on the list. Others will read it, too, and might be able to help better or quicker, plus if somebody actually bothers to search the archives it will show up. It's a win-win for everybody involved. Mark -- http://snafoo.org/ key: 1BD689C0 (3801 6F51 4810 C674 1491 ADE7 D8F6 0203 1BD6 89C0) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash coders content degrading
I am sure some people post every question they have with out doing research. I looked everywhere including the origional authors website. Common Creative licence I used this list as an absolute last resort. PS. a programmer at work helped me with the problem and we have it solved. But for the last week it has fallen on me to make it happen. Under pressure you look for the help you can thats why we have a list like this right! So we can learn more and get better at what we do. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash coders content degrading
Thanks Mike I will check that out. I do really appreciate all the time you guys give to this list. Mike Britton <[EMAIL PROTECTED]> wrote: I recommend avoiding flashvars and loading the XML using XML2 http://www.gskinner.com/blog/archives/2004/02/the_ultimate_as.html. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: Flash coders content degrading
First I would like to say sorry for being snappy. I took an email in the wrong way. Thanks for setting me straight. It is great that you all are willing to let people know how things work. I will do my best to be a better part of this list. I think resources like this are the best. Thanks people keep up the good work. I have learned a lot in just a few days. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Mask over XML Text Flash 8
Hello All, Can someone point me to a tutorial regarding masking XML in flash8 I am trying to make it look like the text box is closing. But when using masks the xml does not draw at all. I have looked at many great tutorials regarding masking in 8 using embeded text and so on. Still not solving the problem. If you can point me in the right direction I would be stoked Thanks for the help Matt - How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Chipmunk-sounding MP3s?
Hello, I had the same problem this helped clear things up. http://www.jeroenwijering.com/?thread=High_Speed_Play you have to use a sample rate of 44100Hz, I've used 22050Hz with no problems, along with a constant bit rate (CBR) and that will take care of the "chipmunks" problem. Perhaps you are using a variable bitrate on compression. Hope this helps. Matt Mc "Ramon Miguel M. Tayag" <[EMAIL PROTECTED]> wrote: I don't think it's the bitrates, but the hertz. On 6/25/06, Josh Santangelo wrote: > I've got a presentation engine built which loads up audio/video/text > from external files as defined in a presentation XML file. Works > fine, of course until the client tries to start changing content. > > The MP3s they're using are voice-overs encoded at 16kbps mono which > play fine in QuickTime Player, but when loaded into Flash (via the > Sound object) play back at super-speed and pitched up. > > I was told at some point that Flash can only handle certain encodings > and bitrates of MP3s, but 16k/mono is one of the options for > exporting, so I would expect that it would be able to handle loading > them as well. Is there a list of what bitrates are supported > somewhere? Google isn't giving me any love. > > thanks, > -josh -- Ramon Miguel M. Tayag Managing Director Quirkworks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com