473,409 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Integration between flash swf with html on ie browser

hi, friends, i got stuck in a problem, where i am not able to load the swf files in the another swf files through xml file, running online in ie browser.


1. There are two button on the stage instanced named (next_btn) and (prev_btn)
2. A movieclip named container_mc.
3. swfs which is to be load in the container_mc

here is code for my fla file:




Expand|Select|Wrap|Line Numbers
  1. //====================  < Button controll script >  =====================\\
  2. next_btn.onPress = function() {
  3. if(s <xmldata.firstChild.childNodes.length-1){
  4. //trace("xmllength = "+xmldata.firstChild.childNodes.length+ "  s = "+s )
  5. //trace("movie name = "+xmldata.firstChild.childNodes[s].firstChild.childNodes[0].nodeValue)
  6. s++;
  7. }
  8. else {
  9.  
  10. s=0
  11. }
  12.  
  13. container_mc.loadMovie(xmldata.firstChild.childNodes[s].firstChild.childNodes[0].nodeValue);
  14. trace("nextButton is pressed");
  15. };
  16. prev_btn.onPress = function() {
  17. if(s > 0){
  18.  
  19. s--;
  20. }
  21. else {
  22. s = xmldata.firstChild.childNodes.length-1
  23. }
  24.  
  25.  
  26. container_mc.loadMovie(xmldata.firstChild.childNodes[s].firstChild.childNodes[0].nodeValue);
  27. trace("prevButton is pressed");
  28. };
  29.  
  30. //====================  < /Button controll script >  =====================\\
  31.  
  32. _global.completeMovie = true;
  33.  
  34. //_root.container_mc.loadMovie("showMov1.swf")
  35.  
  36. //====================  < XML load script >  =====================\\
  37. var xmldata:XML = new XML();
  38. xmldata.ignoreWhite = true;
  39. xmldata.onLoad = function(sucess:Boolean) {
  40. if (sucess) {
  41. check_text.text = "sucesssfully loaded";
  42. if (completeMovie == true) {
  43. }
  44. trace("file has been loaded");
  45. } else {
  46. check_text.text = "Error in loading ";
  47. trace("error in loading file");
  48. }
  49. };
  50.  
  51. xmldata.load("moviedata.xml");
  52.  
  53. //====================  < /XML load script >  =====================\\
  54. _global.s = 0;
  55. onEnterFrame = function () {
  56. if (completeMovie == true) {
  57. s++;
  58. container_mc.loadMovie(xmldata.firstChild.childNodes[s].firstChild.childNodes[0].nodeValue);
  59. };
  60. var xmllength:Number = xmldata.firstChild.childNodes.length;
  61. if (s == xmllength) {
  62. s = -1;
  63. }
  64. };
  65.  
  66.  
code on loaded swf:
first frame: _global.completeMovie = false;
lastframe:_global.completeMovie = true;

code on xml file:

Expand|Select|Wrap|Line Numbers
  1. <data>
  2.     <moviedata>
  3.         <movie1>showMov1.swf</movie1>
  4.     </moviedata>
  5.     <moviedata>
  6.         <movie2>showMov2.swf</movie2>
  7.     </moviedata>
  8.     <moviedata>
  9.         <movie3>showMov3.swf</movie3>
  10.     </moviedata>
  11. </data>
  12.  
http://www.mobileappshub.com/Mflash/game_run_area.html

The problem is that when i played my file the first swf which is (game_run_area.swf) loaded but after the rest of the swf is not loaded into the game_run_area.swf.

Plz reply if some one has the solutions.

Thanks

Deepak Nagpal
Jan 17 '08 #1
0 2739

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
5
by: Turner | last post by:
Hi there, I'm not a flash programmer myself but I work with some of them. It seems whenever I browse to a page developped by these folks the browser receives it as if there were ActiveX content...
18
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes...
3
by: gb | last post by:
We are in the process of upgrading part of a large system to .NET, whilst the majority will remain ASP. Sharing session state information will not be a problem at the moment as it is trivial and...
8
by: Ben Bartsch | last post by:
Looking for opinions on the use of Flash with ASP.NET. Has anyone here seen or conducted any implementations of Flash that are actually useful or otherwise complement ASP.NET?
115
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough...
18
by: gconrads | last post by:
OK, today is my twofer special on js questions. BTW: the method used here is working in Firefox I'm working on a script that switches the width of a Flash movie between 100% and 812 pixels...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.