ActionScript 1/2 :: Refresh Inside The Main Swf Container?
Mar 23, 2012
I have a main swf container, who loads external swf . All my files are connected a php files who are connected one database in one server. Sometimes when I load my project the external files they take a long time to load.
View 2 Replies
Similar Posts:
Jun 17, 2010
I am facing a issue in Flash container. I am having a project which has main container which call different SWFs into it. Now I call this main container file into another container, and their problem starts. Many option doesn't work properly which generally have _root, _parent etc...
If I want to run project (main container SWF and child SWFs) into another container file which place on a website. I want to show whole project from this container file so what I need to do?
View 1 Replies
Jun 7, 2011
I've inherited an application and am fixing a bug. There is a refresh button in a the application's mxml file and it has a click="refresh(null)". This works.
However we also want to do a refresh every five minutes automatically using a timer. There is code in an .as file (that is sourced' into the above mxml file) that uses a Timer and calls refresh(null) from within the .as file, but this doesn't seem to do anything.
Is this the right way to do this? Or do we need to explicitly reference the object we want to refresh? If so, how do we do that?
foo.mxml:
<mx:Application ...>
<mx:Script source="funcs.as"/>
[Code].....
View 1 Replies
Jan 27, 2010
I'm currently working on a custom component which extends Canvas (let's call it SuperCanvas) ; it's basically a container that let you zoom & pan its contents. It would be too long to explain why, but I can't use scrollRect, so I was forced to declare a Canvas object (called innerCanvas)... inside my SuperCanvas (I know, not very nice =/) I would like to know if there's a proper way to "redirect" the creation of my component's children in this canvas.
[Code]...
View 1 Replies
Feb 15, 2011
so I made a simple game in one whole .as and link it as the main.as inside the .as I declared variables, generate random stuff, and as the game plays, the variables changed as well, until the end of the stage.what I want to know is, how to fresh start the whole things? once it's at the end of the game, it'll auto reset everything like it's being played for the first time.back in as2, I usually emptied the first frame, while declaring some fixed value in the 2nd frame and the rest of the codes in frame 3, so if I were to restart the game, I can just gotoAndPlay either the 1st or 2nd frame to reset all the vars as well as stages.
View 1 Replies
May 19, 2009
I have 3 movieclips on the main stage.
btn1, 2, 3
I have this code in the maintime line, that when i click a button, the btn the stays static (like its on), when i click another btn, it switches on the next button and loads an external swf.
Each button's instance name is button1, 2, 3..and more buttons I add the stage I would increase the button number, so for 3 buttons on stage I have up (var buttonNum:Number = 3
code//
var buttonNum:Number = 1;
for (i=1; i<=buttonNum; i++) {
this["button"+i].onRollOver = function() {
[Code].....
This all works fine.
I have built a scroller with thumbnails as movieclips and would like to add this code to movieclips.
The thumbnails are indivdual moviclips and are inside a movieclip (productscroll), as the dragbar i am using targets the clip (productscroll) to scroll the thumbnails.
I basically need the same actions as the buttons. When I click a thumbnail I need to load an external swf.
View 3 Replies
Aug 8, 2008
My header is an mc with buttons that load swf's into a main content mc with this:on (release) { loadMovie("myswf.swf", _root.holder); and that works perfectly (content loads into mc with no page refresh).But..one of my loaded swf's has the same button code on a button to load swf's into the same mc and I get a page refresh.
View 1 Replies
May 10, 2004
I'm working with several nested movie clips. My Main container (the GUI), and the content MC's. The Main Container loads, via a button, another SWF file into the MC
"_root.content" (_root.content.loadMovie("filename.swf"))
Within that loaded swf file I've got a script to load information from an XML file, and add it to several dynamic text boxes. The XML loads fine, and the SWF file works fine, as long as it isn't in my container movie..
itmHeader = _root.attachMovie("movieName", "movieAlias")
I have tried root, parent, and this.. and none of them work while the SWF file is loaded into the container movie.. and the only one that works when I run the SWF file by it's self _root.attachMovie is the only command that shows the information as intended (at all).
View 3 Replies
May 1, 2005
I want to create a container MC on the main timeline and have different buttons that load a different navigation within the same container, and also has a preloader.
View 2 Replies
Feb 27, 2004
I've got index.swf which is the file with the container. main.swf is the file to be loaded onto index.swf.I can't get my main to load into the container automatically at a specific time. When I click on the button the animation plays perfectly though.Maybe because loadMovie is unable to load over index.swf?I haven't inserted code for any of the other buttons yet though. I want to be sure I can make this work before I start doing everything else. I think it shouldn't matter though cause its only meant to load at a specific time.
View 4 Replies
Jul 28, 2004
I have one swf called main.swf which has a container movieclip that gets external swf's loaded into it.
my external swf is called hosting and it calls an array of data that is loaded into a movieclip that is duplicate for each element from the database. The elements from the database are as follows:
Business
Economy
Power
Standard
Each one of these has a button over it that when press loads information from the database into a movieclip that contains a textbox. My button code is: _root.movieclip.loadVariables("url to database");
This works flawlessly when I run the hosting.swf by itself, but when it is loaded into the contianer in the main.swf the buttons dont work. I believe that it is the _root in the button call that is causing this but I dont know how to fix it. I think the _root variable changes when hosting is loaded into the main.swf.
View 1 Replies
Dec 30, 2008
I have attached two pictures. Basically I am making a website. The main navigation loads in external swf's through a container movie. For this I have used this tutorial : [URL]. What I want to do is- when you rollover the navigation bar, be it the text or the coloured block- I want it to scroll down and reveal the 'sub navigation'. (pic2) It's like a drop down menu but kind of the other way around. Then, when you either rolloff of the navigation bar or click on a menu button, it slides back up to its original state. (Pic1). I have played around and only managed a sloppy version which doesn't work very well, especially when you resize. I think a simple answer to this is if I could get my buttons to work inside a movie clip. I had tried this but then the swfs wouldn't load properly.
View 3 Replies
Jun 9, 2009
I'm trying to place the 3d photo wall inside a container mc to enable a full-screen scroller also. I get the repeated error "1120: Access of undefined property con.
View 1 Replies
Feb 26, 2005
i have a little problem with the unloadMovie command. i have a button which is mc2_about here is the code
[Code]...
where i want to unload level1 which is a scrollbar with a text and load the portfolio section in an empty container... my structure i want to load in an empty container the swf's of the main navigation (home- portfolio,etc) and the sub-menus of it's categories[about me-print-web design) into levels. is there a simpliest way of doing that?
View 3 Replies
Sep 21, 2011
I'm creating a master movie that will load 4 external swf's. To do this, I made a container of sorts by having an animated screen rising up. I created an empty movie clip and titled it "empty_mc". I dragged it onto the "container screen" but when I press any specific button to load one of the external swf's, they don't maintain the container size.
So, how do I ensure when a button is pressed for a particular swf, that it stays within the confines of the container? To see what I'm trying to do, here is the site: [URL]
Some of the buttons aren't working yet. However, the Drag and Drop one does for sure...just out of scale of the container.
I'm experimenting with how to do this by this code by using loadMovie and loadMovieNum. I believe I'm supposed to use loadMovie if I want it to be inside a container. I know the code is messed up in parts, but I was just trying to see which one gave me the best result...none did what I wanted it to do,
[Code].....
View 2 Replies
Nov 6, 2009
I am trying to target items inside a movieClip container. The container is called holder.
Inside holder I have a bunch of items such as other movieClips and TextFields.
How do I target, for example the TextField inside the holder clip??
Fore Example, I tried this, but doest work...
holder.textField.x = 100;
View 6 Replies
May 26, 2010
I've created several frames, and buttons inside them. With the click on a button inside a frame, I need to highlight the frame.how to access the whole movie clip with the click on a button that is a part of it (what keyword, syntax etc) . The button is a part of the frame (same movie clip) and this has to be done with the help of this button (not by adding an event listener on the whole movie clip);
View 0 Replies
Sep 22, 2011
I'm creating a master movie that will load 4 external swf's. To do this, I made a container of sorts by having an animated screen that rises up. I created an empty movie clip and titled it empty_mc. I dragged it onto the "container screen" which I named movieScreenbut when I press any specific button to load one of the external swf's, they don't maintain the container size, they appear full screen on top of my master movie screen.So, how do I ensure when a button is pressed for a particular swf, that it stays within the confines of the container? To see what I'm trying to do, here is the site:URL...Some of the buttons aren't working yet. However, the Drag and Drop one does for sure...just way out of scale of the container.
I'm just experimenting with how to do this by this code by using loadMovie and loadMovieNum until someone helps me understand what I have to do. I believe I'm supposed to use loadMovie if I want it to be inside a container.[code]
View 0 Replies
Oct 13, 2009
how I can use SWFobject to place a SWF inside a container?
I am using SWFobject to make the width and height 100% so that it takes the entire browser screen. However, I want my swf to stay within a horizontal border (so that it takes up say 100% height and 90% width). But, even if I place the flashcontent div (that I target with SWFobject) within another container div (which I only target with CSS, with 90% width and center it). The SWF file will take up the whole page, going over the margins of the container div.
View 2 Replies
May 26, 2010
I've created several frames, and buttons inside them. With the click on a button inside a frame, I need to highlight the frame. Could someone please tell me how to access the whole movie clip with the click on a button that is a part of it (what keyword, syntax etc) . The button is a part of the frame (same movie clip) and this has to be done with the help of this button (not by adding an event listener on the whole movie clip);
View 1 Replies
Jun 4, 2011
I've added a sprite container like this:
Code:
var container:Sprite = new Sprite;
addChild(container);
[code].....
View 2 Replies
Oct 13, 2009
Has anyone successfully used hitTestObject on objects that weren't on the stage?
I have game code that works fine when the objects on are the stage, but replace "stage" with "this" (the game object that covers the whole stage) and it doesn't work.
View 0 Replies
Jan 7, 2010
Here's the layout:I have a main SWF. Inside that main SWF is a container MC that has been rotated in 3D space to have a bit of perspective. Inside _that_ container is a container MC into which is loaded various images, videos, and SWFs. Images: no problem. Videos: no problem.The problem:If an SWF is loaded into the media MC that has an MC in it with a listener/startDrag combination allowing that MC to be dragged it seems to fail (the drag).I've tested this child SWF extensively to make sure the drag works, and I've even loaded it externally into other SWFs and it works. I've also tested in various ways to make sure that the problem isn't something simple, like an intervening clip in my main SWF keeping the MouseEvent from reaching the MC with the startDrag
View 1 Replies
Jan 15, 2010
What's the best way to scale a container mc but not scale the children inside it? Basically I have a box mc with a background colour, with a logo added using addChild, if the user changes the browser size the box scales to the height of the window but it's also scaling the logo, I just want to change the height of the container box really.
View 4 Replies
Dec 27, 2010
I have an AS2 .fla with all of my stage items on the timeline as opposed to inside a container swf. I must chose Center vertical and Horizontal options in the HTML alignment options when publishing in order for my movie to be perfectly centered in the middle of the browser. I would like to have a FULL Browser Background Image, however when I try using the following code, my background ("bg") does not fill the entire browser.
what I am doing wrong and if it is even possible to have a full browser background image while still using CENTER alignment in the HTML publish settings? I have tried the following code with and without the Stage align settings and with the xy coordinates centered-still no luck!
bg.Stage.align = "TL";
Stage.scaleMode = "noScale";
bg._width =Stage.width;
bg._height =stage.stageHeight;
bg.x = 0;
bg.y = 0;
View 30 Replies
Jun 25, 2009
I have an AS2 .swf being loaded as a child of a parent AS3 .swf. The AS2.swf calls loadmovie() and unloadmovie() to display 3 jpeg files. The images load the first time, but after that, a call to loadmovie() to replace the image, or a call to unloadmovie() fail. I found the following Adobe Bug report ([URL]) that has said this has been resolved, and also said that child movieclips could be replaced without a problem. Here is the code I'm calling.
[Code]....
View 2 Replies
Oct 26, 2011
I have a 3 mc's into a container and I want to add a MOUSE_OVER or CLICK event listener for each mc inside the container ("for" Loop)..
the code:
ActionScript Code:
var container:Sprite = new Sprite();
container.x = stage.stageWidth * 0.5;
[code]....
View 4 Replies
Aug 1, 2009
I added a movieclip and named "bot_mc" in another movieclip. Then, In Action panel, I use bot_mc.addEventListener(MouseEvent.DOWN, xxxx). However, when I drag and drop the container movieclip on the main stage and compile. There is no error occurs but the MouseEvent doesn't work.
View 3 Replies
Sep 30, 2010
I had an issue with my index.html testing on IE and the preloader just stalls on "loading 0%". he told me that locally the progress event doesn't have time to load and to try uploading it to your server and see if it works. It worked just fine. Rah Rah Kglad.
So today I'm fine tuning the swf/ fla to clean it up. Reduced some picture sizes and deleted unused files and reduced the swf from 4000 KB to 350 KB Rah Rah Gene. replaced the swf in Dreamweaver and re-uploaded with Filezilla. Rah ah Filezilla.
Everything working great and my preload went from 23 seconds to less than 3. So I'm real happy except for one small issue. Firefox and IE both do this. If I hit the refresh button, it stalls on "loading 0%" once again just like it did locally.
If I hit the refresh several times it WILL refresh randomly....2 times refresh......10 times refresh etc.
[URL]
Spoke to my hosting company who said everything seems fine on the server. BTW he said Chrome did NOT have this issue Rah Rah Chrome.
View 1 Replies
Apr 12, 2012
I am developing a paint board application using flash builder. User can draw some shapes objects(ellipse, circle, rectangle). I want to implement grouping/un grouping feature some like ms-word in my application. I group multiple objects by putting them inside a container(UIComponent). Now i apply resizing to container and it resize well. I am using a free object handler API to apply selection handle over the container. I want to resize and reposition all children with respect to container changed size. Every thing goes well until all children inside container are having rotation = 0. But if there is any child which is having rotation >0 and <0 things goes worse. The child resize but not in a proper manner. I stretch the parent container width and it increase the height of rotated child. Is there any way using Matrix class or something else to transform all children in same direction and same ratio respective to container?
View 1 Replies