ActionScript 1/2 :: Make A Simple Flash 500x300 With A Dynamic Content From Certain URL?
May 9, 2009how to make a simple flash 500x300 with a dynamic content from certain URL
View 3 Replieshow to make a simple flash 500x300 with a dynamic content from certain URL
View 3 RepliesI was wondering if there is a way to make the actual stage dynamic to the content loaded in the flash file.
Firstly the method I am using is importing a external swf to the stage into a container called container. The main stage, lets call it index, is still on default size, and I want this to expand dynamically as content is loaded in. page1 may be 900px width, page2 may be 500px width, and as I load the content the index stage should expand the width to that of the page loaded. Some steps I have tried but did not work.
if page1 button is pressed stage.stageHeight = 900; - not working (how do I set stage size in as3)made a movieclip in page 1 spanning the page size and called it p1_stage so I can reference the data from there. trace(container.p1_stage.height); gives this error: TypeError: Error #1010: A term is undefined and has no properties. at index_fla::MainTimeline/frame1()
I am working on a project that involves basic buttons in flash. They have 2 functions. One is to go to a url and the other is to execute a movie clip within the flash movie.
I dont want my developers to open flash to code the page links (i.e. contact.html). Is there a way to just add a variable of some kind in the GetURL() and have it pull from an .xml file? It can be very basic. There will be no need to dynamically add more buttons, just simply change link names on the fly.
I want to make a simple script that will add a value to a dynamic text box by pressing F1 through F4. But I want it simple, I don't have time to learn a bunch of stuff. So I want...
on (keyPress "<F1>") {
test = "test"; }
But of course F1 is an invalid key and won't work. Want I want to know is if I can write something like this that will do the same function; yet still simple.
How can I make a FPS counter with a simple dynamic text and a script?
View 5 Replieshow it is possible to edit dynamic content and modify the content and save it, all within flash.I have tried some experiments in the past and have got the text to change etc which is easy but i need a way to save the content so the next time anybody sees the flash it will have the latest content until i change it again.
View 2 Repliesi need to make a sort of template for a group of files. it must contain both text and images (sort of help files where there is text and explanatory figures). i have to make this template 100% dynamic, meaning that i don't know the amount of text or number of images or where those images will be within the text. my client should be able to add text and images without having to edit the swf.
i know how to make textfields and movieclips during runtime, and how to load dynamic text and images, but the main problem is that the client wants the images inbetween paragraphs - not in a seperate place. -how do i set breakpoints in a dynamically loaded text -how do i position the images? -how do i position the rest of the text?
I'd like to make a simple button that pops out (nicely animated) on mouseover to about 300% it's original size. You can se the button I want to animate here - it's those little buttons some of which are shaded. I want to make them more visible...
View 1 RepliesI want to make a nice and impressive flash e-card,
View 1 RepliesI'm a MA student and I'm trying to make a simple theremin in Flash. Can it be done and has anyone made one before?
View 1 RepliesI wanted to conduct a simple experiment, where I update a dynamic text field on the click of a button. Well, it throws no errors, but it doesn't work, and I can't figure out where I went wrong.
Code:
import flash.events.MouseEvent;
var currentText:Number;
[code].....
I've successfully implemented the scrollbar from this great tutorial for some banners, but when I get to my 300x250 banner, the content gets cut off and disappears at a certain point while scrolling. This is the tutorial: [URL]. I altered the pieces for two different sizes without needing to alter any code, but this size is suddenly giving me problems. My FLA is attached.
View 3 RepliesI've been working with Photoshop for years but recently started using dreamweaver to build sites.I want to make a flash intro for the site I am currently working on and have never used Flash before.I am looking to make a simple flash intro with no buttons and have it automatically cycle through the images I have.I'm looking for a tutorial to make an intro like the one on this page: http:[url]....
View 1 RepliesI need to make or buy a template for a simple flash game for a clients website. It has to be legit to buy. It is about 5 pages long. You are asked a question, you select a radio button for the answer to the question, it compiles all your answers and gives you a result.I know flash pretty well but ccording to budget and time.it is best not to have to experiment.
View 2 RepliesI am new to flash and trying to make a simple flash website video intro in Flash CS5 Pro.I have a flv viedo on the stage, under an image with a trasnparent center.I have the video on the bottom layer, the overlay image on the middle layer, and the top layer is my AS layer (AS3).
The video is currently autoplaying when i export.All i want is for it to open my website in the same window as the intro played when the video ends.I dont need a "skip intro button" or anything.I just want it to play the intro when you go to my site, and then bring up the index page of my site after it plays.
I've looked everywhere and keep getting the same answer. I have a standard flv player component with the instance name of 'movies'. i have a button, that when clicked i want it to load a certain flv into said player... so... ive got behind the button (for example..)
on (release){
_root.movies.contentPath = "http://www.mywebsite.com/mymovie.flv";
}
it compiles, i run my flash and my flv player doesnt play my content.. why?? the url is 100% correct as if i put it in manually, it works fine.
The website has 5 main-menu items called : Home / Speellijst / Van toen tot nu / media / contact / . a preview of the project can be visited here : [URL]
So when someone clicks "Van toen tot nu" (= an item about her past theatre plays), it displays a new menu that holds chronological buttons. Once someone cliks one of those, an extra element should show that displays info.
So in the element holding all the buttons on frame one AS says:
robbieknop.addEventListener(MouseEvent.CLICK,robtx t);
function robtxt(event:MouseEvent):void
{
root.toenclip.gotoAndPlay(2);
}
EXTA INFO:
* the 1st button has the instance name : 'robbieknop'
* a clip that holds the info on each frame seperatly has the name : 'toenclip'
* 'toenclip' has an empty 1st frame, the 2nd holds the info that should display while pushing the instance 'robbieknop'
* 'toenclip' is present on stage when 'van Toen tot nu' has been loaded, it is invisible (empty frame)
So far I can't get it to work, I don't get any error messages and everything else displays 'according to plan'
I'm an MA student, and I am looking to make a simple theremin in Flash as part of a project. Can it be done? Has anyone done it before?
View 3 RepliesI have a pretty simple flash banner(using flash cs4) that I want ot make clickable.I am assuming I have everything correct, because when I "test movie", everything works as expected.Now comes the odd part. When I export movie, the clickable portion no longer works. Along the same lines as soon as I save the .fla file, the "test movie" no longer works.I have recreated this about 10 times now and everytime the same result. now I have it open on my computer, because as soon as I save it will no longer work.
My actionscript(3.0) code is as follows:
link_btn1.addEventListener(MouseEvent.CLICK, sgurl);
function sgurl(Event:MouseEvent):void;
{[code].....
and yes I have a button with an instance name of link_btn1
I would like to create a Flash menu but want to load HTML inside a targeted div on the same page dynamically without refreshing. I've seen several people say iframes can be used but I would prefer to stay away from iframes and use divs if possible. I'm guessing some fancy javascript would be required?
View 1 RepliesI am trying to read a XML file and display its content in a simple list component or at the console. The problem is that the event listener is triggered in an infinite loop.
The code:
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.addEventListener(Event.COMPLETE, processXML);
[Code].....
I worked through Kirupa's "Simple Custom Scrollbar" tutorial and successfully adjusted it to fit some of my content. Then I put it in a movieclip. I was hoping I could just go into each new instance of that movie clip, put in new content and be good to go. Unfortunately, when I edit the content inside my movie clip it edits the content of all the scrollbars in my timeline.
I tried renaming the instance "contentMain" to "contentMain2" in a second movie clip, that I also gave a unique instance name to, and adjusting the actions to match, but that still ended up renaming it in the other the scrollbars in my timeline as well as adjusting it in the actions of all the scrollbars.
I have a specific requirement for a UI component that I am working on. I would like to make the component so that a designer can update a graphics in live preview mode whilst keeping the associated class the same.For example...ets take a button component which has an icon in the background and label. By setting an inspectable, I am able to set the label easily, but is it possible to point the icon to an image in say, the library or remotely etc? and have the image show as the background inside flash?[EDIT]Ahhh...I'm not able to load extenal files into the client so the graphic would have to be a library asset? Possible?
View 1 RepliesI have been working on a full flash website and am encountering a strange problem (or at least its strange to me).
I have the main shell of the site, which contains:The layoutNavigationA movieclip which pages are loaded into (external swf's)Some actionscript which streams in an MP3The controls for the background musicA piece of actionscript which loads an animated background (another external SWF)
I then have a series of pages in their own SWF's which get loaded into a movieclip within the shell when the user clicks the relevant button on the menu. Most of these pages contain:The panels for the content on that pageSome dynamic text areas for the text content on that pageSome actionscript which loads the content for that page from a couple of text files and populates the dynamic text areas Then there is a showreel, which has a menu and a customized FLVPlayback component to play audio and video tracks; the data for the menu and the tracks themselves are stored in XML files.
If I am using a connection over 2MBit: Initial preloader appears, shell loads, background music streams in nicely and then the content page is loaded in, panels animate in and the text content appears; all is well and its pretty quick.
If I throttle my bandwidth to below 2MBit (the main tests being done with the connection throttled to 1.5MBit), this happens: Initial preload appears, shell loads, background music streams in but takes a bit longer to start up, content page loads in, panels animate in and the content appears for about 2 seconds.
THEN the contents of the text areas disapears and the word "undefined" appears. So the content seems to be dropped. I've done some testing to identify the cause and if I comment out the code which streams in the background audio, the issue disapears and everything works fine, so it appears to be related to the audio. I will say, its not the most lightweight of sites; its quite graphically heavy (nothing too excessive though) and the background music is a 6MB MP3; the owner of the site is a movie composer so he has a lot of high quality streaming audio.
So I was wondering if anyone knows why this type of issue would occur, it seems strange that Flash would drop the content thats been loaded in, that background music would break the process.
I use Flash CS4 and most of the explanations you find online are for CS3.I used a mechanism once in HTML that set the flash site to 100% width, 100% height, which did scale it but there was no maximum limit and all the content got scaled equally. I would like to do it like in the HP above, where certain elements are differently scaled.
View 1 RepliesI am having an issue with adding dynamic content through an interval. The content is being added to the screen, but the X position, as well as the tween, seem to be completely out of sync. The below is a screenshot when the interval is at 100 milliseconds, as it shows it best. The application needs to work at 200 milliseconds (where the error is not as clear, but the lines are still occationally too close, roughly every 4th). As can be seen, there is a clear discrepancy between positioning. It remains fine for a few, then changes, changes again and then finally reverts back to what it was.
Here is my code that controls this section:
function XYZ(){
Score = 90
var timeBefore = Score
if(timeBefore <= 2.4){
timeBefore = 2.5
[Code] .....
Note: It also happens with 200 and 300 milliseconds, although less prominent.
I was wondering is it possible to create a simple flash file that allows users to make their own spider diagram and then print it.
Is it just a matter of letting them create their own boxes and labeling them?
im trying to make a simple animated news page for digital flash magazine, I want there to be several boxes on the page that are static until you mouse over them at which point they will start to animate. I have got that far i have created the symbol and i have build the animation inside of the symbol.In my actions layer i have put...
Symbol.stop();
Symbol.addEventListener(MouseEvent.ROLL_OVER, animateMC);
function animateMC(evt:MouseEvent):void{
Symbol.play();
}
and that works the symbol is static until i mouse over and it begins to play the part im having an issue with it making the animation stop when you move your mouse away (MOUSE_OUT)
The images are uploaded with an html form onto the server and their path names are loaded into a .txt file for my flash AS to use.The problem I am having seems to be either server lag or browser issues (catching perhaps?).I manage my content via the CMS and once returning to the flash movie it is either old content, half working or just doesn't work, period.What is interesting is that once I locate the text file and view/refresh it manually, it works 100% fine. Now, it's obviously not a very useful set up if I have to manually refresh my txt files so is there a way, (php?, Java? etc?) to refresh these files?
View 5 RepliesWhat are the best practices for providing dynamic content within a flash site? I am trying to get my head around the idea and I am not sure how to think about this. Are there sites that use a graphic frontend for updating flash content? If so, what is the common way of doing this? XML? PHP+XML+SQL? etc. I am relatively new to all of this but I have been messing with Flash and XML. I can update stuff on my site by just modifying the XML but I want to go a step further now and create a frontend on the web where people could do this.
View 3 Replies