Dynamic Site...
hi, I'm planning on building a site for selling some products... It should be totaly dynamic... what I mean by saying "totaly dynamic" I mean, reading categories & products from external xml file...
I've started building the site and got to a point where it's too complicated for me... :-(
I've loaded the xml, I've built classes for the buttons and for the buttons containers, I've added animation for the containers to fade in and out... I've also added fade-in and out for the buttons...
everthing is working well... it's just that it seems to me that it should all be done by now, by someone else...
I need something that will load categories from external xml, and will build a nice looking container for the categories buttons, and for each click on the categories button, I'll have an event that I'll show another container with the fitting products...
where can I find something like that...
I've been looking for some store templete... I found many nice-looking templetes, but they're all static.... I need something dynamic...
help!?
FlashKit > Flash Help > Flash General Help
Posted on: 12-24-2006, 10:32 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic Site Map
Does anyone know of any good tutorials for a flash movie building a collapsable site map with data out of a database?
I am trying to make a site map that builds itself based on what is in the database.
For instance if you opened the flash movie you would get.
Home
(click home)
section 1 (from database) section 2(from database)
(click section 1)
sub section 1 (from database)
etc. etc.
And based on what was in the database is what sections would be clicakble.
Dynamic Site
How would I go about creating a site where the user can add to the site. For example, a user registers at the site with their details, and when clicked submit, it adds them onto a chain network.
for example:
http://travel.escapelab.com.au/escaperoute.html
Dynamic Site
I'd like to create an xml driven menu for a flash site that could pass variables ( such as an xml file ) to the movie.
For example, I'll have a photo gallery page, but if I want to add another gallery page, I'd like to just send a different xml file to the gallery through the dynamic menu to show different images.
Anyone seen something like this? Am I in waaaay over my head with this kind of thinking?
Help With Dynamic Site Template
Hi all. I'm somewhat of a newbie at Flash. I'm currently working on making a website template (my first real Flash project), but I'm stuck. I'm making it very dynamic. Basically all the text on the template is dynamic, loading from a file 'data.ini'.
My prob is that everything works except for the main text for each page. I basically want to have something like the templates at http://www.5sec.com where each section of the website has a text file of it's own from which the text is loaded dynamically. Unlike 5sec.com, though, the number of sections/pages in the site isn't static. What would be the best way to do that?
The 4 menu's are created dynamically, allowing the administrator of the site to put whatever links he wants in them. Should I add an extra variable for each button in the menu to tell Flash whether it's an internal or external link?
I'm U/L'ing the .swf and the data.ini in a zip. Should I include the .fla?
Thanks in advance for the help!!
HOW TO: Dynamic Text In Web Site...
Hi there,
I was trying to make a flash site which I can update by using dynamic text. Someone told me it is possible, but didn't knew how to. So help me, please.
This is what I'd like to achieve:
A box of dynamic text which already has a definition of the size and type of font. The text should be in a *.txt documnent, and by updating the *.txt document the site should be update (text-wise).
Is this possible? Thank you in advance
Bas van Ommen
Amstelveen
The Netherlands
Dynamic Site Generation (via PHP)
Hasn't got anyone experience with this?
i'm getting data info via php and one site has 6 items. when item 7 is added it should create a new site automaticly with next & back buttons.
does anyone have any infos on this? any source-files, any ideas at all?
help asap very apperciated, thanks very much!!!
Preloading Dynamic Site.
im createing a website for my band. the website dynamically loads mp3s, jpegs, html with style sheets and embeded images, and variables from php files. i understand making a simple preloader to load swf's or mp3's or jpegs but how can i preload the html, and variables from the php files? any ideas on a super dynamic preloader?
check it out so far...
www.thesunband.com/pre-test/v1/
sometimes the dynamic html text for the new, live, music sections messes up because the jpeg the html calls isnt preloaded.
Help With Dynamic Flash Site
Howdy All!
I have been customizing a Dynamic Flash template and it has been coming along quite nicely.
There are three issues I have run across that I am needing help with.
I was able to replace the images through the dynamic part of the template, what I can't figure out is how to link those images so that when someone clicks on it it takes them somewhere.
The second issue is I don't know how I am going to be able to add more images to the "showcase" and "portfolio" sections of the site. I attempted to open the .fla file but from what I could see all I see is the pre-loader. I can't seem to find the flash file that has the rest of the site.
The third issue is the flash form. I had problems with this in the past and got help from a wonderful member here. I have the php file for people to contact me through, I Just don't know how to link that php file to the contact form on the site
EDIT: Oh! I forgot one more thing. I would like to change that "Nautilus" copyright at the bottom to say Zearo Concepts, the problems is, I can't find the flash file to edit to get that changed. I can't seem to find it anywhere on the dynamic "word" pages...so my thought was it is on the .fla file.
Here is where the site is progress is:
http://www.zearo.com/flashtest/
I understand that everyone here is extremely busy, any direction or help with these issues will be greatly appreciated. Thank you so much for taking the time out to look at this.
[F8] Dynamic Comic Site
Hey guys...can use your help...cant wrap my head around the script for this... I have a friend that wants to make a comic strip site. SO I would like to load the latest jpg he uploads dynamically...each images is named comic001, comic002, comic003...etc. so how would I get flash to recognize the latest number loaded up and display it in my movie?
stay black,
straitjackettuxedo
Dynamic Content For Site
Hi
I've been using text files to populate scrolling areas and content in my site but would like to use something that gives more control and easier to format the text since doing it in text file is real pain because of whitespaces etc.
I know XML is around but not sure if that's the way to go and how complex it is or if there is a better way of doing it . any suggestions or link to tutorials ?
cheers
Using A Preloader In A Dynamic Site?
How do you use a preloader when you are dynamically loading swf's?? Could someone please explain how you do this...PLEASE...
For example I have the script in the main movie loading all the other swf's dynamically, but the actual swf's that are being loaded have the preloader script on the 1st frame of each movie...and this seems to be causing the problem...
This is the code in the main movie 1st frame...
Code:
stop();
//
//
// Set up the MovieClipLoader object and its listener
my_mcl = new MovieClipLoader();
my_listener = new Object();
my_listener.onLoadComplete = function(movieClip) {
trace("Loading is done for "+movieClip);
};
my_listener.onLoadError = function(movieClip) {
trace("Error: "+movieClip+" did not load anything.");
trace("Your load failed for "+movieClip);
};
my_mcl.addListener(my_listener);
//
//
// Setup the TextField.StyleSheet object
my_ss = new TextField.StyleSheet();
// Tell the CSS what to do when loaded
my_ss.onLoad = function(success) {
if (success) {
trace("myStyle.css loaded");
} else {
trace("myStyle.css did not load");
}
};
my_ss.load("styles/myStyle.css");
//
//
// Setup the LoadVars object
my_lv = new LoadVars();
my_lv.load("text/my_vars.txt");
my_lv.onLoad = function(success) {
if (success) {
gotoAndStop("Animation");
} else {
trace("Load Failed");
}
};
my_lv.getHome = function() {
return this.homeVar;
};
my_lv.getAbout = function() {
return this.stuffVar;
};
Then this is the code in the "Animation" frame of the main movie that loads the external swf dynamically...
Code:
// Use the MovieClipLoader from frame 1 to load some movieclips.
my_mcl.loadClip("animation.swf", "main_mc_container");
my_mcl.loadClip("navigation.swf", "navigation_mc_container");
Then for example this is the script that runs the preloader script in the movie that is being loaded dynamically into the main movie
Code:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(5);
}
PHP+AS = FULL DYNAMIC SITE. BUT HOW...
Hi all, i'm making my own portfolio full dynamic flash site. And animation and interface is ok. But i don't know about connecting to database. And i read about PHP+AS. And i couldn't get a good point.
help me about connecting flash to database.
And sorry about my english skill. that is so bad!!! you can skip about my english skill.
Thanks all.
Creating A Dynamic Site?
Hi, I'm completely new to this kind of stuff so please bare with me
I want to create a flash website with a front page that can be changed through a text document or something like that. Basically, you would be able to re-write the text from somewhere else and then the site will change accordingly. It would be even cooler if I can make like a Admin flash page and you could update it from there. Just anything that'll help me update without having to open flash everytime.
Can anyone point me in the right direction?
Need Some Help With My Site... Dynamic Text Box , And More...
You can visit my site at http://ultarius.com/AoS/
It is still in the very early stages and i have tons i want to add but if i just understood flash a bit better i could get it done quicker.
First off the main news text that scrolls down. I want to have the text inserted from a text document and be able to adjust font size and color through the document. So that i dont need to open flash up everytime to update my news section.
Also for the news ticker. Is there anyway at all to adjust the fonts in the newsticker so that they are a bit closer together. This is a dynamically loaded ticker from a txt file. The only adjustment i can do with the text string is change the speed, and space between sentences by putting more spaces between the words. The actualy space between each letter is too wide and the font is not what i want, but i have no idea how to change this.
My last question , how would i make the whole page centered as if i published it as a swf ? For some reason all my html pages that are published in flash always default and go to the left side of the screen in IE. Which file do i need to open up and edit to make this centered ???
IF anyone could help me out with these 3 things i could move on to my next problems . Hehe
PHP+AS = FULL DYNAMIC SITE. BUT HOW...
Hi all, i'm making my own portfolio full dynamic flash site. And animation and interface is ok. But i don't know about connecting to database. And i read about PHP+AS. And i couldn't get a good point.
help me about connecting flash to database.
And sorry about my english skill. that is so bad!!! you can skip about my english skill.
Thanks all.
Dynamic Site Tutorial
hey guys - does anyone have a good tutorial for creating dynamic flash sites? after seeing www.manipulator.com and group94, I'd love to try my hand at making one.
(on a side note: does anyone know anything about the group94 client app they made for updates? if you visit their site and go to "behind the scenes" you can see what i'm talking about. Thanks everyone!
Dynamic Flash Site..?
I'm want to make a dynamic flash site.. Here is what i'm trying to do.. I'm working on a new version of my website.. It's a site for an event that I host.. I've got a list of bands that people can see and link to the bands homepage... Not all bands have a home page.. I'd like to put a small profile on my site for them.. I'd like a list of the bands and when I select one of the bands it will show me the profile for that band.. I would like to use XML or TXT so I don't have to mess with the design for every new band...
Nakirema
Setting Up A Dynamic Web Site
I'm using Dreamweaver and Flash to create a website. Can anyone suggest how to create a dynamic web site, in which I can add icons or change the skin or appearance of my site, without starting from scratch or doing a lot of work?
Dynamic Flash Site Scripting
Here is great link which shows how to create a dynamic flash website using external .swf files. If you want an optimised website then view the 2 pages.
http://www.search-this.com/website_d...ack_flash.aspx
The only thing is there is no movie file so the code which allows you to load and unload external file/s is not included.
I really require a movie file template since my actionscript is not 2advanced.com
I hope you can help and that this thread is usfull to others.
Thanks
MC
File To Big, Want To Have More Dynamic Loading Site
OK...my site is pretty much finished...only thing is the swf is massive at 7mb. So now I want to make it a little more dynamically loading. Being new to this I have no idea where to start. I'm guessing I make a seperate movie externally and then load it with code...???
Can someone point me in the right direction here of where to start, how to go about it? A tutorial you know of would be an amazing start. I'd massively appreciate it! I know, I know...stupd noobies!!!
Thanks in advance!
Flash Dynamic Site With .Net Background
Hi all,
I am currently working in a Flash site for learning Arabic kids through fun, songs, cartoon and FLV video and testing its speed and its user friendly. I hope if you can visit it and tell me your comments, the link is here:
http://www.graphicmania.net/
I am sorry at the site is only in Arabic, but we plan to add an English version in a next stage.
Rafiq
Embedding Fonts For Dynamic Site
I have been working for quite some time trying to embed fonts in my Dynamic Flash file. Basically I have a Flash Movie that uses PHP/MySQL to load dynamic data. Most text fields throughout the movie are dynamic. I have used setTextFormat() and setNewTextFormat() when setting the font style.
I originally tried loading an external library containing the fonts, however I gave up on that and just tried embedding the standard way, by creating a dynamic text field on the stage and using the 'Character' button selecting the glyphs I wish to use. However, after publishing the movie, I removed the embedded font from my computer and the font still did not display in any text fields throughout the whole movie.
The movie selects the fonts dynamically through a drop-down menu in the editor. Basically I pre-select several fonts, embed them manually into the .SWF and store the font name I want in the drop-down menu which changes the active font in the database. When the font is on my computer it works beautifully, but I am yet to get it to work after embedding it many different ways. I am using Flash CS3, publishing in AS 2.0, and Flash Player 6. You can view the live .SWF at http://www.quick-sites.biz/TestServer/Version4. Click "Login" and click the "Fonts" page to see where the fonts are changed.
Loading Dynamic Text From Another Site
Followed Kirupa's Tutorial on loading dynamic text into a text box, and it works great when the .txt file is in the same folder. But I want to use the same text for a banner on another site. I was hoping I could jsut load it fromt he same text file so I only have to change it in one place in the future. I tried to do it with this code but am not sure that's the right way to script it:
loadText = new LoadVars();
loadText.load("http://www.externalsite.com/text/mytext.txt");
loadText.onLoad = function() {
promo.text = this.promo;
expires.text = this.expires;
code.text = this.code;
};
Load A Swf File In Dynamic Site
Hey,
I've read the guide of loading swf files into target, but it doesn't make sense that much.
I have a finished flash site, and on the home page, (without having a button pusht yet) im loading a file "foto.swf" by putting this actionscript into the timeline of the movieclip
Code:
loadMovie("foto.swf", 1);
Then it loads the swf, but when I press a button then, it remains visible.
Does someone know how to fix this problem, i've read the guide but i cant sort it out.
Many thanks,
Michael
Dynamic/Database Flash Site
Hi, I have a client that is wanting me to create a flash website in which they can add products pages (product info, images, etc.) themselves after the website is completed. I will setup up the first few products then they will do the rest. Would I wanted to go with dynamic text and empty movie clips loading the images? If so how could I have this create a duplicate page that refers to the new text and image? Thanks for the help.
- Brian
Loading Dynamic Text From Another Site
Followed Kirupa's Tutorial on loading dynamic text into a text box, and it works great when the .txt file is in the same folder. But I want to use the same text for a banner on another site. I was hoping I could jsut load it fromt he same text file so I only have to change it in one place in the future. I tried to do it with this code but am not sure that's the right way to script it:
loadText = new LoadVars();
loadText.load("http://www.externalsite.com/text/mytext.txt");
loadText.onLoad = function() {
promo.text = this.promo;
expires.text = this.expires;
code.text = this.code;
};
Making A Dynamic Flash Site
Hi,
Whats the best way to make a dynamic flash site that is fully updateable by the site owner?
I want to build a site that allows somebody to go to an interface login and edit sections on the site or add new ones, such as a news section, updateable project section etc.
Thanks
David
Dynamic Site With Video Player AS3
Hey all,
I have an AS3 site that has a main content site that pulls all my pages dynamically using the loader component. My menu is contained in the content.fla file and uses this code:
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var currentPage:MovieClip = home_mc;
var homePage:pageHome = new pageHome();
var sellPage:pageSell = new pageSell();
sellPage.stop();
var purchasePage:pagePurchase = new pagePurchase();
purchasePage.stop();
var meetPage:pageMeet = new pageMeet();
meetPage.stop();
var tvPage:pageTv = new pageTv();
tvPage.stop();
home_mc.targetMC = homePage;
sell_mc.targetMC = sellPage;
purchase_mc.targetMC = purchasePage;
meet_mc.targetMC = meetPage;
tv_mc.targetMC = tvPage;
homePage.x = 0;
homePage.y = 0;
sellPage.x = purchasePage.x = meetPage.x = tvPage.x = 0;
sellPage.y = purchasePage.y = meetPage.y = tvPage.x = 0;
addChild(homePage);
home_mc.buttonMode = true;
sell_mc.buttonMode = true;
purchase_mc.buttonMode = true;
meet_mc.buttonMode = true;
tv_mc.buttonMode = true;
home_mc.addEventListener(MouseEvent.CLICK, newPage);
sell_mc.addEventListener(MouseEvent.CLICK, newPage);
purchase_mc.addEventListener(MouseEvent.CLICK, newPage);
meet_mc.addEventListener(MouseEvent.CLICK, newPage);
tv_mc.addEventListener(MouseEvent.CLICK, newPage);
function newPage(e:MouseEvent):void
{
removeChild(currentPage.targetMC);
currentPage = MovieClip(e.currentTarget);
addChild(currentPage.targetMC);
currentPage.targetMC.gotoAndPlay(1);
keyhole.gotoAndPlay("new");
}
I click the tv button to load the tvPage and that in turn loads my pageTv.swf into it. In this pageTv.swf file is my video player that uses this code:
Code:
var vlist:XML = new XML();
var XML_URL:String = "vids.xml";
var vlistURL:URLRequest = new URLRequest(XML_URL);
var myLoader:URLLoader = new URLLoader(vlistURL);
myLoader.addEventListener(Event.COMPLETE, xmlLoaded);
function xmlLoaded(evtObj:Event) {
vlist = XML(myLoader.data);
for (var i=0; i<vlist.vid.length(); i++) {
vid_select.addItem({label:vlist.vid[i].@desc, data:vlist.vid[i].@url});
}
vlist.ignoreWhitespace = true;
vid.play(vid_select.getItemAt(0).data);
vid_select.selectedIndex = 0;
}
var vidList:Object = new Object();
function changeHandler(event:Event):void {
vid.play(vid_select.getItemAt(vid_select.selectedIndex).data);
}
vid_select.addEventListener(Event.CHANGE, changeHandler);
My issue is that when I navigate to another page the video sound still plays in the background. I found a similar post to this but his navigation was very different then mine so the solution didn't apply. Does anyone have any suggestions? I guess I'm just confused on where to put it. Any help is much appreciated. Thanks guys.
Creating Updatable Dynamic Site W/ Database
I have created plenty of flash sites but never anything dynamic. Now I'm needing to create an interface which highschool superintendents can put in data(whether school is closing due to weather)then this data automatically updates the main website so folks can click on a link to veiw school closings.
I also need to create or find some sort of content management system for updatable flash. Almost forgot, I'm not the most actionscript oriented person.
Any help would be appreciated-even book suggestions
Thanks a truckload!
Flash Site With Dynamic Loading And Expansion, Is It Possible?
Want to make a flash site for a customer that dynamically loads pictures and text out of files.
I know how to load things externally into the movie, what I want to know is how I can make a photo gallery that expands dynamically.
This is what I'm thinking. Please let me know if it works.
Have a text file on the website that only has a single number in it. This number corresponds to the number of folders of pictures. For example, if the text file has the number 12 in it, then there are 12 folders of pictures. Flash will then read that 12, make it a variable and iterate through some sort of picture loader to load all each gallery thumbnail from each folder. Is this possible?
Each folder would also have its jpgs numbered from 1.jpg up to n.jpg. A text file would tell flash how many photos to use and then the movie would just load each of the files in order by iterating through some variables.
Is this possible? Does my explination make sense? Is there an easier way to do it? I'd also prefer to code it, rather than using some previous Macromedia included object. That way I can make it more streamlined.
Thanks!
Changing The Site To Be Dynamic, Running Into Problems
I have a site I've been working on for several weeks. The individual sections are fairly dynamic in terms of actionscript running most of the frame, and each section only being one frame. I'm trying to get rid of the timeline altogether by using attachMovie, and am running into some issues. I need it to go to the label "start_fr" when they enter in a set password and username, and nothing is happening when I press the submit button.
I think it may be because I'm motion tweening the login_mc, so my actionscript is inside the last frames tween(I'm eventually dynamically programming those too, but on thing at a time, right!?)
. Am I on track? Is this where listeners come into play, because I've had the most trouble with that concept as I move on to learning more true dynamic programming.
========================================================
Attach Code
////this is my code on frame one of the timeline to pull up the load screen.
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
onEnterFrame = function () {
attachMovie("login_mc", "login", 0 ,{_x:centerX, _y:centerY});
gotoAndPlay("login");
};
//// this is in the end frame of the login_mc / inside of tween 22
submit.onRelease = function (intro) {
if (username_input.text == "example" && userpass_input.text == "example"){
statusbox.text = "Please Wait One Moment While Our Intro Loads...";
//_root.nc.play("beta1.flv");
//skipIntro._visible = true;
//onEnterFrame = function(){
//_root.nc.onStatus = function(info) {
// if (info.code == "NetStream.Play.Stop") {
gotoAndPlay("_root.audio");
// }
//}
//}
skipIntro.onRelease = function(){
gotoAndPlay ("start_fr");
};
}
else {
statusbox.text = "The username or password you entered is incorrect";
}
}
Edited: 12/04/2006 at 12:02:20 PM by Brenton07
Dynamic Text Shows Locally But Not On Site?
I have a dynamic text box on the _root level of my movie that loads an external text file. When I test it in Flash (MX2004) locally the text shows up just fine. But when I upload it to the site it doesn't show at all. I'm exporting as Flash 6. I just want to display as html text and not embed font (if possible). Also, there are no masks on the _root level.
Here is the code to load the text:
loadText = new LoadVars();
loadText.load("/text/about.txt");
loadText.onLoad = function() {
textBox.html = true;
textBox.htmlText = this.infoText;
};
Any ideas are welcomed and appreciated.
edit: Yes, I made sure the text file is uploaded to the /text directory!!
Dynamic Text Shows Locally But Not On Site?
I have a dynamic text box on the _root level of my movie that loads an external text file. When I test it in Flash (MX2004) locally the text shows up just fine. But when I upload it to the site it doesn't show at all. I'm exporting as Flash 6. I just want to display as html text and not embed font (if possible). Also, there are no masks on the _root level.
Here is the code to load the text:
loadText = new LoadVars();
loadText.load("/text/about.txt");
loadText.onLoad = function() {
textBox.html = true;
textBox.htmlText = this.infoText;
};
Any ideas are welcomed and appreciated.
edit: Yes, I made sure the text file is uploaded to the /text directory!!
Building Fully Dynamic Flash Site
Hi, I'm trying to build a fully dynamic flash site with an access database connection using ASP. Can somebody guide me on what I should look into to make this possible, especially retrieving content from database via adodb connection.
This is a pretty ambitious project and I havn't done anything so advance in flash.
Thanks!
Guidelines For Structuring A Dynamic XML Flash Site
Hey guys,
I'm just working through production of a site site which dynamically loads the menu listing as well as page contents via XML. The content of some pages will be just text, some will include images and some will have a video player on them.
So far I've built the layout outline and the (XML driven) side navigation bar and I just wanted to run my intentions past you guys to find out if there's a better way to approach this. Here's my current plan:
1) I decide on say 3 page 'templates' - [text only], [text and image] and [text and video]. I create a 'pageType" attribute on each XML page node which designates how the XML should be built into the page (ie how to arrange the text fields and images etc).
2) When loading the XML I create an empty array of movieclips with a 'slot' for every page the user may want to travel to. When the user clicks on an item in the navigation bar, I check to see if the page has been previously loaded (ie. refer to a boolean array perhaps) and if not I interpret the 'pageType' and generate the textfields and images as children of a 'page' movieclip. When it's all loaded I fade out the current 'page' movieclip and fade in the new one. As the user moves around the site more and more pages are generated and stored in the page array and are obviously quicker to access second time around.
Is this how things are usually done? A stack of movieclips/sprite 'pages' loaded on top of each other just removed/added from the display list? Or do people tend to remove all the items and generate the page elements every time a navigation event occurs?
There isn't a whole lot of imagery/data on this site so I don't think overloading anyone's memory is an issue, but is it bad practice to keep loaded things that may never get accessed again?
Would be great to hear peoples' thoughts on this - seems to be a topic that isn't covered in tutorials so much (would love to be proven wrong on this!).
Flash Header STAYS In Dynamic Site
Hey all,
I wanted to build a site that included both flash and html. I wanted to create a flash header with the banner, graphics, navi and music; and have the rest of the site in HTML. But what I wanted to learn how to do is to just have the html part of the site change on the click of the buttons. I don?t want the flash to reload over and over again as we switch pages, so the music doesn?t have to start over and the animation docent have to reload all over again. If anyone can help in this, it would be greatly appreciated.
ex: http://www.willmusser.com/eko3/ if you go through clicking the main navigation buttons the music stays the same without reloading or starting over.
Thanks in advance.
knite
Movies In Flmash File Do Not Play With Dynamic Site
hi guys,
this time i have a difficult one.
I am trying to do something new (for me) and it is a flash file on the left side and content on the right.
Flash: gives a standard movie when coming to the site, but displays another movie when a visitor clicks a link in that flash file.
If i code a template like i allways do, the page is totally build up new when a visitor click a link in the flash, meaning he/she get to the selected content, but the intro movie plays and not the movie of the link... (hope you understand this chaotic explanation)
How can i code a template that the flash file do what it is supposed to do and not reloading every time someone clicks a link.
see www.diversum.be
I thought about frames but that isn't a good solution.
thx for all replies
Preloader For Gallery Site With Dynamic Loaded Images
Hey there - What kind of preloader would I need to set up for a photo gallery site with dynamically loaded pics? Since the site loads the dynamic pics before it gets around to the graphics added at author time, my preloader doesn't show up while the site is loading.
Any advice is greatly appreciated and if you need further clarification please let me know.
Thanks!
PHP Input Driving A Dynamic Flash Site(issues)
uhg...im not a php person so i had one my my programmers at work write this. And it works GREAT at work but for some JACKED up reason it doesnt work great from home. Maybe you guys can help me out.
I have a flash website, that loads its text dynamicaly from a text file.
The text file it reads from is a text file generated by a php page.
The page itself has a bunch of input fields and the idea is that you can input the text easily into those fields and have it update the flash site.
The following is a ton of code...
PHP Code:
<?php
session_start();
if(!$_SESSION['user'] && !$_POST['user'])
{
print("
<form name=stdform method=post>
<center>
<table>
<tr>
<td>
Username:
</td>
<td>
<input name=user>
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type=password name=password>
</td>
</tr>
<tr>
<td COLSPAN=10 ALIGN=CENTER>
<input type=submit value=Login>
</td>
</tr>
</table>
</center>
</form>
");
exit(0);
}
else if($_POST['user'])
{
$user=$_POST['user'];
$password=$_POST['password'];
if($password!="arts" || $user !="spider")
{
print("<form name=stdform method=post>
<center>
<table>
<tr>
<td COLSPAN=10 ALIGN=CENTER>
Password or user incorrect, please try again.
</td>
</tr>
<tr>
<td>
Username:
</td>
<td>
<input name=user>
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type=password name=password>
</td>
</tr>
<tr>
<td COLSPAN=10 ALIGN=CENTER>
<input type=submit value=Login>
</td>
</tr>
</table>
</center>
</form>");
exit(0);
}
$_SESSION['user']="root";
}
else if($_REQUEST['logout'])
{
$_SESSION = array();
if (isset($_COOKIE[session_name()]))
{
setcookie(session_name(), '', time()-42000, '/');
}
// Destroy current session
session_destroy();
print("<CENTER>You have been logged out.<br>Click <a href=index.php>here</a> to log in.</CENTER>");
exit(0);
}
$output_file="content.txt";
$fields[]="Main Page";
$names[]="content1";
$fields[]="Products";
$names[]="content2";
$fields[]="Tidal Force";
$names[]="content3";
$fields[]="Wave Crest";
$names[]="content4";
$fields[]="Contact Us";
$names[]="content5";
$fp=fopen("$output_file","r");
while(($field=fread_word($fp))!="")
{
$i=get_index($field,$names);
if($i==-1)
{
$value=fread_block($fp);
$extra_text.="&$field=$value";
}
else
$values[$i]=fread_block($fp);
}
fclose($fp);
$field=str_replace(" ","_",$fields[0]);
if(!$_POST["$field"])
{
print("<html>
<body>
<form name=stdform method=post>
<input type=hidden name=extra_text value="$extra_text">
<center>
<table>
<tr>
<td colspan=10 align=center>
<a href=index.php?logout=true>Logout</a>
</td>
</tr>");
$i=0;
foreach($fields as $field)
{
$value=$values[$i];
$i++;
print("
<tr>
<td>
$field
</td>
<td>
<textarea name='$field' rows=5 cols=60>$value</textarea>
</td>
</tr>");
}
print("
<tr>
<td colspan=2 align=center>
<input type=submit value=Submit>
</td>
</tr>
</table>
</center>
</form>
</body>
</html>");
}
else
{
$fp=fopen($output_file,"w");
$i=-1;
foreach($_POST as $p)
{
if($i>=0)
{
$field=$names[$i];
fprintf($fp,"&%s=%s",$field,$p);
}
$i++;
}
$field=$_POST['extra_text'];
fprintf($fp,"$field");
header("Location: index.php");
}
function get_index($field_name, $fields)
{
$i=0;
foreach($fields as $field)
{
if($field == $field_name)
return $i;
$i++;
}
return -1;
}
function fread_word($fp)
{
$c="";
while(!feof($fp) && (($c=fgetc($fp))==" " || $c=="=" || $c=="&"))
;
if(!feof($fp)) fseek($fp,-1,SEEK_CUR);
if(feof($fp)) return "";
while(!feof($fp) && ($c=fgetc($fp))!= " " && $c!="=" && $c!="&")
{
$line.=$c;
}
while(!feof($fp) && (($c=fgetc($fp))=="&"))
;
if(!feof($fp)) fseek($fp,-1,SEEK_CUR);
return $line;
}
function fread_line($fp)
{
$c=" ";
while(!feof($fp) && (($c=fgetc($fp))=="&"))
;
if(!feof($fp)) fseek($fp,-1,SEEK_CUR);
if(feof($fp)) return "";
while(!feof($fp) && ($c=fgetc($fp))!="&")
{
$line.=$c;
}
while(!feof($fp) && (($c=fgetc($fp))=="&"))
;
if(!feof($fp)) fseek($fp,-1,SEEK_CUR);
return $line;
}
function fread_block($fp)
{
$c=" ";
while(!feof($fp) && (($c=fgetc($fp))=="&"))
;
if(!feof($fp)) fseek($fp,-1,SEEK_CUR);
if(feof($fp)) return "";
while(!feof($fp) && ($c=fgetc($fp))!="&")
{
$line.=$c;
}
while(!feof($fp) && (($c=fgetc($fp))=="&"))
;
if(!feof($fp)) fseek($fp,-1,SEEK_CUR);
return $line;
}
?>
So thats the php file. It does a great job reading the current content.txt but when i try to submit new changes it clears the content.txt file completely.
Thanx for your help
Loading Dynamic Text - Identical Swf Works On One Site But Not On Another
Strange problem this.
I made a flash banner a while ago which pulled in variables from an asp page, its being used on two seperate sites and *was* working fine on both. Today I found that its failing to pull in one of the variables on one of the sites and is giving an 'undefined' error, the other one still works fine.
The odd thing is they're identical, they use identical asp files in the same sub folders of the site, but one works and one doesnt!
see here -
http://www.samespots.com/flash/quote_banner.swf (works)
http://www.nonlinear.com/flash/quote_banner.swf (broken!)
they both use an asp file - /flash/quote_query.asp - which looks to be spitting out the same URL encoded string without a bother.
I'm stumped, the Actionscript is the same in both files, they're utterly identical, yet ones broken.
anyone got any clues what-so-ever?
Scalable Dynamic JPEG On Full Browser Flash Site
Ok ... I'm going out of my head here. I've found a lot of posts in the forums here that have come oh so close to answering my question but just not quite.
I've got a full browser flash movie I'm creating. I've got a movie that scales out to 100% x 100% which has a dynamically loading JPEG for a background image and another empty movie clip that loads in the main content.
Here's my ActionScript:
ActionScript Code:
stop();loadMovie("dh_main.swf","mainContent_mc");loadMovie("background.jpg","background");Stage.scaleMode = "noscale";stageListener.onResize = function () { var stageXCenter = Stage.width * .5; var stageYCenter = Stage.height * .5;}
I want the background image to scale 100% x 100% and resize with the mainContent_mc when the window is resized.
I just cannot get that background JPEG to stretch to save my life.
Any ideas?
Alter Text Size Option On A Flash Site Using Dynamic Text
I would like some advice on how to Implement ability for “user” to alter text size on a flash website (enlarge decrease ) (10 Pages) through a plus / minus icon at the top of the header. Clicking this icon would alter all text areas through out the site .This would only apply to content areas of the site on each page that holds text. All the pages are laid out within the same template. Menu across the top, single left hand column of text with scroll's and an image on the right. The text is dynamic on this site. The text is stored externally in a separate fold as text files for each page.
I would greatly appreciate some advice
Newbie Needing Some Site Building Guidance - How To Structure A Site?
I need a little help - I am designing an art portfolio in Flash, and so I need it to be a site that has a few different pages that are linked between each other - you know, common sense. I really have no idea how to go about structuring that. I've been doing well at animations and buttons and ActionScript and all kinds of things in Flash, but I just don't understand how to make several pages that are part of the same document. Do you use scenes, or different "projects" within the document, or what? And then how do you link to them - just like it was any other URL?
I GUESS I mean, how do you design in Flash using a home page and then other pages to navigate to?
Help Finishing Up My First Flash Site - Using Navigation To Display Different Sections Of The Site?
Thanks for looking! i am making my first flash site, and im not sure what to do next in regards to navigating through the site. I have different sections, home, info, hardware, equipment, etc, but im not sure how to make each section appear when you click the corresponding navigation link. i have an idea but im not sure how to execute it.
Should i make a movie clip for each section (home, info, hardware, contact), then place each movie clip in its own frame on the main time line, and on each navigation link button (each one is a movie clip) use action script and put a gotoAndPlay() code with the frame number of the corresponding section? so when you click it, it goes to that frame which has the movie clip that has the content for that part of site, say contact, or info?? if so how can i do this?
that sounds really confusing and im sorry but please help out a beginner! Thank you and happy halloween!
-Matt
here is a link so you can see the.swf
[url]http://www.filedorm.com/show.php/7839_INTOUCH.swf.html[/url]
and also here is a link for the .fla
[url]http://public.me.com/mattsh*t[/url]
your going to have to copy and paste that in your browser since the world filter on here. just repleace the " * " with an " i "
Need To Retrieve Site URL (http Referrer) Of The Site My Flash Player Is Placed On
Hello All,
I am trying to implement a custom flash player where my embedded source code (<OBJECT></OBJECT>) can be placed on various websites. I would like to gather some information of the users who are using my flash player on their site. I wrote the following code inside the flash player to gather the site URL (http referrer) so I can send this piece of information back to my server.
javascript: if(null != document.all) {
window.document['adbVcmAd'].Movie += ('&site_url='+encodeURIComponent(document.URL));
}
else {
window.document['adbVcmAd'].setAttribute('src', window.document['adbVcmAd'].getAttribute('src')+'&site_url='+encodeURIComponent(document.URL));
}
void(0);
var sl = _root.site_url;
I am able to get the site URL in IE, but I cannot get the site URL from users using Fire Fox.
If anyone has any ideas, please post a reply or send me an email.
Much Appreciated!
Edited: 01/24/2008 at 02:48:16 PM by Flasher37
Have A Flash 6 Site That Loads External Txt, Swf, And Mp3 And The Site Works On My...
mac,but when viewed on PC...none of those external files load into the main movie. Anyone know what may cause this to happen? another thing...this site was done in flash 5 (worked fine then), but went with 6 at the end to use the mp3 streaming feature.
Any insight will be greatly appreciated!
[Edited by JuanBenedit on 09-06-2002 at 10:19 AM]
|