Copy link to clipboard
Copied
Typically when I design something big, I make it over 1000x1000 in pixels. But that was at my school where the screen's were a bit bigger and I actually had dual monitors, so I could move things around and such so I had a great workspace. Now, I'm at home and all I got is a laptop. The screen is wider than tall.
Now, I know you can test it in browser, but the current project I'm using doesn't work right. It's something to with URLRequest on a local test. I can't explain it.
If I test it in flash pro, the image loads but I can't see the whole document. If I test it via web browser, I can see more of the document but the image doesn't load.
How Could I go about making it so I can see the entire project without cropping the size, and see the image via browser?
assuming whatever your loading fits your stage (otherwise, scale it to fit your stage), publish for 100%100% (file>publish settings>html).
Copy link to clipboard
Copied
assuming whatever your loading fits your stage (otherwise, scale it to fit your stage), publish for 100%100% (file>publish settings>html).
Copy link to clipboard
Copied
I'll have to attempt that, but usually it takes ages for it to publish that way.
Copy link to clipboard
Copied
what do you mean by that?
Copy link to clipboard
Copied
The time for the swf to load is just a lot longer than when I run it in flash.
This doesn't solve my URLRequest error though.
Copy link to clipboard
Copied
where are you seeing the problem? when you test in flash? when opening your html in a browser? somewhere else?
and, are you resizing your loader (after loading is complete), so whatever is loaded fits your stage?
Copy link to clipboard
Copied
I see the issue when the swf is opened locally (so that means it isn't on a website or anything just yet) and when it isn't in adobe flash. So yes, if I open the html page generated by flash it does cause this error.
It is supposed to be rezising, but doesn't seem to want to.
I've got these:
addChild(myLoader); | |
myLoader.width = 1000; | |
myLoader.height = 1000; |
But no matter the size of the image, won't actually resize.
Edit:
Upon further searching, I've found the issue and solved it. I had the publish settings for my swf set to access local only, instead of access network only.
It now works in the browser
Copy link to clipboard
Copied
you must use a listener to determine when loading is complete and THEN resize:
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadCompleteF);
myLoader.load(new URLRequest("whatever.jpg"));
function loadCompleteF(e:Event):void{
myLoader.width=1000;
myLoader.height=1000;
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now