ActionScript 3.0 :: Creating Dynamic MC With Different Content?
Jul 22, 2010
I know the Post Title is not much explicative but I didn't know how to summarize my problem. Here it is in full version: I'm making a card game, and I have all the vectorial graphics for the cards. I have a class named Deck and one named Card. When I create a new Deck I have this constructor
[Code]...
View 9 Replies
Similar Posts:
Feb 9, 2010
I have to create dynamic content based on content uploaded to site and I need to know best tools for this.In a nutshell. User uploads images. Images embeded into existing video and animated. New video produced for download So far I have looked at Flash Media Server, Flex etc but not sure what the best tool is for the server side production of content. I know I can produce the custom MXML and AS files based on content uploaded and using the Flex SDK I can render these into a SWF. What I don't know is if There are limiatations to this in the context of what I want to achieve For instance can a product like Flash Media Server do something similar.Transcoding is also required hence the interest in FMS.
View 1 Replies
Oct 1, 2007
how 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 Replies
Sep 12, 2009
I have an array with some values, example:
array[0] = january
array[1] = february
array[2] = march
and so on...
I need to create a new XML var with this array's values:
[Code]...
View 3 Replies
May 20, 2009
how to develop a featured content slider. The following web sites are examples of what I'd like to create:
[URL]
the following behaviors are desired - using nothing but pure ActionScript 3.0 and Flash CS3. I realize some of these use jQuery or JW Image Rotator - we are not looking to do that.Preloader for each slideAuto play for each slide with fade transitions to the next slide. Markers (highlighted) indicating which slide is currently playingNavigation (back, forward and the ability to select each marker)Display corresponding HTML content underneath the graphic [URL].
View 1 Replies
Jan 22, 2010
i'm developing a website for my client. Here is the test version [URL] will look like this:[URL]There will be a menu created dynamically from a XML file, after clicking a menu button a MovieClip with a photo and category description will show up.After clicking the button "View more" the MovieClip with description will be removed and MovieClips with category products will show up through a for-loop on XML products nodes from this category.
The XML will look like this:
Code: Select all<category name="torty" url="torty.jpg" description="Category description">
<item name="Tiramisu" make="Balconi" url="tiramisu.jpg"><![CDATA[Product description...]]></item>
<item name="Cake" make="Balconi" url="cake.jpg"><![CDATA[Product description...]]></item>
[code]....
I can create the navigation menu, and maybe i will manage to create first MovieClip with the category photo and description but i don't have how to create those next MovieClips with products desciption after clicking the button "View more".
View 2 Replies
Aug 10, 2007
I am creating a web site that will use XML to load content - a sort of video gallery.I plan to make scrolling movie clip for navigation containing instances of the single clip - "movie", which contains thumbnail, title and link, and I plan to use duplicateMovieClip to create as many MCs in navigation as needed.
But I have the following problem:I made a single MC - "movie" that takes the title, description and link from XML.I take the lenght of the XML nodes and duplicate the movie clip through the following code, where the variable j is the required number of MCs:
dist = 100; //distance of the new MC
_global.k = 0;
for (i=0; i<=j-1; i++) {
[code]....
Every of the movies get the same value of the k.Is there a way to pass the exact value to each of the MCs?
View 2 Replies
Jan 22, 2010
I'm developing a website for my client. Here is the test version [URL]. The page Partnerzy (Partners) will look like this: [URL]. There will be a menu created dynamically from a XML file, after clicking a menu button a MovieClip with a photo and category description will show up. After clicking the button "View more" the MovieClip with description will be removed and MovieClips with category products will show up through a for-loop on XML products nodes from this category.
The XML will look like this:
Code:
<category name="torty" url="torty.jpg" description="Category description">
<item name="Tiramisu" make="Balconi" url="tiramisu.jpg"><![CDATA[Product description...]]></item>
<item name="Cake" make="Balconi" url="cake.jpg"><![CDATA[Product description...]]></item>
[Code] .....
I can create the navigation menu, and maybe i will manage to create first MovieClip with the category photo and description but I don't have any idea how to create those next MovieClips with products desciption after clicking the button "View more".
View 1 Replies
Dec 16, 2005
Im using this xml "data.xml":
HTML Code:
<XML>
<salesreps>[code]...
I want to generate a mc for each rep with 6 text fields containg the 6 values for eash rep.So for this xml there would be 3 mc's with 6 text fields in each. This is one of my first times really diving in to xml parsing in Flash.
View 3 Replies
Sep 7, 2009
I'm trying to do this effect with my website allowing me to shuffle through different websites
[URL]
I'm referring to the white rectangle that swaps their sites in and out
View 1 Replies
Dec 13, 2010
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'
View 9 Replies
Jan 19, 2011
I've been doing Flash for couple of months and I love it. I can easily use a rectangle tool to draw a rectangle and do shape/motion tweening within seconds.
Lots of people are talking about HTML5 vs Flash nowadays and I took a look on HTML5 Canvas today. To my surprised, I see whole bunch of "code". It's so complicated, they need to make a lot of calls (fill, stroke, moveto, closepath etc...) to make a simple shape. And even dozens lines of code mixing with javascript to do a simple movement???
Am I missing something? It'll make animation 10x more complicated with HTML5 Canvas than Flash.
View 6 Replies
Sep 19, 2008
My interest is in creating a row buttons that are dynamically generated and placed as determined by xml content (number of buttons that is). The buttons are multiple instances of the same clip (attached) that contain textfields which display numbers (ie. 01, 02, ...20). The number of buttons generated shall be capped to a max of 20. I have parts of it figured out and need help with others. The generation of the clips are handled by the following loop...
[Code]...
View 2 Replies
Jun 9, 2010
My question is how possible creating streamable audio files /mp3/flv/ from multiple input files. The server is vps linux without soundcard, installed flash media server 3.5. My task is creating mixed mp3 output file.The input files are 2 mp3 file = 2 channel, uploaded to a server by the user.Controls: volume pitch, equalizer, fading that is controlled from client side flash appThe problem it should be in real time, when the user control the volume pitcher channels etc could be heard the result in the client's flash player on client side.For that purpose I tried to split the audio files into 1 sec pieces, and changing the splits only, and when done joining them together.
Feeding them to flash media server there was more problem:-the server streamed not the actual file but probably from cache -the streaming was always stopped after 1-2 seconds - using client side dynamic streaming /without joining the files / only the last file was played - using server side playlist playing more files was not played all the files So the question which way possible creating streamable files, or is there a better solution than splitting them.
View 3 Replies
Jun 13, 2006
On the main timeline I have
_root.float.page_body = '';
loadVariables("content/flash/color_studies.txt", _root.float.page_body);
and I'm using it to pass a txt file to a dynamic text field ( page_body ) inside a MC ( float ). When the text field was on the main timeline, this approach worked great, but now all that appears in the text field is:
View 5 Replies
May 27, 2010
Currently I already have a swf which is pulling parameters from a xml file. Just wondering if an asp cms can rewrite this xml file, so that the swf file is controlled by the cms. Or I should have the CMS directly provide parameters to the swf file, in other words, there is no xml file inbetweet swf and cms. Or there will be other methods..?
View 5 Replies
Aug 5, 2009
I am attempting to dynamically display a series of questions with answers in my flash movie from an existing ASP page. Initially, the dynamic questions imported from an ASP page appear on the Flash page (question 1, 2, 3, etc.). When the user clicks on a question, the flash movie advances a frame and displays the answer. I can display the questions properly, but I am having a difficult time carrying over the question ID to the next frame so that the appropriate answer will display.
The current database fields look like this:
-QuestionID
-Question
-AnswerID
-Answer
This is very simple to do in ASP or PHP but I am having a tough time trying to tie everything together in Flash. Should I create two separate ASP pages, one to query the questions and one to query the answers? How do I carry the QuestionID to the next frame in Flash?
View 4 Replies
Feb 9, 2011
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 Replies
Dec 16, 2008
I have created a Address Class that uses Remote Hosting to get addresses for site locations and creates the appropriate listings in a MovieClip.
I am trying to use this class as the source for a scroll pane inside another movie clip.
I get the site locations to show up in the scrollPane but they will not scroll.
I believe I need to pause some how in the constructor until I have all the site addresses created. how to get the scrollpane to scroll.
Here are some snippets
The container MovieClip
import FlashCFMXApplication.AL_Addresses;
import fl.containers.ScrollPane;
var scrollPane:ScrollPane;
[Code].....
View 3 Replies
Feb 3, 2009
I'm loading images into an otherwise empty MovieClip called container_mc using UILoaders and spacing them horizontally. I also have the image names as TextFields below the images all within the container. I'm masking the container clip using the following syntax:
container_mc.cacheAsBitmap = true;
mask_mc.cacheAsBitmap = true;
container_mc.mask = mask_mc;
This USUALLY works, but for some reason when I load over 20 images into the container -- the mask no longer works. At first it appears as though it's working but then the text disappears and when I mouse over the images to scroll them horizontally, the mask (which is magenta) appears and disappears -- flickering strangely. Should I be caching? I was under the impression I had to for the dynamic text to show up. Maybe it's the where I placed the code (load-order)?
View 0 Replies
Jun 29, 2009
I'm using CS3 and i wrote a in actionscript 3 an .as file that sends a request to a server and gets as a response an xml file. After loading the xml i create dynamically i big number of questions each one of them with some possible choices for the user to select(Radio buttons). The problem is that i have about 40 questions with about 120 radio buttons to show the user but only 5 fit the screen and the others are not visible. Can anyone give me a help using scrollpane or something else so i can give the user a way to see all of the questions and radio buttons available?
View 0 Replies
Jul 3, 2009
A client asked me to make him a flash presentation file in order to put it on a cdrom and distribute it to his clients.He asked me also to make the presentation file dynamic so it is easy for him to update the content of the presentation and distribute it anew, when there is a change of the content.If it was a web based presentation, I could use php to read folders and populate the data in his presentation file (I had in mind to put folders relative to the file with the content in it ("client_description.txt", photos, "work_description.txt", etc.)). But now that the file he needs is a presentation file. Is it possible to have as3 read the folders of the cdrom?Do you have another proposition to make in order for the making of a dynamic presentation file?
View 5 Replies
Oct 4, 2010
ActionScript Code:
import fl.controls.ProgressBar;
import fl.transitions.Tween;
import fl.transitions.easing.*;
[Code].....
i am trying to put this in scroll pane but it wont scroll .. modifying the code so that scrollpane works
View 0 Replies
May 22, 2009
A client has a flash website that they wish to have indexable by google. They are under the impression that google will be able to traverse this swf and get all their content out of it. However their site is very dynamic, it is a front end only for a php/mysql backend, it loads all content via dynamically created xml files based on the http get calls that are made to the api. As far as i understand google does not know how to index a flash site like this. Our recommendation is to use the same api to create a shadow site for the googlebots to crawl and then deeplink to sections of the flash site. They are not convinced.. Does anyone have any proof either FOR or AGAINST this solution? <flattery>I come here because i know this is the definitive source for flash information.</flattery>
View 1 Replies
Apr 17, 2003
as i know, the component scrollpane in the movie haves the content of a movieclip, but, i am wondering if it was possible to let the content of the scrollpane dynamic, say, taking pictures, data, movies, from outside, this content won't be specific, always may change...
let's say, i have an aplication in wich i would like to show some pictures and info about it, a travel agency for example, i will have different pictures of diferent places, info about tavels, costs, graphics and so on... can i do this using the scrollpane? can i let it dynamic?
View 2 Replies
Aug 19, 2006
For anyone that has ever run into the flaw that makes dynamic content disapear in IE I've found the solutionThe issue is caching -- I'm not sure what causes the issue but I do know that in IE it tries to cache the PHP/XML doc and it screws everything upthe fix is to concatinate a random/unique string at the end of the load request - Like so-gStuff.load("link.php?cachebuster=" + new Date().getTime());works like a charm ... my problem in IE was when you clicked refresh or you clicked the button that loaded the information into the dynamic text field it would disapear.more info / detail can be found here
View 1 Replies
Aug 3, 2008
I have a carousel that I am creating that recieves information from an XML file that points to a couple of .png's with corresponding "tooltip" messages that pop-up on rollover. I have searched all over the place, and I can't quite seem to figure it out. Can someone help with a guide on scripting a simple preloader for the actual content that the XML files points to? I will give you my .fla and source code.
Code:
import mx.utils.Delegate;
var numOfItems:Number;
[code].....
View 6 Replies
Oct 1, 2008
I'm tryign scroll dynamic buttons (movie clip with on release actions) in a scrollPane component. As soon as i drop the scrollPane onto the stage, all the buttons become white rectangles with nothing in it
the buttons should be grey and when you click on them they 'll say "CLICK" on the output window. but that doesnt work either.
here's the source code
[Code]....
View 4 Replies
May 1, 2009
I have a solution for this already, but it involves a million if/else statements so I was wondering if there's a way around this. Here we go.I'm making an RSS reader that displays posts in Craigslist. All the info I need is loaded into flash and immediately tossed into arrays. Well take the links[] array for our example.
I count the amount of links
for(i=0;i<links.length;i++){
and I make my boxes to hold the info
[code]......
View 2 Replies
Dec 8, 2011
I have a dynamic text "Home_btn" with content "Home", "Preview_btn" content "Preview" and so on.. I have another dynamic text "title_txt"and i need to get the txt content of the buttons to change the "Title_txt" when the button was clicked.
my code...
function clickBtn(evtObj:MouseEvent) {
title_txt.text=evtObj.target.name;
}
but this, get the target name of event.
View 8 Replies