IDE :: Controlling Root-level MC With Internal MC?
May 21, 2009
I've reworking a client's site, so I'm somewhat limited on the changes I can make to the overall structure -BUT - here's my quandry: I have a nav system that is on the _root level - the main content of the site exists in one large MC that sits underneath the nav, and moves to different target positions when the nav is clicked (within THIS mc are individual MC's that house the content for each individual page)So the nav doesn't change positions on the timeline at all - once it loads in, it stays constant on one frame, while the main_mc moves positions underneath I need to make the nav change color when that page is activated (when the main_mc moves into certain target positions), and I can't figure out how to communicate w/ it from within these embedded mc's.
View 1 Replies
Similar Posts:
Jan 14, 2009
Situation:
- We have a Flash application located on a SAP EP (let's say ep.x.com)
- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)
- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices
Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.
- A crossdomain policy file on root level cannot be deployed on root level
- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.
Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.
Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.
- SAP / Adobe always features the close relationship between their technologies.
Question:- What could we do?
- How does the Visual Composer works around that problem?
View 1 Replies
May 21, 2010
Im really struggling with controlling a movieclip (frame-by-frame images w/ stop(); actions) by using the mouses horizontal position on the main stage. So basically I want to turn my stage into a showreel of images. Lets say the stage is 50 pixels; i would want some kind of code that would divide up the total length of my m/cs timeline, in order to show the first frame of the m/c when the y-axis is at 0, the last keyframe of the m/c when the y-axis = 500.
I have tried to use rollover commands on (miniscule) hit states covering the entire stage, but there must be a better way ( i plan on updating the images m/c a lot) ie. a lovely big chunk of confusing code?
View 2 Replies
Aug 1, 2010
I am trying to use parts of a template for a flash site in my own site.On one of my sites pages I am trying to use a set of buttons and pages. My problem is that the flash buttons & pages from the template are set to the ROOT of the template, but I am putting them on 1 or 2 levels difference on my site.Here is the code for the `release` of the button:
on (release) {
if (_root.link<>num and _root.animation == 0) {
_root.animation = 0;
[code].....
View 2 Replies
Aug 5, 2008
I was checking my policyfiles log file and noticed that I have the following for a newly created (and played in Firefox) SWF file I made:OK: Root-level SWF loaded:URL...I was trying to find some documentation in livedocs.adobe.com but couldn't find anything...
View 1 Replies
Jan 3, 2012
how do i retrieve the top level parent of an xml node in actionscript please?
<companies>
<company id="1" name="boo" level="1">
<company id="2" name="hoo" level="2">[code]......
View 1 Replies
Feb 7, 2005
Is it possible to control one loaded SWF File e.g.,(MOVIE-1.swf) from another loaded SWF file e.g., (MOVIE-0.swf) on a different level? E.g. with a syntax like:
onRelease
_MOVIE-1.SWF.gotoAndStop (4)
or:
onRelease
gotoAndStop (MOVIE-1.swf, frame4)
View 1 Replies
Nov 26, 2011
I have a movie clip on my main timeline that I want to send to a certain frame based on a variable that can be set from a nested movie clip, and also set from an external swf that will be loaded into the main timeline.So how would I set that variable? In AS2, I would just go _parent._parent...as many levels up as I needed to, but the AS3 equivalent only seems to work one level up.
View 6 Replies
Feb 12, 2009
I'm sorry if this post breaks forum conventions, but I searched and didn't find a solution in past posts.
I'm writing a function that highlights components of the animation I've created.
It does this by creating a white box on top of the entire stage, tweening it's alpha value from 0 to 80, and creating a new instance of the movie clip to be highlighted on top of that white box.
I run into a problem when I need to highlight components that are movie clips nested within ones on the top/root level.
When I duplicate instances of nested movie clips, they just exist within the movie they were nested in.
I want to pull those duplicated, nested movie clips into the root area so it rests on top of that white box I just mentioned. How do I take a nested movie clip and pull it out of it's parent onto the top/root level?
View 1 Replies
Mar 4, 2002
I have a movie (back.swf) and this calls into another (menu.swf, level20). I want to control the movie clips to the level0 with the buttons on level20. I do that but I can't control in a random order.
For example:
I press button 1 and play movie clip 1.
I press button 2 and play movie clip 2.
But if I press again button 1 don't play it.
And if I press the button 3 play the movie 3 but don't allow to return to the button 1 and 2.
Every movie clips are in level0.
View 1 Replies
Aug 19, 2008
My stage is empty except for an MC with a simple animation and an AS 2 layer. There is not a button or user interaction that engages the MC. I want the MC to play when the timeline reaches the frame with the AS. My MC has an instance name of 'blueMC' and here's the AS I've tried:
blueMC.play();
_root.blueMC.gotoAndPlay("2");
on(load){
blueMC.play();
} onClipEvent(load) {
blueMC.gotoAndPlay("2");
}
Shouldn't it just be this?:
MCinstanceNmae.gotoAndPlay("Frame# or label");
View 1 Replies
Jul 15, 2010
I have small issue in as3. I am load "mainmenu.swf" file into "main.swf". through loader class. so now "main.swf" is parent "mainmenu.swf" file children how can call "main.swf " variable & function from "mainmenu.swf" .
View 2 Replies
Mar 2, 2010
In my document I have my actionscript on Layer 1. In this I duplicate an enemy movie clip.The controls for moving the enemy are inside the enemy movie clip, so setting speed, where to start from etc.On the Layer 1, I also run a script which acts as a timer, and when it reaches set values (eg. 10 seconds) it "levels up" (basically just changes background colour). I wand this to increase the speed of the enemy movie clips so that they get faster. I have this code:
Actionscript Code:
for(i=1;i<=enemies;i++){ _root["enemyRight"].duplicateMovieClip("enemyRight"+i,i+1000,enemyRight);
[code].....
View 2 Replies
Nov 18, 2008
I'm trying to control the root timeline from a movie clip. On the last frame of the movie clip, I have:
MovieClip(root).gotoAndPlay (10);
which successfully brings me back to frame 10 on the main timeline. However, from here, none of the ActionScript that is on Frame 1 seems to work... the rollovers aren't working, except on those embedded in a separate movie clip.
View 2 Replies
May 8, 2008
I have a Nav Bar on my _root timeline. Inside of which I have buttons and MC's. I want to have all the code for my buttons on the _root timeline. So, I can adjust from there.
Below is an example of what I'm trying to do from the _root timeline Actions Layer:
Code:
// ------ NAV BAR ON MAIN STAGE -----------------------------------
// ------ Instance Name = NavBar ------------------------------------
// ------ Button inside of "NavBar" = MyButton ----------------------
[Code].....
View 8 Replies
Nov 4, 2009
I have on my main timeline a movie clip (emptyMC) that I am loading my external SWFs into and I need to be able to access this loader movie clip from my menu, which is it's own movie clip. As it stands, when I have my buttons on the main timeline I have no issue. But once I put these same buttons into the menu MC I am lost as to how to "get back" to the loader on the main timeline to load and unload the external SWFs.Here is my current code that allows for me to load and unload with buttons on the main timeline. Is there away to modify this same code for my purposes?[code]
View 0 Replies
Dec 4, 2010
I am trying to create a global function to reuse repetitively. It worked until I moved the function to the external .as file. The problem is with MovieClip(root) and MovieClip(parent). They do not work and cause errors.
[Code]...
View 0 Replies
Jun 26, 2009
I am unknown about internal in OOP. Is there any body about internal. How we can use this in pratical world
View 1 Replies
Apr 22, 2011
im trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:
on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}
[Code]...
View 0 Replies
Aug 26, 2010
I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF. Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1. When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1. However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not. Here's my AS2 code:
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{ trace("loaded"); //This works removeMovieClip(mc_Empty1.mc_FadedBg); //This works}
[code]....
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not.
View 3 Replies
Oct 2, 2010
This is making me a little kooky today. I thought I could defined a library path in PREFERENCES > ACTIONSCRIPT > ACTIONSCRIPT 3.0 SETTINGS then that library would be available to all AS3 FLA files, but that doesn't seem to work for me. If I use the PUBLISH SETTINGS and define the library path everything is fine.
Is there something that I could have done to disable the application level class path functionality? I guess I'm trying avoid having to set the library path for every new FLA I'm making.
View 1 Replies
Dec 26, 2011
I'm doing a bigger aplication in flash (as2).Image, there is a main "home" flash with several menu buttons.Clicking these buttons, I load external swf into an empty container in this "home" flash.[code]clicking buttons in this second level, will load external movies into an empty container in this SECOND LEVEL swf.This works fine, but now, coming to the THIRD LEVEL (don't think there will be more in the future) problems come up, some scripts won't work.Now (I'm a as2-beginner) I think, loading external swf ALLWAYS into containers in the first "Home" flash should solve the problem.But I don't know, how to load an swf from the third level into a container in the first "home" level.In the "home" level, I have a "close" button, that will unload the container content.I need to go to a certain scene "content_2" in the home swf, too.
View 7 Replies
May 9, 2004
i have game im doing, and i want it to jump to level 2 upon completing the first level, but the problem is, the level 2 is a seperate swf, i've tried to use
Code:
on (release) {
loadMovie("level2.swf",2)
}
View 3 Replies
Dec 2, 2009
I have called main.swf into a container in index.swf.
myMCL.loadClip("main.swf","container"); is an action on my Index.fla timeline.
I have my navigation on index. (i wanted it to go on main, but the nature of the animation meant it had to go on index)
I need to call "home.swf" into "main.swf" from the navigation button in Index.swf.
When I had the navigation on "main.swf" this was my code to call "home.swf" into the page.
on (release) {
Preloader_mc.gotoAndStop("home");
}
("home") is the label name where the preloader is for home.swf
how to call the preloader for home into main.swf from "INDEX.SWF INSTEAD OF MAIN.SWF"
View 5 Replies
Feb 2, 2010
I have a file1.swf which loads file2.swf into it. Within file2.swf i have a button that when clicked needs to remove file2.swf and load file3.swf into its place.
View 2 Replies
Sep 16, 2004
Is there a way to link to one level below the current level? Instead of saying _root.level1.level2.level3, something like: ../level3 ?
View 4 Replies
Mar 22, 2010
I have a root stage, and a MC that is called from the root stage.Now from that MC, i will called in another MC2, and I wanted to placed the MC in the center of the stage. The reason I could not use normal ADDED_TO_STAGE at MC and define the center is because MC is not place in the exact position of the root stage (as in x, y=0). So if I would target MC2 at MC stage center, it would not be the exact center of the root stage/screen.How can I called the root stage properties rather than adding MC2 into the stage?
View 1 Replies
Nov 7, 2011
How do you tell the root timeline to root.gotoAndStop(2); from the timeline of a movieClip added using addChild?In the maintime line I have
addChild(fade_eng);
and in fade_eng I have the following on frame 20
root.gotoAndStop(2);
this.gotoAndStop(1);
But I am getting 1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.
View 1 Replies
Nov 5, 2004
I have a movie that's 500x400 px in level 0 and has lots of thumbnails with pictures that I want to open. the thumbnails open a 500x400 px movie above the other but on level 1. the problem is that when the new movie loads on level 1, the thumbnails on level 0 (that are now hidden by the new movie) are still active, and if i click anywere in the movie on level 1, it trigger an action from level 0. Is it possible to load a movie to level 1 that deactivates the movie in level 0 without unloading it?
View 1 Replies
Feb 25, 2010
i found plenty of tutorials and posts on loading and using external stylesheet, but i find it slows down my app for no reason, im only using 2 styles. i was using an internal css in as2 but cant get it working in as3. how to use internal css in as3?
View 5 Replies