Flash movie using XML
On the development version of a site, I have created a flash
movie that uses an XML file that refers to the filenames of images
and their respective captions that are then loaded into the flash
movie.
The images are loaded 2 at a time, into movie containers
within the movie, and then the movies containing the images cycle
through the images one at a time, one movie container fading out
revealing the next image below it, etc. etc.
Basically, I have used this on the site for many photo
galleries. Each one uses the same flash file (in its own folder on
the server, with its respective "images" subdirectory) coupled with
an XML file (all in the same folder on the server) that tells the
flash file where the images are, and in what order, and their
related captions.
There are 9 photo galleries, therefore 9 folders on the
server, each with their own flash and XML and JPEG image files. For
3 specific galleries, the flash file does not load images on some
computers using IE. On the same computers, all other galleries work
fine.
Can anyone even guess what could be causing this??
Many thanks in advance,
Armo
Maybe you can try You Tube Api for flash
http://code.google.com/apis/youtube/flash_api_reference.html
Similar Messages
-
How to embed youtube movie in flash website using xml pages?
hi to every one
I m quite new to flash website designing. so I've downloaded a free flash website template, that is using xml pages in it. & I m using adobe flash cs4. now I wants to embed youtube movie in one of its .xml page & I wants that it shows that movie when i open that xml page in adobe flash cs4. even I've pasted youtube embeded code in one of that xml page but it does not works. so please please please resole my problem as soon as possible.
thousands of thanks to all of those who helped me....
Regards
Faiz Fareed.Maybe you can try You Tube Api for flash
http://code.google.com/apis/youtube/flash_api_reference.html -
I was getting tired off the same old Powerpoint presentations
so i started using Flash. It looks great but now i'm trying to
explain to my boss how he can make nice looking presentations to.
There's just one problem he doesn't know anything about Flash.
My idea is to make a flash movie that will display text and
images placed in an XML file. Based on the number off images and
the lenght off the text the slide will have a different layout.
Displaying text and images with XML has not been a problem
but now i'm trying to read the number off images in the XML (1, 2
or 3). Based on the number off images i want to use a different
movie clip for displaying the images. This i can't figure out.
Anybody any ideas how to get this to work or maybe somebody's knows
a good tutorial?this is straight-forward as long as you have a reasonable xml setup. there are, at least, a couple of ways to reasonably do this. among the least complex structures would be something like:
<slides>
<slide>
<images img1='1.jpg' img2='2.jpg'/>
<text>whatever</text>
</slide>
<slide>
<images img1='1.gif'/>
<text>...</text>
</slide>
</slides>
you would then loop through the attributes of the images node checking for a null attribute to determine the number of images in each slide. -
Unloading a flash movie using Safari browser
I have MAC 10.4 and safari 2.0 browser.I run a flash movie(Instruction.swf) and after that the actual test for the student run.So while running The first movie i.e Instruction.swf I am not able to unload that movie using javascript in Safari 2.0 browser so that the actual test can run.It just hang up after finishing the movie.While in the other Mac and windows it is working fine.
Please Help me.
Thanks In Advance.Welcome to Apple Discussions!
Do you mean to say, in other Mac and Windows web browsers it is working fine? If that's the case, it sounds like the version of Flash plugin used by the Safari plugin is probably older than the one used by the other web browsers.
With Safari Enhancer's enabling of the Debug menu you can force certain webpages to open in other web browsers. That would help streamline your viewing of those pages.
http://www.lordofthecows.com/safari_enhancer.php
You can also enable the Debug menu with:
defaults write com.apple.Safari IncludeDebugMenu 1
from the Terminal. -
How Can I Measure the CPU Power My Flash Movie Uses?
Hi All,
I'm working on a complex job that is intended to play on low-end PCs so I'm looking at ways to reduce the processor load the movie needs to play. Obviously large screen size, high frame rate, intensive ActionScript, and complex graphics all add greatly to how much CPU power is needed to run a Flash movie, but is there a way of getting an accurate reading of the CPU power it is using? I am modifying a job that was running badly on low-spec PCs so now want to adjust it to run faster and smoother so would like to somehow be able to compare the modified job with the original. Any Idea how I could do this?
Any help would be greatly appreciated.Hi. I tried your suggestion and I could not get it to work well. In
fact it worked better without the running average (which suprised me).
I also played with the number of data points but still could not get it
to work well.
Do you have any other suggestions on how I could sort this problem out?
I
have attached a screen shot of the signal. To recap, I'm trying to
measure the'y' position of the flat regions of the signal. The signal
does not have a constant level, so this 'y' position varies with time
in a non-unform manner.
I am currently differentiating
the signal and selecting the y position when the differential is equal
to zero (within a tolerance band).
In the screenshot, the
signal has been zeroed using the method I have described above.
However, it occasionally has glitches which may be caused when the code
picks up a zero gradient at a peak or valley in the signal.
I therefore need some kind of algorithm that only measures the position of the flat regions.
Many thanks
John
Attachments:
screenshot.gif 121 KB -
Making a jargon buster in flash cs5 using XML
Hi guys !!
I am working o a jargon buster for a college project.
I have written up an XML document like this:
<Items>
<Query>Rip</Query>
<answer>to copy files from a disc onto a computer</answer>
</Items>
Basically the user inputs their query into a editable text field and then flash searches the xml for the query and returns an
answer into a readable text field below.
My problem is how do I get flash to do that??
Thanks in advanced.I suggest you read some XML tutorials. Functionality you desire is one of the easiest to implement once you get a light grasp on XML.
Here is one of the possible approaches:
var xml:XML;
init();
search("Dog");
function init():void
xml = <data>
<Items>
<Query>Rip</Query>
<answer>to copy files from a disc onto a computer</answer>
</Items>
<Items>
<Query>Dog</Query>
<answer>Animal that barks</answer>
</Items>
<Items>
<Query>Watermelon</Query>
<answer>Diuretic</answer>
</Items>
</data>;
function search(searchString:String):void
for each (var node:XML in xml.Items)
if (node.Query.toString() == searchString)
trace(node.Query.toString(), "is", node.answer);
break; -
Is it possible to call a movieClip from the Flash library using XML?
Instead of using "test_1.swf" or "test_2.jpg" in the <IMAGE> tags shown below, we are wanting to call a movieClip from the same library as the .FLA via XML.
Is this possible using XML and AS3?
< ?xml version="1.0" encoding="UTF-8"?>
< all>
< GROUP>
<IMAGE>test_1.swf</IMAGE>
<QUESTION>Question example #1</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
<IMAGE>test_2.jpg</IMAGE>
<QUESTION>Question example #2</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
< /GROUP>
< /all>data.xml:
< ?xml version="1.0" encoding="UTF-8"?>
< all>
< GROUP>
<IMAGE>MC1</IMAGE>
<QUESTION>Question example #1</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
<IMAGE>MC2</IMAGE>
<QUESTION>Question example #2</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
< /GROUP>
< /all>
// a.s.
var urlLoader:URLLoader=new URLLoader();
urlLoader.addEventListener(Event.COMPLETE,completeF);
urlLoader.load(new URLRequest("data.xml"));
function completeF(e:Event):void{
var xml:XML=XML(e.data);
var instance:*=stringToClassInstanceF(xml.GROUP.IMAGE[0]);
addChild(instance);
function stringToClassInstanceF(s:String):*{
var C:Class=Class(getDefinitionByName(s));
return new C(); -
Embedding flash movie in a web page
I have created a flash movie using actionscript 3 and an xml file with a list of images for a slideshow. After clicking publish, I can view the slideshow by previewing the html file it creates for you. However, I want to embed this flash movie in a different web page. When I try to add it in Dreamweaver, by dragging and dropping the swf file into the page, a flash placeholder is generated, but the movie does not play when previewed. It is just blank white space.
Now I watched the Tom Green tutorials on "flash the easy way" and my flash (CS4 professional) did NOT generate the AC_RunActiveContent.js files. I did find and download the file and manually added it to my Scripts folder. Still no joy.
I will note that the html file that embeds the flash video is in a different directory than the movie itself. Surely this cannot be the issue, otherwise people's websites would be incredibly messy with multiple flash videos. I am trying to put all the flash movies in their own child directories of a /flash directory to keep them neat and organized.
I am not sure what to do next. How do you make the dang thing play on a web page that is in another directory?If you are loading content ala using an xml file, that may be the source of the problem. When you load a Flash file into a web page, that web page becomes the frame of reference for any files that the swf loads. So if you tested this where the html file was in the same folder, but then moved things into different folders, then you need to adjust the Flash to load things as if it is in the html file's folder
-
Load webpage in flash movie?
I've been working with components for a while with a lot of
actionscript, and I really cannot find out how to put a website
inside a flash movie using the internet connection component. Am I
using the right component or am I trying the impossable? Please
respond. Thanks in advanced!You can load the raw html - if flash is told (e.g. via
flashvars) the url of the page that you want (its available in
flash as what you would think of as the browser's 'view source'
style plain text) with either as2 or as3.
But you can't do full browser-style rendering of the content
because flash just can't do all that. You could parse the raw html
(probably a custom parser as I think the internal xml parser might
choke on some of the tags in html that are not closed such as
<br> etc) and just pick out bits of text or images that you
could display but you can't achieve an embedded browser.
Adobe's AIR might be more what you want - it has embedded
browser support- but it doesn't run inside a browser like flash. -
Flash movies stop after a random amount of time,
The problem that I am having is that flash movie files (Every website) play for a moment or two and then stop with the little “loading” symbol turning endlessly in the center of the screen. Flash movies used to work with no problem but over the span of the last few months it went from not working well to not working at all. In a perhaps related problem sometimes downloads will stop after a certain length of time and also seem to “hang” at a random spot. If I pause the reload and then restart it the program or whatever will usually finish downloading. This doesn’t happen often but does happen. The flash movie thing, though, happens every time – no matter what browser I have tried. (Firefox, IE, IE with no add-ons, and Chrome anyway.)
I have tried solutions that I have found all across the internet, including the Adobe and Microsoft forums, to no avail. I have unloaded flash with the Adobe uninstaller and reloaded flash. I have tried various flash releases – with and without a firewall on. I have made sure that I am using the 32 bit version of IE and even tried running everything in “administrator mode.” I’ve upgraded every driver that I can upgrade. I’ve used a registry checker as a last resort. I even used the Dell partition to return my computer back to the condition that it was in when I bought it and that didn’t change anything either.
Everything I have tried has made zero difference. In the hopes that someone will have another idea for me to try I am putting all the stats for my computer that I can think of below.
Qwest internet running at 20mbps
Flash 10.1.102.64
Shockwave 11.5.9.615
Microsoft Security Essentials
Tried both IE 9, IE with no add-ons, and now have IE 8 from when I restored from the partition image
OS Name Microsoft Windows 7 Home Premium
Version 6.1.7600 Build 7600
System Manufacturer Dell Inc.
System Model Inspiron 560
System Type x64-based PC
Processor Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, 2936 Mhz, 2 Core(s), 2 Logical Processor(s)
Graphics - Intel(R) G45/G43 Express Chipset
Sound - Realtek High Definition Audio
BIOS Version/Date Dell Inc. A00, 10/6/2009
SMBIOS Version 2.6
Hardware Abstraction Layer Version = "6.1.7600.16385"
Installed Physical Memory (RAM) 8.00 GB
Total Physical Memory 7.96 GB
Available Physical Memory 6.94 GB
Total Virtual Memory 15.9 GB
Available Virtual Memory 14.4 GB
Page File Space 7.96 GBThank you for answering eidnolb -
Answering your questions...
Have you had a Virus and if so what Anti-Virus program removed it?
No virus that I am aware of
Since you have a Dell, McAfee came pre-installed? Did you remove it prior to Installing MSE? If so, did you use the McAfee Removal Tool or just remove it from Control Panel/Programs & Features?
My computer did come with McAfee which isn't on my computer now. I used a program called "Decrapifier" that removes unwanted preloaded software that comes with PCs.
Is McAfee still Installed?
No
Do you have any Anti-Virus/Spyware programs other than MSE?
No - I have just used MSE until now. I thought about using AVAST but was't sure what running 2 virus/spyware programs would be like.
Since MSE doesn't have a Firewall, do you use any Firewall other than Windows? If so, which?
I use Windows Firewall. I have tried both adding Youtube as an allowed program and switching the firewall off enirely with no luck.
Do you use a Router? Is it Wireless?
I do have a Lynksys router that is a little older but I've also tried hooking the modem directly to the computer.
Is Qwest wireless?
I use the wired ports and not the wireless for my connection.
Other than IE8, what browsers and versions are Installed now?
I only have IE8 now. I never reinstalled the other browsers after using the Dell partition. I prefer Firefox so having to use IE is frustrating.
I've also used "RegestryBooster" to make sure that my regestry looked okay.
Thanks again for taking the time to answer. I think you are right about me doing too much - LOL -
Flash movie not play on FireFox
I built couple flash movies ( using flash 8) on the website : http://www.hoaxinh.com
For some reason, they do not automatically play in new Firefox. The movie only play when use click on "play" button.
Should I have to convert these movie using higher verson of flash? could you please help?
Thankswhat's not playing at your link?
double check its publish settings so you do NOT have "paused at start" checked. -
Failure to run a flash movie in IWeb
Hi All,
I've created a flash movie using Adobe Flash CS4, have gone through the procedure "by the book" following a how-to-do video [yes, I'm a novice!!].
I've published the file and produced the necessary files filename.swf, index.html, skinUnderAll.swf and a preview.jpg
OK, everything seemed OK, but try as I may, I cannot get the **** thing to run on iWeb via my me.com using this code in a HTML Snippet:
<IFRAME SRC = "http://idisk.me.com/MYUSERNAME/Web/Sites/flash/index.html" WIDTH="720px" HEIGHT="576px" FRAMEBORDER="0" --if "0" no border, otherwise "1" with border MARGINWIDTH ="0px" MARGINHEIGHT="0px" SCROLLING="no" --"no" no scrolling bar, "yes" show always, "auto" showed when need > Your browser does not support IFRAME </IFRAME>
"index.html" refers to the html that was produced by Flash CS4 and double clicking this runs the video.
For the life of me, I cannot understand where I'm going wrong & it's driving me nuts!
Can someone please check that code out & see what's wrong.... or is the prob elsewhere?
I've looked through
Any assistance most gratefully received!!
TonyTHi again, Roddy,
Many thanks for coming back on this one again... it's appreciated.
What's odd is that if I double-click on the original file called "redsea.html" file on my computer, the movie opens & runs OK, so I guess the html is OK. I've even "copied" or downloaded the file back onto my Mac and placed it in with the other related files and it loads & runs OK.
In answer to your question, if I change the target to a preview file (a .png image file) within the same directory, this opens in a browser window. So the path appears to be correct. However, if I target the "redsea.swf" file nothing happens other than a blank white window where the flash movie should be; albeit a correctly sized and positioned window.
This info may help further;_
What I did from from scratch, I created a short movie and used Adobe Flash CS4 to create all the necessary files and copied them over to my iDisk. The files included the redsea.swf, redsea.html, preview.png, the SkinUnderAll.swf & the .flv file associated with the flash movie. These were uploaded [http://web.me.com/myusername/flash/redsea.html].
I've then used the code below in a html snippet in iWeb, but the movie refuses to load.
If, however, I change the target to a preview file (a .png image file) within the same directory, this opens in a browser window. So, I guess this means that the path to be correct.
I don't understand why the .html file will not open in iWeb?
For more info, here's the code I used:-
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=10,0,40,0" border="0" width="720" height="576"><param name="movie" value="http://web.me.com/myusername/flash/redsea.html"><param name="quality" value="High"><embed src="http://web.me.com/myusername/flash/redsea.html" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="720" height="576"></object>
Any help most gratefully received!!
Tony -
Flash programming using Java!
I found there are tools to compile .net applications to SWF movies that can be run by Flash.
Are there any similar tools for Java, which can compile Java programs into SWF files?
Looking for a way to write my Flash movies using Java...
Thanks :)see if this is useful
http://www.anotherbigidea.com/javaswf/
Thanks, but I wanted to find a way to use Java syntax instead of Actionscript syntax when programming SWF files...
Basically a compiler similar to javac, but which produces swf binaries instead of .class binaries. -
Flash movie will not show in HTML page
I have created 2 small *.swf flash movies using Adobe CS3 professional..
i inserted one move into indes.html and it works just fine
I inserted another into a second page and all i see is a gray box????
Both movies are in the same directory,,, both html files are in that same directory and the *.js file is there also
What could possibly be wrong here ???
Confused
ps.s it works fine when i do a F12 to test it????The usual causes involve missing files or misnamed files. Can you provide links to the web pages that are not displaying properly?
-
hi all
It would be appreciated if any one let me know how to edit
bitmap which is imported in flash using xml and save the edited
bitmap back to xml in flash.
Is it posible to save the bitmap data in flash?
thanks in advanceYes you can... but like I said before you need to upload the
data from the changes you make to a server.
In terms of the solution... its unlikely that you'll find one
specifically for your needs. You will have to learn whatever you
don't know how already and maybe adapt some existing examples to
your needs.
To change the visual state of a movie clip... you just do all
the regular things that you want to do to it using flash... scale,
rotation, drawing API , textfields etc in actionscript. If you
don't know how to how to do that stuff, then you need to learn that
first. That's basic actionscript.
You can capture the visual state of a movieclip using the
BitmapData class. That includes a loaded jpeg. You can also
manipulate bimatp data using the same class. You should read up on
that if you don't know how to use it or check out the examples
below for uploading info.
For uploading to the server:
Here's an as2 solution that took 15 secs to find using
google:
http://www.quasimondo.com/archives/000645.php
If you're using as3, google search for "jpeg encoder as3" and
look through that info. There are also historical answers in the
forums here related to this type of thing that might help as
well.
Maybe you are looking for
-
2 iphones with the same itunes account...
Hi All Just wondering if anyone has the answer i need! A friend of mine and his wife are using the same itunes account for both their iphones, this is causing issues now as the info on the phones are starting to merge with each other so is it possibl
-
Problem with sending and archiving pdf document
Hello experts, I have created the following SAP PI scenario: First a pdf document will come from our partner to a specified directory. The ftp adapter sender get this file and also set the filename in the adapter specific messages. Then a udf mapping
-
How can i show an XML Document in a JTree plz help
-
Photo library occupy big storage
this is not the issue related to iTunes! in the storage usage, there are four items for the Photos&Camera: Photo library (2.1GB), synced from iTunes Library (0.8kb), My photo stream (181mb), Shared Photo Stream(20.4MB). I can not figure out what the
-
MobileMe mail after account is deleted
I am going to unsubscribe to MobileMe, but how can I save my emails from that address? If I move them from the "MobileMe" tab on Mail to "On My Mac", will they stay after the account is removed?